fixed bug #7557 - Exceção Pedágio: correção ao remover item do grid
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@56883 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ed27c13c38
commit
0da3043bdd
|
@ -373,11 +373,13 @@ public class EditarExcepcionPeajeController extends MyGenericForwardComposer {
|
|||
epv.setActivo(Boolean.FALSE);
|
||||
epv.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
epv.setFecmodif(Calendar.getInstance().getTime());
|
||||
excepcionPeajeService.actualizacion(excepcionPeaje);
|
||||
lsExcepcionPeajeVigencia.remove(epv);
|
||||
Collections.sort(lsExcepcionPeajeVigencia);
|
||||
excepcionPeajeVigenciaList.setData(lsExcepcionPeajeVigencia);
|
||||
excepcionPeaje.setLsExcepcionPeajeVigencia(lsExcepcionPeajeVigencia);
|
||||
if(epv.getExcepcionPeajeVigenciaId() != null){
|
||||
excepcionPeaje.getLsExcepcionPeajeVigencia().add(epv);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,9 @@ public class RenderExcepcionPeajeVigencia implements ListitemRenderer {
|
|||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ExcepcionPeajeVigencia excepcionPeajeVigencia = (ExcepcionPeajeVigencia) o;
|
||||
|
||||
if(!excepcionPeajeVigencia.getActivo()){
|
||||
return;
|
||||
}
|
||||
Listcell lc;
|
||||
if(excepcionPeajeVigencia.getExcepcionPeajeVigenciaId() != null ){
|
||||
lc = new Listcell(excepcionPeajeVigencia.getExcepcionPeajeVigenciaId().toString());
|
||||
|
|
Loading…
Reference in New Issue