材料出库更新

This commit is contained in:
gongxh
2021-03-15 11:13:19 +08:00
parent bd8fb8ca93
commit 1821b74993
5 changed files with 240 additions and 147 deletions

View File

@@ -204,9 +204,9 @@ namespace NX.ERP.U8.Store
protected string UpdateRdVoucher(VoucherParameter para)
protected bool UpdateRdVoucher(VoucherParameter para)
{
string VoucherId;
try
{
@@ -214,14 +214,6 @@ namespace NX.ERP.U8.Store
u8EnvContext.U8Login = U8LoginContext.Instance.ClsLogin;
U8ApiAddress apiAddress = new U8ApiAddress(this.UpdateUrl);
U8ApiBroker u8ApiBroker = new U8ApiBroker(apiAddress, u8EnvContext);
u8ApiBroker.AssignNormalValue("sVouchType", para.VoucherType);
u8ApiBroker.AssignNormalValue("DomHead", para.DomHead);
u8ApiBroker.AssignNormalValue("domBody", para.DomBody);
@@ -273,20 +265,13 @@ namespace NX.ERP.U8.Store
}
para.ReturnValue = Convert.ToBoolean(u8ApiBroker.GetReturnValue());
para.DOMMsg = u8ApiBroker.GetResult("domMsg") as DOMDocument;
para.ErrMsg = u8ApiBroker.GetResult("errMsg") as string;
if (para.ReturnValue)
if (!para.ReturnValue)
{
}
else
{
throw new Exception(para.ErrMsg);
}
u8ApiBroker.Release();
return "";
return true;
}
catch (Exception ex3)
{