protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); RefreshForm(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); RefreshForm(); ShowBranchDetails(Globals.BranchID); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); Page.DataBind(); if (drpUserTypes.Items.Count > 0) { drpUserTypes_SelectedIndexChanged(null, null); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); date = DAL.DALFactory.Instance.DAL_DateAndTime.getDateAndTimeAccordingToZoneTime(Globals.BranchID); txtBarcode.Text = ""; txtBarcode.Focus(); } var btn = Request.Params["__EVENTTARGET"] as string; if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrOrder") { GetOrderDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrInProcess") { GetInProcessDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrWorkshopIn") { GetWorkshopInDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrWorkshopOut") { GetWorkshopOutDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrMarkForDel") { GetMarkForDeliveryDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrReady") { GetReadyDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrDelivery") { GetDeliveredDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrDelivery") { GetDeliveredDetails(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrRecvFromWorkshop") { GetReceivedFromWorkshopDetails(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); BindGrid(); showData(); storeData(); } var btn = Request.Params["__EVENTTARGET"] as string; if (btn != null && btn == "ctl00$ContentPlaceHolder1$rdrBoundToMachine") { BoundToMachine(); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); ShowMoveAllButton(); BindGridView(); } var btn = Request.Params["__EVENTTARGET"] as string; if (btn != null && btn == "ctl00$ContentPlaceHolder1$txtBookingDate") { txtBarcode_TextChanged(txtBookingDate, EventArgs.Empty); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$txtDelDate") { txtBarcode_TextChanged(txtDelDate, EventArgs.Empty); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); date = DAL.DALFactory.Instance.DAL_DateAndTime.getDateAndTimeAccordingToZoneTime(Globals.BranchID); txtReportFrom.Text = Convert.ToDateTime(date[0].ToString()).ToString("dd MMM yyyy"); 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()); } for (int j = 1; j <= 24; j++) { drpPrintStartFrom.Items.Add(j.ToString()); } drpYearList.SelectedIndex = DateTime.Today.Year - 2009; BindGridView(txtReportFrom.Text, txtReportUpto.Text, Globals.BranchID); } }
protected void Page_Load(object sender, EventArgs e) { var btn = Request.Params["__EVENTTARGET"] as string; if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); BindGridView(); txtBarcode.Text = ""; txtBarcode.Focus(); for (int j = 1; j <= 24; j++) { drpPrintStartFrom.Items.Add(j.ToString()); } } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$btnTemp") { btnTemp_Click(null, EventArgs.Empty); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$btnRefresh") { Response.Redirect("frmPackingSticker.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AppClass.CheckUserRightOnPageForFactory(this.Page); ShowMoveAllButton(); BindGridView(); hdnDynamicStores.Value = ""; for (int j = 1; j <= 24; j++) { drpPrintStartFrom.Items.Add(j.ToString()); } } else { if (hdnDynamicStores.Value != string.Empty) { ltDynamic.Text = hdnDynamicStores.Value; } } var btn = Request.Params["__EVENTTARGET"] as string; if (btn != null && btn == "ctl00$ContentPlaceHolder1$btnSave") { btnSave_Click(btnSave, EventArgs.Empty); hdnAddedHeader.Value = "false"; hdnRemovedEmptyMessage.Value = "false"; } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$btnRefresh") { Response.Redirect("WorkshopOut.aspx"); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$btnPrint") { PrintChallan(); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$btnSticker") { //btnSticker_Click(btnSticker, EventArgs.Empty); hdnAddedHeader.Value = "false"; hdnRemovedEmptyMessage.Value = "false"; } else if (Request.Params["__EVENTTARGET"] as string == "ctl00$ContentPlaceHolder1$btnSaveAndPrintNew") { btnSaveAndPrintNew_Click(null, EventArgs.Empty); hdnAddedHeader.Value = "false"; hdnRemovedEmptyMessage.Value = "false"; } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$txtBookingDate") { txtBarcode_TextChanged(txtBookingDate, EventArgs.Empty); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$txtDelDate") { txtBarcode_TextChanged(txtDelDate, EventArgs.Empty); } else if (btn != null && btn == "ctl00$ContentPlaceHolder1$achrClearFilter") { showGrid(); } }