Ejemplo n.º 1
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     var saveLogic = new SaveOperateLogic();
     var responseModel = Invoke(saveLogic, SaveRequestModel);
     if (HasError) return;
     Redirect(Pages.CLIENT_INDEX);
 }
Ejemplo n.º 2
0
 protected void btnSave_Command(object sender, CommandEventArgs e)
 {
     var logic = new SaveOperateLogic();
     var response = Invoke(logic, SaveRequestModel);
     if (HasError) return;
     Response.Redirect(Pages.ADMIN_OFFER_LIST);
 }
Ejemplo n.º 3
0
 protected void btnSave_Command(object sender, CommandEventArgs e)
 {
     var logic = new SaveOperateLogic();
     var response = Invoke(logic, SaveRequestModel);
     if (HasError) return;
     Session["GroupCd"] = response.GroupCd;
     Response.Redirect(Pages.ADMIN_GROUP_ROLE_LIST);
 }
Ejemplo n.º 4
0
        protected void btnSave_Command(object sender, CommandEventArgs e)
        {
            var logic    = new SaveOperateLogic();
            var response = Invoke(logic, SaveRequestModel);

            if (HasError)
            {
                return;
            }
            Response.Redirect(Pages.ADMIN_CATEGORY_LIST);
        }
Ejemplo n.º 5
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var saveLogic     = new SaveOperateLogic();
            var responseModel = Invoke(saveLogic, SaveRequestModel);

            if (HasError)
            {
                return;
            }
            Redirect(Pages.CLIENT_INDEX);
        }
Ejemplo n.º 6
0
        protected void btnSave_Command(object sender, CommandEventArgs e)
        {
            var logic    = new SaveOperateLogic();
            var response = Invoke(logic, SaveRequestModel);

            if (HasError)
            {
                return;
            }
            Session["GroupCd"] = response.GroupCd;
            Response.Redirect(Pages.ADMIN_GROUP_ROLE_LIST);
        }
Ejemplo n.º 7
0
        protected void btnSave_Command(object sender, CommandEventArgs e)
        {
            var logic    = new SaveOperateLogic();
            var response = Invoke(logic, SaveRequestModel);

            if (HasError)
            {
                return;
            }
            Session["Status"] = null;
            Response.Redirect(Pages.ADMIN_ITEM_LIST);
        }
Ejemplo n.º 8
0
 protected void btnRegister_Click(object sender, EventArgs e)
 {
     ccJoin.ValidateCaptcha(TextBox1.Text);
     if (!ccJoin.UserValidated)
     {
         Label1.Text = "Mã bảo vệ chưa chính xác";
         return;
     }
     var logic = new SaveOperateLogic();
     var response = Invoke(logic, SaveRequestModel);
     if (HasError) return;
     Response.Redirect(Pages.CLIENT_ACTIVE);
 }
Ejemplo n.º 9
0
        protected void btnSave_Command(object sender, CommandEventArgs e)
        {
            var saveLogic     = new SaveOperateLogic();
            var responseModel = Invoke(saveLogic, SaveRequestModel);

            if (responseModel == null)
            {
                Redirect(Pages.ADMIN_USER_CHANGE_PASSWORD);
            }
            else
            {
                Redirect(Pages.ADMIN_INDEX);
            }
        }
Ejemplo n.º 10
0
        protected void btnRegister_Click(object sender, EventArgs e)
        {
            ccJoin.ValidateCaptcha(TextBox1.Text);
            if (!ccJoin.UserValidated)
            {
                Label1.Text = "Mã bảo vệ chưa chính xác";
                return;
            }
            var logic    = new SaveOperateLogic();
            var response = Invoke(logic, SaveRequestModel);

            if (HasError)
            {
                return;
            }
            Response.Redirect(Pages.CLIENT_ACTIVE);
        }
Ejemplo n.º 11
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ccJoin.ValidateCaptcha(TextBox1.Text);
            if (!ccJoin.UserValidated)
            {
                Label4.Text = "Mã bảo vệ chưa chính xác";
                return;
            }
            if (Session["payMethod"].ToString().Equals("0"))
            {
                var logic    = new SaveOperateLogic();
                var response = Invoke(logic, SaveRequestModel);
                if (HasError)
                {
                    return;
                }
            }
            var checkout = new CheckoutOperateLogic();
            var result   = Invoke(checkout, CheckoutRequestModel);

            if (HasError)
            {
                return;
            }
            Session["Cart"]         = null;
            Session["payMethod"]    = null;
            Session["GiftCd"]       = null;
            Session["GiftPrice"]    = null;
            Session["AcceptSlipNo"] = null;
            Session["isFirstPay"]   = true;
            Session["AcceptSlipNo"] = result.AcceptSlipNo;
            if (CheckoutRequestModel.Accept.PaymentMethods == "02")
            {
                makePay(CheckoutRequestModel.Accept);
            }
            Response.Redirect(Pages.CLIENT_OVERVIEW);
        }
Ejemplo n.º 12
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     ccJoin.ValidateCaptcha(TextBox1.Text);
     if (!ccJoin.UserValidated)
     {
         Label4.Text = "Mã bảo vệ chưa chính xác";
         return;
     }
     if (Session["payMethod"].ToString().Equals("0"))
     {
         var logic = new SaveOperateLogic();
         var response = Invoke(logic, SaveRequestModel);
         if (HasError) return;
     }
     var checkout = new CheckoutOperateLogic();
     var result = Invoke(checkout, CheckoutRequestModel);
     if (HasError) return;
     Session["Cart"] = null;
     Session["payMethod"] = null;
     Session["GiftCd"] = null;
     Session["GiftPrice"] = null;
     Session["AcceptSlipNo"] = null;
     Session["isFirstPay"] = true;
     Session["AcceptSlipNo"] = result.AcceptSlipNo;
     if (CheckoutRequestModel.Accept.PaymentMethods == "02")
     {
         makePay(CheckoutRequestModel.Accept);
     }
     Response.Redirect(Pages.CLIENT_OVERVIEW);
 }