|
|
|
|
@ -58,7 +58,7 @@ public class LembretesRemarcacaoPanel extends JPanel
|
|
|
|
|
new RemarcacoesActionFactory[]{ },
|
|
|
|
|
new RemarcacoesActionFactory[]{ new RemarcacoesActionFactory( RemarcacoesActionFactory.ESTABELECIMENTO ) } );
|
|
|
|
|
listEstabelecimentosScroll =
|
|
|
|
|
new JScrollPane( listTrabalhadoresPanel, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
|
|
|
|
|
new JScrollPane( listEstabelecimentosPanel, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
|
|
|
|
|
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
|
|
|
|
|
setLayout( new GridLayout( 1, 2 ) );
|
|
|
|
|
JPanel trabalhadoresPanel = new JPanel();
|
|
|
|
|
@ -77,7 +77,6 @@ public class LembretesRemarcacaoPanel extends JPanel
|
|
|
|
|
Lembrete lembretes[] =
|
|
|
|
|
provider.getLembretesByTipo(
|
|
|
|
|
provider.getTipoLembreteByCodigo( CODE_REMARCACOES ).getID() );
|
|
|
|
|
System.out.println( "\nLEMBRETES: " + lembretes.length ) ;
|
|
|
|
|
List<IDObject> trabalhadores = new Vector<IDObject>();
|
|
|
|
|
List<IDObject> estabelecimentos = new Vector<IDObject>();
|
|
|
|
|
for( int n = 0; n < lembretes.length; n++ )
|
|
|
|
|
@ -92,10 +91,12 @@ System.out.println( "\nLEMBRETES: " + lembretes.length ) ;
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
System.out.println( "\nTRABALHADORES: " + trabalhadores.size() ) ;
|
|
|
|
|
listTrabalhadoresPanel.showList( trabalhadores.toArray( new IDObject[ trabalhadores.size() ] ) );
|
|
|
|
|
listEstabelecimentosPanel.showList( estabelecimentos.toArray( new IDObject[ estabelecimentos.size() ] ) );
|
|
|
|
|
|
|
|
|
|
listTrabalhadoresScroll.setViewportView( listTrabalhadoresPanel );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected String criarDetalhesMarcacaoTrabalhador( Integer marcacaoID )
|
|
|
|
|
{
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|