增加Id
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user