|
|
|
|
@ -12160,15 +12160,15 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
getSessionBean1().setMsg("Campo Bilhete Identidade não pode exceder " + len + " caracteres!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
int bi_nr = Integer.parseInt(bi);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Nº do Bilhete de Identidade tem de ser numérico!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// int bi_nr = Integer.parseInt(bi);
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// getSessionBean1().setMsg("Nº do Bilhete de Identidade tem de ser numérico!");
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(txtMorada.getText() != null)
|
|
|
|
|
@ -12613,18 +12613,18 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
getSessionBean1().setMsg("Falta Nº Bilhete de Identidade!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
int bi_nr = Integer.parseInt(bi);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
getSessionBean1().setMsg("Nº do Bilhete de Identidade tem de ser numérico!");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// int bi_nr = Integer.parseInt(bi);
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// getSessionBean1().setMsg("Nº do Bilhete de Identidade tem de ser numérico!");
|
|
|
|
|
// return false;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(txtMorada.getText() == null)
|
|
|
|
|
|