Example #1
0
        private void dlstOrderGifts_DeleteCommand(object sender, System.Web.UI.WebControls.DataListCommandEventArgs e)
        {
            if (!this.order.CheckAction(OrderActions.SUBSITE_SELLER_MODIFY_GIFTS))
            {
                this.ShowMsg("当前订单状态没有订单礼品操作", false);
                return;
            }
            int itemIndex = e.Item.ItemIndex;
            int giftId    = int.Parse(this.dlstOrderGifts.DataKeys[itemIndex].ToString());

            if (!SubsiteSalesHelper.DeleteOrderGift(this.order, giftId))
            {
                this.ShowMsg("删除订单礼品失败", false);
            }
            this.BindOrderGifts();
        }
Example #2
0
 private void dlstOrderGifts_DeleteCommand(object source, DataListCommandEventArgs e)
 {
     if (!order.CheckAction(OrderActions.SUBSITE_SELLER_MODIFY_GIFTS))
     {
         ShowMsg("当前订单状态没有订单礼品操作", false);
     }
     else
     {
         int itemIndex = e.Item.ItemIndex;
         int giftId    = int.Parse(dlstOrderGifts.DataKeys[itemIndex].ToString());
         if (!SubsiteSalesHelper.DeleteOrderGift(order, giftId))
         {
             ShowMsg("删除订单礼品失败", false);
         }
         BindOrderGifts();
     }
 }
Example #3
0
        private void grdOrderGift_RowDeleting(object sender, System.Web.UI.WebControls.GridViewDeleteEventArgs e)
        {
            if (!this.order.CheckAction(OrderActions.SELLER_MODIFY_TRADE))
            {
                this.ShowMsg("你当前订单的状态不能进行修改订单费用操作", false);
                return;
            }
            int giftId = (int)this.grdOrderGift.DataKeys[e.RowIndex].Value;

            if (SubsiteSalesHelper.DeleteOrderGift(this.order, giftId))
            {
                this.order = SubsiteSalesHelper.GetOrderInfo(this.orderId);
                this.BindProductList(this.order);
                this.BindTatolAmount(this.order);
                this.ShowMsg("成功删除了一件礼品", true);
                return;
            }
            this.ShowMsg("删除礼品失败", false);
        }
Example #4
0
 private void grdOrderGift_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     if (!order.CheckAction(OrderActions.SELLER_MODIFY_TRADE))
     {
         ShowMsg("你当前订单的状态不能进行修改订单费用操作", false);
     }
     else
     {
         int giftId = (int)grdOrderGift.DataKeys[e.RowIndex].Value;
         if (SubsiteSalesHelper.DeleteOrderGift(order, giftId))
         {
             order = SubsiteSalesHelper.GetOrderInfo(orderId);
             BindProductList(order);
             BindTatolAmount(order);
             ShowMsg("成功删除了一件礼品", true);
         }
         else
         {
             ShowMsg("删除礼品失败", false);
         }
     }
 }