Пример #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);
 }
Пример #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);
 }
Пример #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);
 }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
 }
Пример #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);
            }
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
 }