|  |  | @ -3342,87 +3342,90 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean { | 
			
		
	
		
		
			
				
					
					|  |  |  |         }         |  |  |  |         }         | 
			
		
	
		
		
			
				
					
					|  |  |  |     }     |  |  |  |     }     | 
			
		
	
		
		
			
				
					
					|  |  |  |      |  |  |  |      | 
			
		
	
		
		
			
				
					
					|  |  |  |     private void fillMedidasRh(AnaliseAcidente a) |  |  |  |     private void fillMedidasRh( AnaliseAcidente a ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     { |  |  |  |     { | 
			
		
	
		
		
			
				
					
					|  |  |  |         try |  |  |  |         try | 
			
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             AnalisesDataProvider adp = AnalisesDataProvider.getInstance(); |  |  |  |             AnalisesDataProvider adp = AnalisesDataProvider.getInstance(); | 
			
		
	
		
		
			
				
					
					|  |  |  |              |  |  |  |              | 
			
		
	
		
		
			
				
					
					|  |  |  |             ArrayList list = adp.getMedidasByAnalise(a.getId()); |  |  |  |             ArrayList list = adp.getMedidasByAnalise( a.getId() ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             ListIterator iter = list.listIterator(); |  |  |  |             ListIterator iter = list.listIterator(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             int seq = 1; |  |  |  |             int seq = 1; | 
			
		
	
		
		
			
				
					
					|  |  |  |             while(iter.hasNext()) |  |  |  |             while ( iter.hasNext() ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             { |  |  |  |             { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 Medida m = (Medida) iter.next(); |  |  |  |                 Medida m = ( Medida ) iter.next(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 HtmlPanelGrid grd = new HtmlPanelGrid(); |  |  |  |                 HtmlPanelGrid grd = new HtmlPanelGrid(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 grd.setId("grdMedidaView" + seq); |  |  |  |                 grd.setId( "grdMedidaView" + seq ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 grd.setColumns(2); |  |  |  |                 grd.setColumns( 2 ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 grd.setColumnClasses("gridColLeft5, gridColLeft95"); |  |  |  |                 grd.setColumnClasses( "gridColLeft5, gridColLeft95" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 grd.setStyle("width: 100%");                   |  |  |  |                 grd.setStyle( "width: 100%" ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                  |  |  |  |                  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 StaticText st = new StaticText(); |  |  |  |                 StaticText st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setId("stNrMedidaView" + seq); |  |  |  |                 st.setId( "stNrMedidaView" + seq ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setText(seq + " ."); |  |  |  |                 st.setText( seq + " ." ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setStyle("width: 24px");         |  |  |  |                 st.setStyle( "width: 24px" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 grd.getChildren().add(st); |  |  |  |                 grd.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                  |  |  |  |                  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 st = new StaticText(); |  |  |  |                 st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setId("stMedidaView" + seq); |  |  |  |                 st.setId( "stMedidaView" + seq ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setText(m.getMedida()); |  |  |  |                 st.setText( m.getMedida() ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 //st.setStyle("width: 24px");        
 |  |  |  |                 //st.setStyle("width: 24px");        
 | 
			
		
	
		
		
			
				
					
					|  |  |  |                 grd.getChildren().add(st);   |  |  |  |                 grd.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                  |  |  |  |                  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 gridMedidasView.getChildren().add(grd); |  |  |  |                 gridMedidasView.getChildren().add( grd ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 seq++; |  |  |  |                 seq++; | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         catch(Exception ex) |  |  |  |         catch ( Exception ex ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             ErrorLogger.logException( ex ); |  |  |  |             ErrorLogger.logException( ex ); | 
			
		
	
		
		
			
				
					
					|  |  |  |         }                 |  |  |  |         }                 | 
			
		
	
		
		
			
				
					
					|  |  |  |     }     |  |  |  |     }     | 
			
		
	
		
		
			
				
					
					|  |  |  |      |  |  |  |      | 
			
		
	
		
		
			
				
					
					|  |  |  |     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" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setText("Cabeça"); |  |  |  |             st.setText( "Cabeça" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             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" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setText("Pescoço"); |  |  |  |             st.setText( "Pescoço" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             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" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setText("Tronco"); |  |  |  |             st.setText( "Tronco" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             gridLesao.getChildren().add(st);             |  |  |  |             gridLesao.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         }         |  |  |  |         }         | 
			
		
	
		
		
			
				
					
					|  |  |  |          |  |  |  |          | 
			
		
	
		
		
			
				
					
					|  |  |  |         grd = new HtmlPanelGrid(); |  |  |  |         grd = new HtmlPanelGrid(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         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,53 +3484,52 @@ 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" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setText("Membro Inferior Esquerdo"); |  |  |  |             st.setText( "Membro Inferior Esquerdo" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             grd.getChildren().add(st); |  |  |  |             grd.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             if(a.getEspecif4() != null) |  |  |  |             if ( a.getEspecif4() != null ) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             { |  |  |  |             { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 if(a.getEspecif4().trim().length() > 0) |  |  |  |                 if ( a.getEspecif4().trim().length() > 0 ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 { |  |  |  |                 { | 
			
		
	
		
		
			
				
					
					|  |  |  |                     st = new StaticText(); |  |  |  |                     st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |                     st.setId("stEspecif4"); |  |  |  |                     st.setId( "stEspecif4" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     st.setEscape(false); |  |  |  |                     st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     st.setText(a.getEspecif4()); |  |  |  |                     st.setText( a.getEspecif4() ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                     grd.getChildren().add(st);                                             |  |  |  |                     grd.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 } |  |  |  |                 } | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(grd.getChildren().size() > 0) |  |  |  |         if ( grd.getChildren().size() > 0 ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             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" ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             st = new StaticText(); |  |  |  |             st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setId("stTipoLesaoLbl"); |  |  |  |             st.setId( "stTipoLesaoLbl" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setText("Tipo de lesão:   "); |  |  |  |             st.setText( "Tipo de lesão:   " ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             pg.getChildren().add(st); |  |  |  |             pg.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             st = new StaticText(); |  |  |  |             st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setId("stTipoLesao"); |  |  |  |             st.setId( "stTipoLesao" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             st.setText(a.getTipo_lesao()); |  |  |  |             st.setText( a.getTipo_lesao() ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             pg.getChildren().add(st);    |  |  |  |             pg.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |             gridLesao.getChildren().add(pg); |  |  |  |             gridLesao.getChildren().add( pg ); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |          |  |  |  |          | 
			
		
	
		
		
			
				
					
					|  |  |  |         System.out.println("GRID LESAO : " + gridLesao.getChildren().size()); |  |  |  |         System.out.println( "GRID LESAO : " + gridLesao.getChildren().size() ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         if(gridLesao.getChildren().size() == 0) |  |  |  |         if ( gridLesao.getChildren().size() == 0 ) | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             lblAreasCorporais.setRendered(false); |  |  |  |             lblAreasCorporais.setRendered( false ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |          |  |  |  |          | 
			
		
	
		
		
			
				
					
					|  |  |  |         //INCAPACIDADE :
 |  |  |  |         //INCAPACIDADE :
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -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,39 +3559,39 @@ 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(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setId("stTipoIncapacidade"); |  |  |  |             st.setId("stTipoIncapacidade"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             st.setText("Permanente  "); |  |  |  |             st.setText("Permanente  "); | 
			
		
	
		
		
			
				
					
					|  |  |  |             pg.getChildren().add(st); |  |  |  |             pg.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             st = new StaticText(); |  |  |  |             st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setId("stTipoIncapacidadeLbl2"); |  |  |  |             st.setId("stTipoIncapacidadeLbl2"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setStyle("font-weight: bold"); |  |  |  |             st.setStyle("font-weight: bold"); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setEscape(false); |  |  |  |             st.setEscape( false ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             st.setText("   Coeficiente de incapacidade:  "); |  |  |  |             st.setText("   Coeficiente de incapacidade:  "); | 
			
		
	
		
		
			
				
					
					|  |  |  |             pg.getChildren().add(st);             |  |  |  |             pg.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             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(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         pg.setId("pgAvaliacaoIncapacidade"); |  |  |  |         pg.setId("pgAvaliacaoIncapacidade"); | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(a.getData_aval_incapacidade() != null) |  |  |  |         if ( a.getData_aval_incapacidade() != null ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             st = new StaticText(); |  |  |  |             st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setId("stDataAvalIncapacidadeLbl1"); |  |  |  |             st.setId("stDataAvalIncapacidadeLbl1"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -3598,21 +3602,20 @@ 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()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setText(utils.Utils.dateToYYYYMMDD(ddate));             |  |  |  |                 st.setText(utils.Utils.dateToYYYYMMDD(ddate));             | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             catch(Exception ex) |  |  |  |             catch ( Exception ex ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			{ |  |  |  | 			{ | 
			
		
	
		
		
			
				
					
					|  |  |  | //				ErrorLogger.logException( ex );
 |  |  |  | //				ErrorLogger.logException( ex );
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  |             pg.getChildren().add(st);                     |  |  |  |             pg.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(a.getData_rev_incapacidade() != null) |  |  |  |         if ( a.getData_rev_incapacidade() != null ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         { |  |  |  |         { | 
			
		
	
		
		
			
				
					
					|  |  |  |             st = new StaticText(); |  |  |  |             st = new StaticText(); | 
			
		
	
		
		
			
				
					
					|  |  |  |             st.setId("stDataRevIncapacidadeLbl1"); |  |  |  |             st.setId("stDataRevIncapacidadeLbl1"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -3623,17 +3626,16 @@ 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()); | 
			
		
	
		
		
			
				
					
					|  |  |  |                 st.setText(utils.Utils.dateToYYYYMMDD(ddate));             |  |  |  |                 st.setText(utils.Utils.dateToYYYYMMDD(ddate));             | 
			
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |             catch(Exception ex) |  |  |  |             catch ( Exception ex ) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 			{ |  |  |  | 			{ | 
			
		
	
		
		
			
				
					
					|  |  |  | //				ErrorLogger.logException( ex );
 |  |  |  | //				ErrorLogger.logException( ex );
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 			} |  |  |  | 			} | 
			
		
	
		
		
			
				
					
					|  |  |  |             pg.getChildren().add(st);                        |  |  |  |             pg.getChildren().add( st ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         if(pg.getChildren().size() > 0) |  |  |  |         if(pg.getChildren().size() > 0) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |