|
|
|
|
@ -16,6 +16,7 @@ import beans.Trabalhador;
|
|
|
|
|
import beans.Utilizador;
|
|
|
|
|
import beans.Acidentado;
|
|
|
|
|
import beans.AnaliseAcidente;
|
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
|
import com.sun.data.provider.RowKey;
|
|
|
|
|
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
|
|
|
|
import com.sun.rave.web.ui.component.Body;
|
|
|
|
|
@ -64,12 +65,6 @@ import javax.faces.component.html.HtmlPanelGrid;
|
|
|
|
|
import javax.faces.el.MethodBinding;
|
|
|
|
|
import javax.faces.event.ActionEvent;
|
|
|
|
|
import javax.faces.event.ValueChangeEvent;
|
|
|
|
|
import javax.mail.Authenticator;
|
|
|
|
|
import javax.mail.BodyPart;
|
|
|
|
|
import javax.mail.Message;
|
|
|
|
|
import javax.mail.Multipart;
|
|
|
|
|
import javax.mail.Session;
|
|
|
|
|
import javax.mail.Transport;
|
|
|
|
|
import javax.mail.internet.InternetAddress;
|
|
|
|
|
import javax.mail.internet.MimeBodyPart;
|
|
|
|
|
import javax.mail.internet.MimeMessage;
|
|
|
|
|
@ -6990,7 +6985,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -6998,7 +6993,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -7010,7 +7005,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -7055,7 +7050,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// {
|
|
|
|
|
// //lblActivos.setRendered(false);
|
|
|
|
|
// table1.setRendered(false);
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
@ -7080,7 +7075,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_acidente().getTime());
|
|
|
|
|
stHeaderDate.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
AnalisesDataProvider adp = new AnalisesDataProvider();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -7089,7 +7087,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -7097,7 +7095,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Acidentado ac = null;
|
|
|
|
|
@ -7111,7 +7109,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -7522,7 +7520,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
//ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -7532,7 +7530,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -7556,7 +7554,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -7566,7 +7564,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -7589,12 +7587,18 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
cod_postal1 = a.getCod_postal().substring(0, 4);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
cod_postal2 = a.getCod_postal().substring(5, 8);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
txtCodPostal1.setText(cod_postal1);
|
|
|
|
|
@ -7606,7 +7610,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_admissao().getTime());
|
|
|
|
|
stDataAdmissao.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stFuncao.setText(a.getFuncao());
|
|
|
|
|
rbTurnoManha.setSelected(null);
|
|
|
|
|
@ -7640,7 +7647,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_nascimento().getTime());
|
|
|
|
|
stDataNascimento.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
stBI.setText(a.getBilhete_identidade());
|
|
|
|
|
stMorada.setText(a.getMorada());
|
|
|
|
|
String cod_postal1 = "";
|
|
|
|
|
@ -7677,7 +7687,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_admissao().getTime());
|
|
|
|
|
stDataAdmissao1.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
stFuncao1.setText(a.getFuncao());
|
|
|
|
|
String turno_str = "";
|
|
|
|
|
if(a.getTurno() != null)
|
|
|
|
|
@ -7739,7 +7752,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
//ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getHoras_turno() != null)
|
|
|
|
|
@ -7766,7 +7779,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
txtLocal.setText(a.getLocal_trabalho());
|
|
|
|
|
@ -7853,7 +7866,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -7874,7 +7887,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_acidente().getTime());
|
|
|
|
|
stDataAcidente1.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(a.getHora_acidente() == null)
|
|
|
|
|
@ -7895,7 +7911,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
stHoraAcidente1.setText(utils.Utils.timeToHHMM(hour + ":" + minutes));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean booTurnoSeccaoLocal = false;
|
|
|
|
|
@ -7938,7 +7957,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
lblSeccao.setRendered(false);
|
|
|
|
|
txtSeccao1.setRendered(false);
|
|
|
|
|
}
|
|
|
|
|
@ -8060,7 +8079,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
gridCausas.setRendered(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -8203,7 +8222,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -8233,7 +8252,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -8241,7 +8260,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -8249,7 +8268,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -8257,7 +8276,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
@ -8265,7 +8284,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(a.getOutros_acidentes_com_colaborador().matches("n"))
|
|
|
|
|
@ -8287,7 +8306,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -8296,7 +8315,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -8305,7 +8324,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -8314,7 +8333,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -8323,7 +8342,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if( a.getAcidentes_outros_colaboradores().matches("n") )
|
|
|
|
|
@ -8653,7 +8672,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -8692,7 +8711,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -8748,7 +8767,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -8787,7 +8806,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -9334,7 +9353,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_aval_incapacidade().getTime());
|
|
|
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -9355,7 +9377,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_rev_incapacidade().getTime());
|
|
|
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -9386,7 +9411,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getPeriodo_incapacidade_de().getTime());
|
|
|
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
st = new StaticText();
|
|
|
|
|
st.setId("stPeriodoIncapacidadeLbl2");
|
|
|
|
|
@ -9402,7 +9430,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getPeriodo_incapacidade_a().getTime());
|
|
|
|
|
st.setText(utils.Utils.dateToYYYYMMDD(ddate));
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
pg.getChildren().add(st);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -10037,7 +10068,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_inicio_processo().getTime());
|
|
|
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
st.setText(txtVer);
|
|
|
|
|
gridAssinaturasView.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
@ -10055,7 +10089,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_consolidacao().getTime());
|
|
|
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
st.setText(txtVer);
|
|
|
|
|
gridAssinaturasView.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
@ -10072,7 +10109,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_seg().getTime());
|
|
|
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
st.setText(txtVer);
|
|
|
|
|
gridAssinaturasView.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
@ -10089,7 +10129,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_rh().getTime());
|
|
|
|
|
txtVer += utils.Utils.dateToYYYYMMDD(ddate) + ".";
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
st.setText(txtVer);
|
|
|
|
|
gridAssinaturasView.getChildren().add(st);
|
|
|
|
|
}
|
|
|
|
|
@ -10116,7 +10159,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(ac.getData_email_superior_hierarquico().getTime());
|
|
|
|
|
txtVer += " a " + utils.Utils.dateToYYYYMMDD(ddate);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
txtVer += ".";
|
|
|
|
|
@ -10127,7 +10173,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
HtmlPanelGrid grid = new HtmlPanelGrid();
|
|
|
|
|
@ -10190,7 +10236,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_superior().getTime());
|
|
|
|
|
stData += utils.Utils.dateToYYYYMMDD(ddate);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
stAssSup2.setText(txt + nome_acidentado + ", a " + stData);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -10207,7 +10256,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_assinatura_superior().getTime());
|
|
|
|
|
stData += utils.Utils.dateToYYYYMMDD(ddate);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){};
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String txt = "Assinado na Ficha de Análise de Acidente em papel por " + a.getNome_superior() + ", superior hierárquico / superior de ";
|
|
|
|
|
txt += getSessionBean1().getAcidentado().getNome() + ", a " + stData;
|
|
|
|
|
@ -10301,7 +10353,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -10391,7 +10443,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Erro na inserção da análise !");
|
|
|
|
|
getSessionBean1().setGravado(false);
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -10473,7 +10525,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Erro na actualização da análise !");
|
|
|
|
|
getSessionBean1().setGravado(false);
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -10533,7 +10585,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Erro no envio da análise !");
|
|
|
|
|
getSessionBean1().setSubmetido(false);
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
@ -10646,7 +10698,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Erro na actualização da análise !");
|
|
|
|
|
getSessionBean1().setSubmetido(false);
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
@ -10686,7 +10738,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
ListIterator iter = recs.listIterator();
|
|
|
|
|
while(iter.hasNext())
|
|
|
|
|
@ -10704,7 +10756,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
ListIterator iter = meds.listIterator();
|
|
|
|
|
while(iter.hasNext())
|
|
|
|
|
@ -10902,10 +10954,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
a.setAveriguador((String) txtAveriguador.getText());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
java.util.Date today =
|
|
|
|
|
new java.util.Date();
|
|
|
|
|
java.sql.Date sqlToday =
|
|
|
|
|
new java.sql.Date(today.getTime());
|
|
|
|
|
java.util.Date today = new java.util.Date();
|
|
|
|
|
java.sql.Date sqlToday = new java.sql.Date(today.getTime());
|
|
|
|
|
//if(a.getData_acidente() == null)
|
|
|
|
|
//{
|
|
|
|
|
// a.setData_acidente(sqlToday);
|
|
|
|
|
@ -10953,7 +11003,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -10986,7 +11036,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
a.setHoras_turno(horas_turno);
|
|
|
|
|
|
|
|
|
|
@ -11003,7 +11053,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
a.setDepartamento_id(( Integer ) drpDepartamento.getSelected());
|
|
|
|
|
@ -11022,7 +11072,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -11038,7 +11088,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -11054,7 +11104,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// try
|
|
|
|
|
@ -11070,7 +11120,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -11086,7 +11136,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -11102,7 +11152,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// try
|
|
|
|
|
@ -11118,7 +11168,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
a.setCausas((Integer) drpCausas.getSelected());
|
|
|
|
|
@ -11136,7 +11186,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -11152,7 +11202,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
@ -11168,7 +11218,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
a.setAveriguacao_posterior("n");
|
|
|
|
|
@ -11246,7 +11296,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11263,7 +11313,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11279,7 +11329,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11295,7 +11345,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11311,7 +11361,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11354,7 +11404,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11371,7 +11421,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11387,7 +11437,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11403,7 +11453,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11419,7 +11469,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -11623,7 +11673,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -11950,10 +12000,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
{
|
|
|
|
|
String nome_resp_consolidacao = getSessionBean1().getCurrentUser().getNome();
|
|
|
|
|
a.setNome_resp_consolidacao(nome_resp_consolidacao);
|
|
|
|
|
java.util.Date today =
|
|
|
|
|
new java.util.Date();
|
|
|
|
|
java.sql.Date sqlToday =
|
|
|
|
|
new java.sql.Date(today.getTime());
|
|
|
|
|
java.util.Date today = new java.util.Date();
|
|
|
|
|
java.sql.Date sqlToday = new java.sql.Date(today.getTime());
|
|
|
|
|
a.setData_consolidacao(sqlToday);
|
|
|
|
|
a.setAss_consolidacao("y");
|
|
|
|
|
return a;
|
|
|
|
|
@ -12014,7 +12062,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
meta = null;
|
|
|
|
|
meta_ac = null;
|
|
|
|
|
}
|
|
|
|
|
@ -13218,7 +13266,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -13263,7 +13311,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -13546,7 +13594,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
stBI.setText(a.getBi());
|
|
|
|
|
@ -13665,7 +13713,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -13821,7 +13869,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -13852,7 +13900,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -13952,7 +14000,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
@ -13971,7 +14019,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
@ -14033,7 +14081,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// break;
|
|
|
|
|
@ -14052,7 +14100,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
@ -14123,7 +14171,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex1)
|
|
|
|
|
{
|
|
|
|
|
ex1.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex1 );
|
|
|
|
|
System.out.println("MAIL ERROR : " + ex1.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -14131,7 +14179,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
//ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -14147,7 +14195,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
java.util.Date ddate = new java.util.Date(a.getData_acidente().getTime());
|
|
|
|
|
data_acidente = utils.Utils.dateToYYYYMMDD(ddate);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex){}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String texto_email = "<p style='text-align: justify; font-family: arial, sans-serif'>Caro(a) Colega,</p>";
|
|
|
|
|
texto_email += "<p style='text-align: justify; font-family: arial, sans-serif'>Na sequência do acidente de trabalho do colaborador ";
|
|
|
|
|
@ -14162,7 +14213,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -14191,7 +14242,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -14220,13 +14271,13 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
System.out.println("EMAIL FASE 4 ERROR : " + ex.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -14264,7 +14315,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
//// catch (Exception ex)
|
|
|
|
|
//// {
|
|
|
|
|
//// System.out.println("MAIL ERROR : " + ex.getMessage());
|
|
|
|
|
//// ex.printStackTrace();
|
|
|
|
|
//// ErrorLogger.logException( ex );
|
|
|
|
|
//// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
@ -14516,7 +14567,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Erro na actualização da análise !");
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -14568,7 +14619,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -14657,7 +14708,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
txtTrabalhador.setText("");
|
|
|
|
|
gridSiprp.setRendered(false);
|
|
|
|
|
gridDadosAcidenteSeg.setRendered(false);
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
@ -14808,7 +14859,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
}
|
|
|
|
|
hidAnchor.setValue("dados");
|
|
|
|
|
}
|
|
|
|
|
@ -14827,7 +14878,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
|
// }
|
|
|
|
|
getSessionBean1().setIeBug(true);
|
|
|
|
|
return null;
|
|
|
|
|
@ -14863,7 +14914,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
@ -14900,7 +14951,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|