|
|
|
|
|
 |
|
 |
| |
|
Actualmente estamos
buscando proveedores de: |
|
|
|
<%hoy=datepart("m",date)&"/"&datepart("d",date)&"/"&datepart("yyyy",date)
sql="select top 3 * from ciec_compradores_requerimiento where (status=1 or status=5) and fechacompra>='"&hoy&"' order by id desc"
registros.open sql,conexion,1%>
<%if not registros.bof and not registros.eof then
do while registros.EOF=False
session("codreq")=registros("id")%>
<%sql="select count(id) as total from ciec_compradores_reqdetalle where id_req='"®istros("id")&"'"
registros2.open sql,conexion,1
total_var=registros2("total")
registros2.close
randomize
j=int((rnd*total_var)+1)
sql="select * from ciec_compradores_reqdetalle where id_req='"®istros("id")&"'"
registros2.open sql,conexion,1
if not registros2.bof and not registros2.eof then
i=0
sw=0
do while registros2.EOF=False
i=i+1
if i=j then
status=DateDiff("d", date, registros("fechacompra"))
status_hora=DateDiff("h", date, registros("fechacompra"))
ahora=Now()
hora=24 - hour(ahora)
sql = "select count(*) as total from ciec_compradores_cotizacion where nroreq='"®istros("nro")&"' and status=0"
registros3.open sql,conexion,1%>
" title="Vea el detalle de este requerimiento">• <%=registros2("requerimiento")%><%'status=((registros("fechacompra")-1)-date)*24%>
(<%if status_hora<=24 then%><%=hora%> h<%else%><%=status%> d<%end if%><%if registros3("total")=0 then%><%else%> /ac<%end if%>) (<%=total_var%> rubro<%if total_var>1 then%>s<%end if%>)
<%registros3.close
sw=sw+1
end if
if sw=2 then
exit do
end if
registros2.movenext
loop
end if
registros2.close%>
<%registros.movenext
loop
else%>
• No se han formulado requerimientos
<%end if%>
<%registros.close%>
|
|
|
| |
|
|
|
» Ver todos los requerimientos |
 |
|
 |
|
|
|
|
|
|
|
|
|
|