diff --git a/trunk/PlanosActuacao/nbproject/build-impl.xml b/trunk/PlanosActuacao/nbproject/build-impl.xml
index 917911ee..511cbbcd 100644
--- a/trunk/PlanosActuacao/nbproject/build-impl.xml
+++ b/trunk/PlanosActuacao/nbproject/build-impl.xml
@@ -532,16 +532,10 @@ exists or setup the property manually. For example like this:
-
-
-
-
-
-
-
+
@@ -575,12 +569,6 @@ exists or setup the property manually. For example like this:
-
-
-
-
-
-
diff --git a/trunk/PlanosActuacao/nbproject/genfiles.properties b/trunk/PlanosActuacao/nbproject/genfiles.properties
index e8206d8f..c23198c7 100644
--- a/trunk/PlanosActuacao/nbproject/genfiles.properties
+++ b/trunk/PlanosActuacao/nbproject/genfiles.properties
@@ -1,8 +1,8 @@
-build.xml.data.CRC32=56cd2335
+build.xml.data.CRC32=d6fcc03c
build.xml.script.CRC32=50b8b881
build.xml.stylesheet.CRC32=c0ebde35
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=56cd2335
-nbproject/build-impl.xml.script.CRC32=feaf8777
+nbproject/build-impl.xml.data.CRC32=d6fcc03c
+nbproject/build-impl.xml.script.CRC32=abe897d8
nbproject/build-impl.xml.stylesheet.CRC32=174458fc
diff --git a/trunk/PlanosActuacao/nbproject/private/private.properties b/trunk/PlanosActuacao/nbproject/private/private.properties
index 6a755a8d..702a7e1c 100644
--- a/trunk/PlanosActuacao/nbproject/private/private.properties
+++ b/trunk/PlanosActuacao/nbproject/private/private.properties
@@ -1,11 +1,7 @@
-deploy.ant.properties.file=/home/tsimao/.netbeans/6.5/tomcat60.properties
-j2ee.platform.classpath=/home/tsimao/apache-tomcat-6.0.13/lib/tomcat-dbcp.jar:/home/tsimao/apache-tomcat-6.0.13/lib/servlet-api.jar:/home/tsimao/apache-tomcat-6.0.13/lib/annotations-api.jar:/home/tsimao/apache-tomcat-6.0.13/lib/tomcat-i18n-fr.jar:/home/tsimao/apache-tomcat-6.0.13/lib/jasper.jar:/home/tsimao/apache-tomcat-6.0.13/lib/tomcat-i18n-es.jar:/home/tsimao/apache-tomcat-6.0.13/lib/catalina.jar:/home/tsimao/apache-tomcat-6.0.13/lib/jasper-el.jar:/home/tsimao/apache-tomcat-6.0.13/lib/catalina-ha.jar:/home/tsimao/apache-tomcat-6.0.13/lib/commons-collections-3.1.jar:/home/tsimao/apache-tomcat-6.0.13/lib/tomcat-i18n-ja.jar:/home/tsimao/apache-tomcat-6.0.13/lib/el-api.jar:/home/tsimao/apache-tomcat-6.0.13/lib/catalina-ant.jar:/home/tsimao/apache-tomcat-6.0.13/lib/jsp-api.jar:/home/tsimao/apache-tomcat-6.0.13/lib/tomcat-coyote.jar:/home/tsimao/apache-tomcat-6.0.13/lib/catalina-tribes.jar:/home/tsimao/apache-tomcat-6.0.13/bin/tomcat-juli.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-rt.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-extra-api.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-extra.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-tools.jar
-j2ee.platform.jwsdp.classpath=/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-rt.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-tools.jar
-j2ee.platform.wsgen.classpath=/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-rt.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-tools.jar
-j2ee.platform.wsimport.classpath=/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-rt.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-tools.jar
-j2ee.platform.wsit.classpath=/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-rt.jar:/home/tsimao/apache-tomcat-6.0.13/shared/lib/webservices-tools.jar
-j2ee.server.instance=tomcat60:home=/home/tsimao/apache-tomcat-6.0.13
+deploy.ant.properties.file=/home/ntaborda/.netbeans/6.5/tomcat60.properties
+j2ee.platform.classpath=/usr/local/apache-tomcat-6.0.18/lib/tomcat-i18n-es.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-coyote.jar:/usr/local/apache-tomcat-6.0.18/lib/jasper.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina-ha.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-dbcp.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-i18n-fr.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina.jar:/usr/local/apache-tomcat-6.0.18/lib/annotations-api.jar:/usr/local/apache-tomcat-6.0.18/lib/servlet-api.jar:/usr/local/apache-tomcat-6.0.18/lib/jasper-el.jar:/usr/local/apache-tomcat-6.0.18/lib/el-api.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina-tribes.jar:/usr/local/apache-tomcat-6.0.18/lib/jsp-api.jar:/usr/local/apache-tomcat-6.0.18/lib/catalina-ant.jar:/usr/local/apache-tomcat-6.0.18/lib/tomcat-i18n-ja.jar:/usr/local/apache-tomcat-6.0.18/bin/tomcat-juli.jar
+j2ee.server.instance=tomcat60:home=/usr/local/apache-tomcat-6.0.18:base=apache-tomcat-6.0.18_base
javac.debug=true
javadoc.preview=true
-jaxws.endorsed.dir=/home/tsimao/.netbeans/6.5/modules/ext/jaxws21/api:/home/tsimao/.netbeans/6.5/modules/ext/jaxb/api
-user.properties.file=/home/tsimao/.netbeans/6.5/build.properties
+jaxws.endorsed.dir=/usr/local/netbeans-6.5.1/java2/modules/ext/jaxws21/api:/usr/local/netbeans-6.5.1/ide10/modules/ext/jaxb/api
+user.properties.file=/home/ntaborda/.netbeans/6.5/build.properties
diff --git a/trunk/PlanosActuacao/nbproject/project.properties b/trunk/PlanosActuacao/nbproject/project.properties
index 2431abd1..6a898b15 100644
--- a/trunk/PlanosActuacao/nbproject/project.properties
+++ b/trunk/PlanosActuacao/nbproject/project.properties
@@ -21,7 +21,6 @@ dist.javadoc.dir=${dist.dir}/javadoc
dist.war=${dist.dir}/${war.name}
excludes=
file.reference.activation.jar=jars/activation.jar
-file.reference.appbase.jar=../lib.netbeans/appbase.jar
file.reference.ashwood-1.1.jar=../common/lib/ashwood-1.1.jar
file.reference.avalon-framework-4.2.0.jar=lib/avalon-framework-4.2.0.jar
file.reference.avalon-framework-4.2.0.jar-1=../SIPRPSoft/lib/avalon-framework-4.2.0.jar
@@ -33,24 +32,19 @@ file.reference.commons-io-1.4.jar=../SIPRPSoft/lib/commons-io-1.4.jar
file.reference.commons-lang-2.1.jar=../common/lib/commons-lang-2.1.jar
file.reference.commons-logging-1.0.4.jar=../SIPRPSoft/lib/commons-logging-1.0.4.jar
file.reference.commons-logging-1.1.jar=../common/lib/commons-logging-1.1.jar
-file.reference.dataprovider.jar=../lib.netbeans/dataprovider.jar
file.reference.evolute.jar=../common/lib/evolute.jar
file.reference.fop.jar=../SIPRPSoft/lib/fop.jar
file.reference.jai_imageio.jar=lib/jai_imageio.jar
file.reference.jcalendar-1.3.2.jar=../common/lib/jcalendar-1.3.2.jar
file.reference.jdom.jar=lib/jdom.jar
-file.reference.jsf-api.jar=../lib.netbeans/jsf-api.jar
-file.reference.jsf-impl.jar=../lib.netbeans/jsf-impl.jar
file.reference.log4j-1.2.8.jar=../common/lib/log4j-1.2.8.jar
file.reference.mail.jar=jars/mail.jar
file.reference.mail.jar-1=../common/lib/mail.jar
file.reference.postgresql-8.0-315.jdbc3.jar=jars/postgresql-8.0-315.jdbc3.jar
file.reference.postgresql-8.1-407.jdbc3.jar=jars/postgresql-8.1-407.jdbc3.jar
file.reference.postgresql-8.2-506.jdbc4.jar=jars/postgresql-8.2-506.jdbc4.jar
-file.reference.servlet-api.jar=../lib.tools/servlet-api.jar
file.reference.SIPRP.jar=lib/SIPRP.jar
file.reference.TableLayout.jar=../common/lib/TableLayout.jar
-file.reference.webui.jar=../lib.netbeans/webui.jar
file.reference.xmlgraphics-commons-1.3.1.jar=../SIPRPSoft/lib/xmlgraphics-commons-1.3.1.jar
includes=**
j2ee.deploy.on.save=false
@@ -87,13 +81,7 @@ javac.classpath=\
${file.reference.avalon-framework-4.2.0.jar-1}:\
${file.reference.batik-all-1.7.jar}:\
${file.reference.commons-io-1.4.jar}:\
- ${file.reference.commons-logging-1.0.4.jar}:\
- ${file.reference.appbase.jar}:\
- ${file.reference.dataprovider.jar}:\
- ${file.reference.jsf-api.jar}:\
- ${file.reference.jsf-impl.jar}:\
- ${file.reference.webui.jar}:\
- ${file.reference.servlet-api.jar}
+ ${file.reference.commons-logging-1.0.4.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true
diff --git a/trunk/PlanosActuacao/nbproject/project.xml b/trunk/PlanosActuacao/nbproject/project.xml
index 59689626..22827dbe 100644
--- a/trunk/PlanosActuacao/nbproject/project.xml
+++ b/trunk/PlanosActuacao/nbproject/project.xml
@@ -127,30 +127,6 @@
${file.reference.commons-logging-1.0.4.jar}
WEB-INF/lib
-
- ${file.reference.appbase.jar}
- WEB-INF/lib
-
-
- ${file.reference.dataprovider.jar}
- WEB-INF/lib
-
-
- ${file.reference.jsf-api.jar}
- WEB-INF/lib
-
-
- ${file.reference.jsf-impl.jar}
- WEB-INF/lib
-
-
- ${file.reference.webui.jar}
- WEB-INF/lib
-
-
- ${file.reference.servlet-api.jar}
- WEB-INF/lib
-
diff --git a/trunk/PlanosActuacao/src/java/planosactuacao/PlanosActuacao.java b/trunk/PlanosActuacao/src/java/planosactuacao/PlanosActuacao.java
index decb1d4c..7bbdb6b2 100644
--- a/trunk/PlanosActuacao/src/java/planosactuacao/PlanosActuacao.java
+++ b/trunk/PlanosActuacao/src/java/planosactuacao/PlanosActuacao.java
@@ -51,7 +51,7 @@ public class PlanosActuacao {
{
System.out.println( "Importar planos de actua" + ccedil + atilde + "o" );
//rdp = new RelatoriosDataProvider();
- Integer estabelecimentoId = null;
+ // Integer estabelecimentoId = null;
// if(u.getTipo().intValue() != Global.TECNICO_HS && u.getTipo().intValue() != Global.DIRECTOR_SIPRP)
// {
// estabelecimentoId = u.getEstabelecimento_id();
@@ -107,14 +107,33 @@ public class PlanosActuacao {
private void initRelatorios(List list, Integer estabelecimentoId)
{
+ System.out.println("initRelatorios for estabelecimento id: " + estabelecimentoId );
if( estabelecimentoId == null )
{
- List estabelecimentos = cpdp.getEstabelecimentosWithPlanos();
+ List estabelecimentos = cpdp.getEstabelecimentosWithPlanos();
+ putPlanosOnline(pa.getRelatoriosNotIn(estabelecimentos));
for( Integer estabelecimentoID : estabelecimentos )
{
try
{
- putPlanosOnline(pa.getRelatoriosNotIn(cpdp.getPlanosOnline(estabelecimentoID), estabelecimentoID));
+ System.out.println("A importar relatorio para o estabelecimento: " + estabelecimentoID );
+ List datas = cpdp.getPlanosOnline(estabelecimentoID);
+ if( datas.isEmpty() )
+ {
+ System.out.println("Nenhuma data de relatorio para o estabelecimento: " + estabelecimentoID );
+ }
+ else
+ {
+ List relatorios = pa.getRelatoriosNotIn(datas, estabelecimentoID);
+ if( relatorios.isEmpty() )
+ {
+ System.out.println("Nenhum relatorio novo para o estabelecimento: " + estabelecimentoID );
+ }
+ else
+ {
+ putPlanosOnline(relatorios);
+ }
+ }
}
catch(Exception e )
{
@@ -130,9 +149,8 @@ public class PlanosActuacao {
private void putPlanosOnline(List listRelatorios)
{
-
+ System.out.println("putPlanosOnline (" + listRelatorios == null ? "null" : listRelatorios.size() );
Iterator iter = listRelatorios.iterator();
-
while(iter.hasNext())
{
HsRelatorio relatorio = iter.next();