1
This commit is contained in:
@@ -99,34 +99,9 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
VoucherParameter voucherParameter = this.LoadVoucher($"cCode='{storeIn.Code}'");
|
||||
|
||||
|
||||
DOMDocument domHead = voucherParameter.DomHead;
|
||||
|
||||
|
||||
DOMDocument domBody = voucherParameter.DomBody;
|
||||
|
||||
IXMLDOMElement headXml = domHead.createElement("z:row");
|
||||
|
||||
|
||||
headXml.setAttribute("bpufirst", "0");
|
||||
headXml.setAttribute("bisstqc", "0");
|
||||
headXml.setAttribute("bomfirst", "0");
|
||||
headXml.setAttribute("biafirst", "0");
|
||||
headXml.setAttribute("brdflag", 1);
|
||||
headXml.setAttribute("ccode", storeIn.Code);
|
||||
headXml.setAttribute("ddate", storeIn.Date);
|
||||
headXml.setAttribute("cmaker", storeIn.Maker);
|
||||
headXml.setAttribute("cvouchtype", this.VoucherID);
|
||||
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0302"));
|
||||
headXml.setAttribute("editprop", "A");
|
||||
headXml.setAttribute("cdepcode", "");
|
||||
headXml.setAttribute("cpersoncode", "");
|
||||
headXml.setAttribute("crdcode", "");
|
||||
|
||||
headXml.setAttribute("csource", "库存");
|
||||
headXml.setAttribute("cwhcode", storeIn.WhCode);
|
||||
headXml.setAttribute("cbustype", "其他出库");
|
||||
headXml.setAttribute("cmemo", "");
|
||||
|
||||
|
||||
IXMLDOMElement bodyXml;
|
||||
for (var n = 0; n < storeIn.details.Count(); n++)
|
||||
{
|
||||
@@ -159,7 +134,7 @@ namespace NX.ERP.U8.Store
|
||||
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||
|
||||
}
|
||||
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
||||
|
||||
var str = voucherParameter.DomBody.xml;
|
||||
Console.WriteLine(str);
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user