Browse Source

..

Branch_PaiNaWeiSJob
xusc 4 months ago
parent
commit
08ce4babe0
  1. BIN
      .vs/ICSSoft.FromERP/v16/.suo
  2. 3
      ICSSoft.FromERP/App.config
  3. 3
      ICSSoft.FromERP/IcsSBom_Rhtyon.cs
  4. 2
      ICSSoft.Test/Program.cs

BIN
.vs/ICSSoft.FromERP/v16/.suo

Binary file not shown.

3
ICSSoft.FromERP/App.config

@ -2,11 +2,12 @@
<configuration>
<appSettings>
<add key="ERPDB" value="[U9Ctest]"/>
<!--<add key="ERPDB" value="[192.168.93.132].[U9TEST0628]"/>-->
<add key="Workpoint_ERPDB" value="zhc|[MESTOU8].[UFDATA_001_2017]"/>
</appSettings>
<connectionStrings>
<!--<add name="SysConnectionString" connectionString="Data Source=119.3.29.177;Database=ICSMESBase;Uid=gitea;Pwd=aA123456;"/>-->
<add name="SysConnectionString" connectionString="server=XUSC; Database=ICSMESBase_WeiMas; User ID=sa; Password=123456;MultipleActiveResultSets=True"/>
<add name="SysConnectionString" connectionString="server=192.168.93.135; Database=ICSMESBase_RuiTeng; User ID=sa; Password=rhyt0n***;MultipleActiveResultSets=True;Connect Timeout=300;"/>
<add name="APIAddStdWorkHour" connectionString="http://192.168.1.110:9097/api/APIAddStdWorkHour"/>
<add name="MailOpen" connectionString="true"/>
<add name="SendHost" connectionString="mail.huahengweld.com"/>

3
ICSSoft.FromERP/IcsSBom_Rhtyon.cs

@ -85,6 +85,7 @@ left join {1}.dbo.[CBO_Project] as A6 on (A.[CompProject] = A6.[ID])
LEFT JOIN {1}.dbo.[Base_Organization] AS I ON ( A1.[Org] = I.[ID] )
LEFT JOIN {1}.dbo.[Base_Organization_Trl] AS J ON ( I.[ID] = J.[ID] AND J.SysMLFlag='zh-CN')
where 1=1 and IsEffective=1 and A.ModifiedOn>=@LastTime AND I.id={0} and A.ComponentType=0 and A1.AlternateType=0
and A1.bomtype=0
IF NOT EXISTS(SELECT * FROM #TempBOM)
RETURN";
@ -150,7 +151,7 @@ left join IcsMainCategoryCode d on c.ItemMainCategoryCode=d.ItemMainCategoryCode
sql += " DROP TABLE #TempBOM " +
"DROP TABLE #tableICSSBOM";
sql = string.Format(sql, TenantId, erpName, ErpId);
// return;
//return;
ICSHelper.ExecuteDate(conStr, sql);
#endregion
}

2
ICSSoft.Test/Program.cs

@ -13,7 +13,7 @@ namespace ICSSoft.Test
//ICSVendor test = new ICSVendor();
//test.Execute();
IcsSBom test = new IcsSBom();
IcsSBom_Rhtyon test = new IcsSBom_Rhtyon();
test.Execute();

Loading…
Cancel
Save