xusc 3 days ago
parent
commit
f9376f1a2d
  1. BIN
      .vs/ICSSoft.FromERP/v16/.suo
  2. 4
      ICSSoft.FromERP/App.config
  3. 9
      ICSSoft.FromERP/SyncMoHour_Rhyton.cs
  4. 2
      ICSSoft.Test/Program.cs

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

Binary file not shown.

4
ICSSoft.FromERP/App.config

@ -39,8 +39,8 @@
<!--<add name="SysConnectionString" connectionString="Data Source=119.3.29.177;Database=ICSMESBase;Uid=gitea;Pwd=aA123456;"/>--> <!--<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=172.66.9.13; Database=ICSWMS_KBS; User ID=sa; Password=Drcoffee201609;MultipleActiveResultSets=True;Connect Timeout=300;"/>--> <!--<add name="SysConnectionString" connectionString="server=172.66.9.13; Database=ICSWMS_KBS; User ID=sa; Password=Drcoffee201609;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=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="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"/> <add name="APIAddStdWorkHour" connectionString="http://192.168.1.110:9097/api/APIAddStdWorkHour"/>
<add name="MailOpen" connectionString="true"/> <add name="MailOpen" connectionString="true"/>

9
ICSSoft.FromERP/SyncMoHour_Rhyton.cs

@ -69,7 +69,7 @@ DROP TABLE #tempSyncMoHour_Rhyton
select select
a.* a.*
,(a.PTime+cast( a.ManualTime as decimal(18,6) )) as MachiningTotalTime ,(a.PTime+cast( a.ManualTime as decimal(18,6) )) as MachiningTotalTime
,case when (a.EqpCalcType='1'and a.ResQty>0) then (a.PTime+cast( a.ManualTime as decimal(18,6) ))/a.ResQty
,case when (a.EqpCalcType='True'and a.ResQty>0) then (a.PTime+cast( a.ManualTime as decimal(18,6) ))/a.ResQty
else 0 end as EqpTotalTime else 0 end as EqpTotalTime
,(a.PTime+cast( a.ManualTime as decimal(18,6) )-a.TotalTime) as HourDiff ,(a.PTime+cast( a.ManualTime as decimal(18,6) )-a.TotalTime) as HourDiff
into #tempSyncMoHour_Rhyton into #tempSyncMoHour_Rhyton
@ -146,7 +146,7 @@ and a.MoStatus='mostatus_close'
and a.Default6='0' and a.Default6='0'
and a.TenantId='{0}' and a.TenantId='{0}'
and e.OpControl='10000000' and e.OpControl='10000000'
and (h2.Status='No' or h2.Id is null )
and (h2.AlterTime is null or h2.Id is null )
) a ) a
where 1=1 where 1=1
) a ) a
@ -209,10 +209,13 @@ set STime=a.STime
,EqpTotalTime=a.EqpTotalTime ,EqpTotalTime=a.EqpTotalTime
,ResQty=a.ResQty ,ResQty=a.ResQty
,HourDiff=a.HourDiff ,HourDiff=a.HourDiff
,LastModificationTime=GETDATE()
,LastModifierUserId='job'
,LastModifierUserName='job'
from #tempSyncMoHour_Rhyton a from #tempSyncMoHour_Rhyton a
join IcsMoHourData b on a.MoCode=b.MoCode and a.OpCode=b.OpCode join IcsMoHourData b on a.MoCode=b.MoCode and a.OpCode=b.OpCode
where 1=1 where 1=1
and b.Status='No'
and b.AlterTime is null

2
ICSSoft.Test/Program.cs

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

Loading…
Cancel
Save