|
|
|
|
@ -3384,14 +3384,14 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
|
|
|
|
|
private void fillMedico( AnaliseAcidente a )
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
PanelGroup pg = null;
|
|
|
|
|
StaticText st = null;
|
|
|
|
|
HtmlPanelGrid grd = null;
|
|
|
|
|
ImageComponent img = null;
|
|
|
|
|
//LESAO :
|
|
|
|
|
|
|
|
|
|
if(a.getLesao_cabeca().matches("y"))
|
|
|
|
|
// if ( a.getLesao_cabeca().matches( "y" ) )
|
|
|
|
|
if ( "y".equals( a.getLesao_cabeca() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId( "stLesaoCabeca" );
|
|
|
|
|
@ -3400,7 +3400,8 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
gridLesao.getChildren().add( st );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getLesao_pescoco().matches("y"))
|
|
|
|
|
// if(a.getLesao_pescoco().matches("y"))
|
|
|
|
|
if ( "y".equals( a.getLesao_pescoco() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId( "stLesaoPescoco" );
|
|
|
|
|
@ -3409,7 +3410,8 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
gridLesao.getChildren().add( st );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getLesao_tronco().matches("y"))
|
|
|
|
|
// if ( a.getLesao_tronco().matches( "y" ) )
|
|
|
|
|
if ( "y".equals( a.getLesao_tronco() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId( "stLesaoTronco" );
|
|
|
|
|
@ -3422,7 +3424,8 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
grd.setId("gridLesaoMembros");
|
|
|
|
|
grd.setColumns(2);
|
|
|
|
|
grd.setColumnClasses("gridColLeft");
|
|
|
|
|
if(a.getLesao_membro_sup_dir().matches("y"))
|
|
|
|
|
// if(a.getLesao_membro_sup_dir().matches("y"))
|
|
|
|
|
if ( "y".equals( a.getLesao_membro_sup_dir() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stLesaoMembroSupDir");
|
|
|
|
|
@ -3442,7 +3445,8 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getLesao_membro_sup_esq().matches("y"))
|
|
|
|
|
// if(a.getLesao_membro_sup_esq().matches("y"))
|
|
|
|
|
if ( "y".equals( a.getLesao_membro_sup_esq() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stLesaoMembroSupEsq");
|
|
|
|
|
@ -3462,16 +3466,15 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getLesao_membro_inf_dir().matches("y"))
|
|
|
|
|
// if ( a.getLesao_membro_inf_dir().matches( "y" ) )
|
|
|
|
|
if ( "y".equals( a.getLesao_membro_inf_dir() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId( "stLesaoMembroInfDir" );
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
st.setText( "Membro Inferior Direito" );
|
|
|
|
|
grd.getChildren().add( st );
|
|
|
|
|
if(a.getEspecif3() != null)
|
|
|
|
|
{
|
|
|
|
|
if(a.getEspecif3().trim().length() > 0)
|
|
|
|
|
if ( a.getEspecif3() != null && a.getEspecif3().trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stEspecif3");
|
|
|
|
|
@ -3481,9 +3484,8 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getLesao_membro_inf_esq().matches("y"))
|
|
|
|
|
// if ( a.getLesao_membro_inf_esq().matches( "y" ) )
|
|
|
|
|
if ( "y".equals( a.getLesao_membro_inf_esq() ) )
|
|
|
|
|
{
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId( "stLesaoMembroInfEsq" );
|
|
|
|
|
@ -3507,7 +3509,7 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
gridLesao.getChildren().add( grd );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getTipo_lesao().trim().length() > 0 )
|
|
|
|
|
if ( a.getTipo_lesao() != null && a.getTipo_lesao().trim().length() > 0 )
|
|
|
|
|
{
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
|
pg.setId( "pgTipoLesao" );
|
|
|
|
|
@ -3538,7 +3540,9 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
st.setStyle("font-weight: bold");
|
|
|
|
|
st.setText("Tipo de incapacidade: ");
|
|
|
|
|
if(a.getTipo_incapacidade().matches("t"))
|
|
|
|
|
|
|
|
|
|
// if ( a.getTipo_incapacidade().matches( "t" ) )
|
|
|
|
|
if ( "t".equals( a.getTipo_incapacidade() ) )
|
|
|
|
|
{
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
@ -3555,10 +3559,11 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stCoefIncapacidade");
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
st.setText(a.getCoef_incapacidade().toString() + "%");
|
|
|
|
|
st.setText( a.getCoef_incapacidade() == null ? "" : a.getCoef_incapacidade().toString() + "%" );
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
else if(a.getTipo_incapacidade().matches("p"))
|
|
|
|
|
// else if(a.getTipo_incapacidade().matches("p"))
|
|
|
|
|
else if ( "p".equals( a.getTipo_incapacidade() ) )
|
|
|
|
|
{
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
@ -3575,14 +3580,13 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stCoefIncapacidade");
|
|
|
|
|
st.setEscape( false );
|
|
|
|
|
st.setText(a.getCoef_incapacidade().toString() + "%");
|
|
|
|
|
st.setText( a.getCoef_incapacidade() == null ? "" : a.getCoef_incapacidade().toString() + "%" );
|
|
|
|
|
pg.getChildren().add( st );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( pg.getChildren().size() > 0 )
|
|
|
|
|
{
|
|
|
|
|
gridIncapacidade.getChildren().add( pg );
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pg = new PanelGroup();
|
|
|
|
|
@ -3598,7 +3602,6 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stDataAvalIncapacidade");
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
//st.setText(a.getData_aval_incapacidade());
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_aval_incapacidade().getTime());
|
|
|
|
|
@ -3623,7 +3626,6 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stDataRevIncapacidade");
|
|
|
|
|
st.setEscape(false);
|
|
|
|
|
//st.setText(a.getData_rev_incapacidade());
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_rev_incapacidade().getTime());
|
|
|
|
|
|