Example #1
0
 private void btnCloseOrder_Click(object sender, System.EventArgs e)
 {
     this.order.CloseReason = this.ddlCloseReason.SelectedValue;
     if (SubsiteSalesHelper.CloseTransaction(this.order))
     {
         int num = this.order.UserId;
         if (num == 1100)
         {
             num = 0;
         }
         Hidistro.Membership.Core.IUser user = Hidistro.Membership.Context.Users.GetUser(num);
         Messenger.OrderClosed(user, this.order.OrderId, this.order.CloseReason);
         this.order.OnClosed();
         this.ShowMsg("关闭订单成功", true);
         return;
     }
     this.ShowMsg("关闭订单失败", false);
 }
 private void btnCloseOrder_Click(object sender, EventArgs e)
 {
     this.order.CloseReason = this.ddlCloseReason.SelectedValue;
     if (SubsiteSalesHelper.CloseTransaction(this.order))
     {
         int userId = this.order.UserId;
         if (userId == 0x44c)
         {
             userId = 0;
         }
         Messenger.OrderClosed(Users.GetUser(userId), this.order.OrderId, this.order.CloseReason);
         this.order.OnClosed();
         this.ShowMsg("关闭订单成功", true);
     }
     else
     {
         this.ShowMsg("关闭订单失败", false);
     }
 }
Example #3
0
        private void btnCloseOrder_Click(object sender, EventArgs e)
        {
            OrderInfo orderInfo = SubsiteSalesHelper.GetOrderInfo(hidOrderId.Value);

            orderInfo.CloseReason = ddlCloseReason.SelectedValue;
            if (SubsiteSalesHelper.CloseTransaction(orderInfo))
            {
                int userId = orderInfo.UserId;
                if (userId == 0x44c)
                {
                    userId = 0;
                }
                Messenger.OrderClosed(Users.GetUser(userId), orderInfo.OrderId, orderInfo.CloseReason);
                orderInfo.OnClosed();
                BindOrders();
                ShowMsg("关闭订单成功", true);
            }
            else
            {
                ShowMsg("关闭订单失败", false);
            }
        }