protected void cmdAdd_ServerClick(object sender, EventArgs e) { if (_WarehouseFacade == null) { _WarehouseFacade = new BenQGuru.eMES.Material.WarehouseFacade(base.DataProvider); } string message = string.Empty; ShareLib.ShareKit kit = new ShareLib.ShareKit(); bool result = kit.SubmitPortionCheck(txtStockCheckCodeQuery.Text, txtCARTONNOEdit.Text, txtCheckQtyEdit.Text, txtLocationCodeEdit.Text, txtDiffDescEdit.Text, txtDQMCODEEdit.Text, base.DataProvider, GetUserCode(), out message); if (!result) { WebInfoPublish.Publish(this, message, this.languageComponent1); return; } this.txtStockCheckCodeEdit.Text = string.Empty; txtDQMCODEEdit.Text = string.Empty; txtStorageCodeEdit.Text = string.Empty; txtsLocationCodeEdit.Text = string.Empty; txtLocationCodeEdit.Text = string.Empty; txtCARTONNOEdit.Text = string.Empty; txtCheckQtyEdit.Text = string.Empty; txtDiffDescEdit.Text = string.Empty; WebInfoPublish.Publish(this, "提交成功!", this.languageComponent1); this.cmdQuery_Click(null, null); }
public bool SubmitPortionCheck(string checkNo, string cartonno, string checkQtyStr, string locationCode, string diffDesc, string dqmCode, string usr, out string message) { ShareLib.ShareKit kit = new ShareLib.ShareKit(); message = string.Empty; bool result = kit.SubmitPortionCheck(checkNo, cartonno, checkQtyStr, locationCode, diffDesc, dqmCode, DataProvider, usr, out message); return(result); }