增加生产订单信息输出

This commit is contained in:
admin
2021-01-22 11:25:03 +08:00
parent f941eb9743
commit 521864dc19
15 changed files with 249 additions and 39 deletions

View File

@@ -33,7 +33,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("bomfirst", "0");
headXml.setAttribute("biafirst", "0");
headXml.setAttribute("brdflag", 1);
headXml.setAttribute("ccode", "11");
headXml.setAttribute("ccode", storeIn.Code);
headXml.setAttribute("ddate", storeIn.Date);
headXml.setAttribute("cmaker", storeIn.Maker);
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0411"));
@@ -63,9 +63,9 @@ namespace NX.ERP.U8.Store
bodyXml.setAttribute("editprop", "A");
bodyXml.setAttribute("cbatch", detail.Batch);
bodyXml.setAttribute("cposition", detail.Position);
var momOrderDetail = momOrder.Details.First(m => { return m.Id == detail.SourceDetailId; });
headXml.setAttribute("cmpocode", momOrder.Code);
headXml.setAttribute("iproorderid", momOrder.Id);
var momOrderDetail = momOrder.ProductDtlLst.First(m => { return m.ProductOrderDtlId == detail.SourceDetailId; });
headXml.setAttribute("cmpocode", momOrder.ProductOrderNo);
headXml.setAttribute("iproorderid", momOrder.ProductOrderId);
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
}
}