no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@46 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 22 years ago
parent fca0ffcc82
commit 1f09ce478d

@ -267,32 +267,32 @@ public class ExamePanel extends JPanel
public void fill( Object value ) public void fill( Object value )
{ {
clear(); clear();
Integer trabID = (Integer) value; // Integer trabID = (Integer) value;
if( trabID == null ) // if( trabID == null )
{ // {
return; // return;
} // }
try // try
{ // {
Integer id = provider.getLastExameIDForTrabalhador( trabID ); // Integer id = provider.getLastExameIDForTrabalhador( trabID );
if( id == null ) // if( id == null )
{ // {
return; // return;
} // }
MetaObject exame = provider.load( provider.EXAMES, new DBKey( id ) ); // MetaObject exame = provider.load( provider.EXAMES, new DBKey( id ) );
byte pdf[] = (byte []) exame.getProperty( provider.PDF ); // byte pdf[] = (byte []) exame.getProperty( provider.PDF );
if( pdf != null ) // if( pdf != null )
{ // {
FileOutputStream fos = new FileOutputStream( "C:\\teste.pdf" ); // FileOutputStream fos = new FileOutputStream( "C:\\teste.pdf" );
fos.write( pdf ); // fos.write( pdf );
fos.close(); // fos.close();
} // }
} // }
catch( Exception ex ) // catch( Exception ex )
{ // {
ex.printStackTrace(); // ex.printStackTrace();
return; // return;
} // }
} }
public Object save() public Object save()

Loading…
Cancel
Save