%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Session.Timeout = 120 Server.ScriptTimeout = 5000 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 ''''''''''''''''''' xday = Right("00" & Day(Date), 2) xmonth = Right("00" & Month(Date), 2) xyear = Right("00" & Year(Date), 4) xdate=xyear&xmonth&xday xtipo="VENDEDOR" Dim Rsfore0 Dim Sqlfore0 set Rsfore0=dbsql3.execute("SELECT * FROM forecast WHERE id=49") 'Set Rsfore = CurrentDb.OpenRecordset(Sqlfore) 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 Date_end2=cdate(Date_end)+1 Date_end3=cdate(Date_end)+1 turno1="065000" turno2="152000" turno3="232000" '''''''''''calcula strday = Right("00" & Day(Date_ini), 2) strmonth = Right("00" & Month(Date_ini), 2) stryear = Right("0000" & Year(Date_ini), 4) strday2 = Right("00" & Day(Date_end2), 2) strmonth2 = Right("00" & Month(Date_end2), 2) stryear2 = Right("0000" & Year(Date_end2), 4) fechainicial = CStr(stryear & strmonth & strday) fechafinal2 = CStr(stryear2 & strmonth2 & strday2) response.write(fechainicial&" ") response.write("FF "&fechafinal2) strday2 = Right("00" & Day(Date_end), 2) strmonth2 = Right("00" & Month(Date_end), 2) stryear2 = Right("00" & Year(Date_end), 4) fechafinal = CStr(stryear2 + strmonth2 + strday2) %> traer los datos
Backup CORRUGATOR II (Nordika) |
|||||||||||||||||
| Job Date | Shift ends | Time | WO | Customer | Item | Flute | Combination | Lenght | Width | TargetQTY | Prod QTY | M | M2 | Bad QTY | Work Time | Delay Time | AVG Speed |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%=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%> | |
| <%=xTurno%> Shift TOTAL | <%=formatnumber(TOTTARGET2,0)%> | <%=formatnumber(TOTPROD2,0)%> | <%=formatnumber(TOTML2,0)%> M |
<%=formatnumber(TOTM22,0)%> M2 |
<%=formatnumber(TOTbad,0)%> |
<%=formatnumber(TOTjtime2,0)%> |
<%=formatnumber(TOTdtime2,0)%> |
<%=formatnumber(lspeedtot2,0)%> | |||||||||
| 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)%> | ||||||||