protected void Page_Load(object sender, EventArgs e) { try { if (Request.QueryString["Stage"] != null) { TransactionStageControlId1.ActiveStage = Request.QueryString["Stage"].ToString(); } if (IsPostBack) { return; } this.ValidatePage(UserContext, QueryStringManagement.GetValue(Constants.MenuCodeQsKey, Guid.Empty.ToString())); var queryArgument = new QueryArgument(UserContext.DataBaseInfo) { filter1 = Constants.DvStages, filter2 = TransactionStageControlId1.ActiveStage, FilterKey = Constants.ReferencesType }; var references = _controlPanel.GetReferences(queryArgument); BindReferences(references); ForecastingPart.IsVisiablePartText = true; ForecastingPart.IsEnablePartType = false; ForecastingHead.SetRequestLoctionAutopostBack = true; //ForecastingHead.IsEnableLocation = false; ForecastingHead.IsEnableCustomer = true; BindData(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "FieldRequest failed in page load with exception ", ex); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Stage"] != null) { TransactionStageControlId1.ActiveStage = Request.QueryString["Stage"].ToString().Trim(); } if (IsPostBack) { return; } this.ValidatePage(UserContext, QueryStringManagement.GetValue(Constants.MenuCodeQsKey, Guid.Empty.ToString())); CategoryType = Request.QueryString["CategoryType"].ToString().Trim() == "01" ? "01,03" : Request.QueryString["CategoryType"].ToString().Trim(); pageTitle.InnerText = Request.QueryString["PageTitle"].ToString().Trim(); if (Request.QueryString["SubLinkType"] != null) { StageType = Request.QueryString["SubLinkType"].ToString().Trim(); } var queryArgument = new QueryArgument(UserContext.DataBaseInfo) { filter1 = Constants.DvStages, filter2 = TransactionStageControlId1.ActiveStage.ToString().Trim(), FilterKey = Constants.ReferencesType }; var references = _controlPanel.GetReferences(queryArgument); BindReferences(references); ForecastingGridViewListControl.SetText1(Constants.LabelSREnter, Constants.ToolTipSrNumberSearch, 12); if (StageType == Constants.BillTrackingType) { DivFilter = true; ForecastingEditPart.SetCurrentStatusAutopostBack = true; ForecastingGridViewListControl.Ddl1.Items.Add(new ListItem("BackOrder", "BO")); ForecastingGridViewListControl.Ddl1.Items.Add(new ListItem("StockTransfer", "ST")); ForecastingGridViewListControl.Ddllbl1 = "Select Status"; //ForecastingGridViewListControl.Ddl2.Items.Add(new ListItem("Ordering", Constants.OrderingType)); //ForecastingGridViewListControl.Ddl2.Items.Add(new ListItem("Deviation Order", Constants.DeviationOrder)); //ForecastingGridViewListControl.Ddllbl2 = "Select Order/Deviation"; } else { DivFilter = false; } fillHeaderGrid(); ForecastingPart.addKeyupText(ForecastingPart.txtqty, "onkeyup"); ForecastingEditPart.IsHeader = false; ForecastingEditPart.IsPanelDiv = false; }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["Stage"] != null) { TransactionStageControlId1.ActiveStage = Request.QueryString["Stage"].ToString().Trim(); } if (IsPostBack) { return; } this.ValidatePage(UserContext, QueryStringManagement.GetValue(Constants.MenuCodeQsKey, Guid.Empty.ToString())); var queryArgument = new QueryArgument(UserContext.DataBaseInfo) { filter1 = Constants.DvStages, filter2 = TransactionStageControlId1.ActiveStage, FilterKey = Constants.ReferencesType }; var references = _controlPanel.GetReferences(queryArgument); BindReferences(references); fillHeaderGrid(); ForecastingPart.addKeyupText(ForecastingPart.txtqty, "onkeyup"); }