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