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(); 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(); }
private void pageEnvironment_ShowFromNext(object sender, EventArgs e) { m_errors = 0; m_warnings = 0; lstFailureDetails.Items.Clear(); foreach (SystemCheck check in lstEnvironment.Items) { switch (check.RunTest()) { case SystemCheck.TestStatus.Error: { m_errors++; SystemCheck newItem = (SystemCheck)check.Clone(); lstFailureDetails.Items.Add(newItem); break; } case SystemCheck.TestStatus.Warning: m_warnings++; break; } } if (m_errors > 0) { header6.Description = m_errors.ToString() + " errors were encountered. Please click Next to see detailed instructions on how to correct them."; } else { header6.Description = "Your system is properly configured to use AndroMDA."; } }
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(); }
public override object Clone() { SystemCheck item = (SystemCheck)base.Clone(); item.SubItems.Add(new ListViewSubItem(this, this.SubItems[1].Text)); return(item); }
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(); // 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(); //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) { // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(CustomerContactReport)); SystemCheck systemCheck = new SystemCheck(); //Comment should be removed //systemCheck.SessionCheck(); strCustType = (Request.QueryString["CustomerType"] != null) ? Request.QueryString["CustomerType"].ToString().Trim() : ""; strBranch = (Request.QueryString["Branch"] != null) ? Request.QueryString["Branch"].ToString().Trim() : ""; strContactType = (Request.QueryString["ContactType"] != null) ? Request.QueryString["ContactType"].ToString().Trim() : ""; strBG = (Request.QueryString["BuyingGroup"] != null) ? Request.QueryString["BuyingGroup"].ToString().Trim() : ""; strFilterDt = (Request.QueryString["FilterDt"] != null) ? Request.QueryString["FilterDt"].ToString().Trim() : ""; if (!IsPostBack) { lblBranch.Text = Request.QueryString["BrnName"].ToString(); lblCustomer.Text = Request.QueryString["CustName"].ToString(); lblContact.Text = Request.QueryString["ContName"].ToString(); lblbuyingGrp.Text = Request.QueryString["BGName"].ToString(); lblFilterDt.Text = Request.QueryString["FilterDt"].ToString(); BindDataGrid(); } string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); hidFileName.Value = "ccrReport" + Session["SessionID"].ToString() + name + ".xls"; }
private void listView1_SelectedIndexChanged(object sender, EventArgs e) { if (lstFailureDetails.SelectedItems.Count > 0) { SystemCheck check = (SystemCheck)lstFailureDetails.SelectedItems[0]; lblIssueDescription.Text = check.FailureDetails; if (check.Status == SystemCheck.TestStatus.Ok) { lblIssueDescription.Text = "This issue has been successfully resolved."; lblFixDescription.Text = string.Empty; btnRetest.Visible = btnFix.Visible = false; btnRetest.Tag = btnFix.Tag = null; } else { btnFix.Visible = check.HasFix; btnRetest.Visible = true; btnRetest.Tag = btnFix.Tag = check; lblFixDescription.Text = check.FixDetails; } } else { lblIssueDescription.Text = string.Empty; lblFixDescription.Text = string.Empty; btnRetest.Visible = btnFix.Visible = false; btnRetest.Tag = btnFix.Tag = null; } }
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(); 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(); } } }
private void AddCheck(SystemCheck check) { int row = tableLayoutPanel.RowCount; Label imageLabel = new Label(); imageLabel.Dock = System.Windows.Forms.DockStyle.Fill; imageLabel.Image = global::SharePointInstaller.Properties.Resources.CheckWait; imageLabel.Location = new System.Drawing.Point(3, 0); imageLabel.Name = "imageLabel" + row; imageLabel.Size = new System.Drawing.Size(24, 20); Label textLabel = new Label(); textLabel.AutoSize = true; textLabel.Dock = System.Windows.Forms.DockStyle.Fill; textLabel.Location = new System.Drawing.Point(33, 0); textLabel.Name = "textLabel" + row; textLabel.Size = new System.Drawing.Size(390, 20); textLabel.Text = check.QuestionText; textLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.tableLayoutPanel.Controls.Add(imageLabel, 0, row); this.tableLayoutPanel.Controls.Add(textLabel, 1, row); this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel.RowCount++; checks.Add(check); }
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(); //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(); } }
protected void Page_Load(object sender, EventArgs e) { // Register The Class Name in Ajax Utility Ajax.Utility.RegisterTypeForAjax(typeof(eCommerceSalesAnalysisCustRpt)); SystemCheck systemCheck = new SystemCheck(); //Comment should be removed //systemCheck.SessionCheck(); string name = DateTime.Now.ToString().Replace("/", ""); name = name.Replace(" ", ""); name = name.Replace(":", ""); hidFileName.Value = "eCommerceSalesAnalysis" + Session["SessionID"].ToString() + name + ".xls"; #region URL Parameters periodMonth = (Request.QueryString["Month"] != null) ? Request.QueryString["Month"].ToString().Trim() : ""; periodYear = (Request.QueryString["Year"] != null) ? Request.QueryString["Year"].ToString().Trim() : ""; locationCode = (Request.QueryString["Branch"] != null) ? Request.QueryString["Branch"].ToString().Trim() : ""; customerNo = (Request.QueryString["CustNo"] != null) ? Request.QueryString["CustNo"].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() : ""; repNo = Request.QueryString["RepNo"].ToString().Trim(); repName = Request.QueryString["RepName"].ToString().Trim(); priceCdCtl = (Request.QueryString["PriceCdCtl"] != null) ? Request.QueryString["PriceCdCtl"].ToString().Trim() : "false"; itemNotOrd = (Request.QueryString["ItemNotOrd"] != null) ? Request.QueryString["ItemNotOrd"].ToString().Trim() : "false"; #endregion if (!IsPostBack) { 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(); 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(); 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> /// 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(); } }
/// <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 }
protected void Page_Load(object sender, EventArgs e) { SystemCheck systemCheck = new SystemCheck(); systemCheck.SessionCheck(); if (!IsPostBack) { BindCustomerChainNo(); } }
private void btnRetest_Click(object sender, EventArgs e) { if (btnRetest.Tag != null) { SystemCheck item = (SystemCheck)btnFix.Tag; Retest(); item.Selected = false; item.Selected = true; lstFailureDetails.Focus(); } }
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(); 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; } }