Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         AppClass.CheckUserRightOnPage(this.Page);
         if (Session["UserBranch"] == null || Session["UserType"] == null || Session["UserName"] == null)
         {
             Response.Redirect("~/Login.aspx");
         }
         txtCustomerSearch.Focus();
         if (Request.QueryString["CCode"] != null)
         {
             hdnIsCustCode.Value = "1";
             hdncustcode.Value   = Request.QueryString["CCode"].ToString();
         }
         if (Request.QueryString["CName"] != null)
         {
             hdnIsNewCustomer.Value = "1";
             hdnNewCustName.Value   = Request.QueryString["CName"].ToString();
         }
         if (Request.QueryString["AddNew"] != null)
         {
             txtCustName.Focus();
             hdnIsNew.Value = "1";
         }
         BindDefault();
         binddrpsms();
         binddrpdefaultsms();
         ShowDefaultDiscountButton();
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         AppClass.CheckUserRightOnPage(this.Page);
         txtPwd.Focus();
     }
 }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                AppClass.CheckUserRightOnPage(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.CheckUserRightOnPage(this.Page);
                BindGrid();
                showData();
                storeData();
            }
            var btn = Request.Params["__EVENTTARGET"] as string;

            if (btn != null && btn == "ctl00$ContentPlaceHolder1$rdrBoundToMachine")
            {
                BoundToMachine();
            }
        }