|
|
|
|
@ -104,7 +104,7 @@ public class doGetListaTrabalhadoresTudo
|
|
|
|
|
java.util.Date dataUltimaConsulta = null;
|
|
|
|
|
for( int c = 0; c < listaConsultas.length; c++ )
|
|
|
|
|
{
|
|
|
|
|
if( "y".equals( listaConsultas[ c ][ 1 ] ) )
|
|
|
|
|
if( new Integer( 2 ).equals( listaConsultas[ c ][ 1 ] ) )
|
|
|
|
|
{
|
|
|
|
|
dataUltimaConsulta = ( java.util.Date ) listaConsultas[ c ][ 0 ];
|
|
|
|
|
break;
|
|
|
|
|
@ -122,10 +122,10 @@ public class doGetListaTrabalhadoresTudo
|
|
|
|
|
Integer tipo = ( Integer ) rs.get( index, 2 );
|
|
|
|
|
String nome = ( String ) rs.get( index, 1 );
|
|
|
|
|
java.util.Date data = ( java.util.Date ) rs.get( index, 3 );
|
|
|
|
|
String realizada = ( String ) rs.get( index, 4 );
|
|
|
|
|
Integer estado = ( Integer ) rs.get( index, 4 );
|
|
|
|
|
trabalhadorID = id;
|
|
|
|
|
nomeTrabalhador = nome;
|
|
|
|
|
Object marcacao[] = new Object[]{ data, realizada };
|
|
|
|
|
Object marcacao[] = new Object[]{ data, estado };
|
|
|
|
|
switch( tipo.intValue() )
|
|
|
|
|
{
|
|
|
|
|
case TIPO_MARCACAO_EXAMES:
|
|
|
|
|
@ -215,7 +215,7 @@ public class doGetListaTrabalhadoresTudo
|
|
|
|
|
proxima = -1;
|
|
|
|
|
anterior = 0;
|
|
|
|
|
}
|
|
|
|
|
estadoConsultas = anterior >= 0 && "y".equals( consultas[ anterior ][ 1 ] ) &&
|
|
|
|
|
estadoConsultas = anterior >= 0 && new Integer( 2 ).equals( consultas[ anterior ][ 1 ] ) &&
|
|
|
|
|
( proxima == -1 || ( ( ( java.util.Date )consultas[ proxima ][ 0 ] ).getTime() - todayMillis ) / 86400000 > 14 );
|
|
|
|
|
}
|
|
|
|
|
return estadoConsultas && estadoExames;
|
|
|
|
|
|