其他入库单
This commit is contained in:
@@ -14,7 +14,7 @@ namespace NX.ERP.U8.Store
|
||||
}
|
||||
|
||||
|
||||
public void AddVocher(Model.Store.OtherStoreIn storeIn)
|
||||
public string AddVocher(Model.Store.OtherStoreIn storeIn)
|
||||
{
|
||||
|
||||
VoucherParameter voucherParameter = new VoucherParameter
|
||||
@@ -37,7 +37,7 @@ namespace NX.ERP.U8.Store
|
||||
headXml.setAttribute("brdflag", 1);
|
||||
headXml.setAttribute("ccode", storeIn.Code);
|
||||
headXml.setAttribute("ddate", storeIn.Date);
|
||||
headXml.setAttribute("cmaker","/");
|
||||
headXml.setAttribute("cmaker", "/");
|
||||
headXml.setAttribute("cvouchtype", this.VoucherID);
|
||||
headXml.setAttribute("vt_id", "");
|
||||
headXml.setAttribute("editprop", "A");
|
||||
@@ -45,7 +45,7 @@ namespace NX.ERP.U8.Store
|
||||
headXml.setAttribute("cpersoncode", "");
|
||||
headXml.setAttribute("crdcode", "");
|
||||
|
||||
headXml.setAttribute("csource","库存");
|
||||
headXml.setAttribute("csource", "库存");
|
||||
headXml.setAttribute("cwhcode", storeIn.WhCode);
|
||||
headXml.setAttribute("cbustype", "其他入库");
|
||||
headXml.setAttribute("cmemo", "");
|
||||
@@ -61,12 +61,12 @@ namespace NX.ERP.U8.Store
|
||||
bodyXml = domBody.createElement("z:row");
|
||||
bodyXml.setAttribute("cinvcode", detail.InvCode);
|
||||
bodyXml.setAttribute("iquantity", detail.Quantity);
|
||||
bodyXml.setAttribute("irowno",n+1);
|
||||
bodyXml.setAttribute("irowno", n + 1);
|
||||
|
||||
bodyXml.setAttribute("cbatch", "");
|
||||
|
||||
bodyXml.setAttribute("cposition", detail.Position);
|
||||
bodyXml.setAttribute("cvmivencode","");
|
||||
bodyXml.setAttribute("cvmivencode", "");
|
||||
bodyXml.setAttribute("dmadedate", "");
|
||||
bodyXml.setAttribute("dvdate", "");
|
||||
bodyXml.setAttribute("iexpiratdatecalcu", "");
|
||||
@@ -86,7 +86,7 @@ namespace NX.ERP.U8.Store
|
||||
Console.WriteLine(str);
|
||||
try
|
||||
{
|
||||
U8LoginContext.Instance.AddRdVoucher("U8API/PuStoreIn/Add", voucherParameter);
|
||||
return U8LoginContext.Instance.AddRdVoucher("U8API/PuStoreIn/Add", voucherParameter);
|
||||
}
|
||||
catch (Exception err)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user