From 1f09ce478d284b175b7facfddf82810d3b955ea7 Mon Sep 17 00:00:00 2001 From: Frederico Palma Date: Tue, 13 Apr 2004 21:11:46 +0000 Subject: [PATCH] no message git-svn-id: https://svn.coded.pt/svn/SIPRP@46 bb69d46d-e84e-40c8-a05a-06db0d633741 --- trunk/siprp/ficha/ExamePanel.java | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/trunk/siprp/ficha/ExamePanel.java b/trunk/siprp/ficha/ExamePanel.java index cd115ae6..7f07a295 100644 --- a/trunk/siprp/ficha/ExamePanel.java +++ b/trunk/siprp/ficha/ExamePanel.java @@ -267,32 +267,32 @@ public class ExamePanel extends JPanel public void fill( Object value ) { clear(); - Integer trabID = (Integer) value; - if( trabID == null ) - { - return; - } - try - { - Integer id = provider.getLastExameIDForTrabalhador( trabID ); - if( id == null ) - { - return; - } - MetaObject exame = provider.load( provider.EXAMES, new DBKey( id ) ); - byte pdf[] = (byte []) exame.getProperty( provider.PDF ); - if( pdf != null ) - { - FileOutputStream fos = new FileOutputStream( "C:\\teste.pdf" ); - fos.write( pdf ); - fos.close(); - } - } - catch( Exception ex ) - { - ex.printStackTrace(); - return; - } +// Integer trabID = (Integer) value; +// if( trabID == null ) +// { +// return; +// } +// try +// { +// Integer id = provider.getLastExameIDForTrabalhador( trabID ); +// if( id == null ) +// { +// return; +// } +// MetaObject exame = provider.load( provider.EXAMES, new DBKey( id ) ); +// byte pdf[] = (byte []) exame.getProperty( provider.PDF ); +// if( pdf != null ) +// { +// FileOutputStream fos = new FileOutputStream( "C:\\teste.pdf" ); +// fos.write( pdf ); +// fos.close(); +// } +// } +// catch( Exception ex ) +// { +// ex.printStackTrace(); +// return; +// } } public Object save()