protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); Ajax.Utility.RegisterTypeForAjax(typeof(RTSRecommendations)); if (!IsPostBack) { hidSortVendor.Value = "PO# ASC"; hidSortVendor.Attributes.Add("sortType", "ASC"); BindItemNo(); BindSummary(); ClearActionPanel(); pnlAction.Update(); } else { lblMessage.Text = ""; } if (Session["CPRFactor"] != null) { CPRFactor.Text = Session["CPRFactor"].ToString(); } pnlProgress.Update(); }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(MonthlyPurchasingBudget)); string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); hidSort.Value = keyColumn; hidFileName.Value = "MonthlyPurchasingBudget" + Session["SessionID"].ToString() + name + ".xls"; lblMenuName.Text = "Monthly Purchasing Budget"; reportLevel = "C"; if (Request.QueryString["ReportType"] != null) { reportRecs = Request.QueryString["ReportType"].ToString(); reportFilter = Request.QueryString["ReportFilter"].ToString(); lblMenuName.Text = "Detail for " + reportFilter + " - " + Request.QueryString["ReportDesc"].ToString(); reportLevel = "I"; } if (!IsPostBack) { BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); sortColumn = Request.QueryString["Sort"].ToString(); strStatus = Request.QueryString["status"]; if (strStatus == "withExclusion") { lblMenuName.Text = "365 Day Inventory Report - With Exclusions"; } else if (strStatus == "withoutExclusion") { lblMenuName.Text = "365 Day Inventory Report - Without Exclusions"; } else if (strStatus == "36MonthUsage") { lblMenuName.Text = "365 Day Inventory Report - Without Exclusions - Using 36 Month Usage"; } if (!IsPostBack) { BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(DayReport)); string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); hidFileName.Value = "DayReport" + Session["SessionID"].ToString() + name + ".xls"; strStatus = Request.QueryString["status"]; if (strStatus == "withExclusion") { lblMenuName.Text = "365 Day Inventory Report - With Exclusions"; } else if (strStatus == "withoutExclusion") { lblMenuName.Text = "365 Day Inventory Report - Without Exclusions"; } else if (strStatus == "36MonthUsage") { lblMenuName.Text = "365 Day Inventory Report - Without Exclusions - Using 36 Month Usage"; } if (!IsPostBack) { BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(InvoicePrintPage)); lblMessage.Text = ""; _startDate = Request.QueryString["StartDt"].ToString(); _endDate = Request.QueryString["EndDt"].ToString(); _reportType = Request.QueryString["ReportType"].ToString(); _custNo = Request.QueryString["AccountNo"].ToString(); _custType = Request.QueryString["CustType"].ToString(); _doctStNo = Request.QueryString["DocStNo"].ToString(); _doctEndNo = Request.QueryString["DocEndNo"].ToString(); _docList = Request.QueryString["DocList"].ToString(); if (!IsPostBack) { Session["PrintInvoiceNo"] = ""; hidFileName.Value = "InvoiceList" + Session["SessionID"].ToString() + ".xls"; BindDataGrid(); } BindPrintDialog(); }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); //Comment should be removed systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(QuoteAnalysisReport)); string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); periodMonth = (Request.QueryString["Month"] != null) ? Request.QueryString["Month"].ToString().Trim() : ""; periodYear = (Request.QueryString["Year"] != null) ? Request.QueryString["Year"].ToString().Trim() : ""; customerNo = (Request.QueryString["CustomerNumber"] != null) ? Request.QueryString["CustomerNumber"].ToString().Trim() : ""; branchNo = (Request.QueryString["BranchNumber"] != null) ? Request.QueryString["BranchNumber"].ToString().Trim() : ""; startDate = (Request.QueryString["StartDate"] != null) ? Request.QueryString["StartDate"].ToString().Trim() : ""; endDate = (Request.QueryString["EndDate"] != null) ? Request.QueryString["EndDate"].ToString().Trim() : ""; hidFileName.Value = "QuoteAnalysisReport" + Session["SessionID"].ToString() + name + ".xls"; //hidFileName.Value = "QuoteAnalysisReport" + name + ".xls"; if (!IsPostBack) { BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); //Comment should be removed systemCheck.SessionCheck(); branchID = Request.QueryString["Branch"].ToString(); orderType = Request.QueryString["OrderType"].ToString(); customerNumber = Request.QueryString["CustNumber"].ToString(); //customerNumber = "BAYF-2"; //branchID = "02"; //orderType = "w"; if (orderType.Trim() == "w") { Footer1.Title = "Sales Forecasting Tool : Warehouse Sales"; } else { Footer1.Title = "Sales Forecasting Tool : Mill Sales"; } lblMessage.Text = ""; if (!Page.IsPostBack) { FillCASHeader(); BindDataGrid(); } }
/// <summary> /// Page_Load:Page load event handler /// </summary> /// <param name="sender">Object sender</param> /// <param name="e">System.EventArgs e</param> protected void Page_Load(object sender, System.EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); #region Getting Query string values customerNumber = Request.QueryString["CustNo"].ToString(); curYear = Request.QueryString["Year"].ToString(); curMonth = Request.QueryString["Month"].ToString(); branch = Request.QueryString["Branch"].ToString(); branchName = Request.QueryString["BranchName"].ToString(); strMonthName = Request.QueryString["MonthName"].ToString(); strChain = Request.QueryString["Chain"] != null ? Request.QueryString["Chain"].ToString() : ""; #endregion if (Request.QueryString["CASMode"] == null) { customerDataPage = "../CustomerData.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName; top5SalesPage = "../TopSalesCategories.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName; salesCategoryPage = "../SalesCategoryDetail.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName; pieChartPage = "../PieCharts.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName + "&CustName=" + Session["CustomerName"].ToString().Replace(',', '`').Replace("'", "|||"); customerNotesPage = "../ContactNotes.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName; } else { customerDataPage = "../CustomerData.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&Chain=" + strChain + "&MonthName=" + strMonthName + "&CASMode=" + Request.QueryString["CASMode"].Trim(); top5SalesPage = "../TopSalesCategories.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&Chain=" + strChain + "&MonthName=" + strMonthName + "&CASMode=" + Request.QueryString["CASMode"].Trim(); salesCategoryPage = "../SalesCategoryDetail.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&Chain=" + strChain + "&MonthName=" + strMonthName + "&CASMode=" + Request.QueryString["CASMode"].Trim(); pieChartPage = "../PieCharts.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName + "&Chain=" + strChain + "&CustName=" + Session["CustomerName"].ToString().Replace(',', '`').Replace("'", "|||") + "&CASMode=" + Request.QueryString["CASMode"].Trim(); customerNotesPage = "../ContactNotes.aspx?Month=" + curMonth + "&Year=" + curYear + "&CustNo=" + customerNumber + "&Branch=" + branch + "&BranchName=" + branchName + "&MonthName=" + strMonthName + "&Chain=" + strChain + "&CASMode=" + Request.QueryString["CASMode"].Trim(); } // Registeing Ajax Ajax.Utility.RegisterTypeForAjax(typeof(treeViewMenuFrame)); }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); lblParentMenuName.Text = "365 Day Inventory Report"; }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); Ajax.Utility.RegisterTypeForAjax(typeof(QuoteAnalysisHdrRpt)); #region URL Parameters periodMonth = (Request.QueryString["Month"] != null) ? Request.QueryString["Month"].ToString().Trim() : ""; periodYear = (Request.QueryString["Year"] != null) ? Request.QueryString["Year"].ToString().Trim() : ""; customerNo = (Request.QueryString["CustomerNumber"] != null) ? Request.QueryString["CustomerNumber"].ToString().Trim() : ""; branchNo = (Request.QueryString["BranchNumber"] != null) ? Request.QueryString["BranchNumber"].ToString().Trim() : ""; startDate = (Request.QueryString["StartDate"] != null) ? Request.QueryString["StartDate"].ToString().Trim() : ""; endDate = (Request.QueryString["EndDate"] != null) ? Request.QueryString["EndDate"].ToString().Trim() : ""; orderSource = (Request.QueryString["OrdSrc"] != null) ? Request.QueryString["OrdSrc"].ToString().Trim() : ""; sourceType = (Request.QueryString["SrcTyp"] != null) ? Request.QueryString["SrcTyp"].ToString().Trim() : ""; itemNotOrd = (Request.QueryString["ItemNotOrd"] != null) ? Request.QueryString["ItemNotOrd"].ToString().Trim() : "false"; #endregion #region XLS File Name string fileTime = DateTime.Now.ToString().Replace("/", ""); fileTime = fileTime.Replace(" ", ""); fileTime = fileTime.Replace(":", ""); hidFileName.Value = "QuoteAnalysisHdrRpt" + Session["SessionID"].ToString() + fileTime + ".xls"; //hidFileName.Value = "QuoteAnalysisHdrRpt" + fileTime + ".xls"; #endregion if (!IsPostBack) { BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (!Page.IsPostBack) { if (Request.QueryString["BranchID"] != null) { strBRNID = Request.QueryString["BranchID"].ToString(); DataTable dtRepNames = csrReport.GetSalesRepNames(Request.QueryString["BranchID"].ToString()); if (dtRepNames.Rows.Count <= 0) { lblNorecords.Visible = true; } else { lblNorecords.Visible = false; } dlRegion.DataSource = dtRepNames; dlRegion.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(CategoryDayReport)); string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); hidFileName.Value = "DayInventoryCategory" + Session["SessionID"].ToString() + name + ".xls"; strStatus = Request.QueryString["status"]; strCategory = Request.QueryString["CategoryGroup"]; if (strStatus == "withExclusion") { lblMenuName.Text = "365 Day Inventory Report - With Exclusions"; } else { lblMenuName.Text = "365 Day Inventory Report - Without Exclusions"; } if (!IsPostBack) { sortExpression = ((hidSort.Value != "") ? " ORDER BY " + hidSort.Value : " ORDER BY " + keyColumn); BindBranchDetails(); dsReport = DayInventoryReport.GetCategoryReport(strStatus, strCategory, ddlBranch.SelectedValue.Trim(), sortExpression); dtTotal = dsReport.Tables[0].DefaultView.ToTable(); BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); sortColumn = Request.QueryString["Sort"].ToString(); strStatus = Request.QueryString["status"]; strCategory = Request.QueryString["CategoryGroup"]; if (sortColumn == "") { sortExpression = " ORDER BY " + keyColumn; } else { sortExpression = " ORDER BY " + sortColumn; } if (strStatus == "withExclusion") { lblMenuName.Text = "365 Day Inventory Report - With Exclusions"; } else { lblMenuName.Text = "365 Day Inventory Report - Without Exclusions"; } if (!IsPostBack) { dsReport = DayInventoryReport.GetCategoryReport(strStatus, strCategory, Request.QueryString["BranchCode"], sortExpression); dtTotal = dsReport.Tables[0].DefaultView.ToTable(); BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); Ajax.Utility.RegisterTypeForAjax(typeof(QuoteAnalysisDtlRpt)); #region URL Parameters periodMonth = (Request.QueryString["Month"] != null) ? Request.QueryString["Month"].ToString().Trim() : ""; periodYear = (Request.QueryString["Year"] != null) ? Request.QueryString["Year"].ToString().Trim() : ""; branchNo = (Request.QueryString["BranchNumber"] != null) ? Request.QueryString["BranchNumber"].ToString().Trim() : ""; customerNo = (Request.QueryString["CustomerNumber"] != null) ? Request.QueryString["CustomerNumber"].ToString().Trim() : ""; startDate = (Request.QueryString["StartDate"] != null) ? Request.QueryString["StartDate"].ToString().Trim() : ""; endDate = (Request.QueryString["EndDate"] != null) ? Request.QueryString["EndDate"].ToString().Trim() : ""; orderSource = (Request.QueryString["OrdSrc"] != null) ? Request.QueryString["OrdSrc"].ToString().Trim() : ""; itemNotOrd = (Request.QueryString["ItemNotOrd"] != null) ? Request.QueryString["ItemNotOrd"].ToString().Trim() : "false"; sourceType = (Request.QueryString["SrcTyp"] != null) ? Request.QueryString["SrcTyp"].ToString().Trim() : ""; quoteNumber = (Request.QueryString["QuoteNumber"] != null) ? Request.QueryString["QuoteNumber"].ToString().Trim() : ""; #endregion #region XLS File Name string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); //hidFileName.Value = "QuoteAnalysisDtlRpt" + name + ".xls"; hidFileName.Value = "QuoteAnalysisDtlRpt" + Session["SessionID"].ToString() + name + ".xls"; #endregion if (!IsPostBack) { switch (sourceType) { case "ECOMM": lblSourceType.Text = "eCommerce Quotes"; break; case "MANUAL": lblSourceType.Text = "Manual Quotes"; break; case "ECOMM_ORD": lblSourceType.Text = "eCommerce Orders"; break; case "MANUAL_ORD": lblSourceType.Text = "Manual Orders"; break; case "MISSED_ECOMM": lblSourceType.Text = "Missed eCommerce Quotes"; break; case "MISSED_MANUAL": lblSourceType.Text = "Missed Manual Quotes"; break; } BindDataGrid(); } }
public void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Registering AJAX Ajax.Utility.RegisterTypeForAjax(typeof(CustomerActivitySheet)); }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); // //Used to check User session // systemCheck.SessionCheck(); }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); Ajax.Utility.RegisterTypeForAjax(typeof(ManualTransfer)); lblMessage.Text = ""; if (!IsPostBack) { // Get the items and first grid data Session["XFerMasterData"] = null; Session["ItemGridData"] = null; if (Session["CPRFactor"] != null) { CPRFactor.Text = Session["CPRFactor"].ToString(); } string OrderBy = "CPR.ItemNo"; if (Session["CPRSort"] != null) { if (Session["CPRSort"].ToString() == "SortPlating") { OrderBy = "substring(CPR.ItemNo,14,1), CPR.ItemNo"; } if (Session["CPRSort"].ToString() == "SortItem") { OrderBy = "CPR.ItemNo"; } if (Session["CPRSort"].ToString() == "SortVariance") { OrderBy = "substring(CPR.ItemNo,12,3), CPR.ItemNo"; } if (Session["CPRSort"].ToString() == "SortNetBuyBucks") { OrderBy = "FactoredBuyCost, CPR.ItemNo"; } if (Session["CPRSort"].ToString() == "SortNewBuyLBS") { OrderBy = "FactoredBuyQty*ItemMaster.Wght, CPR.ItemNo"; } if (Session["CPRSort"].ToString() == "SortCFVC") { OrderBy = "CorpFixedVelocity, CPR.ItemNo"; } } dt = CheckError(XFerData.GetCPRItems(Session["UserName"].ToString(), Session["CPRFactor"].ToString(), OrderBy)); if ((dt != null) && (dt.Rows.Count > 0)) { Session["XFerMasterData"] = dt; BindData(); //ItemGrid.DataSource = dt.DefaultView.ToTable(); } pnlProgress.Update(); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["PrintMode"] == null) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); } if (!IsPostBack) { string strWhere = "CustNo='" + Request.QueryString["CustNo"].ToString() + "'"; DataTable dtCustName = customerActivitySheet.GetCustomerActivityDetail(strWhere, "CustName", "CAS_CustomerData"); if (dtCustName != null && dtCustName.Rows.Count > 0) { lblCustName.Text = dtCustName.Rows[0]["CustName"].ToString(); } } #region Getting QueryString curYear = Request.QueryString["Year"].ToString(); curMonth = Request.QueryString["Month"].ToString(); branch = Request.QueryString["Branch"].ToString().Trim() == "0" ? "" : Request.QueryString["Branch"].ToString(); branchName = Request.QueryString["BranchName"].ToString(); strMonthName = Request.QueryString["MonthName"].ToString(); if (Request.QueryString["CASMode"] == null) { customerNumber = Request.QueryString["CustNo"].ToString().Replace("||", "&"); } else { customerNumber = Request.QueryString["Chain"].ToString().Replace("||", "&"); } #endregion #region Grid Binding Event //Method used to bind valus in datagrid BindDataGrid(); #endregion #region Customer Type if (!IsPostBack) { if (Session["CustomerType"] != null) { rbtnlCustType.Items[0].Selected = (Session["CustomerType"].ToString() == "PFC Employee") ? false : true; rbtnlCustType.Items[1].Selected = (Session["CustomerType"].ToString() == "PFC Employee") ? true : false; rbtnlCustType_SelectedIndexChanged(rbtnlCustType, new EventArgs()); } else { rbtnlCustType.Items[0].Selected = (Request.QueryString["CustomerType"].ToString() == "PFC Employee") ? false : true; rbtnlCustType.Items[1].Selected = (Request.QueryString["CustomerType"].ToString() == "PFC Employee") ? true : false; rbtnlCustType_SelectedIndexChanged(rbtnlCustType, new EventArgs()); } } #endregion }
/// <summary> /// Page_Load:Page Load Event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { systemCheck.SessionCheck(); if (Request.QueryString["TabID"] != null && Request.QueryString["ParentID"] != null) { BindDataGrid(); } lblParentMenuName.Text = Request.QueryString["ParentMenuName"].ToString(); }
/// <summary> /// Page load event handler /// </summary> /// <param name="sender">Object</param> /// <param name="e">EventArgs</param> protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (!IsPostBack) { BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (!IsPostBack) { BindCustomerChainNo(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (Request.QueryString["DolistID"] != null) { LoadDolist(); } }
protected void Page_Load(object sender, EventArgs e) { try { msgText.Visible = false; SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(VMIContractMaintenance)); strContractNo = Request.QueryString["Contractno"].Trim(); whereCondition = "ContractNo='" + strContractNo + "'"; strChain = Request.QueryString["ChainName"].Replace("||", "&"); //Add Column to the DataTable dtReport.Columns.Add("Branch", typeof(string)); dtReport.Columns.Add("Pct_Brn_EAU", typeof(string)); dtReport.Columns.Add("AnnualQty", typeof(string)); dtReport.Columns.Add("Qty30Day", typeof(string)); if (!IsPostBack) { CreateBranchCombobox(); if (Request.QueryString["mode"] == "edit") { SetValuesToControls(); } else if (Request.QueryString["mode"] == "add") { hidChainValue.Value = strChain; } if (Request.QueryString["ItemAddMode"] != null && Request.QueryString["ItemAddMode"].ToString() == "true") { RestoreSessionValues(); } if (Request.QueryString["updateFlag"] != null) { msgText.ForeColor = Color.Blue; msgText.Text = (Request.QueryString["updateFlag"].Trim() == "add") ? "Data has been successfully added" : "Data has been successfully updated"; msgText.Visible = true; } } } catch (Exception ex) { msgText.ForeColor = Color.Red; msgText.Text = ex.Message; msgText.Visible = true; } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); Ajax.Utility.RegisterTypeForAjax(typeof(VMIContractMaintenancePrompt)); if (!IsPostBack) { BindChainName(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); Ajax.Utility.RegisterTypeForAjax(typeof(CustomerSalesAnalysisUserPrompt)); if (!IsPostBack) { ddlYear.Items.Clear(); string strYear = string.Empty; for (int i = 0; ; i++) { strYear = i.ToString(); strYear = (strYear.Length == 1) ? "200" + i.ToString() : "20" + i.ToString(); if (Convert.ToInt32(strYear) > DateTime.Now.Year) { break; } ddlYear.Items.Insert(i, new ListItem(strYear, strYear)); } // // Fill The Branches in the Combo // FillBranches(); int month = (int)DateTime.Now.Month; int year = Convert.ToInt16(DateTime.Now.Year.ToString().Substring(2)); if (month != 1) { ddlMonth.Items[month - 2].Selected = true; ddlYear.Items[year].Selected = true; } else { ddlMonth.Items[ddlMonth.Items.Count - 1].Selected = true; ddlYear.Items[year - 1].Selected = true; } for (int i = 0; i <= ddlBranch.Items.Count - 1; i++) { if (ddlBranch.Items[i].Value.Trim() == Session["BranchID"].ToString()) { ddlBranch.Items[i].Selected = true; break; } } salesReportUtils.GetALLReps(ddlRep, ddlBranch.SelectedItem.Value); } }
/// <summary> /// Page Load Event Handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (!IsPostBack) { ddlChartType.SelectedValue = Session["ChartType"].ToString(); ddlPalette.SelectedValue = Session["ChartPalette"].ToString(); ChartDisplay(Session["ChartType"].ToString(), Session["ChartPalette"].ToString()); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["PrintMode"] == null) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); } // Call the function to fill the customer details FillCustomerDetails(); // Call the function to fill the customer contact notes FilllNotes(); }
/// <summary> /// Page_Load:Page load Event handler /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); UserTracking userTracking = new UserTracking(); userTracking.TrackPageEntry("50045"); Session["ChartType"] = "Pie"; Session["ChartPalette"] = "WarmEarth"; Session["CustomerType"] = "PFC Employee"; GetCustomerName(); }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(InvoiceAnalysisPreview)); _startDate = Request.QueryString["StartDate"].ToString(); _endDate = Request.QueryString["EndDate"].ToString(); _orderType = Request.QueryString["OrderType"].ToString(); _branchID = Request.QueryString["Branch"].ToString(); _chain = Request.QueryString["Chain"].ToString(); _customerNumber = Request.QueryString["CustNo"].ToString(); _weightFrom = Request.QueryString["WeightFrom"].ToString(); _weightTo = Request.QueryString["WeightTo"].ToString(); _shipToState = Request.QueryString["ShipToState"].ToString(); _shipment = Request.QueryString["ShipMethod"].ToString(); _salesPerson = Request.QueryString["SalesPerson"].ToString(); _salesRepNo = Request.QueryString["SalesRepNo"].ToString(); _priceCd = Request.QueryString["PriceCd"].ToString(); _orderSource = Request.QueryString["OrderSource"].ToString(); _orderSourceDesc = Request.QueryString["OrderSourceDesc"].ToString(); _subTotal = Request.QueryString["SubTotal"].ToString(); _subTotalDesc = Request.QueryString["SubTotalDesc"].ToString(); _subTotalFlag = Request.QueryString["SubTotalFlag"].ToString(); if (!IsPostBack) { lblBeginDate.Text = "Beginning Date: " + Request.QueryString["StartDate"].ToString(); lblEndDate.Text = "Ending Date: " + Request.QueryString["EndDate"].ToString(); lblOrderType.Text = "Order Type: " + Request.QueryString["OrderTypeDesc"].ToString(); lblBranch.Text = "Branch: " + Request.QueryString["BranchDesc"].ToString(); lblShipment.Text = "Ship Meth: " + (_shipment == "" ? "ALL" : Request.QueryString["ShipMethodName"].ToString()); lblChain.Text = "Chain: " + (_chain == "" ? "ALL" : _chain); lblCustomerNumber.Text = "Customer # " + (_customerNumber == "" ? "ALL" : _customerNumber); if (_weightFrom == "" && _weightTo == "") lblWeight.Text = "Weight Range: ALL"; else lblWeight.Text = "Weight Range: " + (_weightFrom == "" ? "-" : _weightFrom) + " To " + (_weightTo == "" ? "-" : _weightTo); lblState.Text = "Ship To State: " + (_shipToState == "" ? "ALL" : _shipToState); lblSalesPerson.Text = "Sales Person: " + (_salesPerson == "" ? "ALL" : _salesPerson); lblPriceCd.Text = "Price Code: " + (_priceCd == "" ? "ALL" : invoiceAnalysis.GetListDesc("CustPriceCd", _priceCd)); lblOrderSource.Text = "Order Source: " + (_orderSourceDesc == "" ? invoiceAnalysis.GetListDesc("SOEOrderSource", _orderSource) : _orderSourceDesc); lblSubTot.Text = "Sub-Totals: " + _subTotalDesc; if (_subTotalFlag.ToUpper().ToString() == "TRUE") lblSubTot.Text += " (Sub-Totals ONLY)"; BindDataGrid(); } }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (!Page.IsPostBack) { if (Request.QueryString["BranchID"] != null) { LoadCSRUser(); } } }