예제 #1
0
        protected void btnRefuseReturn_Click(object sender, System.EventArgs e)
        {
            OrderInfo orderInfo = SubsiteSalesHelper.GetOrderInfo(this.hidOrderId.Value);

            SubsiteSalesHelper.CheckReturn(orderInfo, 0m, this.return_txtAdminRemark.Value, int.Parse(this.hidRefundType.Value), false);
            this.BindReturns();
            this.ShowMsg("成功的拒绝了订单退货", true);
        }
예제 #2
0
        protected void btnAcceptReturn_Click(object sender, System.EventArgs e)
        {
            decimal num;

            if (!decimal.TryParse(this.return_txtRefundMoney.Text, out num))
            {
                this.ShowMsg("退款金额需为数字格式", false);
                return;
            }
            decimal d;

            decimal.TryParse(this.hidOrderTotal.Value, out d);
            if (num > d)
            {
                this.ShowMsg("退款金额不能大于订单金额", false);
                return;
            }
            OrderInfo orderInfo = SubsiteSalesHelper.GetOrderInfo(this.hidOrderId.Value);

            SubsiteSalesHelper.CheckReturn(orderInfo, num, this.return_txtAdminRemark.Value, int.Parse(this.hidRefundType.Value), true);
            this.BindReturns();
            this.ShowMsg("成功的确认了订单退货", true);
        }
        private void btnAcceptReturn_Click(object sender, EventArgs e)
        {
            decimal num;

            if (!decimal.TryParse(this.return_txtRefundMoney.Text, out num))
            {
                this.ShowMsg("退款金额需为数字格式", false);
            }
            else
            {
                decimal num2;
                decimal.TryParse(this.hidOrderTotal.Value, out num2);
                if (num > num2)
                {
                    this.ShowMsg("退款金额不能大于订单金额", false);
                }
                else
                {
                    SubsiteSalesHelper.CheckReturn(SubsiteSalesHelper.GetOrderInfo(this.hidOrderId.Value), num, this.return_txtAdminRemark.Value, int.Parse(this.hidRefundType.Value), true);
                    this.BindOrders();
                    this.ShowMsg("成功的确认了订单退货", true);
                }
            }
        }
 private void btnRefuseReturn_Click(object sender, EventArgs e)
 {
     SubsiteSalesHelper.CheckReturn(SubsiteSalesHelper.GetOrderInfo(this.hidOrderId.Value), 0M, this.return_txtAdminRemark.Value, int.Parse(this.hidRefundType.Value), false);
     this.BindOrders();
     this.ShowMsg("成功的拒绝了订单退货", true);
 }