Browse Source

...锐腾

master
xusc 3 months ago
parent
commit
6fca85456e
  1. BIN
      .vs/ICSSoft.FromERP/v16/.suo
  2. 6
      ICSSoft.FromERP/App.config
  3. 6
      ICSSoft.FromERP/IcsMo_Rhtyon.cs
  4. 2
      ICSSoft.FromERP/SyncCas_Jinyang.cs
  5. 2
      ICSSoft.Test/Program.cs

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

Binary file not shown.

6
ICSSoft.FromERP/App.config

@ -2,7 +2,8 @@
<configuration>
<appSettings>
<!--<add key="ERPDB" value="[U9Ctest]"/>-->
<add key="ERPDB" value="[192.168.93.132].[U9TEST0628]"/>
<!--<add key="ERPDB" value="[192.168.93.132].[U9TEST0628]"/>-->
<add key="ERPDB" value="[192.168.93.133].[U9RTDB]"/>
<add key="Workpoint_ERPDB" value="zhc|[MESTOU8].[UFDATA_001_2017]"/>
<!--token 地址-->
<add key="WeiMasTokenUrl" value="https://test.zhangsanfeng.vip"/>
@ -18,7 +19,8 @@
</appSettings>
<connectionStrings>
<!--<add name="SysConnectionString" connectionString="Data Source=119.3.29.177;Database=ICSMESBase;Uid=gitea;Pwd=aA123456;"/>-->
<add name="SysConnectionString" connectionString="server=192.168.93.135; Database=ICSMESBase_RuiTeng; User ID=sa; Password=rhyt0n***;MultipleActiveResultSets=True;Connect Timeout=300;"/>
<!--<add name="SysConnectionString" connectionString="server=192.168.93.135; Database=ICSMESBase_RuiTeng; User ID=sa; Password=rhyt0n***;MultipleActiveResultSets=True;Connect Timeout=300;"/>-->
<add name="SysConnectionString" connectionString="server=192.168.93.135; Database=ICSMESBase_RuiTengZS; User ID=sa; Password=rhyt0n***;MultipleActiveResultSets=True;Connect Timeout=300;"/>
<!--<add name="SysConnectionString" connectionString="server=192.168.1.155; Database=ICSMESBase_WeiMas; User ID=sa; Password=aA123456;MultipleActiveResultSets=True;Connect Timeout=300;"/>-->
<!--<add name="SysConnectionString" connectionString="server=172.16.12.201; Database=ICSJYMES; User ID=sa; Password=aA123456;MultipleActiveResultSets=True;Connect Timeout=300;"/>-->
<add name="APIAddStdWorkHour" connectionString="http://192.168.1.110:9097/api/APIAddStdWorkHour"/>

6
ICSSoft.FromERP/IcsMo_Rhtyon.cs

@ -63,7 +63,9 @@ namespace ICSSoft.FromERP
0 as RCVQuantity,
A13.Code as DepCode,
A22.Code as WHCode,
'mostatus_initial' as MOStatus,
case when A.DocState=2 then 'mostatus_initial'
when A.DocState=3 then 'mostatus_close'
else 'mostatus_initial' end as MOStatus,
A2.Description as MOMemo,
'2' as ERPStatus,
A.StartDate as StartDate,
@ -170,7 +172,7 @@ else Convert(varchar(10),a.ActualCompleteDate,120 ) end as ActualCompleteDate
values.Add("LastModifierUserId", "'" + ConstWorkPoint.Muser + "'");
values.Add("LastModifierUserName", "'" + ConstWorkPoint.Musername + "'");
values.Add("LastModificationTime", "a.Mtime");//操作时间
//values.Add("Default1", "a.EATTRIBUTE1");
values.Add("Default1", "a.EATTRIBUTE1");
//values.Add("Default2", "a.NeedType");
values.Add("DocType", "a.MoDocType");
// values.Add("Default3", "a.ActualCompleteDate");

2
ICSSoft.FromERP/SyncCas_Jinyang.cs

@ -67,6 +67,8 @@ DROP TABLE #tempSyncCas_Jinyang
select * ,a.CreateTime as MTime into #tempSyncCas_Jinyang from [ICSDomeAmb] a with( nolock)
where a.CreateTime>@LastTime
and free1 <>'15' and Free2 not like '%e%' and free1<>'0'
and LotNO <>''
select
a.*

2
ICSSoft.Test/Program.cs

@ -13,7 +13,7 @@ namespace ICSSoft.Test
//ICSVendor test = new ICSVendor();
//test.Execute();
IcsMainCategoryCode_Rhtyon test = new IcsMainCategoryCode_Rhtyon();
IcsMo_Rhtyon test = new IcsMo_Rhtyon();
test.Execute();
// var ss= ICSHelper.ApiSign("sj_w_id", "70FF7F01C5899A5ACAAD4ECB7FA5B3C5", 1724650261);

Loading…
Cancel
Save