Para mas información acerca del estilo de fila en vistas haga click aqui
Doors 7
var now = new Date();
if (row["ESTADO"] == "Activa") { if (row["CREATED"]) { var dif = (now.getTime() - row["CREATED"].getTime()) / (60*60*1000); if (dif > 48) { style = "color: white; background-color: red;"; } } } if (row["ESTADO"] == "En revision") { if (row["CREATED"]) { var dif = (now.getTime() - row["CREATED"].getTime()) / (24*60*60*1000); if (dif >= 7) { style = "color: white; background-color: red;"; } } }
Doors 5
Vencida = False If IsDate(Row.getAttribute("vencimiento") & "") Then If CDate(Row.getAttribute("vencimiento") & "") < (Now - 1) Then Vencida = True End If End If If Row.getAttribute("estado") = "PRESTADO" Then If Vencida Then style = "color: #ff0000" Else style = "font-weight: bold;" End If ElseIf Row.getAttribute("estado") = "FALTA" Then style = "color: #aaaaaa;" End If
No hay comentarios:
Publicar un comentario