@ -257,7 +257,23 @@ public class EstatisticasProcesso extends AbstractPageBean
this . formacaoSHST_none = formacaoSHST_none ;
}
private RadioButton participacaoSeguro_true = new RadioButton ( ) ;
public RadioButton getParticipacaoSeguro_true ( ) {
return participacaoSeguro_true ;
}
public void setParticipacaoSeguro_true ( RadioButton participacaoSeguro_true ) {
this . participacaoSeguro_true = participacaoSeguro_true ;
}
private RadioButton participacaoSeguro_none = new RadioButton ( ) ;
public RadioButton getParticipacaoSeguro_none ( )
{
return participacaoSeguro_none ;
}
public void setParticipacaoSeguro_none ( RadioButton participacaoSeguro_none )
{
this . participacaoSeguro_none = participacaoSeguro_none ;
}
private RadioButton postoAcidentado_true = new RadioButton ( ) ;
private RadioButton postoAcidentado_false = new RadioButton ( ) ;
@ -347,6 +363,8 @@ public class EstatisticasProcesso extends AbstractPageBean
}
formacaoSHST_none . setSelected ( true ) ;
participacaoSeguro_none . setSelected ( true ) ;
}
protected SessionBean1 getSessionBean1 ( )
@ -598,6 +616,7 @@ public class EstatisticasProcesso extends AbstractPageBean
shst = null ;
}
}
Boolean participadoSeguro = ( participacaoSeguro_true . getSelected ( ) ! = null & & ( Boolean ) participacaoSeguro_true . getSelected ( ) ) ? Boolean . TRUE : null ;
Boolean postoAcidentado = null ;
if ( postoAcidentado_true . getSelected ( ) ! = null | | postoAcidentado_false . getSelected ( ) ! = null )
{
@ -622,6 +641,7 @@ public class EstatisticasProcesso extends AbstractPageBean
searchProperties . put ( EstatisticasConstants . KEY_CAUSAS_ACIDENTE , causas ) ;
searchProperties . put ( EstatisticasConstants . KEY_TURNO_TRABALHO , turno ) ;
searchProperties . put ( EstatisticasConstants . KEY_FORMACAO_SHST , shst ) ;
searchProperties . put ( EstatisticasConstants . KEY_PARTICIPADO_SEGURO , participadoSeguro ) ;
searchProperties . put ( EstatisticasConstants . KEY_POSTO_ACIDENTADO , postoAcidentado ) ;
searchProperties . put ( EstatisticasConstants . KEY_OUTROS_ACIDENTADOS , outrosAcidentados ) ;
@ -799,6 +819,7 @@ public class EstatisticasProcesso extends AbstractPageBean
Integer causas = ( Integer ) searchProperties . get ( EstatisticasConstants . KEY_CAUSAS_ACIDENTE ) ;
String turno = ( String ) searchProperties . get ( EstatisticasConstants . KEY_TURNO_TRABALHO ) ;
Boolean formacao_shst = ( Boolean ) searchProperties . get ( EstatisticasConstants . KEY_FORMACAO_SHST ) ;
Boolean participado_seguro = ( Boolean ) searchProperties . get ( EstatisticasConstants . KEY_PARTICIPADO_SEGURO ) ;
Boolean postoAcidentado = ( Boolean ) searchProperties . get ( EstatisticasConstants . KEY_POSTO_ACIDENTADO ) ;
Boolean outrosAcidentados = ( Boolean ) searchProperties . get ( EstatisticasConstants . KEY_OUTROS_ACIDENTADOS ) ;
@ -937,6 +958,20 @@ public class EstatisticasProcesso extends AbstractPageBean
fshst = formacao_shst ? "Sim" : "Não" ;
}
columnValue . setCellValue ( fshst ) ;
row + + ;
keyName = EstatisticasConstants . KEY_NAMES [ row ] ;
currentRow = getRow ( sheet , row ) ;
columnLabel = getCell ( currentRow , 0 ) ;
columnLabel . setCellValue ( keyName ) ;
columnValue = getCell ( currentRow , 1 ) ;
String fparticiapdo = "" ;
if ( participado_seguro ! = null )
{
fparticiapdo = participado_seguro ? "Sim" : "Não" ;
}
columnValue . setCellValue ( fparticiapdo ) ;
row + + ;
row + + ;
return row + + ;