|
|
|
@ -304,17 +304,20 @@ public class ExamePanel extends JPanel
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Integer marcacaoID = provider.getMarcacaoIDByTrabalhador( trabalhadorID );
|
|
|
|
Integer marcacaoID = provider.getMarcacaoIDByTrabalhador( trabalhadorID );
|
|
|
|
|
|
|
|
|
|
|
|
if( marcacaoID == null )
|
|
|
|
if( marcacaoID != null )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
marcacao = ( MarcacaoTrabalhadorData ) JDO.load( MarcacaoTrabalhadorData.class, marcacaoID );
|
|
|
|
|
|
|
|
proximoExamePanel.setDate( (Date) marcacao.get( Marcacao.DATA ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
Object dadosMarcacao[] = provider.getDadosUltimaMarcacao( trabalhadorID );
|
|
|
|
|
|
|
|
if( dadosMarcacao != null )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Object dadosMarcacao[] = provider.getDadosUltimaMarcacao( trabalhadorID );
|
|
|
|
|
|
|
|
dataExamePanel.setDate( ( Date ) dadosMarcacao[ 0 ] );
|
|
|
|
dataExamePanel.setDate( ( Date ) dadosMarcacao[ 0 ] );
|
|
|
|
Integer tipo = ( Integer ) dadosMarcacao[ 1 ];
|
|
|
|
Integer tipo = ( Integer ) dadosMarcacao[ 1 ];
|
|
|
|
int tipoValue = tipo != null ? tipo.intValue() : 0;
|
|
|
|
int tipoValue = tipo != null ? tipo.intValue() : 0;
|
|
|
|
tipoGroup.setIntSelected( tipoValue > 0 ? tipoValue - 1 : 0 );
|
|
|
|
tipoGroup.setIntSelected( tipoValue > 0 ? tipoValue - 1 : 0 );
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
marcacao = ( MarcacaoTrabalhadorData ) JDO.load( MarcacaoTrabalhadorData.class, marcacaoID );
|
|
|
|
|
|
|
|
proximoExamePanel.setDate( (Date) marcacao.get( Marcacao.DATA ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch( Exception ex )
|
|
|
|
catch( Exception ex )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|