|
|
|
|
@ -73,10 +73,13 @@ public class ExamePDF {
|
|
|
|
|
ht.put( "servico_saude_tipo_externo", Boolean.TRUE );
|
|
|
|
|
ht.put( "tipo_periodico", Boolean.TRUE );
|
|
|
|
|
ht.put( "resultado_inapto_temp", Boolean.TRUE );
|
|
|
|
|
new FileOutputStream( "C:\\Chap0804.pdf" ).write( new ExamePDF().createPDF( ht ) );
|
|
|
|
|
FileOutputStream fos = new FileOutputStream( System.getProperty( "user.home" ) + "\\report.pdf" );
|
|
|
|
|
fos.write( new ExamePDF().createPDF( ht ) );
|
|
|
|
|
fos.close();
|
|
|
|
|
System.out.println( "File saved." );
|
|
|
|
|
Runtime.getRuntime().exec( "cmd.exe" );
|
|
|
|
|
// Runtime.getRuntime().exec( "notepad.exe" );
|
|
|
|
|
Process proc = Runtime.getRuntime().exec( "cmd.exe /c \"" + System.getProperty( "user.home" ) + "\\report.pdf\"" );
|
|
|
|
|
proc.waitFor();
|
|
|
|
|
new File( System.getProperty( "user.home" ) + "\\report.pdf" ).delete();
|
|
|
|
|
System.out.println( "Done." );
|
|
|
|
|
}
|
|
|
|
|
catch( Exception e )
|
|
|
|
|
@ -222,7 +225,8 @@ public class ExamePDF {
|
|
|
|
|
+ ( ( values.get( "tipo_mudanca_funcao" ) == null ) ? "" : "X" ) + "\n" );
|
|
|
|
|
texto.append( " Por altera\u00e7\u00e3o das condi\u00e7\u00f5es de trabalho ................................ "
|
|
|
|
|
+ ( ( values.get( "tipo_trabalho" ) == null ) ? "" : "X" ) + "\n" );
|
|
|
|
|
texto.append( "Outro\n" );
|
|
|
|
|
texto.append( "Outro ............................................................................................. "
|
|
|
|
|
+ ( ( values.get( "tipo_outro" ) == null ) ? "" : "X" ) + "\n" );
|
|
|
|
|
texto.append( "Especifique "
|
|
|
|
|
+ ( ( values.get( "tipo_outro" ) == null ) ? "" : values.get( "tipo_outro" ) ) + "" );
|
|
|
|
|
|
|
|
|
|
|