git-svn-id: https://svn.coded.pt/svn/SIPRP@1548 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Diogo Neves 15 years ago
parent fc37cf5086
commit b6ddc7d4a4

@ -11676,15 +11676,18 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
if(txtCoefIncapacidade.getText() != null)
{
String coef_str = txtCoefIncapacidade.getText().toString();
try
{
int coef = Integer.parseInt(coef_str);
a.setCoef_incapacidade(new Integer(coef));
}
catch(Exception ex)
{
ErrorLogger.logException( ex );
}
if ( coef_str != null && ! "".equals( coef_str.trim() ) )
{
try
{
int coef = Integer.parseInt( coef_str );
a.setCoef_incapacidade( new Integer( coef ) );
}
catch ( Exception ex )
{
ErrorLogger.logException( ex );
}
}
}
DateFormat formatador = new SimpleDateFormat("yyyy-MM-dd");

Loading…
Cancel
Save