wilian 2016-10-07 14:25:33 +00:00
parent c4e92f11e4
commit 7621ce018d
1 changed files with 8 additions and 8 deletions

View File

@ -1,5 +1,6 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -109,7 +110,9 @@ public class EditarConfiguracionPacoteController extends MyGenericForwardCompose
super.doAfterCompose(comp);
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
lsRuta = rutaService.obtenerTodos();
lsRuta = new ArrayList<Ruta>();
lsRuta.add(new Ruta(null, null));
lsRuta.addAll(rutaService.buscarTodosExceto(-1));
lsItemAdicional = itemAdicionalService.obtenerTodos();
lsTipoTarifaPacote = tipoTarifaPacoteService.obtenerTodos();
lsClaseServicio = claseServicioService.buscarTodosExceto(-1);
@ -294,13 +297,10 @@ public class EditarConfiguracionPacoteController extends MyGenericForwardCompose
Ruta ruta = null;
if (ciRuta != null) {
ruta = (Ruta) ciRuta.getValue();
pacote.setRuta(ruta);
} else {
Messagebox.show(
Labels.getLabel("editarConfiguracionPacoteController.MSG.error.cmbRuta"),
Labels.getLabel("editarConfiguracionPacoteController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
return;
if(ruta != null && ruta.getRutaId() != null && ruta.getRutaId() > -1) {
pacote.setRuta(ruta);
}
}
if(ciEmpresa != null) {