|
|
|
|
@ -93,13 +93,14 @@ public class RecepcaoExamesWindow extends LeafWindow
|
|
|
|
|
{
|
|
|
|
|
setContentPane( pane );
|
|
|
|
|
examesModel = new LeafTableModel( new String[] {
|
|
|
|
|
"Empresa", "Estabelecimento", "Trabalhador", "Exame (tipo)"
|
|
|
|
|
"Empresa", "Estabelecimento", "Trabalhador", "Exame (tipo)", "Exame"
|
|
|
|
|
} );
|
|
|
|
|
examesTable = new BaseTable( examesModel );
|
|
|
|
|
examesTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
|
|
|
|
|
examesTable.setNonResizableNorReordable();
|
|
|
|
|
// examesTable.setNonResizableNorReordable();
|
|
|
|
|
examesTable.getTableHeader().setResizingAllowed( true );
|
|
|
|
|
examesTable.getTableHeader().setReorderingAllowed( false );
|
|
|
|
|
examesScroll = new JScrollPane( examesTable, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
|
|
|
|
|
examesTable.setAutoCreateRowSorter(true);
|
|
|
|
|
|
|
|
|
|
OrderedMap<String> orderOptions = new OrderedMap<String>();
|
|
|
|
|
orderOptions.putLast( EMPRESA, EMPRESA );
|
|
|
|
|
@ -164,9 +165,9 @@ public class RecepcaoExamesWindow extends LeafWindow
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
orderedMap.putLast( current, empresa, estabelecimento, trabalhador, current);
|
|
|
|
|
orderedMap.putLast( current, empresa, estabelecimento, trabalhador, current.getToPrtTiposElementosProtocolo().getToPrtGruposProtocolo(), current );
|
|
|
|
|
}
|
|
|
|
|
orderedMap.order( new int[]{ 0, 1, 2 } );
|
|
|
|
|
orderedMap.order( new int[]{ 0, 1, 2, 3, 4 } );
|
|
|
|
|
examesModel.setValues( orderedMap );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -179,10 +180,10 @@ public class RecepcaoExamesWindow extends LeafWindow
|
|
|
|
|
{
|
|
|
|
|
if(selected.toString().equals( TRABALHADOR ))
|
|
|
|
|
{
|
|
|
|
|
examesModel.order( 2, 3 );
|
|
|
|
|
examesModel.order( 2, 3, 4 );
|
|
|
|
|
}else
|
|
|
|
|
{
|
|
|
|
|
examesModel.order( 0, 1, 2, 3 );
|
|
|
|
|
examesModel.order( 0, 1, 2, 3, 4 );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|