RemoveLot() public static method

public static RemoveLot ( Resolver resolver ) : void
resolver System.Resolver
return void
コード例 #1
0
ファイル: UCBase.cs プロジェクト: Novthirteen/yfkey-scms
 protected virtual void OrderConfirm()
 {
     try
     {
         if (!Utility.IsHasTransformer(this.resolver))
         {
             this.DataBind();
             this.lblMessage.Text = "明细不能为空";
             this.tbBarCode.Focus();
             return;
         }
         Utility.RemoveLot(resolver);
         this.resolver.Input  = BusinessConstants.BARCODE_SPECIAL_MARK + BusinessConstants.BARCODE_HEAD_OK;
         this.resolver        = TheClientMgr.ScanBarcode(this.resolver);
         this.lblMessage.Text = this.resolver.Result;
         InitialAll();
     }
     catch (FaultException ex)
     {
         this.DataBind();
         this.lblMessage.Text = Utility.FormatExMessage(ex.Message);
         MessageBox.Show(this, Utility.FormatExMessage(ex.Message));
         this.tbBarCode.Focus();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "程序内部错误,请与管理员联系", MessageBoxButtons.OK, MessageBoxIcon.Error);
         InitialAll();
     }
 }
コード例 #2
0
 private void OrderOffline()
 {
     if (!Utility.IsHasTransformer(this.resolver))
     {
         this.lblMessage.Text = "明细不能为空";
         this.tbBarCode.Focus();
         return;
     }
     Utility.RemoveLot(resolver);
     this.resolver.PrintUrl = string.Empty;
     this.resolver.Input    = BusinessConstants.BARCODE_SPECIAL_MARK + BusinessConstants.BARCODE_HEAD_OK;
     this.resolver          = TheClientMgr.ScanBarcode(this.resolver);
     if (this.resolver.AutoPrintHu && this.resolver.PrintUrl != null && this.resolver.PrintUrl != string.Empty)
     {
         Utility.PrintOrder(this.resolver.PrintUrl, this, null);
     }
     this.lblMessage.Text = this.resolver.Result;
     InitialAll();
 }