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