From 9d10f441f64ff6d740cd032d4f18875b8c01670f Mon Sep 17 00:00:00 2001 From: xusc Date: Mon, 11 Nov 2024 15:54:49 +0800 Subject: [PATCH 1/5] .. --- .vs/ICSSoft.FromERP/v16/.suo | Bin 346624 -> 346112 bytes ICSSoft.FromERP/IcsSBom_Rhtyon.cs | 6 +++++- ICSSoft.Test/Program.cs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.vs/ICSSoft.FromERP/v16/.suo b/.vs/ICSSoft.FromERP/v16/.suo index 416e1dc07131b9cc6c8a2bdd753f44f6eef151bd..9d405cf60cb83477416cade5aeda762644861f31 100644 GIT binary patch delta 14703 zcmeHO3shBA-oN{C0SOTS5fSmCh^U|!M0sR#1r#(hAZ&aKDCPqd5#I_|Go>^Fj`62- z5^r`jOG7D6S=rUfF~>~J(kx9Kr`774uc1Ec>+Sd3_k!Yt+4Rkt z7qs=c>&w4-$9~9O#1o6QgfHXkc>UKrh?S~-ny(Bz9RUOY_X0oSK{(P~z+zwn;0sIy z)&Sjrbf65_2K*6t66gb>f{{)Kx&Ued1;A6l3g8JK1n6xrXphJ?39FFL2i^v@0}lWM zBmvI?F+dm~fm9$Ghy}K2$7Rp3`Q*bJNjyn(*J z7+@AK5_liD2N(wo0u(>SBb@*k(MN}-GFARTQ{IepW>bC|QV(DmU;%a*3}X!sA+r=n z0ThX^Ae{qnbZ7unXR16O`PC@u2z-ZWbVj-eSPnb}a^|9FBbRKq^&|ROyW*`EJwmUnNOxrR*B5WVQxm|1&b{9;ha+u9k9B z_nMb6u!~Zqe-z(p3{eTVX+w;Dr4J)F8MT@PwhH-w6qr)rT%ZDVry^|@SP}C7D6of6 zN6AZ(a3gssIW);Dyj6jz#!6r+bqY-Tw#~ZT#mm_quglC>1u>7Q|F+9ArWLnazvqn< zMk#+`(OU7F>ou!)aD8yrC8k;ZyVZB|KgX&qY>ZTvNfVIsQu?ay)D*~JVJ6qJOBPlm zl}eFy2(!{wKbFBtDKmqoRa*VEXE&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Ve+U|NP z@@DH8@;BQte#1T0GnBbUq-Ubgf~_ zy!no2p*b;!;R73vxKpYJkt0yTboT?%m{;)b*7pd^7L;TShaQv5*nSk6>{_8d0a~S!SKwNs) z?*zo&@X+Mid-c9L%l*WLQ|rMikHKbD@Yxf1z=dx2;{zvfmY28#`N;-FV!z*2X1V}A z&*dhqr(}`RiV&B6G#G<97}hnPdFI!VUFTLnmt6=`F5yA9jo8j>e+y;Aim>5pM{!6w z?%s!sUy{rD!x!aN&VCV&&J{0IY?WQjZ(ytp9ucXH<6YyXq2^A!rVcJ@nNEA|;qn=> z69p;1RPsyQ^Gn?GOWgDSEAAO>UV>k#zhg80HMOPsH;D=qw}YF;qgmQ~Qvd2Ud=-BcUlwFVFx(8)9CBe>i(x+Wrfud1Pq- diff --git a/ICSSoft.FromERP/IcsSBom_Rhtyon.cs b/ICSSoft.FromERP/IcsSBom_Rhtyon.cs index 49fa25f..a403745 100644 --- a/ICSSoft.FromERP/IcsSBom_Rhtyon.cs +++ b/ICSSoft.FromERP/IcsSBom_Rhtyon.cs @@ -77,6 +77,7 @@ isnull( A6.[Code],'') as 项目号, ,A.ModifiedOn as MTime ,A.ID as ErpDetailID ,e3.Name AlternateTypeName +,u1.Name as SBItemUom INTO #TempBOM from {1}.dbo.CBO_BOMComponent as A left join {1}.dbo.[CBO_BOMMaster] as A1 on (A.[BOMMaster] = A1.[ID]) @@ -91,7 +92,7 @@ LEFT JOIN {1}.dbo.[Base_Organization_Trl] AS J ON ( I.[ID] = J.[ID] AND J.SysM left join {1}.dbo.UBF_Sys_ExtEnumType e1 on e1.Code = 'UFIDA.U9.CBO.MFG.Enums.AlternateTypesEnum' left join {1}.dbo.UBF_Sys_ExtEnumValue e2 on e1.ID=e2.ExtEnumType and e2.evalue=A1.AlternateType left join {1}.dbo.UBF_Sys_ExtEnumValue_Trl e3 on e2.id=e3.ID and e3.SysMLFlag='zh-CN' - +left join {1}.dbo.Base_UOM_Trl u1 on a.IssueUOM=u1.id and u1.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 @@ -123,6 +124,9 @@ and a.TenantId='{0}' //values.Add("SBItemDesc", "a.子阶料描述"); values.Add("SBSITEMCODE", "a.子阶料编码"); values.Add("SBITEMQTY", "a.子阶料计量数量"); + values.Add("SBUsageQty", "a.UsageQty"); + values.Add("ParentQty", "a.ParentQty"); + values.Add("SBItemUom", "a.SBItemUom"); values.Add("SEQ", "1"); values.Add("SBItemECN", "a.工程变更号"); values.Add("SBItemStatus", "'Y'"); diff --git a/ICSSoft.Test/Program.cs b/ICSSoft.Test/Program.cs index 20172ab..de67061 100644 --- a/ICSSoft.Test/Program.cs +++ b/ICSSoft.Test/Program.cs @@ -13,7 +13,7 @@ namespace ICSSoft.Test //ICSVendor test = new ICSVendor(); //test.Execute(); - SyncMoHour_Rhyton test = new SyncMoHour_Rhyton(); + IcsSBom_Rhtyon test = new IcsSBom_Rhtyon(); test.Execute(); // var ss= ICSHelper.ApiSign("sj_w_id", "70FF7F01C5899A5ACAAD4ECB7FA5B3C5", 1724650261); From 82c38698a90e5bf45ad83629826a9e58ac03d60e Mon Sep 17 00:00:00 2001 From: xusc Date: Mon, 11 Nov 2024 16:58:35 +0800 Subject: [PATCH 2/5] .. --- .vs/ICSSoft.FromERP/v16/.suo | Bin 346112 -> 347136 bytes ICSSoft.FromERP/IcsSBom_Rhtyon.cs | 2 +- ICSSoft.FromERP/SyncMoHour_Rhyton.cs | 3 +++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vs/ICSSoft.FromERP/v16/.suo b/.vs/ICSSoft.FromERP/v16/.suo index 9d405cf60cb83477416cade5aeda762644861f31..57a431a03dcc030377c337bfb9b96885e853f484 100644 GIT binary patch delta 4804 zcmbuC4_s7L7RTq@`vzt}5fG3B6)e0%jb~^^YOQO!sh=_;HEYdn-PN?TTFcnqRVX!W%YFLw+xuoFxJ|J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BOM) diff --git a/ICSSoft.FromERP/SyncMoHour_Rhyton.cs b/ICSSoft.FromERP/SyncMoHour_Rhyton.cs index 07c5822..38e16cc 100644 --- a/ICSSoft.FromERP/SyncMoHour_Rhyton.cs +++ b/ICSSoft.FromERP/SyncMoHour_Rhyton.cs @@ -150,6 +150,7 @@ order by a.MoCode, a.OpSeq asc ,RealTime ,ManualTime ,MachiningTotalTime +,EqpTotalTime ,ResQty ,HourDiff ,Status @@ -169,6 +170,8 @@ a.MoCode ,a.PTime ,a.ManualTime ,(a.PTime+cast( a.ManualTime as decimal(18,6) )) +,case when a.ResQty>0 then (a.PTime+cast( a.ManualTime as decimal(18,6) ))/a.ResQty +else 0 end as EqpTotalTime ,a.ResQty ,(a.PTime+cast( a.ManualTime as decimal(18,6) )-a.TotalTime) ,a.Status From c382a410ca9dffc9648075e5f9295026c3a5b38a Mon Sep 17 00:00:00 2001 From: xusc Date: Tue, 12 Nov 2024 09:18:20 +0800 Subject: [PATCH 3/5] .. --- .vs/ICSSoft.FromERP/v16/.suo | Bin 347136 -> 347136 bytes ICSSoft.FromERP/IcsMo_Rhtyon.cs | 5 +++++ ICSSoft.FromERP/IcsSBom_Rhtyon.cs | 2 +- ICSSoft.Test/Program.cs | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.vs/ICSSoft.FromERP/v16/.suo b/.vs/ICSSoft.FromERP/v16/.suo index 57a431a03dcc030377c337bfb9b96885e853f484..a58655838024cb70d4cfe46a32c9553f1457b5e1 100644 GIT binary patch delta 2819 zcmbuB3s6+o8OQg#-(B1#YkA9~ir}M?!NpzJ@DK!Cu}-WdN?XSyYI!WyYK^9mRD>vE zY^=}}ytqdb)0PdckFg-EaBQ>|%wsxDThW?GA{9g8qb4zE)f!{9{|lsHqU|{8-T9sG zJLlf}?fL)D*)vLTELINh30|>6m#E$Wr?F4r|5US62(VBt8rs5 zxPz+^u~JJ@%cxarRkMPYqOXE*G8m>JF4m03sk4({r#UIJ_qs)%kf!hh%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1.code not like 'K10%' ,case when a.ActualCompleteDate is null then '' else Convert(varchar(10),a.ActualCompleteDate,120 ) end as ActualCompleteDate ,a.IsFIClose +,e3.Name AlternateTypeName INTO #TempMO from {1}.dbo.MO_MO as A With(NoLock) left join {1}.dbo.[MO_MOMemo] as A1 With(NoLock) on (A.[ID] = A1.[MO]) @@ -116,6 +117,9 @@ else Convert(varchar(10),a.ActualCompleteDate,120 ) end as ActualCompleteDate left join {1}.dbo.[CBO_Department] as A13 With(NoLock) on (A.[Department] = A13.[ID]) left join {1}.dbo.[CBO_Department_Trl] as A14 With(NoLock) on (A14.SysMlFlag = 'zh-CN') and (A13.[ID] = A14.[ID]) LEFT JOIN {1}.dbo.[CBO_Wh] AS A22 With(NoLock) ON A22.ID=A.CompleteWh + left join {1}.dbo.UBF_Sys_ExtEnumType e1 on e1.Code = 'UFIDA.U9.CBO.MFG.Enums.AlternateTypesEnum' + left join {1}.dbo.UBF_Sys_ExtEnumValue e2 on e1.ID=e2.ExtEnumType and e2.evalue=a.BOMAlternate + left join {1}.dbo.UBF_Sys_ExtEnumValue_Trl e3 on e2.id=e3.ID and e3.SysMLFlag='zh-CN' where (A.DocState=2 OR A.DocState=3) and A.[BusinessType] != 50 and (A.[BusinessType] != 52) and (A.[BusinessType] != 2417) and (A.[IsMultiRouting] != 1) and A.[ItemMaster] is not null --and (A.[IsStartMO] != 1) and ISNULL(A.ModifiedOn,A.BusinessCreatedOn)>=@LastTime AND A12.id='{0}' @@ -173,6 +177,7 @@ else Convert(varchar(10),a.ActualCompleteDate,120 ) end as ActualCompleteDate values.Add("Default3", "a.ActualCompleteDate"); values.Add("Default5", "a.DocState"); values.Add("Default6", "a.IsFIClose"); + values.Add("Alternate", "a.AlternateTypeName"); //更新存在数据 sql += ICSHelper.UpdateSQL("b", values) diff --git a/ICSSoft.FromERP/IcsSBom_Rhtyon.cs b/ICSSoft.FromERP/IcsSBom_Rhtyon.cs index 7f923ee..f5e6610 100644 --- a/ICSSoft.FromERP/IcsSBom_Rhtyon.cs +++ b/ICSSoft.FromERP/IcsSBom_Rhtyon.cs @@ -139,7 +139,7 @@ and a.TenantId='{0}' values.Add("LastModifierUserId", "'" + ConstWorkPoint.Muser + "'");//操作人 values.Add("LastModifierUserName", "'" + ConstWorkPoint.Musername + "'");//操作人名称 values.Add("SBItemContype", "c.ItemContype"); - values.Add("SBUseage", "a.AlternateTypeName"); + values.Add("Alternate", "a.AlternateTypeName"); values.Add("FixedScrap", "a.固定损耗"); values.Add("Scrap", "a.变动损耗"); values.Add("ScrapType", "a.损耗类型"); diff --git a/ICSSoft.Test/Program.cs b/ICSSoft.Test/Program.cs index de67061..09b8fbd 100644 --- a/ICSSoft.Test/Program.cs +++ b/ICSSoft.Test/Program.cs @@ -13,7 +13,7 @@ namespace ICSSoft.Test //ICSVendor test = new ICSVendor(); //test.Execute(); - IcsSBom_Rhtyon test = new IcsSBom_Rhtyon(); + IcsMo_Rhtyon test = new IcsMo_Rhtyon(); test.Execute(); // var ss= ICSHelper.ApiSign("sj_w_id", "70FF7F01C5899A5ACAAD4ECB7FA5B3C5", 1724650261); From f488115ccce12fa8f71062b9fe2d1e0ecde07be7 Mon Sep 17 00:00:00 2001 From: xusc Date: Tue, 12 Nov 2024 11:11:27 +0800 Subject: [PATCH 4/5] .. --- .vs/ICSSoft.FromERP/v16/.suo | Bin 347136 -> 347136 bytes ICSSoft.FromERP/IcsMo_Rhtyon.cs | 1 - ICSSoft.FromERP/IcsSBom_Rhtyon.cs | 2 +- 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.vs/ICSSoft.FromERP/v16/.suo b/.vs/ICSSoft.FromERP/v16/.suo index a58655838024cb70d4cfe46a32c9553f1457b5e1..d850f420dd8efc0a803a40fbf7e7406ca4a0a9ea 100644 GIT binary patch delta 3756 zcmZwK2~-qE8VB(Cx>}gwa6#@v9S{_w=!_1R@d{#eH9;`Ocw|=x#QSzoP?Yh+C`n}6 zP-rm9sN+RcW(e&O6^}*ZeP!c8Hg3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+0h@!I<-nY?iG{!%EetnY;DuV@W8eYj0`e{b7B}Zv_Dr8n{~swgxZ$|7jDi<~ z&KJcQYq&oaB8B_IIna)Wo&Z}z^<6^$agXmwFokNSO6Ur5R?+Ee2?sDtIRLS^(gUmd zL?4S3us)#P&NR|HzfbQ152Rg{-XlCv6jH*a9O(V_kT4BC#bV9)tzKa}G95@x@AZ~VD; z-uZauFf?LqDrjR}_d-r+lCD4l+IOe+ z_PX{fWy%q#441D>a<7**2TNV_RQUV|CDwHq^zx~z!!1W322XcDeD5nk|5^&%IWFL$ z+P>ns$3IclRUF&hdgA?(&)s!j-%=bGHP_f^iuhY*^4qzEgBDf)Xfc;=y(@mu2aNMm z=`25Bsca&qYZspadX#vMvV#Be#Mfw_tsT7SIsz)?dhz+E&d@}U}0^c6+BnDW>nq0_XLGrv)qT$O&wa4F)@9x#=rgy>jF7qr5*k>Fc5q$kJ%QD;2 zENgapSx$~Q-8#XVl|IpOduF;hdxCkH**vk-Qf7@+F!>*REv|o!ThU(2cj7}6_@m>S zG8E+-PXAZfvX_;WW!-K|Uuw17o^G{TbJ8bTvoq7nELpeNEM{|7sjW0{4BR_jO~>jy zz77}VaGTa;<71*Dt#Y~bmQ=s|Od77akMjb+vV(j(8eifOTEt=gDQIWr@P!a5Kf?OT zD8KyXGb6mlAI2^>H(~vaJVpyU&i}=6$21;Gk~Sr&{D%=kY;Jb6*e_bqn~ZTzF9nk1sLp-5-d9hi)wfkcINUMG2#?u z`nFx20KP(=&m-mEB7J3)U;YDPzg(3t{1mB|{WPDbt;$oKdM)uN?^d1jxGLbmcr@-( zt++&0L$w7b`0ile0>0ItZT%-7F-&V)%?pga;p)~=@LastTime AND I.id={0} and A.ComponentType=0 ---and A1.AlternateType=0 +and A1.AlternateType=0 and A1.bomtype=0 IF NOT EXISTS(SELECT * FROM #TempBOM) From 381b8b5af10f201c4752c2eb1421234cbdebe880 Mon Sep 17 00:00:00 2001 From: xusc Date: Tue, 12 Nov 2024 15:56:13 +0800 Subject: [PATCH 5/5] .. --- .vs/ICSSoft.FromERP/v16/.suo | Bin 347136 -> 346624 bytes ICSSoft.FromERP/SyncMoHour_Rhyton.cs | 49 +++++++++++++++++++++++---- ICSSoft.Test/Program.cs | 2 +- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/.vs/ICSSoft.FromERP/v16/.suo b/.vs/ICSSoft.FromERP/v16/.suo index d850f420dd8efc0a803a40fbf7e7406ca4a0a9ea..bdb9766d40714dc54c0c1d4fded42908d10742f2 100644 GIT binary patch delta 6125 zcmc(j3sh9q8pr25`-}`QAo3iQ5b?24L4s>jQOCZz(V`#|(AAN2H;ok|tg9w!CJomJ99u5bk$|hftI0TKDEz>&M>v+t2U6 z_xbi2^d%npEgpsHAX&%bB9rlywHtX@rYp zkqKGc%Ul6x`kwQFK~i7oiKU7s2}fcjQA0@fgOt7`jOP1-MVP@)93rQ38c|1_Ch`a* zCJ^rv!NfqqL8#_e*q@}_XGDPzF86|b;aT|rk7_Faix^CJ5etYDLXq4JE(m+&W0cNR zUO}h{;cL0x$?_#1*M0GcGSl}xTp_3jHMu9Pk{-#CzEqa-k|Un&d8sTp)ai(K1C=EA z{z2>}0!TM+N(%^K3GdHKJ__3uDyOavDaoM_l{DK-s`jEj;gmj4Op%%^BO0svA@C~xBBGwSE5*vhF4sIqFhjb2F%9pN%QWvhmCBqIr7M6SE zLWA%f{k?2ju3`XNg{DlV*g;-}@>Q$7DEOAfVib%3xZ z&)al7CIU)*or_f&-Nq60)BQ|->L$BlpNt-hsKZdTDcff~l!m!i%=3mwY5zW;;m#80 zh!2T6;yiJIs3)X07b(5eo|noUG?Gn7$~|Km9DA)-@%oiq9dF7mrSVf$#m>Xz*)-z^ zLeRbeLcFufwB00F3Rw;jX9?*o+CRd?w}^eje&PV}HX*ey7s{R8 zCRI?$L>wk62{R!QM~HWcqr`i}F(Q|!C#2pB+tY27o)>ocx#xeqDu{;8Dva$7Dqd=Z>Ahi#5PmJd6p-KGXpVpkD9RX%WfL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~~v4caqXX%SiPkiYdS9MQF7 za}5Z65~u3L;T)?df7hO;96dMu04uEnqpWZc+XKPNZF7#E$8AC(iEZ;Xn` zk4OFNZaGoiruN8<&d-VNZj4Fr*X`ulqJhLgtOqxzu%~$O>nxtT_F;2*=uj5*Fi*Q0 z&!)RQ{5w8r3)`SQ-nA5vMd34J^YcdyHVudGoS7 zHj~?DGm~b@XN$ev#iszKxx+win$JwF3-IB%P*;GD9kFAwBlEF`ne*|zI!`wZ>uh|z zcELx*LLRr6jp6-5DS_KXG%%DpbMq2r=B6d$pNg2B%8HnYdq2s-weVtgfl)rMcvJS_ z<<;^i{!Rl+(W=fc1G$JByAS>rqh(sg_VJU+Os}0cvl+yndy%bkbh*~Bj1lAIv1sv{ z2P<#vZfZF^=y2!Sw(<)uj#e~mR!Ka63tJ~fp@6uTokeQK2zj0SD+5A35DEHD#iSj3IilZiPf1Z8H z?WdWE=5vyjnQF!_PJG!Bic!CRT;^Y%WdUVpS)$9-86@V7Q}4OF|2Y=#oO#lvvHq?) zInq5dwdcgq3-cE&ocP(^_1t`pMHr?Qbm_Zb-ki}1=_7_s9FRJ4MTpO1#CB?v;3_^EQ=O6COrS{y5t!$ zL(FdcaxmlP;EQ7c-WUq-_B#)6a4lwjb||&~UuV9nctdHN`TKZjpuD#6KJ#GGKfD|` zE{7_u!C&6wPA!URlfvXFtuR&Itzwz_P*0;O-_W&Mrj&*eYgNE?` zI$egz#nuxT%;U0|xaqWP=H`BisrHm?C+k_+_^SOhc5aZ(3B0;a?#w&a$zvQPtR_YN z9S_0eZ`bqkayddg8T)bjIoy1%pO$_3rsv6ve0) then (a.PTime+cast( a.ManualTime as decimal(18,6) ))/a.ResQty +else 0 end as EqpTotalTime +,(a.PTime+cast( a.ManualTime as decimal(18,6) )-a.TotalTime) as HourDiff + into #tempSyncMoHour_Rhyton +from +( + + select a.MoCode ,a.ItemCode @@ -75,13 +88,14 @@ a.MoCode ,((a.STime*a.MoPlanQty)+a.Rtime) as TotalTime ,cast( cast( isnull( a.ProduceTime,0) as decimal(18,6)) /cast( 3600 as decimal(18,6)) as decimal(18,6)) as PTime ,a.ManualTime + ,a.Status ,a.TenantId ,a.CreationTime MTIME ,a.CreatorUserId ,a.CreatorUserName + ,a.EqpCalcType - into #tempSyncMoHour_Rhyton from ( select @@ -103,6 +117,7 @@ from ,GETDATE() CreationTime ,'job' as CreatorUserId ,'job' CreatorUserName + ,h1.EqpCalcType from IcsMo a with(nolock) join IcsInventory b with(nolock) on a.ItemCode=b.ItemCode and a.TenantId=b.TenantId join IcsMo2Route d with(nolock) on a.MoCode=d.MoCode and d.IsMRoute='Y' and a.TenantId=d.TenantId @@ -131,10 +146,11 @@ and a.MoStatus='mostatus_close' and a.Default6='0' and a.TenantId='{0}' and e.OpControl='10000000' -and (h2.id is null) +and h2.Status='No' ) a where 1=1 -order by a.MoCode, a.OpSeq asc +) a + @@ -169,17 +185,36 @@ a.MoCode ,a.TotalTime ,a.PTime ,a.ManualTime -,(a.PTime+cast( a.ManualTime as decimal(18,6) )) -,case when a.ResQty>0 then (a.PTime+cast( a.ManualTime as decimal(18,6) ))/a.ResQty -else 0 end as EqpTotalTime +,a.MachiningTotalTime +,a.EqpTotalTime ,a.ResQty -,(a.PTime+cast( a.ManualTime as decimal(18,6) )-a.TotalTime) +,a.HourDiff ,a.Status ,a.TenantId ,a.MTIME ,a.CreatorUserId ,a.CreatorUserName from #tempSyncMoHour_Rhyton a +left join IcsMoHourData b on a.MoCode=b.MoCode and a.OpCode=b.OpCode +where b.Id is null + + +update IcsMoHourData +set STime=a.STime + ,Rtime=a.Rtime + ,TotalTime=a.TotalTime + ,RealTime=a.PTime + ,ManualTime=a.ManualTime +,MachiningTotalTime=a.MachiningTotalTime +,EqpTotalTime=a.EqpTotalTime +,ResQty=a.ResQty +,HourDiff=a.HourDiff +from #tempSyncMoHour_Rhyton a + join IcsMoHourData b on a.MoCode=b.MoCode and a.OpCode=b.OpCode + where 1=1 + and b.Status='No' + + diff --git a/ICSSoft.Test/Program.cs b/ICSSoft.Test/Program.cs index 09b8fbd..20172ab 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(); + SyncMoHour_Rhyton test = new SyncMoHour_Rhyton(); test.Execute(); // var ss= ICSHelper.ApiSign("sj_w_id", "70FF7F01C5899A5ACAAD4ECB7FA5B3C5", 1724650261);