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

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
João Neto 17 years ago
parent 276923b4c5
commit cae2f20f90

@ -24,7 +24,7 @@ public class RelatorioPDFCreator
Document foDoc = new Document( relatorio.toJdomElement() );
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
ByteArrayOutputStream foBaos = new ByteArrayOutputStream();
// FileOutputStream fos = new FileOutputStream("/home/jneto/a.fo");
// FileOutputStream fos = new FileOutputStream("/home/jneto/a.xml");
outputter.output( foDoc, foBaos );
// outputter.output( foDoc, fos );

@ -224,7 +224,7 @@ public class RelatorioPrintDataProvider
String cap = ( String ) array.get( 0, 2 );
String formacao = ( String ) array.get( 0, 3 );
Integer assinatura = ( Integer ) array.get( 0, 4 );
return new TecnicoHSToPrint( id, nome, cap, formacao, assinatura );
return new TecnicoHSToPrint( id, nome, cap, formacao, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura );
}
}

@ -9,10 +9,10 @@ public class TecnicoHSToPrint
protected String nome;
protected String cap;
protected String formacao;
protected Integer assinatura;
protected String assinatura;
public TecnicoHSToPrint( Integer id, String nome, String cap,
String formacao, Integer assinatura )
String formacao, String assinatura )
{
super();
this.id = id;

@ -1480,8 +1480,8 @@
</fo:table-cell>
<fo:table-cell display-align="after">
<fo:block font-size="13pt" text-align="right">
<xsl:if test="../../../empresa/logotipo">
<xsl:variable name="logotipo" select="../../../empresa/logotipo" />
<xsl:if test="../../empresa/logotipo">
<xsl:variable name="logotipo" select="../../empresa/logotipo" />
<fo:external-graphic src="url('{$logotipo}')" content-width="4cm" />
</xsl:if>
</fo:block>

Loading…
Cancel
Save