|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
package planosactuacao;
|
|
|
|
package planosactuacao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
|
|
|
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
|
|
|
|
|
|
|
|
|
|
|
import com.sun.webui.jsf.component.Button;
|
|
|
|
import com.sun.webui.jsf.component.Button;
|
|
|
|
@ -325,6 +326,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
_init();
|
|
|
|
_init();
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
ErrorLogger.logException( e );
|
|
|
|
log("PlanoActuacao Initialization Failure", e);
|
|
|
|
log("PlanoActuacao Initialization Failure", e);
|
|
|
|
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
|
|
|
throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -986,7 +988,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch ( Exception e )
|
|
|
|
catch ( Exception e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
e.printStackTrace();
|
|
|
|
ErrorLogger.logException( e );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DropDown drop = new DropDown();
|
|
|
|
DropDown drop = new DropDown();
|
|
|
|
@ -1405,7 +1407,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
st.setText("Validado por " + nome + " (Director de Loja) a " + p.getData_validacao_dir_loja_str());
|
|
|
|
st.setText("Validado por " + nome + " (Director de Loja) a " + p.getData_validacao_dir_loja_str());
|
|
|
|
gridValidacoes.getChildren().add(st);
|
|
|
|
gridValidacoes.getChildren().add(st);
|
|
|
|
@ -1426,7 +1428,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
st.setText("Validado por " + nome + " (Director de Loja) a " + p.getData_validacao_dir_loja_str());
|
|
|
|
st.setText("Validado por " + nome + " (Director de Loja) a " + p.getData_validacao_dir_loja_str());
|
|
|
|
gridValidacoes.getChildren().add(st);
|
|
|
|
gridValidacoes.getChildren().add(st);
|
|
|
|
@ -1445,7 +1447,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
st.setText("Validado por " + nome + " (Director Nacional de Segurança) a " + p.getData_validacao_dns_str());
|
|
|
|
st.setText("Validado por " + nome + " (Director Nacional de Segurança) a " + p.getData_validacao_dns_str());
|
|
|
|
//st.setText("Validado por Director Nacional de Segurança");
|
|
|
|
//st.setText("Validado por Director Nacional de Segurança");
|
|
|
|
@ -1519,7 +1521,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
getSessionBean1().setMsg("Erro na gravação do plano!");
|
|
|
|
getSessionBean1().setMsg("Erro na gravação do plano!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1723,7 +1725,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1771,7 +1773,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//Risco r = getNextRisco(getSessionBean1().getPlanoId());
|
|
|
|
//Risco r = getNextRisco(getSessionBean1().getPlanoId());
|
|
|
|
@ -1955,7 +1957,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -1965,7 +1967,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
getSessionBean1().setMsg("Erro no envio do Plano");
|
|
|
|
getSessionBean1().setMsg("Erro no envio do Plano");
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -2356,7 +2358,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex1)
|
|
|
|
catch(Exception ex1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex1.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex1 );
|
|
|
|
System.out.println("MAIL ERROR : " + ex1.getMessage());
|
|
|
|
System.out.println("MAIL ERROR : " + ex1.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -2364,7 +2366,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else //fase concluido
|
|
|
|
else //fase concluido
|
|
|
|
@ -2394,7 +2396,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex1)
|
|
|
|
catch(Exception ex1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex1.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex1 );
|
|
|
|
System.out.println("MAIL ERROR : " + ex1.getMessage());
|
|
|
|
System.out.println("MAIL ERROR : " + ex1.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -2402,7 +2404,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ex.printStackTrace();
|
|
|
|
ErrorLogger.logException( ex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -2410,7 +2412,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
|
|
|
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
// catch(Exception ex)
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// //ex.printStackTrace();
|
|
|
|
// //ErrorLogger.logException( ex );
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// Mail mail = new Mail();
|
|
|
|
// Mail mail = new Mail();
|
|
|
|
// try
|
|
|
|
// try
|
|
|
|
@ -2420,7 +2422,7 @@ public class EditarPlano extends AbstractPageBean {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// catch(Exception ex)
|
|
|
|
// catch(Exception ex)
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// ex.printStackTrace();
|
|
|
|
// ErrorLogger.logException( ex );
|
|
|
|
// System.out.println("ERRO NO ENVIO DO EMAIL !!");
|
|
|
|
// System.out.println("ERRO NO ENVIO DO EMAIL !!");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|