修改项目格式
This commit is contained in:
@@ -19,7 +19,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public string AddVocher(MaterielStoreOut storeOut)
|
||||
{
|
||||
@@ -34,20 +34,13 @@ namespace NX.ERP.U8.Store
|
||||
voucherParameter.DomHead.loadXML(HeadTemplate);
|
||||
voucherParameter.DomBody.loadXML(BodyTemplate);
|
||||
IXMLDOMElement headXml = domHead.createElement("z:row");
|
||||
//headXml.setAttribute("id", storeOut.Id);
|
||||
|
||||
headXml.setAttribute("ccode", storeOut.Code); //DomHead[0]["ccode"] = ""; //入库单号,string类型
|
||||
|
||||
headXml.setAttribute("ddate", storeOut.Date.ToShortDateString()); //DomHead[0]["ddate"] = ""; //入库日期,DateTime类型
|
||||
|
||||
|
||||
|
||||
headXml.setAttribute("bpufirst", "0");
|
||||
headXml.setAttribute("bisstqc", "0");
|
||||
headXml.setAttribute("bomfirst", "0");
|
||||
headXml.setAttribute("biafirst", "0");
|
||||
headXml.setAttribute("brdflag", 0);
|
||||
|
||||
headXml.setAttribute("cmaker", "");
|
||||
headXml.setAttribute("cvouchtype", this.VoucherID);
|
||||
headXml.setAttribute("vt_id", "65");
|
||||
@@ -78,7 +71,7 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml.setAttribute("autoid", n);
|
||||
bodyXml.setAttribute("cinvcode", detail.Cinvcode);
|
||||
bodyXml.setAttribute("iquantity", detail.Quantity);
|
||||
bodyXml.setAttribute("irowno", n+1);
|
||||
bodyXml.setAttribute("irowno", n + 1);
|
||||
bodyXml.setAttribute("cbatch", "");
|
||||
bodyXml.setAttribute("cvmivencode", "");
|
||||
bodyXml.setAttribute("cposition", detail.BinCode);
|
||||
@@ -89,8 +82,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
bodyXml.setAttribute("impoids", detail.sorceDetailId);
|
||||
bodyXml.setAttribute("cmocode", Order.Code);
|
||||
|
||||
bodyXml.setAttribute("invcode", "904008");
|
||||
bodyXml.setAttribute("invcode", "904008");//产品编码
|
||||
bodyXml.setAttribute("cwhcode", storeOut.Whcode);
|
||||
bodyXml.setAttribute("imoseq", 1);
|
||||
bodyXml.setAttribute("ipesotype", "7");
|
||||
@@ -101,15 +93,6 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml.setAttribute("csocode", "");
|
||||
bodyXml.setAttribute("isodid", "");
|
||||
bodyXml.setAttribute("isoseq", "");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||
}
|
||||
}
|
||||
@@ -118,7 +101,7 @@ namespace NX.ERP.U8.Store
|
||||
|
||||
try
|
||||
{
|
||||
return U8LoginContext.Instance.AddRdVoucher(AddUrl, voucherParameter);
|
||||
return AddRdVoucher(voucherParameter);
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user