聚合入库接口

This commit is contained in:
admin
2021-01-21 13:42:23 +08:00
parent 0e95475880
commit 9f9e429205
34 changed files with 722 additions and 15 deletions

View File

@@ -11,7 +11,7 @@ namespace NX.ERP.U8.Mom
{
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
{
string strSQL = @"select a.MoId as id,a.moCode as Code,a.*,b.MoDId as id ,b.*,c.AllocateId as id ,c.* from mom_order as a
string strSQL = @"select a.MoId as id,a.moCode as Code,a.CreateDate as date,a.*,b.MoDId as id ,b.*,c.AllocateId as id ,c.* from mom_order as a
left join mom_orderdetail as b on a.MoId=b.MoId
left join mom_moallocate as c on b.MoDId=c.MoDId";
if (!string.IsNullOrEmpty(strWhere))

View File

@@ -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",storeIn.Maker);
headXml.setAttribute("cvouchtype", this.VoucherID);
headXml.setAttribute("vt_id",new VT().GetDefaltVTID("0301"));
headXml.setAttribute("editprop", "A");

View File

@@ -35,7 +35,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("brdflag", 1);
headXml.setAttribute("ccode", "11");
headXml.setAttribute("ddate", storeIn.Date);
headXml.setAttribute("cmaker", "");
headXml.setAttribute("cmaker", storeIn.Maker);
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0411"));
headXml.setAttribute("editprop", "A");

View File

@@ -46,7 +46,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("cmaker", puStoreIn.Maker);//DomHead[0]["cmaker"] = ""; //制单人,string类型
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("24"));
headXml.setAttribute("editprop", "A");
headXml.setAttribute("cdepcode", puStoreIn.Depcode);
headXml.setAttribute("cdepcode", puStoreIn.Deptcode);
headXml.setAttribute("cpersoncode", puStoreIn.PersonCode);
headXml.setAttribute("crdcode", "101" /*puStoreIn.RdCode*/);
headXml.setAttribute("cwhcode", puStoreIn.Whcode);

View File

@@ -38,7 +38,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("brdflag", 0);
headXml.setAttribute("ccode", storeOut.Code);
headXml.setAttribute("ddate", storeOut.Date);
headXml.setAttribute("cmaker", "");
headXml.setAttribute("cmaker", storeOut.Maker);
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0303"));
headXml.setAttribute("editprop", "A");

View File

@@ -19,7 +19,7 @@ namespace NX.ERP.U8.Store
{
get
{
return $"{AppDomain.CurrentDomain.BaseDirectory}XMLDOM\\XMLDomBody{this.voucherID}.xml";
return $"{AppDomain.CurrentDomain.BaseDirectory}\\XMLDOM\\XMLDomBody{this.voucherID}.xml";
}
}
@@ -28,7 +28,7 @@ namespace NX.ERP.U8.Store
get
{
return $"{AppDomain.CurrentDomain.BaseDirectory}XMLDOM\\XMLDomHead{this.voucherID}.xml";
return $"{AppDomain.CurrentDomain.BaseDirectory}\\XMLDOM\\XMLDomHead{this.voucherID}.xml";
}
}
protected string LoadUrl
@@ -265,7 +265,7 @@ namespace NX.ERP.U8.Store
{
if (!Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + "XMLDOM"))
{
Directory.CreateDirectory(AppDomain.CurrentDomain.RelativeSearchPath + "XMLDOM");
Directory.CreateDirectory(AppDomain.CurrentDomain.BaseDirectory + "XMLDOM");
}
rdVoucherParameter = new VoucherParameter
{