Example #1
0
 protected void btnUpERP_Click(object sender, EventArgs e)
 {
     try
     {
         ERP.ErpDataService erp = new ERP.ErpDataService();
         string             MSG = "";
         if (!erp.transBatchInStock(this.txtID.Text, out MSG))
         {
             JScript.Instance.ShowMessage(this.updatePanel, this.txtID.Text + " Erp出错:" + MSG);
             return;
         }
         DataTable dt = bll.FillDataTable("WMS.SelectBillMaster", new DataParameter[] { new DataParameter("{0}", string.Format("BillID='{0}'", strID)) });
         BindData(dt);
     }
     catch (Exception ex)
     {
         JScript.Instance.ShowMessage(this.updatePanel, ex.Message);
     }
 }
Example #2
0
 protected void btnUpERP_Click(object sender, EventArgs e)
 {
     try
     {
         ERP.ErpDataService erp = new ERP.ErpDataService();
         string MSG = "";
         if (!erp.transBatchOutStock(this.txtID.Text, out MSG))
         {
             JScript.Instance.ShowMessage(this.updatePanel, this.txtID.Text + " Erp出错:" + MSG);
             return;
         }
         DataTable dt = bll.FillDataTable("WMS.SelectBillMaster", new DataParameter[] { new DataParameter("{0}", string.Format("BillID='{0}'", strID)) });
         BindData(dt);
     }
     catch (Exception ex)
     {
         JScript.Instance.ShowMessage(this.updatePanel, ex.Message);
     }
 }