From 020ed9f6c5e2e2d70b21cf94ea916264a467a12b Mon Sep 17 00:00:00 2001 From: "DESKTOP-QD1SU79\\Xfu" Date: Fri, 18 Oct 2024 11:06:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E6=97=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ICSSoft.FromERP/IcsOp.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ICSSoft.FromERP/IcsOp.cs b/ICSSoft.FromERP/IcsOp.cs index 585cb0a..934acce 100644 --- a/ICSSoft.FromERP/IcsOp.cs +++ b/ICSSoft.FromERP/IcsOp.cs @@ -54,16 +54,16 @@ ITEM.Code+'_'+RoutingVersionCode+'_'+(case AlternateType when '0' then '主制 u9route.CreatedOn as RouteCreateTime,u9route.ModifiedOn as RouteModifiedTime,opu9.Sequence as opseq, opu9trl.Description+'_'+OPU9.Sequence as U9Opcode,opu9.CreatedOn as opCreateTime,opu9.ModifiedOn as OpModifiedTime,opu9trl.Description as OpDesc, u9route.ID as routeID,opu9.ID as OPID,work.Code AS SegCode,u9Group.Code as CrewCode,u9route.Lot,u9Line.Code as LineCode,'' as MesOpcode, -case when timeuom.Name='小时' then cast (opu9.RunTime as decimal(18,3)) - when timeuom.Name='秒' then cast (opu9.RunTime/3600 as decimal(18,3)) - when timeuom.Name='分钟' then cast (opu9.RunTime/60 as decimal(18,3)) - when timeuom.Name='天' then cast (opu9.RunTime/24 as decimal(18,3)) - end as Rtime, - case when timeuom.Name='小时' then cast (opu9.SetupTime as decimal(18,3)) - when timeuom.Name='秒' then cast (opu9.SetupTime/3600 as decimal(18,3)) - when timeuom.Name='分钟' then cast (opu9.SetupTime/60 as decimal(18,3)) - when timeuom.Name='天' then cast (opu9.SetupTime/24 as decimal(18,3)) - end as Stime,u9Res.Code AS resCode,u9Restrl.Name as resName,PerResUsage,PerResOutput, +case when timeuom.Name='小时' then cast (opu9.RunTime as decimal(18,6)) + when timeuom.Name='秒' then cast (opu9.RunTime/3600 as decimal(18,6)) + when timeuom.Name='分钟' then cast (opu9.RunTime/60 as decimal(18,6)) + when timeuom.Name='天' then cast (opu9.RunTime/24 as decimal(18,6)) + end as Stime, + case when timeuom.Name='小时' then cast (opu9.SetupTime as decimal(18,6)) + when timeuom.Name='秒' then cast (opu9.SetupTime/3600 as decimal(18,6)) + when timeuom.Name='分钟' then cast (opu9.SetupTime/60 as decimal(18,6)) + when timeuom.Name='天' then cast (opu9.SetupTime/24 as decimal(18,6)) + end as Rtime,u9Res.Code AS resCode,u9Restrl.Name as resName,PerResUsage,PerResOutput, case when IsSubcOperation='0' THEN 'N' else 'Y' end as IsSubcOperation,ITEM.Code as ItemCode,u9Group.Name AS CREWName,u9Linetrl.Name as LineName,worktrl.Name as SegNAME from