增加产品代码
This commit is contained in:
@@ -61,7 +61,8 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
headXml.setAttribute("iproorderid", Order.ProductOrderId);
|
||||
headXml.setAttribute("cmpocode", Order.ProductOrderNo);
|
||||
headXml.setAttribute("cpspcode", "");
|
||||
|
||||
string lastProductNo = null;
|
||||
headXml.setAttribute("crdname", "材料出库");
|
||||
headXml.setAttribute("cdepcode", "24");
|
||||
//headXml.setAttribute("cdepname", "研发LA组");
|
||||
@@ -80,9 +81,17 @@ namespace NX.ERP.U8.Store
|
||||
{
|
||||
throw new Exception($"订单明细存货编号与出库存货编号不符:{detail.InvCode}");
|
||||
}
|
||||
|
||||
|
||||
var moomDetail = Order.ProductDtlLst.FirstOrDefault(m => { return m.ProductOrderDtlId == alllocate.ProductOrderDtlId; });
|
||||
if (lastProductNo == null)
|
||||
{
|
||||
lastProductNo = moomDetail.ProductCode;
|
||||
}
|
||||
else if (lastProductNo != "" && lastProductNo != moomDetail.ProductCode)
|
||||
{
|
||||
lastProductNo = "";
|
||||
}
|
||||
#region 明细
|
||||
|
||||
bodyXml = domBody.createElement("z:row");
|
||||
bodyXml.setAttribute("autoid", n);
|
||||
bodyXml.setAttribute("cinvcode", detail.InvCode);
|
||||
@@ -110,7 +119,10 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml.setAttribute("isodid", "");
|
||||
bodyXml.setAttribute("isoseq", "");
|
||||
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||
#endregion
|
||||
}
|
||||
|
||||
headXml.setAttribute("cpspcode", lastProductNo);
|
||||
}
|
||||
|
||||
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
||||
|
||||
Reference in New Issue
Block a user