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

lxbfYeaa
Frederico Palma 17 years ago
parent 9fdf69932d
commit 9098f00fec

@ -18,7 +18,7 @@ public class LogotiposDumper
public static void dump( String path ) public static void dump( String path )
throws Exception throws Exception
{ {
Mappable[] logotipos = PlanoActuacaoPrintDataProvider.getProvider().getLogotipos(); Mappable[] logotipos = PlanoActuacaoPrintDataProvider.getProvider( true ).getLogotipos();
for( Mappable logotipo : logotipos ) for( Mappable logotipo : logotipos )
{ {
File file = new File( path, "" + logotipo.getID() + ".png" ); File file = new File( path, "" + logotipo.getID() + ".png" );

@ -58,7 +58,7 @@ public class LogotiposImporter
} }
Integer id = new Integer( file.getName().split( "[.]" )[ 0 ] ); Integer id = new Integer( file.getName().split( "[.]" )[ 0 ] );
PlanoActuacaoPrintDataProvider.getProvider().updateLogotipo( id, data ); PlanoActuacaoPrintDataProvider.getProvider( true ).updateLogotipo( id, data );
} }
} }
} }

@ -12,10 +12,10 @@ import com.evolute.utils.xml.XSLTransformer;
public class PlanoActuacaoPDFCreator public class PlanoActuacaoPDFCreator
{ {
public byte[] createPDF( Integer planoId ) public byte[] createPDF( Integer planoId, boolean web )
throws Exception throws Exception
{ {
PlanoActuacaoToPrint plano = PlanoActuacaoPrintDataProvider.getProvider().getPlanoToPrint( planoId ); PlanoActuacaoToPrint plano = PlanoActuacaoPrintDataProvider.getProvider( web ).getPlanoToPrint( planoId );
Document foDoc = new Document( plano.toJdomElement() ); Document foDoc = new Document( plano.toJdomElement() );
XMLOutputter outputter = new XMLOutputter(); XMLOutputter outputter = new XMLOutputter();
ByteArrayOutputStream foBaos = new ByteArrayOutputStream(); ByteArrayOutputStream foBaos = new ByteArrayOutputStream();

@ -29,9 +29,12 @@ public class PlanoActuacaoPrintDataProvider
protected final Executer WEB_EXECUTER; protected final Executer WEB_EXECUTER;
protected final Executer LOCAL_EXECUTER; protected final Executer LOCAL_EXECUTER;
public PlanoActuacaoPrintDataProvider() protected final boolean web;
public PlanoActuacaoPrintDataProvider( boolean web )
throws Exception throws Exception
{ {
this.web = web;
if( Singleton.getInstance( SingletonConstants.WEB_DBMANAGER ) == null ) if( Singleton.getInstance( SingletonConstants.WEB_DBMANAGER ) == null )
{ {
PlanoActuacaoDBInit.initDB(); PlanoActuacaoDBInit.initDB();
@ -42,14 +45,14 @@ public class PlanoActuacaoPrintDataProvider
LOCAL_EXECUTER = LOCAL_DBMANAGER.getSharedExecuter( this ); LOCAL_EXECUTER = LOCAL_DBMANAGER.getSharedExecuter( this );
} }
public static PlanoActuacaoPrintDataProvider getProvider() public static PlanoActuacaoPrintDataProvider getProvider( boolean web )
throws Exception throws Exception
{ {
synchronized( LOCK ) synchronized( LOCK )
{ {
if( instance == null ) if( instance == null )
{ {
instance = new PlanoActuacaoPrintDataProvider(); instance = new PlanoActuacaoPrintDataProvider( web );
} }
} }
return instance; return instance;
@ -58,23 +61,49 @@ public class PlanoActuacaoPrintDataProvider
public PlanoActuacaoToPrint getPlanoToPrint( Integer id ) public PlanoActuacaoToPrint getPlanoToPrint( Integer id )
throws Exception throws Exception
{ {
Virtual2DArray array;
Select select = if( web )
new Select2( {
new String[]{ "planos_actuacao" }, Select select =
new Integer[]{}, new Select2(
new Expression[]{}, new String[]{ "planos_actuacao" },
new String[]{ "empresa_id", "nome_empresa", new Integer[]{},
"estabelecimento_id", "nome_estabelecimento", new Expression[]{},
"data_relatorio", "data_visita", "observacoes_dl", new String[]{ "empresa_id", "nome_empresa",
"observacoes_dns", "validacao_director_loja", "estabelecimento_id", "nome_estabelecimento",
"validacao_dns" }, "data_relatorio", "data_visita", "observacoes_dl",
new Field( "id" ).isEqual( id ), "observacoes_dns", "validacao_director_loja",
null, "validacao_dns" },
null, new Field( "id" ).isEqual( id ),
null, null,
null ); null,
Virtual2DArray array = WEB_EXECUTER.executeQuery( select ); null,
null );
array = WEB_EXECUTER.executeQuery( select );
}
else
{
Select select =
new Select2(
new String[]{ "hs_relatorio", "marcacoes_estabelecimento", "estabelecimentos", "empresas" },
new Integer[]{ Select2.JOIN_INNER, Select2.JOIN_INNER, Select2.JOIN_INNER },
new Expression[]{
new Field( "hs_relatorio.marcacao_id" ).isEqual( new Field( "marcacoes_estabelecimento.id" ) ),
new Field( "marcacoes_estabelecimento.estabelecimento_id" ).isEqual( new Field( "estabelecimentos.id" ) ),
new Field( "estabelecimentos.empresa_id" ).isEqual( new Field( "empresas.id" ) )
},
new String[]{ "empresas.id", "empresas.designacao_social",
"estabelecimentos.id", "estabelecimentos.nome",
"hs_relatorio.data", "marcacoes_estabelecimento.data", "''",
"''", "false",
"false" },
new Field( "hs_relatorio.id" ).isEqual( id ),
null,
null,
null,
null );
array = LOCAL_EXECUTER.executeQuery( select );
}
Integer empresaId = ( Integer ) array.get( 0, 0 ); Integer empresaId = ( Integer ) array.get( 0, 0 );
String nomeEmpresa = ( String ) array.get( 0, 1 ); String nomeEmpresa = ( String ) array.get( 0, 1 );
Integer estabelecimentoId = ( Integer ) array.get( 0, 2 ); Integer estabelecimentoId = ( Integer ) array.get( 0, 2 );
@ -130,19 +159,39 @@ public class PlanoActuacaoPrintDataProvider
public Vector<AreaToPrint> getAreasToPrintByPlanoId( Integer planoId, boolean validacaoDl, boolean validacaoDns ) public Vector<AreaToPrint> getAreasToPrintByPlanoId( Integer planoId, boolean validacaoDl, boolean validacaoDns )
throws Exception throws Exception
{ {
Virtual2DArray array;
Vector<AreaToPrint> areas = new Vector<AreaToPrint>(); Vector<AreaToPrint> areas = new Vector<AreaToPrint>();
Select select = if( web )
new Select2( {
new String[]{ "plano_areas" }, Select select =
new Integer[]{}, new Select2(
new Expression[]{}, new String[]{ "plano_areas" },
new String[]{ "id", "descricao" }, new Integer[]{},
new Field( "plano_id" ).isEqual( planoId ), new Expression[]{},
new String[]{ "id" }, new String[]{ "id", "descricao" },
null, new Field( "plano_id" ).isEqual( planoId ),
null, new String[]{ "id" },
null ); null,
Virtual2DArray array = WEB_EXECUTER.executeQuery( select ); null,
null );
array = WEB_EXECUTER.executeQuery( select );
}
else
{
Select select =
new Select2(
new String[]{ "hs_relatorio_area" },
new Integer[]{},
new Expression[]{},
new String[]{ "id", "description" },
new Field( "relatorio_id" ).isEqual( planoId ).and(
new Field( "deleted_date" ).isEqual( null ) ),
new String[]{ "id" },
null,
null,
null );
array = LOCAL_EXECUTER.executeQuery( select );
}
for( int n = 0; n < array.columnLength(); n++ ) for( int n = 0; n < array.columnLength(); n++ )
{ {
Integer areaId = ( Integer ) array.get( n, 0 ); Integer areaId = ( Integer ) array.get( n, 0 );
@ -155,22 +204,55 @@ public class PlanoActuacaoPrintDataProvider
public Vector<RiscoToPrint> getRiscosToPrintByAreaId( Integer areaId, boolean validacaoDl, boolean validacaoDns ) public Vector<RiscoToPrint> getRiscosToPrintByAreaId( Integer areaId, boolean validacaoDl, boolean validacaoDns )
throws Exception throws Exception
{ {
Virtual2DArray array;
Vector<RiscoToPrint> riscos = new Vector<RiscoToPrint>(); Vector<RiscoToPrint> riscos = new Vector<RiscoToPrint>();
Select select = if( web )
new Select2( {
new String[]{ "plano_riscos" }, Select select =
new Integer[]{}, new Select2(
new Expression[]{}, new String[]{ "plano_riscos" },
new String[]{ "id", "descricao", "valor", "responsavel_execucao", new Integer[]{},
"recursos_necessarios", "data_inicio", "data_fim", new Expression[]{},
"parecer_dl", "parecer_dns", "verificacao_siprp"}, new String[]{ "id", "descricao", "valor", "responsavel_execucao",
new Field( "area_id" ).isEqual( areaId ).and( "recursos_necessarios", "data_inicio", "data_fim",
new Field( "activo" ).isEqual( "y" ) ), "parecer_dl", "parecer_dns", "verificacao_siprp"},
new String[]{ "id" }, new Field( "area_id" ).isEqual( areaId ).and(
null, new Field( "activo" ).isEqual( "y" ) ),
null, new String[]{ "id" },
null ); null,
Virtual2DArray array = WEB_EXECUTER.executeQuery( select ); null,
null );
array = WEB_EXECUTER.executeQuery( select );
}
else
{
Select select =
new Select2(
new String[]{ "hs_relatorio_risco", "hs_relatorio_posto_risco", "hs_relatorio_posto" },
new Integer[]{ Select2.JOIN_INNER, Select2.JOIN_INNER },
new Expression[]{
new Field( "hs_relatorio_risco.id" ).isEqual( new Field( "hs_relatorio_posto_risco.risco_id" ) ),
new Field( "hs_relatorio_posto_risco.posto_id" ).isEqual( new Field( "hs_relatorio_posto.id" ) )
},
new String[]{ "hs_relatorio_risco.id",
"hs_relatorio_risco.description",
"hs_relatorio_posto_risco.probabilidade * hs_relatorio_posto_risco.severidade",
"null",
"null",
"null",
"null",
"null",
"null",
"verificacao_siprp" },
new Field( "hs_relatorio_area.area_id" ).isEqual( areaId ).and(
new Field( "hs_relatorio_risco.deleted_date" ).isEqual( null ) ).and(
new Field( "hs_relatorio_posto.deleted_date" ).isEqual( null ) ),
new String[]{ "id" },
null,
null,
null );
array = LOCAL_EXECUTER.executeQuery( select );
}
for( int n = 0; n < array.columnLength(); n++ ) for( int n = 0; n < array.columnLength(); n++ )
{ {
Integer id = ( Integer ) array.get( n, 0 ); Integer id = ( Integer ) array.get( n, 0 );

@ -44,7 +44,7 @@ public class TestPrint
// fos.write( fo ); // fos.write( fo );
// fos.close(); // fos.close();
byte pdf[] = new PlanoActuacaoPDFCreator().createPDF( 6 ); byte pdf[] = new PlanoActuacaoPDFCreator().createPDF( 6, true );
FileOutputStream fos = new FileOutputStream( "/home/fpalma/Desktop/pdf.pdf" ); FileOutputStream fos = new FileOutputStream( "/home/fpalma/Desktop/pdf.pdf" );
fos.write( pdf ); fos.write( pdf );
fos.close(); fos.close();

@ -74,14 +74,14 @@
<fo:block-container position="absolute" <fo:block-container position="absolute"
top="-1.521cm" left="-3.373cm" height="9.899cm" width="9.899cm"> top="-1.521cm" left="-3.373cm" height="9.899cm" width="9.899cm">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/roda.jpg')" height="9.899cm" src="url('http://www.evolute.pt/~siprp/planoactuacao/roda.jpg')"
width="9.899cm" /> height="9.899cm" width="9.899cm" />
</fo:block-container> </fo:block-container>
<fo:block-container position="absolute" top="0cm" <fo:block-container position="absolute" top="0cm"
left="18cm" height="11.007cm" width="2.941cm"> left="18cm" height="11.007cm" width="2.941cm">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_land.jpg')" height="11.007cm" src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_land.jpg')"
width="2.941cm" /> height="11.007cm" width="2.941cm" />
</fo:block-container> </fo:block-container>
<fo:block font-size="12pt" color="#606060" <fo:block font-size="12pt" color="#606060"
font-weight="bold" margin-right="0in" text-indent="0in" font-weight="bold" margin-right="0in" text-indent="0in"
@ -148,19 +148,19 @@
<fo:flow flow-name="xsl-region-body"> <fo:flow flow-name="xsl-region-body">
<fo:block text-align="center"> <fo:block text-align="center">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/capa1.jpg')" height="4.211cm" src="url('http://www.evolute.pt/~siprp/planoactuacao/capa1.jpg')"
width="6.279cm" /> height="4.211cm" width="6.279cm" />
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/capa2.jpg')" height="4.211cm" src="url('http://www.evolute.pt/~siprp/planoactuacao/capa2.jpg')"
width="6.279cm" /> height="4.211cm" width="6.279cm" />
</fo:block> </fo:block>
<fo:block text-align="center"> <fo:block text-align="center">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/capa3.jpg')" height="4.211cm" src="url('http://www.evolute.pt/~siprp/planoactuacao/capa3.jpg')"
width="6.279cm" /> height="4.211cm" width="6.279cm" />
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/capa4.jpg')" height="4.211cm" src="url('http://www.evolute.pt/~siprp/planoactuacao/capa4.jpg')"
width="6.279cm" /> height="4.211cm" width="6.279cm" />
</fo:block> </fo:block>
<fo:block font-size="16pt" color="#606060" <fo:block font-size="16pt" color="#606060"
font-weight="bold" margin-right="0in" text-indent="0in" font-weight="bold" margin-right="0in" text-indent="0in"
@ -217,17 +217,20 @@
<fo:block font-size="13pt" <fo:block font-size="13pt"
text-align="left"> text-align="left">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_logo.jpg')" height="2cm" /> src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_logo.jpg')"
height="2cm" />
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
<fo:table-cell display-align="after"> <fo:table-cell display-align="after">
<fo:block font-size="13pt" <fo:block font-size="13pt"
text-align="right"> text-align="right">
<xsl:variable name="logotipo" select="empresa/logotipo" /> <xsl:variable name="logotipo"
<fo:external-graphic src="url('{$logotipo}')" height="2cm" /> select="empresa/logotipo" />
<!-- <fo:external-graphic--> <fo:external-graphic
<!-- src="url('http://www.evolute.pt/~siprp/planoactuacao/auchan_jumbo_lado.jpg')"--> src="url('{$logotipo}')" height="2cm" />
<!-- height="2cm" />--> <!-- <fo:external-graphic-->
<!-- src="url('http://www.evolute.pt/~siprp/planoactuacao/auchan_jumbo_lado.jpg')"-->
<!-- height="2cm" />-->
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
</fo:table-row> </fo:table-row>
@ -2414,20 +2417,18 @@
<xsl:attribute name="break-before">page</xsl:attribute> <xsl:attribute name="break-before">page</xsl:attribute>
</xsl:if> </xsl:if>
<fo:table-column column-width="0.8368in" /> <fo:table-column column-width="0.8368in" />
<fo:table-column column-width="1.2799in" /> <fo:table-column column-width="1.6541in" />
<fo:table-column column-width="0.4785in" /> <fo:table-column column-width="0.4785in" />
<fo:table-column column-width="1.9826in" /> <fo:table-column column-width="2.3568in" />
<fo:table-column column-width="0.7875in" /> <fo:table-column column-width="1.1617in" />
<fo:table-column column-width="0.9847in" /> <fo:table-column column-width="1.3589in" />
<fo:table-column column-width="0.7875in" /> <fo:table-column column-width="0.7875in" />
<fo:table-column column-width="0.6889in" /> <fo:table-column column-width="0.6889in" />
<fo:table-column column-width="0.5903in" />
<fo:table-column column-width="0.9063in" />
<fo:table-column column-width="1.3813in" /> <fo:table-column column-width="1.3813in" />
<fo:table-body> <fo:table-body>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="5" padding-bottom="0in" number-columns-spanned="4" padding-bottom="0in"
padding-left="0.0486in" padding-top="0in" padding-left="0.0486in" padding-top="0in"
display-align="after" border="none" writing-mode="lr-tb" display-align="after" border="none" writing-mode="lr-tb"
padding-right="0.0486in"> padding-right="0.0486in">
@ -2436,11 +2437,12 @@
margin-bottom="0in" margin-right="-0.0484in" margin-bottom="0in" margin-right="-0.0484in"
text-indent="0in" margin-left="0in"> text-indent="0in" margin-left="0in">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_logo.jpg')" height="2cm" /> src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_logo.jpg')"
height="2cm" />
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
<fo:table-cell <fo:table-cell
number-columns-spanned="6" padding-bottom="0in" number-columns-spanned="5" padding-bottom="0in"
padding-left="0.0486in" padding-top="0in" padding-left="0.0486in" padding-top="0in"
display-align="after" border="none" writing-mode="lr-tb" display-align="after" border="none" writing-mode="lr-tb"
padding-right="0.0486in"> padding-right="0.0486in">
@ -2449,17 +2451,19 @@
margin-bottom="0in" margin-right="0in" text-indent="0in" margin-bottom="0in" margin-right="0in" text-indent="0in"
margin-left="1.2307in"> margin-left="1.2307in">
   
<!-- <fo:external-graphic--> <!-- <fo:external-graphic-->
<!-- src="url('http://www.evolute.pt/~siprp/planoactuacao/auchan_jumbo_lado.jpg')"--> <!-- src="url('http://www.evolute.pt/~siprp/planoactuacao/auchan_jumbo_lado.jpg')"-->
<!-- height="2cm" />--> <!-- height="2cm" />-->
<xsl:variable name="logotipo" select="empresa/logotipo" /> <xsl:variable
<fo:external-graphic src="url('{$logotipo}')" height="2cm" /> name="logotipo" select="empresa/logotipo" />
<fo:external-graphic
src="url('{$logotipo}')" height="2cm" />
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
</fo:table-row> </fo:table-row>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="11" padding-bottom="0in" number-columns-spanned="9" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2473,7 +2477,7 @@
</fo:table-row> </fo:table-row>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="11" padding-bottom="0in" number-columns-spanned="9" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2486,7 +2490,7 @@
</fo:table-row> </fo:table-row>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="11" padding-bottom="0in" number-columns-spanned="9" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2515,7 +2519,7 @@
</fo:table-row> </fo:table-row>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="11" padding-bottom="0in" number-columns-spanned="9" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2528,7 +2532,7 @@
</fo:table-row> </fo:table-row>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="6" padding-bottom="0in" number-columns-spanned="5" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2554,7 +2558,7 @@
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
<fo:table-cell <fo:table-cell
number-columns-spanned="5" padding-bottom="0in" number-columns-spanned="4" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2584,7 +2588,7 @@
</fo:table-row> </fo:table-row>
<fo:table-row> <fo:table-row>
<fo:table-cell <fo:table-cell
number-columns-spanned="11" padding-bottom="0in" number-columns-spanned="9" padding-bottom="0in"
padding-left="0.0493in" padding-top="0in" padding-left="0.0493in" padding-top="0in"
display-align="before" border="none" writing-mode="lr-tb" display-align="before" border="none" writing-mode="lr-tb"
padding-right="0.0493in"> padding-right="0.0493in">
@ -2695,31 +2699,6 @@
Data prevista de conclusão Data prevista de conclusão
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
<fo:table-cell padding-bottom="0in"
padding-left="0.0493in" border-left="0.0139in solid #000000"
border-bottom="0.0139in solid #000000" padding-top="0in"
border-top="0.0139in solid #000000" display-align="center"
background-color="#ccffff" writing-mode="lr-tb"
padding-right="0.0493in" border-right="none">
<fo:block font-size="9pt"
text-align="start" line-height="115%" margin-top="0in"
margin-bottom="0.139in" color="#000000" font-weight="bold">
Parecer DL
</fo:block>
</fo:table-cell>
<fo:table-cell padding-bottom="0in"
padding-left="0.0493in" border-left="0.0139in solid #000000"
border-bottom="0.0139in solid #000000" padding-top="0in"
border-top="0.0139in solid #000000" display-align="center"
background-color="#ccffff" writing-mode="lr-tb"
padding-right="0.0493in"
border-right="0.0139in solid #000000">
<fo:block font-size="9pt"
text-align="justify" line-height="115%" margin-top="0in"
margin-bottom="0.139in" font-weight="bold">
Parecer DNS
</fo:block>
</fo:table-cell>
<fo:table-cell padding-bottom="0in" <fo:table-cell padding-bottom="0in"
padding-left="0.0493in" border-left="0.0139in solid #000000" padding-left="0.0493in" border-left="0.0139in solid #000000"
border-bottom="0.0139in solid #000000" padding-top="0in" border-bottom="0.0139in solid #000000" padding-top="0in"
@ -2760,23 +2739,19 @@
<fo:table-column <fo:table-column
column-width="0.8368in" /> column-width="0.8368in" />
<fo:table-column <fo:table-column
column-width="1.2799in" /> column-width="1.6541in" />
<fo:table-column <fo:table-column
column-width="0.4785in" /> column-width="0.4785in" />
<fo:table-column <fo:table-column
column-width="1.9826in" /> column-width="2.3568in" />
<fo:table-column <fo:table-column
column-width="0.7875in" /> column-width="1.1617in" />
<fo:table-column <fo:table-column
column-width="0.9847in" /> column-width="1.3589in" />
<fo:table-column <fo:table-column
column-width="0.7875in" /> column-width="0.7875in" />
<fo:table-column <fo:table-column
column-width="0.6889in" /> column-width="0.6889in" />
<fo:table-column
column-width="0.5903in" />
<fo:table-column
column-width="0.9063in" />
<fo:table-column <fo:table-column
column-width="1.3813in" /> column-width="1.3813in" />
<fo:table-body> <fo:table-body>
@ -2963,40 +2938,6 @@
</fo:block> </fo:block>
</xsl:if> </xsl:if>
</fo:table-cell> </fo:table-cell>
<fo:table-cell
padding-bottom="0in" padding-left="0.0493in"
padding-top="0in" display-align="center"
writing-mode="lr-tb" padding-right="0.0493in"
border="0.0139in solid #000000">
<xsl:attribute
name="number-rows-spanned">
<xsl:value-of
select="$risco-rows" />
</xsl:attribute>
<fo:block
font-size="9pt" text-align="center" line-height="130%"
margin-top="0in" margin-bottom="0in">
<xsl:value-of
select="../../parecer-dl" />
</fo:block>
</fo:table-cell>
<fo:table-cell
padding-bottom="0in" padding-left="0.0493in"
padding-top="0in" display-align="center"
writing-mode="lr-tb" padding-right="0.0493in"
border="0.0139in solid #000000">
<xsl:attribute
name="number-rows-spanned">
<xsl:value-of
select="$risco-rows" />
</xsl:attribute>
<fo:block
font-size="9pt" text-align="center" line-height="130%"
margin-top="0in" margin-bottom="0in">
<xsl:value-of
select="../../parecer-dns" />
</fo:block>
</fo:table-cell>
<fo:table-cell <fo:table-cell
padding-bottom="0in" padding-left="0.0493in" padding-bottom="0in" padding-left="0.0493in"
padding-top="0in" display-align="center" padding-top="0in" display-align="center"
@ -3061,7 +3002,8 @@
margin-bottom="0in" margin-right="-0.0484in" margin-bottom="0in" margin-right="-0.0484in"
text-indent="0in" margin-left="0in"> text-indent="0in" margin-left="0in">
<fo:external-graphic <fo:external-graphic
src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_logo.jpg')" height="2cm" /> src="url('http://www.evolute.pt/~siprp/planoactuacao/siprp_logo.jpg')"
height="2cm" />
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
<fo:table-cell <fo:table-cell
@ -3074,8 +3016,10 @@
margin-bottom="0in" margin-right="0in" text-indent="0in" margin-bottom="0in" margin-right="0in" text-indent="0in"
margin-left="1.2307in"> margin-left="1.2307in">
   
<xsl:variable name="logotipo" select="empresa/logotipo" /> <xsl:variable
<fo:external-graphic src="url('{$logotipo}')" height="2cm" /> name="logotipo" select="empresa/logotipo" />
<fo:external-graphic
src="url('{$logotipo}')" height="2cm" />
</fo:block> </fo:block>
</fo:table-cell> </fo:table-cell>
</fo:table-row> </fo:table-row>
@ -3095,58 +3039,6 @@
</fo:block> </fo:block>
</fo:static-content> </fo:static-content>
<fo:flow flow-name="xsl-region-body"> <fo:flow flow-name="xsl-region-body">
<fo:table border="0.0139in solid #000000"
table-layout="fixed" width="10.7153in"
space-before="20pt">
<fo:table-column />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-size="9pt"
text-align="left" line-height="130%" margin-top="0in"
margin-bottom="0in" font-weight="bold">
Observações Gerais DL:
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row height="50pt">
<fo:table-cell>
<fo:block font-size="9pt"
text-align="left" line-height="130%" margin-top="0in"
margin-bottom="0in" font-weight="bold">
<xsl:value-of
select="observacoes-dl" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table border="0.0139in solid #000000"
table-layout="fixed" width="10.7153in" space-before="20pt">
<fo:table-column />
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block font-size="9pt"
text-align="left" line-height="130%" margin-top="0in"
margin-bottom="0in" font-weight="bold">
Observações Gerais DNS:
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row height="50pt">
<fo:table-cell>
<fo:block font-size="9pt"
text-align="left" line-height="130%" margin-top="0in"
margin-bottom="0in" font-weight="bold">
<xsl:value-of
select="observacoes-dns" />
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
<fo:table table-layout="fixed" width="10.7153in" <fo:table table-layout="fixed" width="10.7153in"
space-before="20pt"> space-before="20pt">
<fo:table-column /> <fo:table-column />

Loading…
Cancel
Save