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) if(txtCoefIncapacidade.getText() != null)
{ {
String coef_str = txtCoefIncapacidade.getText().toString(); String coef_str = txtCoefIncapacidade.getText().toString();
try if ( coef_str != null && ! "".equals( coef_str.trim() ) )
{ {
int coef = Integer.parseInt(coef_str); try
a.setCoef_incapacidade(new Integer(coef)); {
} int coef = Integer.parseInt( coef_str );
catch(Exception ex) a.setCoef_incapacidade( new Integer( coef ) );
{ }
ErrorLogger.logException( ex ); catch ( Exception ex )
} {
ErrorLogger.logException( ex );
}
}
} }
DateFormat formatador = new SimpleDateFormat("yyyy-MM-dd"); DateFormat formatador = new SimpleDateFormat("yyyy-MM-dd");

Loading…
Cancel
Save