fix mail subjects

git-svn-id: https://svn.coded.pt/svn/SIPRP@1685 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 15 years ago
parent 41f5feb4b8
commit 691db3a8c4

@ -554,10 +554,11 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xml-apis-1.3.04.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xml-apis-ext-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xml-apis-ext-1.3.04.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.xmlgraphics-commons-1.3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${file.reference.commons-httpclient-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" manifestproperty="manifest.file.reference.commons-httpclient-3.1.jar" todir="${dist.ear.dir}"/>
<copyfiles files="${libs.exceptionhandler-runtime.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update">
<attribute name="Class-Path" value="${manifest.libs.jsf12.classpath} ${manifest.libs.jstl11.classpath} ${manifest.libs.jsf12-support.classpath} ${manifest.libs.woodstock-components.classpath} ${manifest.libs.woodstock-theme-default.classpath} ${manifest.file.reference.activation.jar} ${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.commons-beanutils-1.8.3.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.commons-digester-1.8.jar} ${manifest.file.reference.commons-fileupload-1.2.1.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.commons-lang-2.4.jar} ${manifest.file.reference.commons-logging-1.1.1.jar} ${manifest.file.reference.commons-validator-1.3.1.jar} ${manifest.file.reference.cursos.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.fop.jar} ${manifest.file.reference.jai_imageio.jar} ${manifest.file.reference.jdbcappender.jar} ${manifest.file.reference.jdom.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.mail.jar-1} ${manifest.file.reference.postgresql-8.4-701.jdbc4.jar} ${manifest.file.reference.richfaces-api-3.3.3.Final.jar} ${manifest.file.reference.richfaces-impl-3.3.3.Final.jar} ${manifest.file.reference.richfaces-impl-jsf2-3.3.3.Final.jar} ${manifest.file.reference.richfaces-ui-3.3.3.Final.jar} ${manifest.file.reference.serializer-2.7.0.jar} ${manifest.file.reference.shst.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} "/>
<attribute name="Class-Path" value="${manifest.libs.jsf12.classpath} ${manifest.libs.jstl11.classpath} ${manifest.libs.jsf12-support.classpath} ${manifest.libs.woodstock-components.classpath} ${manifest.libs.woodstock-theme-default.classpath} ${manifest.file.reference.activation.jar} ${manifest.file.reference.ashwood-2.0.jar} ${manifest.file.reference.avalon-framework-4.2.0.jar} ${manifest.file.reference.batik-all-1.7.jar} ${manifest.file.reference.commons-beanutils-1.8.3.jar} ${manifest.file.reference.commons-collections-3.1.jar} ${manifest.file.reference.commons-digester-1.8.jar} ${manifest.file.reference.commons-fileupload-1.2.1.jar} ${manifest.file.reference.commons-io-1.4.jar} ${manifest.file.reference.commons-lang-2.4.jar} ${manifest.file.reference.commons-logging-1.1.1.jar} ${manifest.file.reference.commons-validator-1.3.1.jar} ${manifest.file.reference.cursos.jar} ${manifest.file.reference.evologger.jar} ${manifest.file.reference.evolute.jar} ${manifest.file.reference.fop.jar} ${manifest.file.reference.jai_imageio.jar} ${manifest.file.reference.jdbcappender.jar} ${manifest.file.reference.jdom.jar} ${manifest.file.reference.log4j-1.2.15.jar} ${manifest.file.reference.mail.jar-1} ${manifest.file.reference.postgresql-8.4-701.jdbc4.jar} ${manifest.file.reference.richfaces-api-3.3.3.Final.jar} ${manifest.file.reference.richfaces-impl-3.3.3.Final.jar} ${manifest.file.reference.richfaces-impl-jsf2-3.3.3.Final.jar} ${manifest.file.reference.richfaces-ui-3.3.3.Final.jar} ${manifest.file.reference.serializer-2.7.0.jar} ${manifest.file.reference.shst.jar} ${manifest.file.reference.xalan-2.7.0.jar} ${manifest.file.reference.xercesImpl-2.7.1.jar} ${manifest.file.reference.xml-apis-1.3.04.jar} ${manifest.file.reference.xml-apis-ext-1.3.04.jar} ${manifest.file.reference.xmlgraphics-commons-1.3.1.jar} ${manifest.file.reference.commons-httpclient-3.1.jar} "/>
</manifest>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
@ -599,6 +600,7 @@ exists or setup the property manually. For example like this:
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xml-apis-ext-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlgraphics-commons-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-httpclient-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${libs.exceptionhandler-runtime.classpath}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">

@ -1,8 +1,8 @@
build.xml.data.CRC32=68c8c433
build.xml.data.CRC32=ef70fc74
build.xml.script.CRC32=50b8b881
build.xml.stylesheet.CRC32=c0ebde35@1.15.2.1
# 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=68c8c433
nbproject/build-impl.xml.script.CRC32=0f9e6147
nbproject/build-impl.xml.data.CRC32=ef70fc74
nbproject/build-impl.xml.script.CRC32=7b3f4148
nbproject/build-impl.xml.stylesheet.CRC32=8ab4467e@1.15.2.1

@ -30,6 +30,7 @@ file.reference.commons-beanutils-1.8.3.jar=lib/commons-beanutils-1.8.3.jar
file.reference.commons-collections-3.1.jar=lib/commons-collections-3.1.jar
file.reference.commons-digester-1.8.jar=lib/commons-digester-1.8.jar
file.reference.commons-fileupload-1.2.1.jar=lib/commons-fileupload-1.2.1.jar
file.reference.commons-httpclient-3.1.jar=lib/commons-httpclient-3.1.jar
file.reference.commons-io-1.4.jar=lib/commons-io-1.4.jar
file.reference.commons-lang-2.4.jar=lib/commons-lang-2.4.jar
file.reference.commons-logging-1.1.1.jar=lib/commons-logging-1.1.1.jar
@ -98,7 +99,8 @@ javac.classpath=\
${file.reference.xercesImpl-2.7.1.jar}:\
${file.reference.xml-apis-1.3.04.jar}:\
${file.reference.xml-apis-ext-1.3.04.jar}:\
${file.reference.xmlgraphics-commons-1.3.1.jar}
${file.reference.xmlgraphics-commons-1.3.1.jar}:\
${file.reference.commons-httpclient-3.1.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true

@ -159,6 +159,10 @@
<file>${file.reference.xmlgraphics-commons-1.3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library>
<file>${file.reference.commons-httpclient-3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries>
<web-module-additional-libraries>
<library>

@ -52,7 +52,8 @@ public class Mail
msg.setRecipients( Message.RecipientType.BCC, addressBCC );
}
( ( MimeMessage ) msg ).setSubject( assunto, "UTF-8" );
// ( ( MimeMessage ) msg ).setSubject( assunto, "UTF-8" );
( ( MimeMessage ) msg ).setSubject( assunto, "ISO-8859-1" );
msg.setSentDate( new Date() );
Multipart multipart = new MimeMultipart();
BodyPart msgBodyPart = new MimeBodyPart();

@ -2076,7 +2076,7 @@ public class EditarPlano extends AbstractPageBean
case Global.FASE_SEGURANCA_PREENCHIMENTO :
if ( p.getFase_anterior() == null )
{
assunto = "PLANOS - SEGURAN&Ccedil;A (PREENCHIMENTO)";
assunto = "PLANOS - SEGURANÇA (PREENCHIMENTO)";
mail_text = "Notifica-se que o Plano passou para a fase Seguran&ccedil;&atildea(Preenchimento)";
}
else
@ -2085,7 +2085,7 @@ public class EditarPlano extends AbstractPageBean
{
case Global.FASE_DIR_LOJA_VALIDACAO:
tipo_utilizador = Global.DIRECTOR_LOJA;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - Pedido de Correc&ccedil;&atildeo";
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - Pedido de Correcção";
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>O Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " foi devolvido para correc&ccedil;&atilde;o.</p>";
mail_text += "<p>Proceda, por favor, em www.siprp.com &agrave;(s) respectiva(s) correc&ccedil;&atilde;o(&otilde;es) de acordo com as indica&ccedil;&otilde;es e volte a reenviar o processo para a fase seguinte.</p>";
@ -2100,7 +2100,7 @@ public class EditarPlano extends AbstractPageBean
case Global.FASE_DIR_LOJA_VALIDACAO :
tipo_utilizador = Global.DIRECTOR_LOJA;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str();
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str();
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>Encontra-se dispon&iacute;vel em <a>www.siprp.com</a> o Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de ";
mail_text += "Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " para que possa ";
@ -2112,7 +2112,7 @@ public class EditarPlano extends AbstractPageBean
case Global.FASE_DNS_PARECER :
tipo_utilizador = Global.DIRECTOR_NACIONAL_SEGURANCA;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento();
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento();
mail_text = "<p>Exmo. Senhor Silvestre Machado,</p>";
mail_text += "<p>Encontra-se dispon&iacute;vel em www.siprp.com o Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " para que o possa validar.</p>";
mail_text += "<p>Cumprimentos.</p>";
@ -2121,14 +2121,14 @@ public class EditarPlano extends AbstractPageBean
case Global.FASE_SIPRP_CONCLUSAO :
tipo_utilizador = Global.TECNICO_HS;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento();
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento();
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>Encontra-se dispon&iacute;vel em www.siprp.com o Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " para que possa efectuar a sua verifica&ccedil;&atilde;o.</p>";
mail_text += "<p><center><b>Por favor n&atilde;o responda a esta mensagem, dado tratar-se de um e-mail autom&aacute;tico</b></center></p>";
break;
case Global.FASE_CONCLUIDO :
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento() + " - Processo finalizado";
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento() + " - Processo finalizado";
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>Encontra-se dispon&iacute;vel em www.siprp.com o Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " finalizado ap&oacute;s verifica&ccedil;&atilde;o pelos T&eacute;cnicos Superiores de Higiene e Seguran&ccedil;a da SIPRP.</p>";
mail_text += "<p>Aproveitamos para agradecer toda a disponibilidade e ficamos ao vosso dispor, caso tenha alguma d&uacute;vida ou necessite de qualquer esclarecimento, atrav&eacute;s do telefone 213 504 540.</p>";

@ -325,7 +325,7 @@ public class EnviarCorrecao extends AbstractPageBean
{
case Global.FASE_SEGURANCA_PREENCHIMENTO :
tipo_utilizador = Global.RESPONSAVEL_SEGURANCA;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - Pedido de Correc&ccedil;&atildeo";
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - Pedido de Correcção";
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>O Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " foi devolvido para correc&ccedil;&atilde;o.</p>";
mail_text += "<p>Proceda, por favor, em www.siprp.com &agrave;(s) respectiva(s) correc&ccedil;&atilde;o(&otilde;es) de acordo com as indica&ccedil;&otilde;es e volte a reenviar o processo para a fase seguinte.</p>";
@ -337,7 +337,7 @@ public class EnviarCorrecao extends AbstractPageBean
case Global.FASE_DIR_LOJA_VALIDACAO :
tipo_utilizador = Global.DIRECTOR_LOJA;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - Pedido de Correc&ccedil;&atildeo";
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - Pedido de Correcção";
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>O Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " foi devolvido para correc&ccedil;&atilde;o.</p>";
mail_text += "<p>Proceda, por favor, em www.siprp.com &agrave;(s) respectiva(s) correc&ccedil;&atilde;o(&otilde;es) de acordo com as indica&ccedil;&otilde;es do Director Nacional de Seguran&ccedil;a e volte a reenviar o processo para a fase seguinte.</p>";

@ -428,7 +428,7 @@ public class PlanosActuacao
{
case Global.FASE_SEGURANCA_PREENCHIMENTO :
tipo_utilizador = Global.RESPONSAVEL_SEGURANCA;
assunto = "Plano de Actua&ccedil;&atildeo da Avalia&ccedil;&atildeo de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento();
assunto = "Plano de Actuação da Avaliação de Riscos de " + p.getData_visita_str() + " - " + p.getNome_estabelecimento();
mail_text = "<p>Exmo. (a) Senhor (a),</p>";
mail_text += "<p>Encontra-se dispon&iacute;vel em www.siprp.com o Plano de Actua&ccedil;&atilde;o referente &agrave; auditoria de Avalia&ccedil;&atilde;o de Riscos Laborais realizada no passado dia " + p.getData_visita_str() + " para que possa efectuar o seu preenchimento.</p>";
mail_text += "<p>Recordamos que disp&otilde;e de duas semanas para efectuar o seu preenchimento e passar o respectivo processo para a fase seguinte, ou seja, para o respons&aacute;vel pelo seu estabelecimento.</p>";

Loading…
Cancel
Save