no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@42 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Luis Flores 22 years ago
parent cadea3ace5
commit da8ffd9a7d

@ -15,7 +15,8 @@ public class ExamePDF {
{
}
public static void main( String[] args ) {
public static void main( String[] args )
{
try
{
Hashtable ht = new Hashtable();
@ -46,6 +47,7 @@ public class ExamePDF {
// exames.data
// tipo_admissao
// tipo_periodico
// tipo_ocasional
// tipo_apos_doenca
// tipo_apos_acidente
// tipo_pedido_trabalhador
@ -71,6 +73,10 @@ public class ExamePDF {
ht.put( "tipo_periodico", Boolean.TRUE );
ht.put( "resultado_inapto_temp", Boolean.TRUE );
new FileOutputStream( "C:\\Chap0804.pdf" ).write( new ExamePDF().createPDF( ht ) );
System.out.println( "File saved." );
Runtime.getRuntime().exec( "cmd.exe /C c:\\open.bat" );
Runtime.getRuntime().exec( "notepad.exe" );
System.out.println( "Done." );
}
catch( Exception e )
{
@ -201,7 +207,8 @@ public class ExamePDF {
+ ( ( values.get( "tipo_admissao" ) == null ) ? "" : "X" ) + "\n" );
texto.append( "Peri\u00f3dico ......................................................................................... "
+ ( ( values.get( "tipo_periodico" ) == null ) ? "" : "X" ) + "\n" );
texto.append( "Ocasional\n" );
texto.append( "Ocasional ........................................................................................ "
+ ( ( values.get( "tipo_ocasional" ) == null ) ? "" : "X" ) + "\n" );
texto.append( " Ap\u00f3s doen\u00e7a .......................................................................... "
+ ( ( values.get( "tipo_apos_doenca" ) == null ) ? "" : "X" ) + "\n" );
texto.append( " Ap\u00f3s acidente ........................................................................ "

Loading…
Cancel
Save