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

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 16 years ago
parent ba11556aed
commit ff0e956fa4

@ -61,7 +61,7 @@ import com.evolute.utils.ui.window.LoginWindow;
public class Main implements com.evolute.utils.ui.window.Connector
{
public final static String SHST_VERSION = "11.5.4";
public final static String SHST_VERSION = "11.5.5";
private final static ClassLoader classLoader = new EVUtilsImageLib().getClass().getClassLoader();

@ -11,11 +11,14 @@ public class EmpresaToPrint
protected String actividade;
protected String nomeAcompanhante;
protected String funcaoAcompanhante;
protected String nomeAcompanhante2;
protected String funcaoAcompanhante2;
protected String morada;
public EmpresaToPrint( String designacaoSocial, String logotipo,
String estabelecimento, String actividade, String nomeAcompanhante,
String funcaoAcompanhante, String morada )
String funcaoAcompanhante, String nomeAcompanhante2,
String funcaoAcompanhante2, String morada )
{
super();
this.designacaoSocial = designacaoSocial;
@ -24,6 +27,8 @@ public class EmpresaToPrint
this.actividade = actividade;
this.nomeAcompanhante = nomeAcompanhante;
this.funcaoAcompanhante = funcaoAcompanhante;
this.nomeAcompanhante2 = nomeAcompanhante2;
this.funcaoAcompanhante2 = funcaoAcompanhante2;
this.morada = morada;
}
@ -50,6 +55,15 @@ public class EmpresaToPrint
Element funcaoAcompanhanteElement = new Element( "funcao-acompanhante" );
funcaoAcompanhanteElement.setText( funcaoAcompanhante );
empresaElement.addContent( funcaoAcompanhanteElement );
if( nomeAcompanhante2 != null && nomeAcompanhante2.trim().length() > 0 )
{
Element nomeAcompanhante2Element = new Element( "nome-acompanhante2" );
nomeAcompanhante2Element.setText( nomeAcompanhante2 );
empresaElement.addContent( nomeAcompanhante2Element );
Element funcaoAcompanhante2Element = new Element( "funcao-acompanhante2" );
funcaoAcompanhante2Element.setText( funcaoAcompanhante2 );
empresaElement.addContent( funcaoAcompanhante2Element );
}
if( morada != null )
{
Element moradaElement = new Element( "morada" );

@ -104,6 +104,7 @@ public class RelatorioPrintDataProvider
"estabelecimentos.id", "estabelecimentos.nome",
"hs_relatorio.data", "marcacoes_estabelecimento.data",
"hs_relatorio.acompanhante1", "hs_relatorio.funcao_acompanhante1",
"hs_relatorio.acompanhante2", "hs_relatorio.funcao_acompanhante2",
"hs_relatorio.funcionarios", "estabelecimentos.morada",
"hs_relatorio.avaliacao_inicial"},
new Field( "hs_relatorio.id" ).isEqual( id ),
@ -123,13 +124,15 @@ public class RelatorioPrintDataProvider
Date dataProximaVisita = getDataProximaVisita( estabelecimentoId, dataVisita );
String nomeAcompanhante = ( String ) array.get( 0, 7 );
String funcaoAcompanhante = ( String ) array.get( 0, 8 );
String textoFuncionarios = ( String ) array.get( 0, 9 );
String morada = ( String ) array.get( 0, 10 );
String tipoAvaliacao = ( array.get( 0, 11 ) != null && ( ( Boolean ) array.get( 0, 11 ) ).booleanValue() ) ? "INICIAL" : "PERI\u00d3DICA";
String nomeAcompanhante2 = ( String ) array.get( 0, 9 );
String funcaoAcompanhante2 = ( String ) array.get( 0, 10 );
String textoFuncionarios = ( String ) array.get( 0, 11 );
String morada = ( String ) array.get( 0, 12 );
String tipoAvaliacao = ( array.get( 0, 13 ) != null && ( ( Boolean ) array.get( 0, 13 ) ).booleanValue() ) ? "INICIAL" : "PERI\u00d3DICA";
EmpresaToPrint empresa = new EmpresaToPrint( nomeEmpresa,
"http://www.evolute.pt:13080/SIPRPImages/image?id=" + logoId,
nomeEstabelecimento, actividadeEmpresa,
nomeAcompanhante, funcaoAcompanhante, morada );
nomeAcompanhante, funcaoAcompanhante, nomeAcompanhante2, funcaoAcompanhante2, morada );
RelatorioToPrint plano =
new RelatorioToPrint(
empresa,

@ -713,7 +713,16 @@
(
<xsl:value-of
select="empresa/funcao-acompanhante" />
) na prestação de informações relativas à
)
<xsl:if test="empresa/nome-acompanhante2" >
e <xsl:value-of
select="empresa/nome-acompanhante2" />
(
<xsl:value-of
select="empresa/funcao-acompanhante2" />
)
</xsl:if>
na prestação de informações relativas à
actividade desenvolvida e às condições de
trabalho existentes.  
</fo:block>
@ -4356,8 +4365,14 @@
border-top="0.0069in solid #000000">
<fo:block font-family="Helvetica"
font-size="10pt" text-align="left">
Avaliação <xsl:value-of
select="../../../tipo-avaliacao-camel" /> de Riscos Laborais
Avaliação
<xsl:if test= "../../../tipo-avaliacao-camel" >
<xsl:value-of select="../../../tipo-avaliacao-camel" />
</xsl:if>
<xsl:if test= "tipo-avaliacao-camel" >
<xsl:value-of select="tipo-avaliacao-camel" />
</xsl:if>
de Riscos Laborais
</fo:block>
</fo:table-cell>
<fo:table-cell

Loading…
Cancel
Save