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

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 16 years ago
parent 3256ff50eb
commit 7101dd870d

@ -89,8 +89,8 @@ public class SIPRPDataLoader implements CompanyDataLoader
// Singleton.setInstance( SingletonConstants.LOCAL_USER, "siprp" );
// Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "rg2h-opksiprp" );
// Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
// Singleton.setInstance( SingletonConstants.LOCAL_URL, "www.evolute.pt:5432" );
// Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
// Singleton.setInstance( SingletonConstants.LOCAL_URL, "www.evolute.pt:5436" );
// Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local_3" );
// Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );

@ -142,6 +142,7 @@ public class RelatorioPrintDataProvider
dataProximaVisita != null ? new DataToPrint( "data-proxima-hs", dataProximaVisita ) : null,
textoFuncionarios,
getTecnicoHS( id ),
getTecnicoSuperiorHS( id ),
getLegislacaoAplicavel( id ),
getNormalizacaoAplicavel( id ),
getEquipamento( id ),
@ -228,7 +229,45 @@ 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, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura );
return new TecnicoHSToPrint( id, nome, cap, formacao, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura, false );
}
}
public TecnicoHSToPrint getTecnicoSuperiorHS( Integer relatorioId )
throws Exception
{
Select select =
new Select2(
new String[]{ "hs_relatorio", "marcacoes_estabelecimento", "marcacoes_tecnicos_hst" },
new Integer[]{ Select2.JOIN_INNER, Select2.JOIN_INNER },
new Expression[]{
new Field( "hs_relatorio.marcacao_id" ).isEqual( new Field( "marcacoes_estabelecimento.id" ) ),
new Field( "marcacoes_estabelecimento.tecnico_superior_hst" ).isEqual( new Field( "marcacoes_tecnicos_hst.id" ) ),
},
new String[]{
"marcacoes_tecnicos_hst.id",
"marcacoes_tecnicos_hst.nome",
"marcacoes_tecnicos_hst.cap",
"marcacoes_tecnicos_hst.formacao",
"marcacoes_tecnicos_hst.assinatura",},
new Field( "hs_relatorio.id" ).isEqual( relatorioId ),
null,
null,
null,
null );
Virtual2DArray array = EXECUTER.executeQuery( select );
if( array.columnLength() == 0 )
{
return null;
}
else
{
Integer id = ( Integer ) array.get( 0, 0 );
String nome = ( String ) array.get( 0, 1 );
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, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura, true );
}
}

@ -16,6 +16,7 @@ public class RelatorioToPrint
protected DataToPrint dataProximaHs;
protected String textoFuncionarios;
protected TecnicoHSToPrint tecnicoHS;
protected TecnicoHSToPrint tecnicoSuperiorHS;
protected LegislacaoAplicavelToPrint legislacaoAplicavel;
protected NormalizacaoToPrint normalizacaoAplicavel;
protected EquipamentosToPrint equipamentos;
@ -28,6 +29,7 @@ public class RelatorioToPrint
DataToPrint dataProximaHs,
String textoFuncionarios,
TecnicoHSToPrint tecnicoHS,
TecnicoHSToPrint tecnicoSuperiorHS,
LegislacaoAplicavelToPrint legislacaoAplicavel,
NormalizacaoToPrint normalizacaoAplicavel,
EquipamentosToPrint equipamentos,
@ -41,6 +43,7 @@ public class RelatorioToPrint
this.dataProximaHs = dataProximaHs;
this.textoFuncionarios = textoFuncionarios;
this.tecnicoHS = tecnicoHS;
this.tecnicoSuperiorHS = tecnicoSuperiorHS;
this.legislacaoAplicavel = legislacaoAplicavel;
this.normalizacaoAplicavel = normalizacaoAplicavel;
this.equipamentos = equipamentos;
@ -74,6 +77,10 @@ public class RelatorioToPrint
{
relatorioElement.addContent( tecnicoHS.toJdomElement() );
}
if( tecnicoSuperiorHS != null )
{
relatorioElement.addContent( tecnicoSuperiorHS.toJdomElement() );
}
relatorioElement.addContent( legislacaoAplicavel.toJdomElement() );
relatorioElement.addContent( normalizacaoAplicavel.toJdomElement() );
relatorioElement.addContent( equipamentos.toJdomElement() );

@ -10,9 +10,10 @@ public class TecnicoHSToPrint
protected String cap;
protected String formacao;
protected String assinatura;
protected boolean superior;
public TecnicoHSToPrint( Integer id, String nome, String cap,
String formacao, String assinatura )
String formacao, String assinatura, boolean superior )
{
super();
this.id = id;
@ -20,12 +21,13 @@ public class TecnicoHSToPrint
this.cap = cap;
this.formacao = formacao;
this.assinatura = assinatura;
this.superior = superior;
}
@Override
public Element toJdomElement() throws Exception
{
Element tecnicoHSElement = new Element( "tecnico-hs" );
Element tecnicoHSElement = new Element( "tecnico" + ( superior ? "-superior" : "" ) + "-hs" );
Element nomeElement = new Element( "nome" );
nomeElement.setText( nome );
tecnicoHSElement.addContent( nomeElement );

@ -2200,78 +2200,114 @@
line-height="130%">
 
</fo:block>
<fo:table table-layout="fixed" width="2.825in"
space-before="40pt">
<fo:table-column column-width="2.825in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica"
font-size="12pt" text-align="center">
<xsl:if
test="tecnico-hs/assinatura">
<xsl:variable
name="assinatura" select="tecnico-hs/assinatura" />
<fo:external-graphic
src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in"
padding-left="0.075in" border-left="none" border-bottom="none"
padding-top="0in" border-top="0.0069in solid #000000"
display-align="before" writing-mode="lr-tb"
padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica"
font-size="12pt" font-weight="bold" margin-right="0in"
text-indent="0.2134in" text-align="center"
margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica"
font-size="12pt" font-weight="bold" margin-right="0in"
text-indent="0.2134in" text-align="center"
margin-left="-0.2134in">
<xsl:value-of
select="tecnico-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica"
font-size="12pt" margin-right="-0.0937in" text-indent="0in"
text-align="center" margin-left="0in">
Técnico de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica"
font-size="12pt" margin-right="-0.0937in" text-indent="0in"
text-align="center" margin-left="0in">
CAP nº
<xsl:value-of
select="tecnico-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="justify">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
line-height="130%">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica"
font-size="12pt">
 
 Realizado por:
</fo:block>
<xsl:if test="tecnico-hs">
<fo:table table-layout="fixed" width="4in"
space-before="40pt">
<fo:table-column column-width="4in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<xsl:if test="tecnico-superior-hs">
<xsl:if test="tecnico-hs">
<fo:block font-family="Helvetica" font-size="12pt"
line-height="130%" space-before="20pt" >
 Verificado por:
</fo:block>
</xsl:if>
<fo:table table-layout="fixed" width="4in"
space-before="40pt">
<fo:table-column column-width="4in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-superior-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-superior-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-superior-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico Superior de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-superior-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<fo:block font-family="Helvetica"
id="evolute_endofdoc" />
</fo:flow>

@ -163,7 +163,8 @@ public class PlanoActuacaoPrintDataProvider
getAreasToPrintByPlanoId( id, validacaoDl, validacaoDns ),
observacoesDl,
observacoesDns,
getTecnicoHS( id ) );
getTecnicoHS( id ),
getTecnicoSuperiorHS( id ) );
return plano;
}
@ -748,6 +749,50 @@ public class PlanoActuacaoPrintDataProvider
null,
null );
Virtual2DArray array = LOCAL_EXECUTER.executeQuery( select );
if( array.columnLength() == 0 )
{
return null;
}
else
{
Integer id = ( Integer ) array.get( 0, 0 );
String nome = ( String ) array.get( 0, 1 );
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, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura, false );
}
}
public TecnicoHSToPrint getTecnicoSuperiorHS( Integer relatorioId )
throws Exception
{
if( web )
{
relatorioId = getRelatorioIdForPlanoId( relatorioId );
}
Select select =
new Select2(
new String[]{ "hs_relatorio", "marcacoes_estabelecimento", "marcacoes_tecnicos_hst" },
new Integer[]{ Select2.JOIN_INNER, Select2.JOIN_INNER },
new Expression[]{
new Field( "hs_relatorio.marcacao_id" ).isEqual( new Field( "marcacoes_estabelecimento.id" ) ),
new Field( "marcacoes_estabelecimento.tecnico_superior_hst" ).isEqual( new Field( "marcacoes_tecnicos_hst.id" ) ),
},
new String[]{
"marcacoes_tecnicos_hst.id",
"marcacoes_tecnicos_hst.nome",
"marcacoes_tecnicos_hst.cap",
"marcacoes_tecnicos_hst.formacao",
"marcacoes_tecnicos_hst.assinatura",},
new Field( "hs_relatorio.id" ).isEqual( relatorioId ),
null,
null,
null,
null );
Virtual2DArray array = LOCAL_EXECUTER.executeQuery( select );
if( array.columnLength() == 0 )
{
return null;
@ -759,7 +804,7 @@ public class PlanoActuacaoPrintDataProvider
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, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura );
return new TecnicoHSToPrint( id, nome, cap, formacao, "http://www.evolute.pt:13080/SIPRPImages/image?id=" + assinatura, true );
}
}
}

@ -15,11 +15,12 @@ public class PlanoActuacaoToPrint
protected String observacoesDl;
protected String observacoesDns;
protected TecnicoHSToPrint tecnico;
protected TecnicoHSToPrint tecnicoSuperior;
public PlanoActuacaoToPrint( EmpresaToPrint empresa, DataToPrint dataRelatorio,
DataToPrint dataHs, LegislacaoAplicavelToPrint legislacaoAplicavel,
Vector<AreaToPrint> areas, String observacoesDl, String observacoesDns,
TecnicoHSToPrint tecnico )
TecnicoHSToPrint tecnico, TecnicoHSToPrint tecnicoSuperior )
{
super();
this.empresa = empresa;
@ -30,6 +31,7 @@ public class PlanoActuacaoToPrint
this.observacoesDl = observacoesDl;
this.observacoesDns = observacoesDns;
this.tecnico = tecnico;
this.tecnicoSuperior = tecnicoSuperior;
}
public EmpresaToPrint getEmpresa()
@ -115,6 +117,10 @@ public class PlanoActuacaoToPrint
{
planoElement.addContent( tecnico.toJdomElement() );
}
if( tecnicoSuperior != null )
{
planoElement.addContent( tecnicoSuperior.toJdomElement() );
}
return planoElement;
}
@ -148,4 +154,12 @@ public class PlanoActuacaoToPrint
this.tecnico = tecnico;
}
public TecnicoHSToPrint getTecnicoSuperior() {
return tecnicoSuperior;
}
public void setTecnicoSuperior(TecnicoHSToPrint tecnicoSuperior) {
this.tecnicoSuperior = tecnicoSuperior;
}
}

@ -10,9 +10,10 @@ public class TecnicoHSToPrint
protected String cap;
protected String formacao;
protected String assinatura;
protected boolean superior;
public TecnicoHSToPrint( Integer id, String nome, String cap,
String formacao, String assinatura )
String formacao, String assinatura, boolean superior )
{
super();
this.id = id;
@ -20,12 +21,13 @@ public class TecnicoHSToPrint
this.cap = cap;
this.formacao = formacao;
this.assinatura = assinatura;
this.superior = superior;
}
@Override
public Element toJdomElement() throws Exception
{
Element tecnicoHSElement = new Element( "tecnico-hs" );
Element tecnicoHSElement = new Element( "tecnico" + ( superior ? "-superior" : "" ) + "-hs" );
Element nomeElement = new Element( "nome" );
nomeElement.setText( nome );
tecnicoHSElement.addContent( nomeElement );

@ -1384,53 +1384,110 @@
line-height="130%">
 Realizado por:
</fo:block>
<fo:table table-layout="fixed" width="2.825in"
space-before="40pt">
<fo:table-column column-width="2.825in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<xsl:if test="tecnico-hs">
<fo:table table-layout="fixed" width="4in"
space-before="40pt">
<fo:table-column column-width="4in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<xsl:if test="tecnico-superior-hs">
<xsl:if test="tecnico-hs">
<fo:block font-family="Helvetica" font-size="12pt"
line-height="130%" space-before="20pt" >
 Verificado por:
</fo:block>
</xsl:if>
<fo:table table-layout="fixed" width="4in"
space-before="40pt">
<fo:table-column column-width="4in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-superior-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-superior-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-superior-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico Superior de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-superior-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<fo:block font-family="Helvetica" id="evolute_endofdoc" />
</fo:flow>
</fo:page-sequence>

@ -1237,53 +1237,110 @@
line-height="130%">
 Realizado por:
</fo:block>
<fo:table table-layout="fixed" width="2.825in"
space-before="40pt">
<fo:table-column column-width="2.825in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<xsl:if test="tecnico-hs">
<fo:table table-layout="fixed" width="4in"
space-before="40pt">
<fo:table-column column-width="4in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<xsl:if test="tecnico-superior-hs">
<xsl:if test="tecnico-hs">
<fo:block font-family="Helvetica" font-size="12pt"
line-height="130%" space-before="20pt" >
 Verificado por:
</fo:block>
</xsl:if>
<fo:table table-layout="fixed" width="4in"
space-before="40pt">
<fo:table-column column-width="4in" />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-family="Helvetica" font-size="12pt"
text-align="center">
<xsl:if test="tecnico-superior-hs/assinatura">
<xsl:variable name="assinatura" select="tecnico-superior-hs/assinatura" />
<fo:external-graphic src="url('{$assinatura}')" />
</xsl:if>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell padding-bottom="0in" padding-left="0.075in"
border-left="none" border-bottom="none" padding-top="0in"
border-top="0.0069in solid #000000" display-align="before"
writing-mode="lr-tb" padding-right="0.075in" border-right="none">
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
font-weight="bold" margin-right="0in" text-indent="0.2134in"
text-align="center" margin-left="-0.2134in">
<xsl:value-of select="tecnico-superior-hs/nome" />
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
Técnico Superior de Higiene e Segurança
 
</fo:block>
<fo:block font-family="Helvetica" font-size="12pt"
margin-right="-0.0937in" text-indent="0in" text-align="center"
margin-left="0in">
CAP nº
<xsl:value-of select="tecnico-superior-hs/cap" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:if>
<fo:block font-family="Helvetica" id="evolute_endofdoc" />
</fo:flow>
</fo:page-sequence>

Loading…
Cancel
Save