Example #1
0
        private void dlstPurchaseOrders_ItemCommand(object sender, System.Web.UI.WebControls.DataListCommandEventArgs e)
        {
            PurchaseOrderInfo purchaseOrder = SubsiteSalesHelper.GetPurchaseOrder(e.CommandArgument.ToString());

            if (purchaseOrder != null && e.CommandName == "FINISH_TRADE" && purchaseOrder.CheckAction(PurchaseOrderActions.MASTER_FINISH_TRADE))
            {
                if (SubsiteSalesHelper.ConfirmPurchaseOrderFinish(purchaseOrder))
                {
                    this.BindPurchaseOrders();
                    this.ShowMsg("成功的完成了该采购单", true);
                    return;
                }
                this.ShowMsg("完成采购单失败", false);
            }
        }
Example #2
0
        private void dlstPurchaseOrders_ItemCommand(object sender, DataListCommandEventArgs e)
        {
            PurchaseOrderInfo purchaseOrder = SubsiteSalesHelper.GetPurchaseOrder(e.CommandArgument.ToString());

            if (((purchaseOrder != null) && (e.CommandName == "FINISH_TRADE")) && purchaseOrder.CheckAction(PurchaseOrderActions.MASTER_FINISH_TRADE))
            {
                if (SubsiteSalesHelper.ConfirmPurchaseOrderFinish(purchaseOrder))
                {
                    BindPurchaseOrders();
                    ShowMsg("成功的完成了该采购单", true);
                }
                else
                {
                    ShowMsg("完成采购单失败", false);
                }
            }
        }
Example #3
0
 private void FinishOrder()
 {
     if (this.PurchaseOrder.PurchaseStatus == OrderStatus.Finished)
     {
         this.ResponseStatus(true, "success");
         return;
     }
     if (this.PurchaseOrder.CheckAction(PurchaseOrderActions.MASTER_FINISH_TRADE) && SubsiteSalesHelper.ConfirmPurchaseOrderFinish(this.PurchaseOrder))
     {
         this.ResponseStatus(true, "success");
         return;
     }
     this.ResponseStatus(false, "fail");
 }