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

lxbfYeaa
Diogo Neves 15 years ago
parent f20f1ae757
commit 101c2309d5

@ -7589,7 +7589,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
} }
try try
{ {
@ -7597,7 +7597,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
} }
@ -7612,7 +7612,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
} }
stFuncao.setText(a.getFuncao()); stFuncao.setText(a.getFuncao());
@ -7752,7 +7752,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
} }
if(a.getHoras_turno() != null) if(a.getHoras_turno() != null)
@ -7779,7 +7779,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
} }
txtLocal.setText(a.getLocal_trabalho()); txtLocal.setText(a.getLocal_trabalho());
@ -8079,7 +8079,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
gridCausas.setRendered(false); gridCausas.setRendered(false);
} }

@ -2864,7 +2864,7 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean {
} }
catch(Exception ex) catch(Exception ex)
{ {
ErrorLogger.logException( ex ); // ErrorLogger.logException( ex );
gridCausas.setRendered(false); gridCausas.setRendered(false);
} }

@ -2753,10 +2753,13 @@ public class AnalisesDataProvider {
sql ="SELECT * FROM causas WHERE id = " + id; sql ="SELECT * FROM causas WHERE id = " + id;
ResultSet rs = st.executeQuery(sql); ResultSet rs = st.executeQuery(sql);
rs.first(); Causa c = null;
Causa c = new Causa(); if ( rs.first() )
c.setId( new Integer(rs.getInt("id")) ); {
c.setCausa(rs.getString("causa")); c = new Causa();
c.setId( new Integer( rs.getInt( "id" ) ) );
c.setCausa( rs.getString( "causa" ) );
}
return c; return c;
} }

Loading…
Cancel
Save