Merge branch 'master' of https://code.gxhnet.com/gongxh/u8-import
This commit is contained in:
@@ -51,6 +51,14 @@ namespace NX.ERP.Model.Purchase
|
|||||||
[Newtonsoft.Json.JsonIgnore]
|
[Newtonsoft.Json.JsonIgnore]
|
||||||
public double cost { get; set; }
|
public double cost { get; set; }
|
||||||
// b.ioricost as oricost,b.ioritaxcost as oritaxcost ,b.iorimoney as orimoney,b.oritaxprice as oritaxprice,b.iorisum as orisum,
|
// b.ioricost as oricost,b.ioritaxcost as oritaxcost ,b.iorimoney as orimoney,b.oritaxprice as oritaxprice,b.iorisum as orisum,
|
||||||
|
/// <summary>
|
||||||
|
/// 辅助计量单位的数量
|
||||||
|
/// </summary>
|
||||||
|
public double isum { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ namespace NX.ERP.U8.Store
|
|||||||
headXml.setAttribute("iproorderid", Order.ProductOrderId);
|
headXml.setAttribute("iproorderid", Order.ProductOrderId);
|
||||||
headXml.setAttribute("cmpocode", Order.ProductOrderNo);
|
headXml.setAttribute("cmpocode", Order.ProductOrderNo);
|
||||||
|
|
||||||
|
string lastProductNo = null;
|
||||||
headXml.setAttribute("crdname", "材料出库");
|
headXml.setAttribute("crdname", "材料出库");
|
||||||
headXml.setAttribute("cdepcode", "24");
|
headXml.setAttribute("cdepcode", "24");
|
||||||
//headXml.setAttribute("cdepname", "研发LA组");
|
//headXml.setAttribute("cdepname", "研发LA组");
|
||||||
@@ -80,9 +81,17 @@ namespace NX.ERP.U8.Store
|
|||||||
{
|
{
|
||||||
throw new Exception($"订单明细存货编号与出库存货编号不符:{detail.InvCode}");
|
throw new Exception($"订单明细存货编号与出库存货编号不符:{detail.InvCode}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var moomDetail = Order.ProductDtlLst.FirstOrDefault(m => { return m.ProductOrderDtlId == alllocate.ProductOrderDtlId; });
|
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 = domBody.createElement("z:row");
|
||||||
bodyXml.setAttribute("autoid", n);
|
bodyXml.setAttribute("autoid", n);
|
||||||
bodyXml.setAttribute("cinvcode", detail.InvCode);
|
bodyXml.setAttribute("cinvcode", detail.InvCode);
|
||||||
@@ -98,7 +107,6 @@ namespace NX.ERP.U8.Store
|
|||||||
|
|
||||||
bodyXml.setAttribute("impoids", detail.SorceDetailId);
|
bodyXml.setAttribute("impoids", detail.SorceDetailId);
|
||||||
bodyXml.setAttribute("cmocode", Order.ProductOrderNo);
|
bodyXml.setAttribute("cmocode", Order.ProductOrderNo);
|
||||||
headXml.setAttribute("cpspcode", moomDetail.ProductCode);
|
|
||||||
bodyXml.setAttribute("invcode", moomDetail.ProductCode);//产品编码
|
bodyXml.setAttribute("invcode", moomDetail.ProductCode);//产品编码
|
||||||
bodyXml.setAttribute("cwhcode", storeOut.Whcode);
|
bodyXml.setAttribute("cwhcode", storeOut.Whcode);
|
||||||
bodyXml.setAttribute("imoseq", 1);
|
bodyXml.setAttribute("imoseq", 1);
|
||||||
@@ -111,7 +119,10 @@ namespace NX.ERP.U8.Store
|
|||||||
bodyXml.setAttribute("isodid", "");
|
bodyXml.setAttribute("isodid", "");
|
||||||
bodyXml.setAttribute("isoseq", "");
|
bodyXml.setAttribute("isoseq", "");
|
||||||
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
headXml.setAttribute("cpspcode", lastProductNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
||||||
|
|||||||
Reference in New Issue
Block a user