diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs index 29cfe66..55bd4e0 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs @@ -172,7 +172,6 @@ LEFT JOIN {1}.dbo.[OM_MODetails] b With(NoLock) ON a.OODetailID= CAST(b.MODetail values.Add("Currency", "a.CurrencyName");//币种 values.Add("Status", "a.Status"); values.Add("CreatePerson", "a.CreatePerson");//创建人 - values.Add("ReleaseState", "'0'");//发布状态 values.Add("PlanArriveDate", "a.PreArriveDate");//预计到货日期 values.Add("CreateDateTime", "a.CreateDateTime");//业务员名称 values.Add("OODetailID", "a.OODetailID"); @@ -195,7 +194,8 @@ LEFT JOIN {1}.dbo.[OM_MODetails] b With(NoLock) ON a.OODetailID= CAST(b.MODetail values.Add("MUSERName", "'" + ConstWorkPoint.Musername + "'");//操作人姓名 values.Add("WorkPoint", "'" + WorkPoint + "'");//站点 values.Add("EATTRIBUTE1", "''");//站点 - //插入新增数据 + values.Add("ReleaseState", "'0'");//发布状态 + //插入新增数据 sql += ICSHelper.InsertSQL("ICSOutsourcingOrder", values) + @" #TempPOWW a LEFT JOIN ICSOutsourcingOrder b ON a.OODetailID+a.Type=b.OODetailID+b.Type and a.WorkPoint=b.WorkPoint diff --git a/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs b/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs index 6c7b407..322807c 100644 --- a/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs +++ b/ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs @@ -176,7 +176,6 @@ LEFT JOIN {1}.dbo.[PO_Podetails] b With(NoLock) ON a.PODetailID=CAST(b.ID AS VAR values.Add("CreateDateTime", "a.CreateDateTime");//业务员名称 values.Add("PRDetailID", "a.PRDetailID"); values.Add("PRID", "a.PRID"); - values.Add("ReleaseState", "'0'");//发布状态 values.Add("ExtensionID", "c.ID"); values.Add("PODetailID", "a.PODetailID"); //values.Add("POID", "a.POID"); @@ -197,7 +196,8 @@ LEFT JOIN {1}.dbo.[PO_Podetails] b With(NoLock) ON a.PODetailID=CAST(b.ID AS VAR values.Add("MUSERName", "'" + ConstWorkPoint.Musername + "'");//操作人姓名 values.Add("WorkPoint", "'" + WorkPoint + "'");//站点 values.Add("EATTRIBUTE1", "''");//站点 - //插入新增数据 + values.Add("ReleaseState", "'0'");//发布状态 + //插入新增数据 sql += ICSHelper.InsertSQL("ICSPurchaseOrder", values) + @" #TempPO a LEFT JOIN ICSPurchaseOrder b ON a.PODetailID=b.PODetailID and a.WorkPoint=b.WorkPoint diff --git a/ICSSoft.FromERP/ICSSoft.Test/Program.cs b/ICSSoft.FromERP/ICSSoft.Test/Program.cs index eea8eb4..ea82a8b 100644 --- a/ICSSoft.FromERP/ICSSoft.Test/Program.cs +++ b/ICSSoft.FromERP/ICSSoft.Test/Program.cs @@ -13,7 +13,7 @@ namespace ICSSoft.Test //ICSVendor test = new ICSVendor(); //test.Execute(); - ICSMOIssue test = new ICSMOIssue(); + ICSPO test = new ICSPO(); test.Execute(); }