|  |  | @ -99,7 +99,8 @@ public class RelatorioPrintDataProvider | 
			
		
	
		
		
			
				
					
					|  |  |  | 						"estabelecimentos.id", "estabelecimentos.nome",  |  |  |  | 						"estabelecimentos.id", "estabelecimentos.nome",  | 
			
		
	
		
		
			
				
					
					|  |  |  | 						"hs_relatorio.data", "marcacoes_estabelecimento.data", |  |  |  | 						"hs_relatorio.data", "marcacoes_estabelecimento.data", | 
			
		
	
		
		
			
				
					
					|  |  |  | 						"hs_relatorio.acompanhante1", "hs_relatorio.funcao_acompanhante1", |  |  |  | 						"hs_relatorio.acompanhante1", "hs_relatorio.funcao_acompanhante1", | 
			
		
	
		
		
			
				
					
					|  |  |  | 						"hs_relatorio.funcionarios", "estabelecimentos.morada" }, |  |  |  | 						"hs_relatorio.funcionarios", "estabelecimentos.morada", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 						"hs_relatorio.avaliacao_inicial"}, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				new Field( "hs_relatorio.id" ).isEqual( id ), |  |  |  | 				new Field( "hs_relatorio.id" ).isEqual( id ), | 
			
		
	
		
		
			
				
					
					|  |  |  | 				null, |  |  |  | 				null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				null, |  |  |  | 				null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -119,6 +120,7 @@ public class RelatorioPrintDataProvider | 
			
		
	
		
		
			
				
					
					|  |  |  | 		String funcaoAcompanhante = ( String ) array.get( 0, 8 ); |  |  |  | 		String funcaoAcompanhante = ( String ) array.get( 0, 8 ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		String textoFuncionarios = ( String ) array.get( 0, 9 ); |  |  |  | 		String textoFuncionarios = ( String ) array.get( 0, 9 ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		String morada = ( String ) array.get( 0, 10 ); |  |  |  | 		String morada = ( String ) array.get( 0, 10 ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		String tipoAvaliacao = ( ( Boolean ) array.get( 0, 11 ) ).booleanValue() ? "INICIAL" : "PERI\u00d3DICA"; | 
			
		
	
		
		
			
				
					
					|  |  |  | 		EmpresaToPrint empresa = new EmpresaToPrint( nomeEmpresa, |  |  |  | 		EmpresaToPrint empresa = new EmpresaToPrint( nomeEmpresa, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				"http://www.evolute.pt:13080/SIPRPImages/image?id=" + logoId, |  |  |  | 				"http://www.evolute.pt:13080/SIPRPImages/image?id=" + logoId, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				nomeEstabelecimento, actividadeEmpresa, |  |  |  | 				nomeEstabelecimento, actividadeEmpresa, | 
			
		
	
	
		
		
			
				
					|  |  | @ -128,6 +130,7 @@ public class RelatorioPrintDataProvider | 
			
		
	
		
		
			
				
					
					|  |  |  | 				empresa,  |  |  |  | 				empresa,  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				dataRelatorio != null ? new DataToPrint( "data-relatorio", dataRelatorio ) : null,  |  |  |  | 				dataRelatorio != null ? new DataToPrint( "data-relatorio", dataRelatorio ) : null,  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				dataVisita != null ? new DataToPrint( "data-hs", dataVisita ) : null, |  |  |  | 				dataVisita != null ? new DataToPrint( "data-hs", dataVisita ) : null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				tipoAvaliacao, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				dataProximaVisita != null ? new DataToPrint( "data-proxima-hs", dataProximaVisita ) : null, |  |  |  | 				dataProximaVisita != null ? new DataToPrint( "data-proxima-hs", dataProximaVisita ) : null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				textoFuncionarios, |  |  |  | 				textoFuncionarios, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				getTecnicoHS( id ), |  |  |  | 				getTecnicoHS( id ), | 
			
		
	
	
		
		
			
				
					|  |  | @ -205,7 +208,6 @@ public class RelatorioPrintDataProvider | 
			
		
	
		
		
			
				
					
					|  |  |  | 				null, |  |  |  | 				null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				null, |  |  |  | 				null, | 
			
		
	
		
		
			
				
					
					|  |  |  | 				null ); |  |  |  | 				null ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		System.out.println( select ); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 		Virtual2DArray array = EXECUTER.executeQuery( select ); |  |  |  | 		Virtual2DArray array = EXECUTER.executeQuery( select ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if( array.columnLength() == 0 ) |  |  |  | 		if( array.columnLength() == 0 ) | 
			
		
	
		
		
			
				
					
					|  |  |  | 		{ |  |  |  | 		{ | 
			
		
	
	
		
		
			
				
					|  |  | 
 |