protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { txtCustomerName.Text = ""; txtCustomerName.Focus(); date = DAL.DALFactory.Instance.DAL_DateAndTime.getDateAndTimeAccordingToZoneTime(Globals.BranchID); hdnDateFromAndTo.Value = date[0].ToString() + " - " + date[0].ToString(); } SDTProcesses.SelectCommand = "SELECT ProcessCode, [ProcessName] FROM [ProcessMaster] WHERE BranchId='" + Globals.BranchID + "' ORDER BY [ProcessName]"; SDTProcesses.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { date = DAL.DALFactory.Instance.DAL_DateAndTime.getDateAndTimeAccordingToZoneTime(Globals.BranchID); txtReportFrom.Text = date[0].ToString(); txtReportUpto.Text = date[0].ToString(); drpMonthList.SelectedIndex = DateTime.Today.Month - 1; drpYearList.Items.Clear(); for (int i = 2009; i < 2050; i++) { drpYearList.Items.Add(i.ToString()); } drpYearList.SelectedIndex = DateTime.Today.Year - 2009; } SDTProcesses.SelectCommand = "SELECT ProcessCode, [ProcessName] FROM [ProcessMaster] WHERE BranchId='" + Globals.BranchID + "' ORDER BY [ProcessName]"; SDTProcesses.DataBind(); }