|
|
@ -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 |
|
|
|