no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@333 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 19 years ago
parent c4857e60d7
commit 6debd6dd12

@ -182,7 +182,6 @@ public class LocaisRealizacaoDataProvider
null, null,
null ); null );
Virtual2DArray array = EXECUTER.executeQuery( select ); Virtual2DArray array = EXECUTER.executeQuery( select );
System.out.println( select + "\n\n\n" + array.columnLength() );
for( int n = 0; n < array.columnLength(); n++ ) for( int n = 0; n < array.columnLength(); n++ )
{ {
Integer id = ( Integer ) array.get( n, 0 ); Integer id = ( Integer ) array.get( n, 0 );
@ -192,7 +191,6 @@ System.out.println( select + "\n\n\n" + array.columnLength() );
new Assignment( "prestador_id", prestadorID ) }, new Assignment( "prestador_id", prestadorID ) },
new Field( "id" ).isEqual( id ) ); new Field( "id" ).isEqual( id ) );
EXECUTER.executeQuery( update ); EXECUTER.executeQuery( update );
System.out.println( update );
} }
} }
} }

@ -494,7 +494,27 @@ public class LocaisRealizacaoWindow extends JFrame
protected void faxECDs() protected void faxECDs()
{ {
Date data = dataPanel.getDate();
int selectedEstabelecimento = estabelecimentosTable.getSelectedRow();
if( data == null || selectedEstabelecimento == -1 )
{
return;
}
Integer estabelecimentoID = ( ( ColumnizedMappable ) estabelecimentosModel.getRowAt( selectedEstabelecimento ) ).getID();
try
{
Integer prestadorID = ( ( IDObject ) prestadoresECDsCombo.getSelectedItem() ).getID();
if( PRESTADOR_ID_SIPRP.equals( prestadorID ) )
{
prestadorID = null;
}
provider.setPrestadorIDForEstabelecimentoAndTipo( estabelecimentoID,
Marcacao.TIPO_MARCACAO_TRABALHADOR_EXAMES, data, prestadorID );
}
catch( Exception ex )
{
DialogException.showExceptionMessage( ex, "Erro a atribuir", true );
}
} }
protected void enviarConsultas() protected void enviarConsultas()

Loading…
Cancel
Save