%@ LANGUAGE = "VBScript" %> <%Response.Buffer = False%> <% on error resume next %> <% Session("turno")="" 'Session.Timeout = 120 Server.ScriptTimeout = 10000 busca=request.QueryString("busca") doc=request.QueryString("doc") origen=request.QueryString("origen") Date_ini=Request.Form("Date_ini") Date_end=Request.Form("Date_end") lvende=Request.Form("cvende") criterio22=Request.Form("criterio22") if criterio22="" then xcriterio22=" Todos " end if if Date_ini="" or Date_ini=null then 'Date_ini=date()-(day(date()))+1 Date_ini=date()-1 Date_end=date()-1 end if dia1=right("00"&day(Date_ini),2) mes1=right("00"&month(Date_ini),2) anno1=right("00"&year(Date_ini),4) 'Date_inii=cdate(dia1+"/"+mes1+"/"+anno1) cfechai=cdbl(anno1+mes1+dia1) xday = Right("00" & Day(Date), 2) xmonth = Right("00" & Month(Date), 2) xyear = Right("00" & Year(Date), 4) xdate=xyear&xmonth&xday dia2=right("00"&day(Date_end),2) mes2=right("00"&month(Date_end),2) anno2=right("00"&year(Date_end),4) 'cfechaf=cdate((dia2+"/"+mes2+"/"+anno2)) cfechaf=cdbl(anno2+mes2+dia2) ''''''''''''''''''''''''''''''' inicio maquinas Session("turno")=null Dim aturno aturno = Session("turno") If isArray(aturno)=false Then ReDim aturno(60,20) for xx=1 to 60 aturno(xx,1)="" next aturno(0,1)="SUPER JUMBO" aturno(1,1)="JUMBO FLEXO" aturno(2,1)="MARTIN-1" aturno(3,1)="MARTIN-2" aturno(4,1)="WARD" aturno(5,1)="ISOWA" aturno(6,1)="ICHIKAWA" aturno(7,1)="LANGSTON" aturno(8,1)="McKinley" aturno(9,1)="MARTIN 3" aturno(10,1)="AIFEIER" aturno(11,1)="MARTIN 4" aturno(12,1)="RAPIDEX 2" aturno(13,1)="PIEMME" aturno(14,1)="ISHIKAWA" aturno(15,1)="MITSUBISHI" aturno(16,1)="ISOWA 2" aturno(17,1)="RAPIDEX 1" aturno(18,1)="AUTOMAX 1" aturno(19,1)="AUTOMAX 2" aturno(20,1)="AUTOMAX 3" aturno(21,1)="LABEL(STOCK)" aturno(22,1)="Stock II" aturno(23,1)="LABEL(MANUAL)" aturno(24,1)="GLUING" aturno(25,1)="FOSHAN DUPLEX GLUER" aturno(26,1)="SLITTER" aturno(27,1)="STITCHING" aturno(28,1)="PALLETIZE / STACK" aturno(29,1)="V BOARDER 1" aturno(30,1)="V BOARDER 2" aturno(31,1)="V BOARDER 3" aturno(0,19)="FLEXO" aturno(1,19)="FLEXO" aturno(2,19)="FLEXO" aturno(3,19)="FLEXO" aturno(4,19)="FLEXO" aturno(5,19)="FLEXO" aturno(6,19)="FLEXO" aturno(7,19)="FLEXO" aturno(8,19)="FLEXO" aturno(9,19)="FLEXO" aturno(10,19)="FLEXO" aturno(11,19)="FLEXO" aturno(12,19)="FLEXO" aturno(13,19)="FLEXO" aturno(14,19)="FLEXO" aturno(15,19)="FLEXO" aturno(16,19)="FLEXO" aturno(17,19)="FLEXO" aturno(23,19)="LABEL" aturno(24,19)="LABEL" aturno(25,19)="LABEL" aturno(26,19)="LABEL" aturno(27,19)="LABEL" aturno(28,19)="LABEL" aturno(29,19)="OTHER" aturno(30,19)="OTHER" aturno(31,19)="OTHER" aturno(32,19)="OTHER" aturno(33,19)="OTHER" aturno(34,19)="OTHER" aturno(35,19)="OTHER" aturno(36,19)="OTHER" session("turno") = aturno end if aturno = Session("turno") '''''''''''''''''''''''''''''''''''' fin maquinas 'set Rstarget=dbsql3.execute("select * from headcount where dia month year='" & aturno(i,1) & "'") lturno1t=1 lturno2t=1 lturno3t=1 lturnotot=3 lturno1m=34 lturno2m=24 lturno3m=8 ltotmach=66 lturno1a=14 lturno2a=5 lturno3a=7 ltotaut=26 ''''''''******* PERSONAL POR TURNO Dim Rsfore0 Dim Sqlfore0 set Rsfore0=dbsql3.execute("SELECT * FROM forecast WHERE id=49") strday = Right("00" & Day(Date_ini), 2) strmonth = Right("00" & Month(Date_ini), 2) stryear = Right("00" & Year(Date_ini), 4) strday2 = Right("00" & Day(Date_end), 2) strmonth2 = Right("00" & Month(Date_end), 2) stryear2 = Right("00" & Year(Date_end), 4) fechainicial = CDbl(stryear + strmonth + strday) fechafinal = CDbl(stryear2 + strmonth2 + strday2) xday2 = Right("00" & Rsfore0("month"), 2) xmonth2 = Right("00" & Rsfore0("forecast"), 2) xyear2 = Right("00" & Rsfore0("year"), 4) xdate2=xyear2&xmonth2&xday2 '''''''''''''''''''''''''''''''''''''' If xdate>xdate2 Then response.write (ErrorNo1) else %>
<% '''''''''''calcula strday = Right("00" & Day(Date_ini), 2) strmonth = Right("00" & Month(Date_ini), 2) stryear = Right("00" & Year(Date_ini), 4) strday2 = Right("00" & Day(Date_end), 2) strmonth2 = Right("00" & Month(Date_end), 2) stryear2 = Right("00" & Year(Date_end), 4) fechainicial = CStr(stryear + strmonth + strday) fechafinal = CStr(stryear2 + strmonth2 + strday2) 'response.write(fechainicial)&" FI " ' response.write(fechafinal)&" Ff " set Rsheadc=dbsql3.execute("select * from headcount where (convert(nvarchar(4),anno)+right('0'+convert(nvarchar(2),mes),2)+right('0'+convert(nvarchar(2),dia),2))>= '" & fechainicial & "' and (convert(nvarchar(4),anno)+right('0'+convert(nvarchar(2),mes),2)+right('0'+convert(nvarchar(2),dia),2))<= '" & fechafinal & "'") response.write(day(Date_ini)&" "&month(Date_ini)&" "&year(Date_ini)) If Rsheadc.EOF And Rsheadc.BOF Then ' else lturno1t=0 lturno2t=0 lturno3t=0 lturnotot=0 Rsheadc.movefirst Do While Not Rsheadc.EOF if Rsheadc("planta")=1 or Rsheadc("planta")=3 then if Rsheadc("turno")=1 then lturno1t=lturno1t+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if if Rsheadc("turno")=2 then lturno2t=lturno2t+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if if Rsheadc("turno")=3 then lturno3t=lturno3t+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if lturnotot=lturnotot+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if Rsheadc.MoveNext Loop end if Rsheadc.close set Rsheadc=nothing if lturno1t=0 then lturno1t=1 end if if lturno2t=0 then lturno2t=1 end if if lturno3t=0 then lturno3t=1 end if if lturnotot=0 then lturnotot=1 end if %>
W. O. Details |
||||||||||||
| PROD DATE | SHIFT | MACHINE | ORDER NO | CUSTOMER | ITEM | CUSTOMER ORD | WO QTY | PROD QTY | PROD M2 | BAD QTY | WO Vs PROD (%) | |
| <%= Rsinven1("prod_day")%> | <%= Rsinven1("wrok_gubun_nm")%> | <%= Rsinven1("proc_nm")%> | <%= Rsinven1("ord_no")%> | <%= Rsinven1("cust_nm")%> | <%if posicion>0 then%><%= mid(Rsinven1("good_nm"),1,posicion-1)%> | <%else%><%= Rsinven1("good_nm")%> | <% end if%><%= Rsinven1("ord_qty")%> | <%= Rsinven1("plan_qty")%> | <%= Rsinven1("real_prod_qty")%> | <%= Rsinven1("prod_m2")%> | <%= Rsinven1("bad_qty")%> | <%= formatnumber(porclogro,1)%> % |
| <%=xturno%> | Total <%= lmaquina1%> | <%=formatnumber(lplanqtym,0)%> | <%=formatnumber(lprodqtym,0)%> | <%=formatnumber( lprodm2m,0)%> | <%=formatnumber( lbadqtym,0)%> | <%=formatnumber(lcumplimiento2,1)%> % | ||||||
| Total turno: <%= lturno1%> | <%=formatnumber(lplanqty,0)%> | <%=formatnumber(lprodqty,0)%> | <%=formatnumber(lprodm2,0)%> | <%=formatnumber(lbadqty,0)%> | <%=formatnumber(lcumplimiento,1)%> % | |||||||
| <%=xturno%> | Total <%= lmaquina1%> | <%=formatnumber(lplanqtym,0)%> | <%=formatnumber(lprodqtym,0)%> | <%=formatnumber(lprodm2m,0)%> | <%=formatnumber(lbadqtym,0)%> | <%=formatnumber(lcumplimiento2,1)%> % | ||||||
| Total turno: <%= lturno1%> | <%=formatnumber(lplanqty,0)%> | <%=formatnumber(lprodqty,0)%> | <%=formatnumber(lprodm2,0)%> | <%=formatnumber(lbadqty,0)%> | <%=formatnumber(lcumplimiento,1)%> % | |||||||
| GRAND TOTAL | <%=formatnumber(gtot1,0)%> | <%=formatnumber(gtot2,0)%> | <%=formatnumber(gtot3,0)%> | <%=formatnumber(gtot4,0)%> | <%=formatnumber(lcumplimiento3,1)%> % | |||||||
| Production Summary by Machine /Shift | |||||||||
| (<%=Date_ini%> to <%=Date_end%>) | |||||||||
| Generated: <%=time%> | 1S |
2S |
3S |
Total |
|||||
<%=lturno1t%> |
<%=lturno2t%> |
<%=lturno3t%> |
<%=lturnotot%> |
||||||
| Machine | Qty | M2 | Qty | M2 | Qty | M2 | Qty | M2 | Shift Qty |
| <%=aturno(i,1)%> | <%=aturno(i,2)%> |
<%=aturno(i,3)%> |
<%=aturno(i,4)%> |
<%=aturno(i,5)%> |
<%=aturno(i,6)%> |
<%=aturno(i,7)%> |
<%
ltotqtym=aturno(i,2)+aturno(i,4)+aturno(i,6)
ltotm2m=aturno(i,3)+aturno(i,5)+aturno(i,7)
%>
<%=ltotqtym%> |
<%=ltotm2m%> |
<%=aturno(i,18)%> |
| SubTotal | <%=formatnumber(lstotqtys1,0)%> |
<%=formatnumber(lstotm2s1,0)%> |
<%=formatnumber(lstotqtys2,0)%> |
<%=formatnumber(lstotm2s2,0)%> |
<%=formatnumber(lstotqtys3,0)%> |
<%=formatnumber(lstotm2s3,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
%>
<%=formatnumber(lstotqtyday,0)%> |
<%=formatnumber(lstotm2day,0)%> |
|
| AVG | <%=formatnumber(lstotqtys1/lturno1t,0)%> |
<%=formatnumber(lstotm2s1/lturno1t,0)%> |
<%=formatnumber(lstotqtys2/lturno2t,0)%> |
<%=formatnumber(lstotm2s2/lturno2t,0)%> |
<%=formatnumber(lstotqtys3/lturno3t,0)%> |
<%=formatnumber(lstotm2s3/lturno3t,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
lflexoqtys1=lstotqtys1
lflexom2s1=lstotm2s1
lflexoqtys2=lstotqtys2
lflexom2s2=lstotm2s2
lflexoqtys3=lstotqtys3
lflexom2s3=lstotm2s3
%>
<%=formatnumber(lstotqtyday/lturnotot,0)%> |
<%=formatnumber(lstotm2day/lturnotot,0)%> |
|
| Total VBOARD | <%=formatnumber(lstotqtys1vb,0)%> |
<%=formatnumber(lstotm2s1vb,0)%> |
<%=formatnumber(lstotqtys2vb,0)%> |
<%=formatnumber(lstotm2s2vb,0)%> |
<%=formatnumber(lstotqtys3vb,0)%> |
<%=formatnumber(lstotm2s3vb,0)%> |
<%
lstotqtydayvb=lstotqtys1vb+lstotqtys2vb+lstotqtys3vb
lstotm2dayvb=lstotm2s1vb+lstotm2s2vb+lstotm2s3vb
%>
<%=formatnumber(lstotqtydayvb,0)%> |
<%=formatnumber(lstotm2dayvb,0)%> |
|
| SubTotal | <%=formatnumber(lstotqtys1,0)%> |
<%=formatnumber(lstotm2s1,0)%> |
<%=formatnumber(lstotqtys2,0)%> |
<%=formatnumber(lstotm2s2,0)%> |
<%=formatnumber(lstotqtys3,0)%> |
<%=formatnumber(lstotm2s3,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
%>
<%=formatnumber(lstotqtyday,0)%> |
<%=formatnumber(lstotm2day,0)%> |
|
| AVG | <%=formatnumber(lstotqtys1/lturno1t,0)%> |
<%=formatnumber(lstotm2s1/lturno1t,0)%> |
<%=formatnumber(lstotqtys2/lturno2t,0)%> |
<%=formatnumber(lstotm2s2/lturno2t,0)%> |
<%=formatnumber(lstotqtys3/lturno3t,0)%> |
<%=formatnumber(lstotm2s3/lturno3t,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
lflexoqtys1=lflexoqtys1+lstotqtys1
lflexom2s1=lflexom2s1+lstotm2s1
lflexoqtys2=lflexoqtys2+lstotqtys2
lflexom2s2=lflexom2s2+lstotm2s2
lflexoqtys3=lflexoqtys3+lstotqtys3
lflexom2s3=lflexom2s3+lstotm2s3
%>
<%=formatnumber(lstotqtyday/lturnotot,0)%> |
<%=formatnumber(lstotm2day/lturnotot,0)%> |
|
| SubTotal Others | <%=formatnumber(lstotqtys1,0)%> |
<%=formatnumber(lstotm2s1,0)%> |
<%=formatnumber(lstotqtys2,0)%> |
<%=formatnumber(lstotm2s2,0)%> |
<%=formatnumber(lstotqtys3,0)%> |
<%=formatnumber(lstotm2s3,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
%>
<%=formatnumber(lstotqtyday,0)%> |
<%=formatnumber(lstotm2day,0)%> |
|
| AVG | <%=formatnumber(lstotqtys1/lturno1t,0)%> |
<%=formatnumber(lstotm2s1/lturno1t,0)%> |
<%=formatnumber(lstotqtys2/lturno2t,0)%> |
<%=formatnumber(lstotm2s2/lturno2t,0)%> |
<%=formatnumber(lstotqtys3/lturno3t,0)%> |
<%=formatnumber(lstotm2s3/lturno3t,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
lflexoqtys1=lflexoqtys1+lstotqtys1
lflexom2s1=lflexom2s1+lstotm2s1
lflexoqtys2=lflexoqtys2+lstotqtys2
lflexom2s2=lflexom2s2+lstotm2s2
lflexoqtys3=lflexoqtys3+lstotqtys3
lflexom2s3=lflexom2s3+lstotm2s3
%>
<%=formatnumber(lstotqtyday/lturnotot,0)%> |
<%=formatnumber(lstotm2day/lturnotot,0)%> |
|
| Total Shift | <%=formatnumber(ltotqtys1,0)%> |
<%=formatnumber(ltotm2s1,0)%> |
<%=formatnumber(ltotqtys2,0)%> |
<%=formatnumber(ltotm2s2,0)%> |
<%=formatnumber(ltotqtys3,0)%> |
<%=formatnumber(ltotm2s3,0)%> |
<%
ltotqtyday=ltotqtys1+ltotqtys2+ltotqtys3
ltotm2day=ltotm2s1+ltotm2s2+ltotm2s3
%>
<%=formatnumber(ltotqtyday,0)%> |
<%=formatnumber(ltotm2day,0)%> |
|
| AVG | <%=formatnumber(lflexoqtys1/lturno1t,0)%> |
<%=formatnumber(lflexom2s1/lturno1t,0)%> |
<%=formatnumber(lflexoqtys2/lturno2t,0)%> |
<%=formatnumber(lflexom2s2/lturno2t,0)%> |
<%=formatnumber(lflexoqtys3/lturno3t,0)%> |
<%=formatnumber(lflexom2s3/lturno3t,0)%> |
<%
lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3
lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3
lflexoqtytot=lflexoqtys1+lflexoqtys2+lflexoqtys3
lflexom2tot=lflexom2s1+lflexom2s2+lflexom2s3
%>
<%=formatnumber(lflexoqtytot/lturnotot,0)%> |
<%=formatnumber(lflexom2tot/lturnotot,0)%> |
|
| Production Performance by Machine /Shift | ||||||||||||||||||||
| (Workorder vs Production Qty) (<%=Date_ini%>) | ||||||||||||||||||||
1S |
2S |
3S |
Total |
|||||||||||||||||
| Machine | W/O | Prod Qty | Bad Qty | W/O vs Prod | W/O | Prod Qty | Bad Qty | W/O vs Prod | W/O | Prod Qty | Bad Qty | W/O vs Prod | W/O | Prod Qty | Bad Qty | W/O vs Prod | ||||
| <%=aturno(i,1)%> | <%=aturno(i,8)%> |
<%=aturno(i,2)%> |
<%=aturno(i,9)%> |
<%if isnumeric(aturno(i,8)) and aturno(i,8)>0 then %>
<%=formatnumber(aturno(i,10),1)%> % |
<%else%>
<%=aturno(i,11)%> |
<%=aturno(i,4)%> |
<%=aturno(i,12)%> |
<%if isnumeric(aturno(i,11)) and aturno(i,11)>0 then %>
<%=formatnumber(aturno(i,13),1)%> % |
<%else%>
<%=aturno(i,14)%> |
<%=aturno(i,6)%> |
<%=aturno(i,15)%> |
<%if isnumeric(aturno(i,14)) and aturno(i,14)>0 then %>
<%=formatnumber(aturno(i,16),1)%> % |
<%else%>
<%=ltotwo%> |
<%=ltotactual%> |
<%=ltotbad%> |
<%if ltotpercent>89.99 then
lcolor4="#3CFF3C"
end if
if ltotpercent>80 and ltotpercent<90 then
lcolor4="#F8B310"
end if
if ltotpercent<80 then
lcolor4="#FF5353"
end if
if ltotpercent=0 then
%>
<% else %> | <%=formatnumber(ltotpercent,1)%> % |
<% end if %>
|||
| Sub Total | <%=formatnumber(lstotwos1,0)%> |
<%=formatnumber(lstotacts1,0)%> |
<%=formatnumber(lstotbads1,0)%> |
<%
if isnumeric(lstotwos1) and isnumeric(lstotacts1) then
if lstotwos1>0 and lstotacts1>0 then
lstotpercents1=(lstotacts1/lstotwos1)*100
else
lstotpercents2=0
end if
else
lstotpercents1=0
end if %>
<%=formatnumber(lstotpercents1,1)%> % |
<%=formatnumber(lstotwos2,0)%> |
<%=formatnumber(lstotacts2,0)%> |
<%=formatnumber(lstotbads2,0)%> |
<%
if isnumeric(lstotwos2) and isnumeric(lstotacts2) then
if lstotwos2>0 and lstotacts2>0 then
lstotpercents2=(lstotacts2/lstotwos2)*100
else
lstotpercents2=0
end if
else
lstotpercents2=0
end if %>
<%=formatnumber(lstotpercents2,1)%> % |
<%=formatnumber(lstotwos3,0)%> |
<%=formatnumber(lstotacts3,0)%> |
<%=formatnumber(lstotbads3,0)%> |
<%
if isnumeric(lstotwos3) and isnumeric(lstotacts3) then
if lstotacts3>0 and lstotwos3>0 then
lstotpercents3=(lstotacts3/lstotwos3)*100
else
lstotpercents3=0
end if
else
lstotpercents3=0
end if %>
<%=formatnumber(lstotpercents3,1)%> % |
<%
lstotwoday=lstotwos1+lstotwos2+lstotwos3
lstotbadday=lstotbads1+lstotbads2+lstotbads3
lstotactday=lstotacts1+lstotacts2+lstotacts3
if isnumeric(lstotwoday) and isnumeric(lstotactday) and lstotactday>0 then
lstotpercentday=(lstotactday/lstotwoday)*100
else
lstotpercentday=0
end if
%>
<%=formatnumber(lstotwoday,0)%> |
<%=formatnumber(lstotactday,0)%> |
<%=formatnumber(lstotbadday,0)%> |
<%=formatnumber(lstotpercentday,1)%> % |
||||
| Total Shift | <%=formatnumber(ltotwos1,0)%> |
<%=formatnumber(ltotqtys1,0)%> |
<%=formatnumber(ltotbads1,0)%> |
<%
if isnumeric(ltotwos1) and isnumeric(ltotqtys1) then
if ltotwos1>0 and ltotqtys1>0 then
ltotpercents1=(ltotqtys1/ltotwos1)*100
else
ltotpercents2=0
end if
else
ltotpercents1=0
end if %>
<%=formatnumber(ltotpercents1,1)%> % |
<%=formatnumber(ltotwos2,0)%> |
<%=formatnumber(ltotqtys2,0)%> |
<%=formatnumber(ltotbads2,0)%> |
<%
if isnumeric(ltotwos2) and isnumeric(ltotqtys2) then
if ltotwos2>0 and ltotqtys2>0 then
ltotpercents2=(ltotqtys2/ltotwos2)*100
else
ltotpercents2=0
end if
else
ltotpercents2=0
end if %>
<%=formatnumber(ltotpercents2,1)%> % |
<%=formatnumber(ltotwos3,0)%> |
<%=formatnumber(ltotqtys3,0)%> |
<%=formatnumber(ltotbads3,0)%> |
<%
if isnumeric(ltotwos3) and isnumeric(ltotqtys3) then
if ltotqtys3>0 and ltotwos3>0 then
ltotpercents3=(ltotqtys3/ltotwos3)*100
else
ltotpercents3=0
end if
else
ltotpercents3=0
end if %>
<%=formatnumber(ltotpercents3,1)%> % |
<%
ltotwoday=ltotwos1+ltotwos2+ltotwos3
ltotbadday=ltotbads1+ltotbads2+ltotbads3
if isnumeric(ltotwoday) and isnumeric(ltotqtyday) then
if ltotwoday>0 and ltotqtyday>0 then
ltotpercentday=(ltotqtyday/ltotwoday)*100
else
ltotpercentday=0
end if
else
ltotpercentday=0
end if
%>
<%=formatnumber(ltotwoday,0)%> |
<%=formatnumber(ltotqtyday,0)%> |
<%=formatnumber(ltotbadday,0)%> |
<%=formatnumber(ltotpercentday,1)%> % |
||||
CORRUGATOR I (Plant 1) |
|||||||||||||||||
| JOB DATE | SHIFT | TIME | ORDER NO | CUSTOMER | ITEM | FLUTE | COMBINATION | LENGTH | WIDTH | WO QTY | PROD QTY | M | M2 | BAD Qty | WORK HOUR | STOP HOUR | AVG SPEED |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= Rscorr("JOBYMD")%> | <%= Rscorr("JOBJO")%> | <%=lstime&"-"&Rscorr("ETIME")%> | <%= Rscorr("SUJUNO")%> | <%= Rscorr("CUST")%> | <%= Rscorr("BOX_NM")%> | <%= Rscorr("GOL")%> | <%= Rscorr("JIJG")%> | <%= Rscorr("JANG")%> | <%= Rscorr("WPOK")%> | <%= Rscorr("QTY")%> | <%= Rscorr("PQTY")%> | <%= formatnumber((Rscorr("JANG")*Rscorr("PQTY")/1000),0)%> | <%= formatnumber((Rscorr("JANG")*Rscorr("WPOK")*Rscorr("PQTY")/1000000),0) %> | <% totalTiempo = Rscorr("dtime") hores = int((totalTiempo/3600)) aux = int(totalTiempo-(3600*hores)) minuts = int(aux/60) segons = totalTiempo-hores*3600-minuts*60 Downtime = hores&":"&right("00"&minuts,2)&":"&right("00"&segons,2) hores2 = int((Tiempo2/3600)) aux2 = int(Tiempo2-(3600*hores2)) minuts2 = int(aux2/60) segons2 = Tiempo2-hores2*3600-minuts2*60 Worktime = hores2&":"&right("00"&minuts2,2)&":"&right("00"&segons2,2) %><%= Rscorr("EQTY")%> | <%= worktime%> | <%= downtime%> | |
| <%=lshift%> Shift TOTAL | <%=formatnumber(TOTTARGET2,0)%> | <%=formatnumber(TOTPROD2,0)%> | <%=formatnumber(TOTML2,0)%> M |
<%=formatnumber(TOTM22,0)%> M2 |
<%=formatnumber(TOTbad2,0)%> | <%=worktime5%> |
<%=delaytime5%> |
<%=formatnumber(lspeedtot2,0)%> | |||||||||
| GRAND TOTAL | <%=formatnumber(TOTITEMS,0)%> | <%=FORMATNUMBER(TOTTARGET,0)%> |
<%=FORMATNUMBER(TOTPROD,0) %> |
<%=FORMATNUMBER(TOTML,0) %> M |
<%=FORMATNUMBER(TOTM2,0) %> M2 |
<%=FORMATNUMBER(TOTbad,0) %> |
<%=TOTwt %> hrs |
<%=TOTdt %> hrs |
<%=formatnumber(lspeedtot,0)%> | ||||||||
CORRUGATOR II (Nordika) |
|||||||||||||||||
| JOB DATE | SHIFT | TIME | ORDER NO | CUSTOMER | ITEM | FLUTE | COMBINATION | LENGTH | WIDTH | WO QTY | PROD QTY | M | M2 | BAD QTY | WORK HOUR | STOP HOUR | AVG SPEED |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Can't connect to Database on Nordika |
|||||||||||||||||
| <%=mid(Corr2("STIME"),1,8)%> | <%=xTurno%> | <%=lstime&"-"&lEtime%> | <%=Corr2("sujuno")%> | <%=Corr2("cust")%> | <%=Corr2("Boxname")%> | <%=Corr2("GOL")%> | <%=Corr2("BEHAP")%> | <%=Corr2("Jang")%> | <%=Corr2("WPOK")%> | <%=Corr2("QTY")%> | <%=cdbl(Corr2("PQTY"))-cdbl(Corr2("PREPQTY"))%> | <%=formatnumber(lm,0)%> | <%=formatnumber(lm2,0)%> | <%=Corr2("EQTY")%> | <%=worktime%> | <%=downtime%> | |
| <%=lshift%> Shift TOTAL | <%=formatnumber(TOTTARGET2,0)%> | <%=formatnumber(TOTPROD2,0)%> | <%=formatnumber(TOTML2,0)%> M |
<%=formatnumber(TOTM22,0)%> M2 |
<%=formatnumber(TOTbad2,0)%> | <%=worktime5%> |
<%=delaytime5%> |
<%=formatnumber(lspeedtot2,0)%> | |||||||||
| GRAND TOTAL | <%=formatnumber(TOTITEMS,0)%> | <%=formatnumber(TOTTARGET,0)%> | <%=formatnumber(TOTPROD,0)%> | <%=formatnumber(TOTML,0)%> M |
<%=formatnumber(TOTM2,0)%> M2 |
<%=formatnumber(TOTbad,0)%> |
<%=totwt2%> |
<%=totdt2%> |
<%=formatnumber(lspeedtot,0)%> | ||||||||
| Production Performance against Target by Shift | ||||||||||||||||
| (Target M2 vs Production M2) (<%=Date_ini%>) | ||||||||||||||||
1S |
2S |
3S |
Total |
|||||||||||||
| Machine | Target M2 | Prod M2 | Target vs Prod (%) | Target M2 | Prod M2 | Target vs Prod (%) | Target M2 | Prod M2 | Target vs Prod (%) | Target M2 | Prod M2 | Target vs Prod (%) | ||||
| <%=aturno(i,1)%> | <%=lm21s%> |
<%=aturno(i,3)%> |
<%
if aturno(i,3)>0 then %>
<%=formatnumber(lpers1,1)%> % |
<%
ltotwos1=ltotwos1+lm21s
lstotwos1=lstotwos1+lm21s
lstotacts1=lstotacts1+aturno(i,3)
ltotacts1=ltotacts1+aturno(i,3)
lstotbads1=lstotbads1+aturno(i,9)
else %>
<% end if %> | <%=lm22s%> |
<%=aturno(i,5)%> |
<%
if aturno(i,5)>0 then %>
<%=formatnumber(lpers2,1)%> % |
<%
ltotwos2=ltotwos2+lm22s
lstotwos2=lstotwos2+lm22s
lstotacts2=lstotacts2+aturno(i,5)
ltotacts2=ltotacts2+aturno(i,5)
lstotbads2=lstotbads2+aturno(i,12)
else %>
<% end if %> | <%=lm23s%> |
<%=aturno(i,7)%> |
<%
if aturno(i,7)>0 then %>
<%=formatnumber(lpers3,1)%> % |
<%
ltotwos3=ltotwos3+lm23s
lstotwos3=lstotwos3+lm23s
lstotacts3=lstotacts3+aturno(i,7)
ltotacts3=ltotacts3+aturno(i,7)
lstotbads3=lstotbads3+aturno(i,15)
else %>
<% end if %> <% ltotwo=lm21s+lm22s+lm23s ltotactual=aturno(i,3)+aturno(i,5)+aturno(i,7) ltotbad=aturno(i,9)+aturno(i,12)+aturno(i,15) if isnumeric(ltotwo) and isnumeric(ltotactual) and ltotwo>0 and ltotactual>0 then ltotpercent=(ltotactual/ltotwo)*100 else ltotpercent=0 end if if not isnumeric(ltotpercent) then ltotpercent=0 end if %> | <%=ltotwo%> |
<%=ltotactual%> |
<%if ltotpercent>89.99 then
lcolor4="#3CFF3C"
end if
if ltotpercent>80 and ltotpercent<90 then
lcolor4="#F8B310"
end if
if ltotpercent<80 then
lcolor4="#FF9595"
end if
if ltotpercent=0 then
%>
<% else %> | <%=formatnumber(ltotpercent,1)%> % |
<% end if %>
| Sub Total | <%=formatnumber(lstotwos1,0)%> |
<%=formatnumber(lstotacts1,0)%> |
<%
if isnumeric(lstotwos1) and isnumeric(lstotacts1) then
if lstotwos1>0 and lstotacts1>0 then
lstotpercents1=(lstotacts1/lstotwos1)*100
else
lstotpercents2=0
end if
else
lstotpercents1=0
end if
if lstotacts1>0 and lstotwos1>0 then
lsubpers1=(lstotacts1/lstotwos1)*100
else
lsubpers1=0
end if
%>
<%=formatnumber(lsubpers1,1)%> % |
<%=formatnumber(lstotwos2,0)%> |
<%=formatnumber(lstotacts2,0)%> |
<%
if isnumeric(lstotwos2) and isnumeric(lstotacts2) then
if lstotwos2>0 and lstotacts2>0 then
lstotpercents2=(lstotacts2/lstotwos2)*100
else
lstotpercents2=0
end if
else
lstotpercents2=0
end if
if lstotacts2>0 and lstotwos2>0 then
lsubpers2=(lstotacts2/lstotwos2)*100
else
lsubpers2=0
end if
%>
<%=formatnumber(lsubpers2,1)%> % |
<%=formatnumber(lstotwos3,0)%> |
<%=formatnumber(lstotacts3,0)%> |
<%
if isnumeric(lstotwos3) and isnumeric(lstotacts3) then
if lstotqtys3>0 and lstotwos3>0 then
lstotpercents3=(lstotacts3/lstotwos3)*100
else
lstotpercents3=0
end if
else
lstotpercents3=0
end if
if lstotacts3>0 and lstotwos3>0 then
lsubpers3=(lstotacts3/lstotwos3)*100
else
lsubpers3=0
end if
%>
<%=formatnumber(lsubpers3,1)%> % |
<%
lstotwoday=lstotwos1+lstotwos2+lstotwos3
lstotbadday=lstotbads1+lstotbads2+lstotbads3
lstotactday=lstotacts1+lstotacts2+lstotacts3
if isnumeric(lstotwoday) and isnumeric(lstotactday) then
lstotpercentday=(lstotactday/lstotwoday)*100
else
lstotpercentday=0
end if
%>
<%=formatnumber(lstotwoday,0)%> |
<%=formatnumber(lstotactday,0)%> |
<%=formatnumber(lstotpercentday,1)%> % |
||||
| Total Shift | <%=formatnumber(ltotwos1,0)%> |
<%=formatnumber(ltotacts1,0)%> |
<%
if isnumeric(ltotwos1) and isnumeric(ltotacts1) then
if ltotwos1>0 and ltotacts1>0 then
ltotpercents1=(ltotacts1/ltotwos1)*100
else
ltotpercents2=0
end if
else
ltotpercents1=0
end if %>
<%=formatnumber(ltotpercents1,1)%> % |
<%=formatnumber(ltotwos2,0)%> |
<%=formatnumber(ltotacts2,0)%> |
<%
if isnumeric(ltotwos2) and isnumeric(ltotacts2) then
if ltotwos2>0 and ltotacts2>0 then
ltotpercents2=(ltotacts2/ltotwos2)*100
else
ltotpercents2=0
end if
else
ltotpercents2=0
end if %>
<%=formatnumber(ltotpercents2,1)%> % |
<%=formatnumber(ltotwos3,0)%> |
<%=formatnumber(ltotacts3,0)%> |
<%
if isnumeric(ltotwos3) and isnumeric(ltotacts3) then
if ltotacts3>0 and ltotwos3>0 then
ltotpercents3=(ltotacts3/ltotwos3)*100
else
ltotpercents3=0
end if
else
ltotpercents3=0
end if %>
<%=formatnumber(ltotpercents3,1)%> % |
<%
ltotwoday=ltotwos1+ltotwos2+ltotwos3
ltotbadday=ltotbads1+ltotbads2+ltotbads3
ltotactday=ltotacts1+ltotacts2+ltotacts3
if isnumeric(ltotwoday) and isnumeric(ltotactday) then
ltotpercentday=(ltotactday/ltotwoday)*100
else
ltotpercentday=0
end if
%>
<%=formatnumber(ltotwoday,0)%> |
<%=formatnumber(ltotactday,0)%> |
<%=formatnumber(ltotpercentday,1)%> % |
||||
| Production Performance against Target by Shift | ||||||||||||||||||||
| (Target Qty vs Production Qty) (<%=Date_ini%>) | ||||||||||||||||||||
1S |
2S |
3S |
Total |
|||||||||||||||||
| Machine | Target Qty | W.O. | Prod Qty | % Target | Target Qty | W.O. | Prod Qty | % Target | Target Qty | W.O. | Prod Qty | % Target | Target Qty | W.O. | Prod Qty | % Target | ||||
| <%=aturno(i,1)%> | <%=lm21s%> |
<%=aturno(i,8)%> |
<%=aturno(i,2)%> |
<%
if aturno(i,8)>0 and lpers1>0 then %>
<%=formatnumber(lpers1,1)%> % |
<%
lstotacts1=lstotacts1+aturno(i,2)
lstotbads1=lstotbads1+aturno(i,9)
ltotacts1=ltotacts1+aturno(i,2)
ltotwos1=ltotwos1+lm21s
lstotwos1=lstotwos1+lm21s
else %>
<% end if %> | <%=lm22s%> |
<%=aturno(i,11)%> |
<%=aturno(i,4)%> |
<%
if aturno(i,11)>0 and lpers2>0 then %>
<%=formatnumber(lpers2,1)%> % |
<%
lstotacts2=lstotacts2+aturno(i,4)
ltotacts2=ltotacts2+aturno(i,4)
lstotbads2=lstotbads2+aturno(i,12)
ltotwos2=ltotwos2+lm22s
lstotwos2=lstotwos2+lm22s
else %>
<% end if %> | <%=lm23s%> |
<%=aturno(i,14)%> |
<%=aturno(i,6)%> |
<%
if aturno(i,14)>0 and lpers3>0 then %>
<%=formatnumber(lpers3,1)%> % |
<%
lstotacts3=lstotacts3+aturno(i,6)
ltotacts3=ltotacts3+aturno(i,6)
lstotbads3=lstotbads3+aturno(i,15)
ltotwos3=ltotwos3+lm23s
lstotwos3=lstotwos3+lm23s
else %>
<% end if %> <% ltotwo=lm21s+lm22s+lm23s ltotactual=aturno(i,2)+aturno(i,4)+aturno(i,6) ltotbad=aturno(i,9)+aturno(i,12)+aturno(i,15) if isnumeric(ltotwo) and isnumeric(ltotactual) and ltotwo>0 and ltotactual>0 then ltotpercent=(ltotactual/ltotwo)*100 else ltotpercent=0 end if if not isnumeric(ltotpercent) then ltotpercent=0 end if %> | <%=ltotwo%> |
<%=ltotactual%> |
<%if ltotpercent>89.99 then
lcolor4="#3CFF3C"
end if
if ltotpercent>80 and ltotpercent<90 then
lcolor4="#F8B310"
end if
if ltotpercent<80 then
lcolor4="#FF9595"
end if
if ltotpercent=0 then
%>
<% else %> | <%=formatnumber(ltotpercent,1)%> % |
<% end if %>
|
| Sub Total | <%=formatnumber(lstotwos1,0)%> |
<%=formatnumber(lstotacts1,0)%> |
<%
if isnumeric(lstotwos1) and isnumeric(lstotacts1) then
if lstotwos1>0 and lstotacts1>0 then
lstotpercents1=(lstotacts1/lstotwos1)*100
else
lstotpercents2=0
end if
else
lstotpercents1=0
end if
if lstotacts1>0 and lstotwos1>0 then
lsubpers1=(lstotacts1/lstotwos1)*100
else
lsubpers1=0
end if
%>
<%=formatnumber(lsubpers1,1)%> % |
<%=formatnumber(lstotwos2,0)%> |
<%=formatnumber(lstotacts2,0)%> |
<%
if isnumeric(lstotwos2) and isnumeric(lstotacts2) then
if lstotwos2>0 and lstotacts2>0 then
lstotpercents2=(lstotacts2/lstotwos2)*100
else
lstotpercents2=0
end if
else
lstotpercents2=0
end if
if lstotacts2>0 and lstotwos2>0 then
lsubpers2=(lstotacts2/lstotwos2)*100
else
lsubpers2=0
end if
%>
<%=formatnumber(lsubpers2,1)%> % |
<%=formatnumber(lstotwos3,0)%> |
<%=formatnumber(lstotacts3,0)%> |
<%
if isnumeric(lstotwos3) and isnumeric(lstotacts3) then
if lstotqtys3>0 and lstotwos3>0 then
lstotpercents3=(lstotacts3/lstotwos3)*100
else
lstotpercents3=0
end if
else
lstotpercents3=0
end if
if lstotacts3>0 and lstotwos3>0 then
lsubpers3=(lstotacts3/lstotwos3)*100
else
lsubpers3=0
end if
%>
<%=formatnumber(lsubpers3,1)%> % |
<%
lstotwoday=lstotwos1+lstotwos2+lstotwos3
lstotbadday=lstotbads1+lstotbads2+lstotbads3
lstotactday=lstotacts1+lstotacts2+lstotacts3
if isnumeric(lstotwoday) and isnumeric(lstotactday) then
lstotpercentday=(lstotactday/lstotwoday)*100
else
lstotpercentday=0
end if
%>
<%=formatnumber(lstotwoday,0)%> |
<%=formatnumber(lstotactday,0)%> |
<%=formatnumber(lstotpercentday,1)%> % |
||||||||
| Total Shift | <%=formatnumber(ltotwos1,0)%> |
<%=formatnumber(ltotacts1,0)%> |
<%
if isnumeric(ltotwos1) and isnumeric(ltotacts1) then
if ltotwos1>0 and ltotacts1>0 then
ltotpercents1=(ltotacts1/ltotwos1)*100
else
ltotpercents2=0
end if
else
ltotpercents1=0
end if %>
<%=formatnumber(ltotpercents1,1)%> % |
<%=formatnumber(ltotwos2,0)%> |
<%=formatnumber(ltotacts2,0)%> |
<%
if isnumeric(ltotwos2) and isnumeric(ltotacts2) then
if ltotwos2>0 and ltotacts2>0 then
ltotpercents2=(ltotacts2/ltotwos2)*100
else
ltotpercents2=0
end if
else
ltotpercents2=0
end if %>
<%=formatnumber(ltotpercents2,1)%> % |
<%=formatnumber(ltotwos3,0)%> |
<%=formatnumber(ltotacts3,0)%> |
<%
if isnumeric(ltotwos3) and isnumeric(ltotacts3) then
if ltotacts3>0 and ltotwos3>0 then
ltotpercents3=(ltotacts3/ltotwos3)*100
else
ltotpercents3=0
end if
else
ltotpercents3=0
end if %>
<%=formatnumber(ltotpercents3,1)%> % |
<%
ltotwoday=ltotwos1+ltotwos2+ltotwos3
ltotbadday=ltotbads1+ltotbads2+ltotbads3
ltotactday=ltotacts1+ltotacts2+ltotacts3
if isnumeric(ltotwoday) and isnumeric(ltotactday) then
ltotpercentday=(ltotactday/ltotwoday)*100
else
ltotpercentday=0
end if
%>
<%=formatnumber(ltotwoday,0)%> |
<%=formatnumber(ltotactday,0)%> |
<%=formatnumber(ltotpercentday,1)%> % |
||||||||
<% '********************************************* OFFSET ''''''''''''''''''''''''''''''' inicio maquinas Planta 2 Dim aturno2 aturno2 = Session("turno") If isArray(aturno2)=false Then ReDim aturno2(60,18) aturno2(0,1)="PLANETA" aturno2(1,1)="MITSUBISHI" aturno2(2,1)="MIEHLE" aturno2(3,1)="KBA" session("turno") = aturno2 end if aturno2 = Session("turno") '''''''''''''''''''''''''''''''''''' fin maquinas lturno1t=1 lturno2t=1 lturno3t=1 lturnotot=3 lturno1m=34 lturno2m=24 lturno3m=8 ltotmach=66 lturno1a=14 lturno2a=5 lturno3a=7 ltotaut=26 ''''''''******* PERSONAL POR TURNO strday = Right("00" & Day(Date_ini), 2) strmonth = Right("00" & Month(Date_ini), 2) stryear = Right("00" & Year(Date_ini), 4) strday2 = Right("00" & Day(Date_end), 2) strmonth2 = Right("00" & Month(Date_end), 2) stryear2 = Right("00" & Year(Date_end), 4) fechainicial = CDbl(stryear + strmonth + strday) fechafinal = CDbl(stryear2 + strmonth2 + strday2) '''''''''''''''''''''''''''''''''''''' '''''''''''calcula strday = Right("00" & Day(Date_ini), 2) strmonth = Right("00" & Month(Date_ini), 2) stryear = Right("00" & Year(Date_ini), 4) strday2 = Right("00" & Day(Date_end), 2) strmonth2 = Right("00" & Month(Date_end), 2) stryear2 = Right("00" & Year(Date_end), 4) fechainicial = CStr(stryear + strmonth + strday) fechafinal = CStr(stryear2 + strmonth2 + strday2) 'response.write(fechainicial)&" FI " ' response.write(fechafinal)&" Ff " set Rsheadc=dbsql3.execute("select * from headcount where (convert(nvarchar(4),anno)+right('0'+convert(nvarchar(2),mes),2)+right('0'+convert(nvarchar(2),dia),2))>= '" & fechainicial & "' and (convert(nvarchar(4),anno)+right('0'+convert(nvarchar(2),mes),2)+right('0'+convert(nvarchar(2),dia),2))<= '" & fechafinal & "'") If Rsheadc.EOF And Rsheadc.BOF Then ' else lturno1t=0 lturno2t=0 lturno3t=0 lturnotot=0 Rsheadc.movefirst Do While Not Rsheadc.EOF if Rsheadc("planta")=2 or Rsheadc("planta")=2 then if Rsheadc("turno")=1 then lturno1t=lturno1t+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if if Rsheadc("turno")=2 then lturno2t=lturno2t+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if if Rsheadc("turno")=3 then lturno3t=lturno3t+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if lturnotot=lturnotot+cdbl(Rsheadc("directo"))+cdbl(Rsheadc("indirecto")) end if Rsheadc.MoveNext Loop end if Rsheadc.close set Rsheadc=nothing if lturno1t=0 then lturno1t=1 end if if lturno2t=0 then lturno2t=1 end if if lturno3t=0 then lturno3t=1 end if if lturnotot=0 then lturnotot=1 end if %>
W. O. Details Offset |
||||||||||||
| PROD DATE | SHIFT | MACHINE | ORDER NO | CUSTOMER | ITEM | ORD QTY | PLAN_QTY | PROD QTY | BAD QTY | % Prod Vs Plan | ||
| <%= Rsinven12("prod_day")%> | <%= lturno1 %> | <%= Rsinven12("kong_nm")%> | <%= Rsinven12("ord_no")%> | <%= Rsinven12("cust_nm")%> | <%if posicion>0 then%><%= mid(Rsinven12("good_nm"),1,posicion-1)%> | <%else%><%= Rsinven12("good_nm")%> | <% end if%><%= Rsinven12("gross_sht_qty")%> | <%= Rsinven12("sht_qty")%> | <%= Rsinven12("prod_qty")%> | <%= Rsinven12("bad_qty")%> | <%= formatnumber(porclogro,1)%> % | |
| <%=xturno%> | Total <%= lmaquina1%> | <%=formatnumber(lplanqtym,0)%> | <%=formatnumber(lprodqtym,0)%> | <%=formatnumber( lbadqtym,0)%> | <%=formatnumber(lcumplimiento2,1)%> % | |||||||
| Total turno: <%= lturno1%> | <%=formatnumber(xplanqty,0)%> | <%=formatnumber(lprodqty,0)%> | <%=formatnumber(lbadqty,0)%> | <%=formatnumber(lcumplimiento,1)%> % | ||||||||
| Total turno: <%= lturno1%> | <%=formatnumber(xplanqty,0)%> | <%=formatnumber(lprodqty,0)%> | <%=formatnumber(lbadqty,0)%> | <%=formatnumber(lcumplimiento,1)%> % | ||||||||
| <%=xturno%> | Total <%= lmaquina1%> | <%=formatnumber(lplanqtym,0)%> | <%=formatnumber(lprodqtym,0)%> | <%=formatnumber( lbadqtym,0)%> | <%=formatnumber(lcumplimiento2,1)%> % | |||||||
| <%=xturno%> | Total <%= lmaquina1%> | <%=formatnumber(lplanqtym,0)%> | <%=formatnumber(lprodqtym,0)%> | <%=formatnumber(lbadqtym,0)%> | <%=formatnumber(lcumplimiento2,1)%> % | |||||||
| Total turno: <%= lturno1%> | <%=formatnumber(lplanqtym,0)%> | <%=formatnumber(lprodqty,0)%> | <%=formatnumber(lbadqty,0)%> | <%=formatnumber(lcumplimiento,1)%> % | ||||||||
| Summary by Machine /Shift (<%=Date_ini%>) Offset | |||||||||
| Generated: <%=time%> | 1S |
2S |
3S |
Total |
|||||
<%=lturno1t%> |
<%=lturno2t%> |
<%=lturno3t%> |
<%=lturnotot%> |
||||||
| Machine | Qty | Qty | Qty | Qty | Shift Qty | ||||
| <%=aturno2(i,1)%> | <%=aturno2(i,2)%> |
<%=aturno2(i,4)%> |
<%=aturno2(i,6)%> |
<% ltotqtym=aturno2(i,2)+aturno2(i,4)+aturno2(i,6) ltotm2m=aturno2(i,3)+aturno2(i,5)+aturno2(i,7) %> | <%=ltotqtym%> |
<%=aturno2(i,18)%> | |||
| SubTotal | <%=lstotqtys1%> |
<%=lstotqtys2%> |
<%=lstotqtys3%> |
<% lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3 lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3 %> | <%=lstotqtyday%> |
||||
| AVG | <%=formatnumber(lstotqtys1/lturno1t,0)%> |
<%=formatnumber(lstotqtys2/lturno2t,0)%> |
<%=formatnumber(lstotqtys3/lturno3t,0)%> |
<% lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3 lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3 lflexoqtys1=lstotqtys1 lflexom2s1=lstotm2s1 lflexoqtys2=lstotqtys2 lflexom2s2=lstotm2s2 lflexoqtys3=lstotqtys3 lflexom2s3=lstotm2s3 %> | <%=formatnumber(lstotqtyday/lturnotot,0)%> |
||||
| VBOARD | <%=lstotqtys1vb%> |
<%=lstotqtys2vb%> |
<%=lstotqtys3vb%> |
<% lstotqtydayvb=lstotqtys1vb+lstotqtys2vb+lstotqtys3vb lstotm2dayvb=lstotm2s1vb+lstotm2s2vb+lstotm2s3vb %> | <%=lstotqtydayvb%> |
||||
| SubTotal | <%=lstotqtys1%> |
<%=lstotqtys2%> |
<%=lstotqtys3%> |
<% lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3 lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3 %> | <%=lstotqtyday%> |
||||
| AVG | <%=formatnumber(lstotqtys1/lturno1t,0)%> |
<%=formatnumber(lstotqtys2/lturno2t,0)%> |
<%=formatnumber(lstotqtys3/lturno3t,0)%> |
<% lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3 lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3 lflexoqtys1=lflexoqtys1+lstotqtys1 lflexom2s1=lflexom2s1+lstotm2s1 lflexoqtys2=lflexoqtys2+lstotqtys2 lflexom2s2=lflexom2s2+lstotm2s2 lflexoqtys3=lflexoqtys3+lstotqtys3 lflexom2s3=lflexom2s3+lstotm2s3 %> | <%=formatnumber(lstotqtyday/lturnotot,0)%> |
||||
| Total Shift | <%=ltotqtys1%> |
<%=ltotqtys2%> |
<%=ltotqtys3%> |
<% ltotqtyday=ltotqtys1+ltotqtys2+ltotqtys3 ltotm2day=ltotm2s1+ltotm2s2+ltotm2s3 %> | <%=ltotqtyday%> |
||||
| AVG | <%=formatnumber(lflexoqtys1/lturno1t,0)%> |
<%=formatnumber(lflexoqtys2/lturno2t,0)%> |
<%=formatnumber(lflexoqtys3/lturno3t,0)%> |
<% lstotqtyday=lstotqtys1+lstotqtys2+lstotqtys3 lstotm2day=lstotm2s1+lstotm2s2+lstotm2s3 lflexoqtytot=lflexoqtys1+lflexoqtys2+lflexoqtys3 lflexom2tot=lflexom2s1+lflexom2s2+lflexom2s3 %> | <%=formatnumber(lflexoqtytot/lturnotot,0)%> |
||||
| % Production by Machine /Shift (Prod vs WO qty) (<%=Date_ini%>) Offset | |||||||||||||||||||
1S |
2S |
3S |
Total |
||||||||||||||||
| Machine | W/O | Prod Qty | Bad Qty | % Plan | W/O | Prod Qty | Bad Qty | % Plan | W/O | Prod Qty | Bad Qty | % Plan | W/O | Prod Qty | Bad Qty | % Plan | |||
| <%=aturno2(i,1)%> | <%=aturno2(i,8)%> |
<%=aturno2(i,2)%> |
<%=aturno2(i,9)%> |
<%
if aturno2(i,2)>0 then %>
<%=formatnumber(aturno2(i,10),1)%> % |
<%
lstotwos1=lstotwos1+aturno2(i,8)
lstotacts1=lstotacts1+aturno2(i,2)
lstotbads1=lstotbads1+aturno2(i,9)
else %>
<%end if %> | <%=aturno2(i,11)%> |
<%=aturno2(i,4)%> |
<%=aturno2(i,12)%> |
<%
if aturno2(i,4)>0 and aturno2(i,13)>0 then %>
<%=formatnumber(aturno2(i,13),1)%> % |
<% else %>
<% end if %> | <%=aturno2(i,14)%> |
<%=aturno2(i,6)%> |
<%=aturno2(i,15)%> |
<%
if aturno2(i,6)>0 and aturno2(i,16)>0 then %>
<%=formatnumber(aturno2(i,16),1)%> % |
<% else %>
<% end if ltotwo=aturno2(i,8)+aturno2(i,11)+aturno2(i,14) ltotactual=aturno2(i,2)+aturno2(i,4)+aturno2(i,6) ltotbad=aturno2(i,9)+aturno2(i,12)+aturno2(i,15) if isnumeric(ltotwo) and isnumeric(ltotactual) and ltotwo>0 and ltotactual>0 then ltotpercent=(ltotactual/ltotwo)*100 else ltotpercent=0 end if if not isnumeric(ltotpercent) then ltotpercent=0 end if ltotwos1=ltotwos1+aturno2(i,8) ltotwos2=ltotwos2+aturno2(i,11) ltotwos3=ltotwos3+aturno2(i,14) lstotwos2=lstotwos2+aturno2(i,11) lstotacts2=lstotacts2+aturno2(i,4) lstotbads2=lstotbads2+aturno2(i,12) lstotwos3=lstotwos3+aturno2(i,14) lstotacts3=lstotacts3+aturno2(i,6) lstotbads3=lstotbads3+aturno2(i,15) %> | <%=ltotwo%> |
<%=ltotactual%> |
<%=ltotbad%> |
<%if ltotpercent>89.99 then
lcolor4="#3CFF3C"
end if
if ltotpercent>80 and ltotpercent<90 then
lcolor4="#F8B310"
end if
if ltotpercent<80 then
lcolor4="#FF5353"
end if
%>
<%=formatnumber(ltotpercent,1)%> % |
| Sub Total | <%=lstotwos1%> |
<%=lstotacts1%> |
<%=lstotbads1%> |
<%
if isnumeric(lstotwos1) and isnumeric(lstotacts1) then
if lstotwos1>0 and lstotacts1>0 then
lstotpercents1=(lstotacts1/lstotwos1)*100
else
lstotpercents1=0
end if
else
lstotpercents1=0
end if %>
<%=formatnumber(lstotpercents1,1)%> % |
<%=lstotwos2%> |
<%=lstotacts2%> |
<%=lstotbads2%> |
<%
if isnumeric(lstotwos2) and isnumeric(lstotacts2) then
if lstotwos2>0 and lstotacts2>0 then
lstotpercents2=(lstotacts2/lstotwos2)*100
else
lstotpercents2=0
end if
else
lstotpercents2=0
end if %>
<%=formatnumber(lstotpercents2,1)%> % |
<%=lstotwos3%> |
<%=lstotacts3%> |
<%=lstotbads3%> |
<%
if isnumeric(lstotwos3) and isnumeric(lstotacts3) then
if lstotacts3>0 and lstotwos3>0 then
lstotpercents3=(lstotacts3/lstotwos3)*100
else
lstotpercents3=0
end if
else
lstotpercents3=0
end if %>
<%=formatnumber(lstotpercents3,1)%> % |
<%
lstotwoday=lstotwos1+lstotwos2+lstotwos3
lstotbadday=lstotbads1+lstotbads2+lstotbads3
lstotactday=lstotacts1+lstotacts2+lstotacts3
if isnumeric(lstotwoday) and isnumeric(lstotactday) and lstotactday>0 then
if lstotactday>0 and lstotwoday>0 then
lstotpercentday=(lstotactday/lstotwoday)*100
else
lstotpercentday=0
end if
else
lstotpercentday=0
end if
%>
<%=lstotwoday%> |
<%=lstotactday%> |
<%=lstotbadday%> |
<%=formatnumber(lstotpercentday,1)%> % |
|||
| Total Shift | <%=ltotwos1%> |
<%=ltotqtys1%> |
<%=ltotbads1%> |
<%
if isnumeric(ltotwos1) and isnumeric(ltotqtys1) then
if ltotwos1>0 and ltotqtys1>0 then
ltotpercents1=(ltotqtys1/ltotwos1)*100
else
ltotpercents2=0
end if
else
ltotpercents1=0
end if %>
<%=formatnumber(ltotpercents1,1)%> % |
<%=ltotwos2%> |
<%=ltotqtys2%> |
<%=ltotbads2%> |
<%
if isnumeric(ltotwos2) and isnumeric(ltotqtys2) then
if ltotwos2>0 and ltotqtys2>0 then
ltotpercents2=(ltotqtys2/ltotwos2)*100
else
ltotpercents2=0
end if
else
ltotpercents2=0
end if %>
<%=formatnumber(ltotpercents2,1)%> % |
<%=ltotwos3%> |
<%=ltotqtys3%> |
<%=ltotbads3%> |
<%
if isnumeric(ltotwos3) and isnumeric(ltotqtys3) then
if ltotqtys3>0 and ltotwos3>0 then
ltotpercents3=(ltotqtys3/ltotwos3)*100
else
ltotpercents3=0
end if
else
ltotpercents3=0
end if %>
<%=formatnumber(ltotpercents3,1)%> % |
<%
ltotwoday=ltotwos1+ltotwos2+ltotwos3
ltotbadday=ltotbads1+ltotbads2+ltotbads3
if isnumeric(ltotwoday) and isnumeric(ltotqtyday) then
if ltotwoday>0 and ltotqtyday>0 then
ltotpercentday=(ltotqtyday/ltotwoday)*100
else
ltotpercentday=0
end if
else
ltotpercentday=0
end if
%>
<%=ltotwoday%> |
<%=ltotqtyday%> |
<%=ltotbadday%> |
<%=formatnumber(ltotpercentday,1)%> % |
|||
| % Production by Machine /Shift (Prod vs Target M2) (<%=Date_ini%>) | ||||||||||||||||
1S |
2S |
3S |
Total |
|||||||||||||
| Machine | Target M2 | % Target | Prod M2 | % Target | Prod M2 | % Target | Prod M2 | % Target | ||||||||
| <%=aturno2(i,1)%> | <%=lm21s%> |
<%=formatnumber(lpers1,1)%> % |
<%=lm22s%> |
<%=aturno2(i,5)%> |
<%=formatnumber(lpers2,1)%> % |
<%=lm23s%> |
<%=aturno2(i,7)%> |
<%=formatnumber(lpers3,1)%> % |
<%
ltotwo=lm21s+lm22s+lm23s
ltotactual=aturno2(i,3)+aturno2(i,5)+aturno2(i,7)
ltotbad=aturno2(i,9)+aturno2(i,12)+aturno2(i,15)
if isnumeric(ltotwo) and isnumeric(ltotactual) and ltotwo>0 and ltotactual>0 then
ltotpercent=(ltotactual/ltotwo)*100
else
ltotpercent=0
end if
if not isnumeric(ltotpercent) then
ltotpercent=0
end if
ltotwos1=ltotwos1+lm21s
ltotwos2=ltotwos2+lm22s
ltotwos3=ltotwos3+lm23s
lstotwos1=lstotwos1+lm21s
lstotwos2=lstotwos2+lm22s
lstotwos3=lstotwos3+lm23s
lstotacts1=lstotacts1+aturno2(i,3)
lstotacts2=lstotacts2+aturno2(i,5)
lstotacts3=lstotacts3+aturno2(i,7)
ltotacts1=ltotacts1+aturno2(i,3)
ltotacts2=ltotacts2+aturno2(i,5)
ltotacts3=ltotacts3+aturno2(i,7)
lstotbads1=lstotbads1+aturno2(i,9)
lstotbads2=lstotbads2+aturno2(i,12)
lstotbads3=lstotbads3+aturno2(i,15)
%>
<%=ltotwo%> |
<%=ltotactual%> |
<%if ltotpercent>89.99 then lcolor4="#3CFF3C" end if if ltotpercent>80 and ltotpercent<90 then lcolor4="#F8B310" end if if ltotpercent<80 then lcolor4="#FF9595" end if %> | <%=formatnumber(ltotpercent,1)%> % |
||||
| Sub Total | <%=lstotwos1%> |
<% if isnumeric(lstotwos1) and isnumeric(lstotacts1) then if lstotwos1>0 and lstotacts1>0 then lstotpercents1=(lstotacts1/lstotwos1)*100 else lstotpercents2=0 end if else lstotpercents1=0 end if if lstotacts1>0 and lstotwos1>0 then lsubpers1=(lstotacts1/lstotwos1)*100 else lsubpers1=0 end if %> | <%=formatnumber(lsubpers1,1)%> % |
<%=lstotwos2%> |
<%=lstotacts2%> |
<% if isnumeric(lstotwos2) and isnumeric(lstotacts2) then if lstotwos2>0 and lstotacts2>0 then lstotpercents2=(lstotacts2/lstotwos2)*100 else lstotpercents2=0 end if else lstotpercents2=0 end if if lstotacts2>0 and lstotwos2>0 then lsubpers2=(lstotacts2/lstotwos2)*100 else lsubpers2=0 end if %> | <%=formatnumber(lsubpers2,1)%> % |
<%=lstotwos3%> |
<%=lstotacts3%> |
<% if isnumeric(lstotwos3) and isnumeric(lstotacts3) then if lstotqtys3>0 and lstotwos3>0 then lstotpercents3=(lstotacts3/lstotwos3)*100 else lstotpercents3=0 end if else lstotpercents3=0 end if if lstotacts3>0 and lstotwos3>0 then lsubpers3=(lstotacts3/lstotwos3)*100 else lsubpers3=0 end if %> | <%=formatnumber(lsubpers3,1)%> % |
<%
lstotwoday=lstotwos1+lstotwos2+lstotwos3
lstotbadday=lstotbads1+lstotbads2+lstotbads3
lstotactday=lstotacts1+lstotacts2+lstotacts3
if isnumeric(lstotwoday) and isnumeric(lstotactday) and lstotwoday>0 then
lstotpercentday=(lstotactday/lstotwoday)*100
else
lstotpercentday=0
end if
%>
<%=lstotwoday%> |
<%=lstotactday%> |
<%=formatnumber(lstotpercentday,1)%> % |
||
| Total Shift | <%=ltotwos1%> |
<% if isnumeric(ltotwos1) and isnumeric(ltotacts1) then if ltotwos1>0 and ltotacts1>0 then ltotpercents1=(ltotacts1/ltotwos1)*100 else ltotpercents2=0 end if else ltotpercents1=0 end if %> | <%=formatnumber(ltotpercents1,1)%> % |
<%=ltotwos2%> |
<%=ltotacts2%> |
<% if isnumeric(ltotwos2) and isnumeric(ltotacts2) then if ltotwos2>0 and ltotacts2>0 then ltotpercents2=(ltotacts2/ltotwos2)*100 else ltotpercents2=0 end if else ltotpercents2=0 end if %> | <%=formatnumber(ltotpercents2,1)%> % |
<%=ltotwos3%> |
<%=ltotacts3%> |
<% if isnumeric(ltotwos3) and isnumeric(ltotacts3) then if ltotacts3>0 and ltotwos3>0 then ltotpercents3=(ltotacts3/ltotwos3)*100 else ltotpercents3=0 end if else ltotpercents3=0 end if %> | <%=formatnumber(ltotpercents3,1)%> % |
<%
ltotwoday=ltotwos1+ltotwos2+ltotwos3
ltotbadday=ltotbads1+ltotbads2+ltotbads3
ltotactday=ltotacts1+ltotacts2+ltotacts3
if isnumeric(ltotwoday) and isnumeric(ltotactday) and ltotwoday>0 then
ltotpercentday=(ltotactday/ltotwoday)*100
else
ltotpercentday=0
end if
%>
<%=ltotwoday%> |
<%=ltotactday%> |
<%=formatnumber(ltotpercentday,1)%> % |
||
| % Production by Machine /Shift (Prod vs Target Qty) (<%=Date_ini%>) Offset | ||||||||||||||||||||
1S |
2S |
3S |
Total |
|||||||||||||||||
| Machine | Target Qty | W.O. | Prod Qty | % Target | Target Qty | W.O. | Prod Qty | % Target | Target Qty | W.O. | Prod Qty | % Target | Target Qty | W.O. | Prod Qty | % Target | ||||
| <%=aturno2(i,1)%> | <%=lm21s%> |
<%=aturno2(i,8)%> |
<%=aturno2(i,2)%> |
<% if lpers1>0 then %>
<%=formatnumber(lpers1,1)%> % |
<% else %>
<% end if %> | <%=lm22s%> |
<%=aturno2(i,11)%> |
<%=aturno2(i,4)%> |
<% if lpers2>0 then %>
<%=formatnumber(lpers2,1)%> % |
<% else %>
<% end if %> | <%=lm23s%> |
<%=aturno2(i,14)%> |
<%=aturno2(i,6)%> |
<% if lpers3>0 then %>
<%=formatnumber(lpers3,1)%> % |
<% else %>
<% end if ltotwo=lm21s+lm22s+lm23s ltotactual=aturno2(i,2)+aturno2(i,4)+aturno2(i,6) ltotbad=aturno2(i,9)+aturno2(i,12)+aturno2(i,15) if isnumeric(ltotwo) and isnumeric(ltotactual) and ltotwo>0 and ltotactual>0 then ltotpercent=(ltotactual/ltotwo)*100 else ltotpercent=0 end if if not isnumeric(ltotpercent) then ltotpercent=0 end if ltotwos1=ltotwos1+lm21s ltotwos2=ltotwos2+lm22s ltotwos3=ltotwos3+lm23s lstotwos1=lstotwos1+lm21s lstotwos2=lstotwos2+lm22s lstotwos3=lstotwos3+lm23s lstotacts1=lstotacts1+aturno2(i,2) lstotacts2=lstotacts2+aturno2(i,4) lstotacts3=lstotacts3+aturno2(i,6) ltotacts1=ltotacts1+aturno2(i,2) ltotacts2=ltotacts2+aturno2(i,4) ltotacts3=ltotacts3+aturno2(i,6) lstotbads1=lstotbads1+aturno2(i,9) lstotbads2=lstotbads2+aturno2(i,12) lstotbads3=lstotbads3+aturno2(i,15) %> | <%=ltotwo%> |
<%=ltotactual%> |
<%if ltotpercent>89.99 then
lcolor4="#3CFF3C"
end if
if ltotpercent>80 and ltotpercent<90 then
lcolor4="#F8B310"
end if
if ltotpercent<80 then
lcolor4="#FF9595"
end if
if ltotpercent>0 then
%>
<%=formatnumber(ltotpercent,1)%> % |
<% else %>
<% end if %> | |
| Sub Total | <%=lstotwos1%> |
<%=lstotacts1%> |
<%
if isnumeric(lstotwos1) and isnumeric(lstotacts1) then
if lstotwos1>0 and lstotacts1>0 then
lstotpercents1=(lstotacts1/lstotwos1)*100
else
lstotpercents2=0
end if
else
lstotpercents1=0
end if
if lstotacts1>0 and lstotwos1>0 then
lsubpers1=(lstotacts1/lstotwos1)*100
else
lsubpers1=0
end if
%>
<%=formatnumber(lsubpers1,1)%> % |
<%=lstotwos2%> |
<%=lstotacts2%> |
<%
if isnumeric(lstotwos2) and isnumeric(lstotacts2) then
if lstotwos2>0 and lstotacts2>0 then
lstotpercents2=(lstotacts2/lstotwos2)*100
else
lstotpercents2=0
end if
else
lstotpercents2=0
end if
if lstotacts2>0 and lstotwos2>0 then
lsubpers2=(lstotacts2/lstotwos2)*100
else
lsubpers2=0
end if
%>
<%=formatnumber(lsubpers2,1)%> % |
<%=lstotwos3%> |
<%=lstotacts3%> |
<%
if isnumeric(lstotwos3) and isnumeric(lstotacts3) then
if lstotqtys3>0 and lstotwos3>0 then
lstotpercents3=(lstotacts3/lstotwos3)*100
else
lstotpercents3=0
end if
else
lstotpercents3=0
end if
if lstotacts3>0 and lstotwos3>0 then
lsubpers3=(lstotacts3/lstotwos3)*100
else
lsubpers3=0
end if
%>
<%=formatnumber(lsubpers3,1)%> % |
<%
lstotwoday=lstotwos1+lstotwos2+lstotwos3
lstotbadday=lstotbads1+lstotbads2+lstotbads3
lstotactday=lstotacts1+lstotacts2+lstotacts3
if isnumeric(lstotwoday) and isnumeric(lstotactday) and lstotwoday>0 then
lstotpercentday=(lstotactday/lstotwoday)*100
else
lstotpercentday=0
end if
%>
<%=lstotwoday%> |
<%=lstotactday%> |
<%=formatnumber(lstotpercentday,1)%> % |
||||||||
| Total Shift | <%=ltotwos1%> |
<%=ltotacts1%> |
<%
if isnumeric(ltotwos1) and isnumeric(ltotacts1) then
if ltotwos1>0 and ltotacts1>0 then
ltotpercents1=(ltotacts1/ltotwos1)*100
else
ltotpercents2=0
end if
else
ltotpercents1=0
end if %>
<%=formatnumber(ltotpercents1,1)%> % |
<%=ltotwos2%> |
<%=ltotacts2%> |
<%
if isnumeric(ltotwos2) and isnumeric(ltotacts2) then
if ltotwos2>0 and ltotacts2>0 then
ltotpercents2=(ltotacts2/ltotwos2)*100
else
ltotpercents2=0
end if
else
ltotpercents2=0
end if %>
<%=formatnumber(ltotpercents2,1)%> % |
<%=ltotwos3%> |
<%=ltotacts3%> |
<%
if isnumeric(ltotwos3) and isnumeric(ltotacts3) then
if ltotacts3>0 and ltotwos3>0 then
ltotpercents3=(ltotacts3/ltotwos3)*100
else
ltotpercents3=0
end if
else
ltotpercents3=0
end if %>
<%=formatnumber(ltotpercents3,1)%> % |
<%
ltotwoday=ltotwos1+ltotwos2+ltotwos3
ltotbadday=ltotbads1+ltotbads2+ltotbads3
ltotactday=ltotacts1+ltotacts2+ltotacts3
if isnumeric(ltotwoday) and isnumeric(ltotactday) and ltotwoday>0 then
ltotpercentday=(ltotactday/ltotwoday)*100
else
ltotpercentday=0
end if
%>
<%=ltotwoday%> |
<%=ltotactday%> |
<%=formatnumber(ltotpercentday,1)%> % |
||||||||
<% '********************************************** FIN DE OFFSET %>