This commit is contained in:
gongxh
2021-03-15 13:34:02 +08:00
parent 01e1f930e9
commit f56c8806e7
14 changed files with 45 additions and 39 deletions

View File

@@ -61,7 +61,7 @@ namespace NX.ERP.U8.Store
}
headXml.setAttribute("iproorderid", Order.ProductOrderId);
headXml.setAttribute("cmpocode", Order.ProductOrderNo);
string lastProductNo = null;
headXml.setAttribute("crdname", "材料出库");
headXml.setAttribute("cdepcode", "24");
@@ -142,22 +142,20 @@ namespace NX.ERP.U8.Store
public bool UpdateVocher(Model.Request.MaterialStoreOut storeOut)
{
VoucherParameter voucherParameter = this.LoadVoucher($"cCode='{storeOut.Code}'");
VoucherParameter voucherParameter = this.LoadVoucher($"Id='{storeOut.Id}'");
DOMDocument domBody = voucherParameter.DomBody;
if (storeOut.Source == "生产订单")
{
var Order = new Mom.MomOrderDAL().GetModel(storeOut.SourceCode);
if (Order == null)
{
throw new Exception($"未知订单:{storeOut.SourceCode}");
}
string lastProductNo = null;
//headXml.setAttribute("cdepname", "研发LA组");
IXMLDOMElement bodyXml;
for (var n = 0; n < storeOut.Details.Count(); n++)
@@ -212,10 +210,10 @@ namespace NX.ERP.U8.Store
#endregion
}
}
try
{