diff --git a/.vs/ICSSoft.FromERP/v16/.suo b/.vs/ICSSoft.FromERP/v16/.suo index e63abf7..cc3669a 100644 Binary files a/.vs/ICSSoft.FromERP/v16/.suo and b/.vs/ICSSoft.FromERP/v16/.suo differ diff --git a/ICSSoft.FromERP/App.config b/ICSSoft.FromERP/App.config index 583e0de..85b5e34 100644 --- a/ICSSoft.FromERP/App.config +++ b/ICSSoft.FromERP/App.config @@ -37,9 +37,9 @@ - + - + diff --git a/ICSSoft.FromERP/SyncSO_WeiMas.cs b/ICSSoft.FromERP/SyncSO_WeiMas.cs index c2389b9..bedf76b 100644 --- a/ICSSoft.FromERP/SyncSO_WeiMas.cs +++ b/ICSSoft.FromERP/SyncSO_WeiMas.cs @@ -146,6 +146,7 @@ from dics.Add("tax", item.Tax.ToString()); dics.Add("SQCode", item.SQCode); dics.Add("SQLineNo", item.SQLineNo); + dics.Add("ProduceArea", item.ITEMCODE.Substring(item.ITEMCODE.Length-2,2)); dics.Add("Mtime", item.Mtime.ToString("yyyy-MM-dd HH:mm:ss")); dics.Add("Free1", item.Free1); dics.Add("Free2", item.Free2); @@ -175,12 +176,13 @@ from insertSql += @" insert into IcsSaleOrder (SoCode,SoType,[SoOrderDate],[RequestedDeliveryDate],[CusCode],[CusName],[SoLineNo],[ItemCode],[CASNo],[Qty] -,[Tax],[SqCode],[SqLineNo] +,[Tax],[SqCode],[SqLineNo],ProduceArea ,Default1,Default2,Default3,Default4 ,CreationTime,CreatorUserId,CreatorUserName,TenantId) select a.SoCode,a.SoType,a.SOORDERDATE,a.RequestedDeliveryDate,a.CUSCODE,a.CUSNAME,a.SOLineNo ,a.ITEMCODE,a.CASNo,a.Qty ,a.tax,a.SQCode,a.SQLineNo +,a.ProduceArea , a.Free1,a.Free2,a.Free3,a.Free4 ,Mtime,'job','job','{0}' from #tempFromErp4SaleOrder a diff --git a/ICSSoft.Test/Program.cs b/ICSSoft.Test/Program.cs index 09b8fbd..60cec7a 100644 --- a/ICSSoft.Test/Program.cs +++ b/ICSSoft.Test/Program.cs @@ -13,7 +13,7 @@ namespace ICSSoft.Test //ICSVendor test = new ICSVendor(); //test.Execute(); - IcsMo_Rhtyon test = new IcsMo_Rhtyon(); + SyncSO_WeiMas test = new SyncSO_WeiMas(); test.Execute(); // var ss= ICSHelper.ApiSign("sj_w_id", "70FF7F01C5899A5ACAAD4ECB7FA5B3C5", 1724650261);