git-svn-id: https://svn.coded.pt/svn/SIPRP@722 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Tiago Simão 18 years ago
parent 535c9f6838
commit 80ec5e0442

@ -4,6 +4,13 @@ import siprp.database.cayenne.objects.auto._PrtTiposElementosProtocolo;
public class PrtTiposElementosProtocolo extends _PrtTiposElementosProtocolo { public class PrtTiposElementosProtocolo extends _PrtTiposElementosProtocolo {
private static final long serialVersionUID = 1L;
@Override
public String toString()
{
return getDescricao();
}
} }

@ -93,13 +93,14 @@ public class RecepcaoExamesWindow extends LeafWindow
{ {
setContentPane( pane ); setContentPane( pane );
examesModel = new LeafTableModel( new String[] { examesModel = new LeafTableModel( new String[] {
"Empresa", "Estabelecimento", "Trabalhador", "Exame (tipo)" "Empresa", "Estabelecimento", "Trabalhador", "Exame (tipo)", "Exame"
} ); } );
examesTable = new BaseTable( examesModel ); examesTable = new BaseTable( examesModel );
examesTable.setSelectionMode( ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); 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 ); examesScroll = new JScrollPane( examesTable, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER );
examesTable.setAutoCreateRowSorter(true);
OrderedMap<String> orderOptions = new OrderedMap<String>(); OrderedMap<String> orderOptions = new OrderedMap<String>();
orderOptions.putLast( EMPRESA, EMPRESA ); 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 ); examesModel.setValues( orderedMap );
} }
} }
@ -179,10 +180,10 @@ public class RecepcaoExamesWindow extends LeafWindow
{ {
if(selected.toString().equals( TRABALHADOR )) if(selected.toString().equals( TRABALHADOR ))
{ {
examesModel.order( 2, 3 ); examesModel.order( 2, 3, 4 );
}else }else
{ {
examesModel.order( 0, 1, 2, 3 ); examesModel.order( 0, 1, 2, 3, 4 );
} }
} }
} }

@ -14,10 +14,10 @@ import javax.mail.internet.MimeMessage;
public class MailSender public class MailSender
{ {
protected String from = ""; protected String from = "siprp@siprp.pt";
protected String mailServer = "mail2.evolute.pt"; protected String mailServer = "mail2.evolute.pt";
protected String userName = ""; protected String userName = "auto@siprp.pt";
protected String password = ""; protected String password = "sdfoyias78e";
public MailSender() public MailSender()
{ {

Loading…
Cancel
Save