From 2c434a2ba1701ae3ccd5e7ad560746bc206f3e37 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G2TH1JI\\vivian" Date: Mon, 30 May 2022 09:24:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E7=8A=B6=E6=80=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ICSSoft.FromERP/ICSSoft.FromERP/ICSOutsourcingOrder.cs | 4 ++-- ICSSoft.FromERP/ICSSoft.FromERP/ICSPO.cs | 4 ++-- ICSSoft.FromERP/ICSSoft.Test/Program.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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(); }