git-svn-id: https://svn.coded.pt/svn/SIPRP@987 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 17 years ago
parent 334e4d3a9b
commit eadf9336da

@ -11,10 +11,11 @@ public class EmpresaToPrint
protected String actividade; protected String actividade;
protected String nomeAcompanhante; protected String nomeAcompanhante;
protected String funcaoAcompanhante; protected String funcaoAcompanhante;
protected String morada;
public EmpresaToPrint( String designacaoSocial, String logotipo, public EmpresaToPrint( String designacaoSocial, String logotipo,
String estabelecimento, String actividade, String nomeAcompanhante, String estabelecimento, String actividade, String nomeAcompanhante,
String funcaoAcompanhante ) String funcaoAcompanhante, String morada )
{ {
super(); super();
this.designacaoSocial = designacaoSocial; this.designacaoSocial = designacaoSocial;
@ -23,6 +24,7 @@ public class EmpresaToPrint
this.actividade = actividade; this.actividade = actividade;
this.nomeAcompanhante = nomeAcompanhante; this.nomeAcompanhante = nomeAcompanhante;
this.funcaoAcompanhante = funcaoAcompanhante; this.funcaoAcompanhante = funcaoAcompanhante;
this.morada = morada;
} }
@ -48,6 +50,12 @@ public class EmpresaToPrint
Element funcaoAcompanhanteElement = new Element( "funcao-acompanhante" ); Element funcaoAcompanhanteElement = new Element( "funcao-acompanhante" );
funcaoAcompanhanteElement.setText( funcaoAcompanhante ); funcaoAcompanhanteElement.setText( funcaoAcompanhante );
empresaElement.addContent( funcaoAcompanhanteElement ); empresaElement.addContent( funcaoAcompanhanteElement );
if( morada != null )
{
Element moradaElement = new Element( "morada" );
moradaElement.setText( morada );
empresaElement.addContent( moradaElement );
}
return empresaElement; return empresaElement;
} }

@ -99,7 +99,7 @@ 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" }, "hs_relatorio.funcionarios", "estabelecimentos.morada" },
new Field( "hs_relatorio.id" ).isEqual( id ), new Field( "hs_relatorio.id" ).isEqual( id ),
null, null,
null, null,
@ -118,10 +118,11 @@ public class RelatorioPrintDataProvider
String nomeAcompanhante = ( String ) array.get( 0, 7 ); String nomeAcompanhante = ( String ) array.get( 0, 7 );
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 );
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,
nomeAcompanhante, funcaoAcompanhante ); nomeAcompanhante, funcaoAcompanhante, morada );
RelatorioToPrint plano = RelatorioToPrint plano =
new RelatorioToPrint( new RelatorioToPrint(
empresa, empresa,

Loading…
Cancel
Save