fixes bug#22352
qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@106833 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
4979fe7741
commit
af5d69bfeb
|
@ -63,13 +63,15 @@ public class BusquedaConexionController extends MyGenericForwardComposer {
|
|||
args.put("conexionCtrlId", conexionCtrlId);
|
||||
args.put("conexionesList", conexionesList);
|
||||
|
||||
if(conexionService.buscarPorConexionCtrl(conexionCtrlId).get(0).getRutaId() != null) {
|
||||
openWindow("/gui/esquema_operacional/editarConexionRuta.zul",
|
||||
Labels.getLabel("editarConexionController.window.title"), args, MODAL);
|
||||
}else {
|
||||
openWindow("/gui/esquema_operacional/editarConexion.zul",
|
||||
Labels.getLabel("editarConexionController.window.title"), args, MODAL);
|
||||
}
|
||||
// if(conexionCtrlId != null && conexionService.buscarPorConexionCtrl(conexionCtrlId).get(0).getRutaId() != null) {
|
||||
// openWindow("/gui/esquema_operacional/editarConexionRuta.zul",
|
||||
// Labels.getLabel("editarConexionController.window.title"), args, MODAL);
|
||||
// }else {
|
||||
// openWindow("/gui/esquema_operacional/editarConexion.zul",
|
||||
// Labels.getLabel("editarConexionController.window.title"), args, MODAL);
|
||||
// }
|
||||
openWindow("/gui/esquema_operacional/editarConexion.zul",
|
||||
Labels.getLabel("editarConexionController.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
// TODO Geneciones de Conexiones Desabilitado
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionRutaConf;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionRutaConfService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderBusquedaConexionRuta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author wallace
|
||||
*/
|
||||
@Controller("busquedaConexionPorRutaController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaConexionPorRutaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ConexionRutaConfService conexionRutaConfService;
|
||||
private MyListbox conexionesRutaConfList;
|
||||
private Textbox txtDescricao;
|
||||
private Intbox idConexionRutaConf;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
conexionesRutaConfList.setData(conexionRutaConfService.obtenerTodosActivo());
|
||||
|
||||
conexionesRutaConfList.setItemRenderer(new RenderBusquedaConexionRuta());
|
||||
conexionesRutaConfList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
ConexionRutaConf conexionRutaConf = (ConexionRutaConf) conexionesRutaConfList.getSelected();
|
||||
verConexionRutaConf(conexionRutaConf);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void verConexionRutaConf(ConexionRutaConf conexionRutaConf) {
|
||||
Map args = new HashMap();
|
||||
|
||||
args.put("conexionRutaConf", conexionRutaConf);
|
||||
|
||||
openWindow("/gui/esquema_operacional/gerarConexionPorRuta.zul",
|
||||
Labels.getLabel("gerarConexionPorRuta.window.title"), args, MODAL);
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
public void onClick$btnRefresh(Event ev) throws Exception {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
private void refreshLista() {
|
||||
|
||||
Integer id = idConexionRutaConf.getValue();
|
||||
String descricao = txtDescricao.getValue();
|
||||
|
||||
List<ConexionRutaConf> lsConexionRutaConf = new ArrayList<ConexionRutaConf>();
|
||||
if (id != null) {
|
||||
lsConexionRutaConf.add(conexionRutaConfService.obtenerID(id));
|
||||
conexionesRutaConfList.setData(lsConexionRutaConf);
|
||||
} else if (StringUtils.isNotBlank(descricao)) {
|
||||
lsConexionRutaConf = conexionRutaConfService.buscarPorDescricao(descricao);
|
||||
}else {
|
||||
lsConexionRutaConf = conexionRutaConfService.obtenerTodosActivo();
|
||||
}
|
||||
conexionesRutaConfList.setData(lsConexionRutaConf);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verConexionRutaConf(null);
|
||||
}
|
||||
|
||||
}
|
|
@ -171,8 +171,8 @@ public class EditarConexionRutaController extends MyGenericForwardComposer {
|
|||
|
||||
ConexionRutaTramoCtrl conexionRutaTramoCtrl = conexionRutaTramoCtrlService.buscarPorId(ConexionRutaTramoCtrl.getConexionRutaTramoConexionId(lsConexiones));
|
||||
conexionRutaCtrl = conexionRutaTramoCtrl.getConexionRutaCtrl();
|
||||
conexionRutaPuntoVentaList.setData(conexionRutaRestricaoPtoVtaService.obtenerConexionRutaExcepcionPtoVtasActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
conexionRutaTipoPuntoVentaList.setData(conexionRutaExcepcionTipoPtoVtaService.obtenerConexionRutaExcepcionPtoVtasActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
// conexionRutaPuntoVentaList.setData(conexionRutaRestricaoPtoVtaService.obtenerConexionRutaExcepcionPtoVtasActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
// conexionRutaTipoPuntoVentaList.setData(conexionRutaExcepcionTipoPtoVtaService.obtenerConexionRutaExcepcionTipoPtoVtaActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
}
|
||||
|
||||
public void onBlur$cmbOrigemCntrl(Event event) throws InterruptedException {
|
||||
|
@ -470,7 +470,7 @@ public class EditarConexionRutaController extends MyGenericForwardComposer {
|
|||
List<ConexionRutaExcepcionTipoPtoVta> conexionRutaTipoPuntoVentas = conexionRutaTipoPuntoVentaList.getListData();
|
||||
|
||||
ConexionRutaTramoCtrl conexionRutaTramoCtrl = conexionRutaTramoCtrlService.buscarPorId(ConexionRutaTramoCtrl.getConexionRutaTramoConexionId(getConexiones(conexionCtrlId)));
|
||||
conexionRutaExcepcionTipoPtoVtaService.borrar(conexionRutaExcepcionTipoPtoVtaService.obtenerConexionRutaExcepcionPtoVtasActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
// conexionRutaExcepcionTipoPtoVtaService.borrar(conexionRutaExcepcionTipoPtoVtaService.obtenerConexionRutaExcepcionTipoPtoVtaActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
conexionRutaExcepcionTipoPtoVtaService.suscribirTodos(conexionRutaTipoPuntoVentas);
|
||||
|
||||
}
|
||||
|
@ -481,7 +481,7 @@ public class EditarConexionRutaController extends MyGenericForwardComposer {
|
|||
List<ConexionRutaExcepcionPtoVta> conexionRutapuntoVentas = conexionRutaPuntoVentaList.getListData();
|
||||
|
||||
ConexionRutaTramoCtrl conexionRutaTramoCtrl = conexionRutaTramoCtrlService.buscarPorId(ConexionRutaTramoCtrl.getConexionRutaTramoConexionId(getConexiones(conexionCtrlId)));
|
||||
conexionRutaRestricaoPtoVtaService.borrar(conexionRutaRestricaoPtoVtaService.obtenerConexionRutaExcepcionPtoVtasActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
// conexionRutaRestricaoPtoVtaService.borrar(conexionRutaRestricaoPtoVtaService.obtenerConexionRutaExcepcionPtoVtasActivo(conexionRutaTramoCtrl.getConexionRutaCtrl()));
|
||||
conexionRutaRestricaoPtoVtaService.suscribirTodos(conexionRutapuntoVentas);
|
||||
}
|
||||
|
||||
|
@ -577,7 +577,7 @@ public class EditarConexionRutaController extends MyGenericForwardComposer {
|
|||
TipoPuntoVenta ptovta = (TipoPuntoVenta) cmbTipoPtovta.getSelectedItem().getValue();
|
||||
|
||||
ConexionRutaExcepcionTipoPtoVta conexionRutaExcepcionTipoPtoVta = new ConexionRutaExcepcionTipoPtoVta();
|
||||
conexionRutaExcepcionTipoPtoVta.setConexionRutaCtrl(conexionRutaCtrl);
|
||||
// conexionRutaExcepcionTipoPtoVta.setConexionRutaCtrl(conexionRutaCtrl);
|
||||
conexionRutaExcepcionTipoPtoVta.setTipoPtovta(ptovta);
|
||||
|
||||
if (conexionRutaTipoPuntoVentaList.getListData().contains(ptovta)) {
|
||||
|
@ -635,7 +635,7 @@ public class EditarConexionRutaController extends MyGenericForwardComposer {
|
|||
PuntoVenta puntoVenta = (PuntoVenta) cmbPtovta.getSelectedItem().getValue();
|
||||
|
||||
ConexionRutaExcepcionPtoVta conexionRutaExcepcionPtoVta = new ConexionRutaExcepcionPtoVta();
|
||||
conexionRutaExcepcionPtoVta.setConexionRutaCtrl(conexionRutaCtrl);
|
||||
// conexionRutaExcepcionPtoVta.setConexionRutaCtrl(conexionRutaCtrl);
|
||||
conexionRutaExcepcionPtoVta.setPuntoVenta(puntoVenta);
|
||||
|
||||
if (conexionRutaPuntoVentaList.getListData().contains(puntoVenta)) {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,185 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.combinacion.conexionruta;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.TreeSet;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionCtrl;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.vo.parada.ParadaVOConexionRuta;
|
||||
|
||||
public class ConexionRutaCombinacionFactory {
|
||||
|
||||
private static Map<Integer, Parada> cacheLocalidades;
|
||||
|
||||
|
||||
public static Map<Integer, Parada> criandoCacheLocalidades(List<Parada> list) {
|
||||
Map<Integer, Parada> map = new HashMap<Integer, Parada>();
|
||||
for (Parada parada : list) {
|
||||
map.put(parada.getParadaId(), parada);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
private static void gerarCombinacao(LinkedList<List<Parada>> lists, List<Ruta> rutasEixoA, List<Ruta> rutasEixoB, List<Ruta> rutasEixoC, List<ParadaVOConexionRuta> localidadesGeradas, List<ConexionCtrl> conexoesCtrl) {
|
||||
|
||||
|
||||
Set<String> combinacoes = new TreeSet<String>();
|
||||
Set<String> novasCombinacoes;
|
||||
|
||||
for (Parada s : lists.removeFirst())
|
||||
combinacoes.add(s.getParadaId().toString());
|
||||
|
||||
while (!lists.isEmpty()) {
|
||||
List<Parada> next = lists.removeFirst();
|
||||
novasCombinacoes = new TreeSet<String>();
|
||||
for (String s1 : combinacoes)
|
||||
for (Parada s2 : next) {
|
||||
novasCombinacoes.add(s1 + ";" + s2.getParadaId());
|
||||
}
|
||||
|
||||
combinacoes = novasCombinacoes;
|
||||
}
|
||||
|
||||
if(rutasEixoC == null) {
|
||||
gerarLocalidadesEixoAB(rutasEixoA, rutasEixoB, localidadesGeradas, combinacoes, conexoesCtrl);
|
||||
}else {
|
||||
gerarLocalidadesEixoABC(rutasEixoA, rutasEixoB,rutasEixoC, localidadesGeradas, combinacoes, conexoesCtrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static void gerarLocalidadesEixoAB(List<Ruta> rutasEixoA, List<Ruta> rutasEixoB, List<ParadaVOConexionRuta> localidadesGeradas, Set<String> combinacoes, List<ConexionCtrl> conexoesCtrl) {
|
||||
short i = 1;
|
||||
int grupo = 0;
|
||||
String[] valoresCalculados;
|
||||
|
||||
for (Ruta rutaEixoA : rutasEixoA) {
|
||||
for (Ruta rutaEixoB : rutasEixoB) {
|
||||
grupo++;
|
||||
for (String comb : combinacoes) {
|
||||
|
||||
valoresCalculados = comb.split(";");
|
||||
localidadesGeradas.add(new ParadaVOConexionRuta(grupo, cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[1])), rutaEixoA.getRutaId(), rutaEixoA.getNumRuta(), i, true,
|
||||
cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3]))));
|
||||
i++;
|
||||
localidadesGeradas.add(new ParadaVOConexionRuta(grupo, cacheLocalidades.get(Integer.parseInt(valoresCalculados[2])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3])), rutaEixoB.getRutaId(), rutaEixoB.getNumRuta(), i, true,
|
||||
cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3]))));
|
||||
i++;
|
||||
|
||||
conexoesCtrl.add(new ConexionCtrl(cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])).getParadaId(), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3])).getParadaId()));
|
||||
i = 1;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static void gerarLocalidadesEixoABC(List<Ruta> rutasEixoA, List<Ruta> rutasEixoB, List<Ruta> rutasEixoC, List<ParadaVOConexionRuta> localidadesGeradas, Set<String> combinations, List<ConexionCtrl> conexoesCtrl) {
|
||||
|
||||
short i = 1;
|
||||
String[] valoresCalculados = null;
|
||||
int grupo = 0;
|
||||
for (Ruta rutaEixoA : rutasEixoA) {
|
||||
|
||||
for (Ruta rutaEixoB : rutasEixoB) {
|
||||
for (Ruta rutaEixoC : rutasEixoC) {
|
||||
grupo++;
|
||||
for (String comb : combinations) {
|
||||
|
||||
valoresCalculados = comb.split(";");
|
||||
localidadesGeradas.add(new ParadaVOConexionRuta(grupo, cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[1])), rutaEixoA.getRutaId(), rutaEixoA.getNumRuta(), i, true,
|
||||
cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3]))));
|
||||
i++;
|
||||
localidadesGeradas.add(new ParadaVOConexionRuta(grupo, cacheLocalidades.get(Integer.parseInt(valoresCalculados[2])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3])), rutaEixoB.getRutaId(), rutaEixoB.getNumRuta(), i, true,
|
||||
cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[3]))));
|
||||
i++;
|
||||
localidadesGeradas.add(new ParadaVOConexionRuta(grupo, cacheLocalidades.get(Integer.parseInt(valoresCalculados[3])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[4])), rutaEixoC.getRutaId(), rutaEixoC.getNumRuta(), i, true,
|
||||
cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])), cacheLocalidades.get(Integer.parseInt(valoresCalculados[4]))));
|
||||
i++;
|
||||
i = 1;
|
||||
conexoesCtrl.add(new ConexionCtrl(cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])).getParadaId(), cacheLocalidades.get(Integer.parseInt(valoresCalculados[4])).getParadaId()));
|
||||
|
||||
// if(conexoesCtrl.isEmpty()) {
|
||||
// conexoesCtrl.add(new ConexionCtrl(cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])).getParadaId(), cacheLocalidades.get(Integer.parseInt(valoresCalculados[4])).getParadaId()));
|
||||
// }else {
|
||||
// for (ConexionCtrl conexaoCtrl : conexoesCtrl) {
|
||||
// if(!conexaoCtrl.getOrigenId().equals(Integer.parseInt(valoresCalculados[0])) && conexaoCtrl.getDestinoId().equals(Integer.parseInt(valoresCalculados[0]))) {
|
||||
// conexoesCtrl.add(new ConexionCtrl(cacheLocalidades.get(Integer.parseInt(valoresCalculados[0])).getParadaId(), cacheLocalidades.get(Integer.parseInt(valoresCalculados[4])).getParadaId()));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void gerarCombinacionEntre2Eixos(List<Parada> listParada1, List<Ruta> rutasEixoA, List<Ruta> rutasEixoB, List<Parada> lsLocalidadesComuns, List<Parada> listParada4, List<Ruta> rutasEixoA2, List<Ruta> rutasEixoB2, List<ParadaVOConexionRuta> localidadesGeradas, List<ConexionCtrl> conexoesCtrl) {
|
||||
|
||||
for (int i = 0; i < lsLocalidadesComuns.size(); i++) {
|
||||
|
||||
List<Parada> listParada2 = lsLocalidadesComuns;
|
||||
List<Parada> listParada3 = Arrays.asList(lsLocalidadesComuns.get(i));
|
||||
|
||||
LinkedList<List<Parada>> lists = new LinkedList<List<Parada>>();
|
||||
|
||||
lists.add(listParada1);
|
||||
lists.add(listParada2);
|
||||
lists.add(listParada3);
|
||||
lists.add(listParada4);
|
||||
|
||||
List<Parada> localidades = new ArrayList<Parada>();
|
||||
localidades.addAll(listParada1);
|
||||
localidades.addAll(listParada2);
|
||||
localidades.addAll(listParada3);
|
||||
localidades.addAll(listParada4);
|
||||
|
||||
cacheLocalidades = criandoCacheLocalidades(localidades);
|
||||
gerarCombinacao(lists, rutasEixoA, rutasEixoB, null, localidadesGeradas, conexoesCtrl);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static void gerarCombinacionEntre3Eixos(List<Parada> listParada1, List<Ruta> rutasEixoA, List<Ruta> rutasEixoB, List<Parada> lsLocalidadesComuns, List<Parada> listParada4, List<Parada> listParadasC, List<Ruta> rutasEixoA2, List<Ruta> rutasEixoB2, List<Ruta> rutasEixoC, List<ParadaVOConexionRuta> localidadesGeradas, List<ConexionCtrl> conexoesCtrl) {
|
||||
|
||||
for (int i = 0; i < lsLocalidadesComuns.size(); i++) {
|
||||
|
||||
List<Parada> listParada2 = lsLocalidadesComuns;
|
||||
List<Parada> listParada3 = Arrays.asList(lsLocalidadesComuns.get(i));
|
||||
|
||||
LinkedList<List<Parada>> lists = new LinkedList<List<Parada>>();
|
||||
|
||||
lists.add(listParada1);
|
||||
lists.add(listParada2);
|
||||
lists.add(listParada3);
|
||||
lists.add(listParada4);
|
||||
lists.add(listParadasC);
|
||||
|
||||
List<Parada> localidades = new ArrayList<Parada>();
|
||||
localidades.addAll(listParada1);
|
||||
localidades.addAll(listParada2);
|
||||
localidades.addAll(listParada3);
|
||||
localidades.addAll(listParada4);
|
||||
localidades.addAll(listParadasC);
|
||||
|
||||
cacheLocalidades = criandoCacheLocalidades(localidades);
|
||||
gerarCombinacao(lists, rutasEixoA, rutasEixoB, rutasEixoC, localidadesGeradas, conexoesCtrl);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<Integer, Parada> getCacheLocalidades() {
|
||||
return cacheLocalidades;
|
||||
}
|
||||
|
||||
}
|
|
@ -18,7 +18,7 @@ public class ItemMenuConexionPorRuta extends DefaultItemMenuSistema {
|
|||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/esquema_operacional/gerarConexionPorRuta.zul",
|
||||
PantallaUtileria.openWindow("/gui/esquema_operacional/busquedaConexionPorRuta.zul",
|
||||
Labels.getLabel("busquedaConexionPorRutaController.window.title"), getArgs() ,desktop);
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionRutaConf;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author wallace
|
||||
*/
|
||||
public class RenderBusquedaConexionRuta implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ConexionRutaConf conexionRutaConf = (ConexionRutaConf) o;
|
||||
|
||||
Listcell lc = new Listcell(String.valueOf(conexionRutaConf.getConexionRutaConfId()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(String.valueOf(conexionRutaConf.getDescricao()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setValue(conexionRutaConf);
|
||||
|
||||
}
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zkplus.spring.SpringUtil;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ConexionConf;
|
||||
import com.rjconsultores.ventaboletos.service.ConexionConfService;
|
||||
import com.rjconsultores.ventaboletos.vo.parada.ParadaVOConexionRuta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author wallace
|
||||
*/
|
||||
public class RenderConexionPorRuta implements ListitemRenderer {
|
||||
private boolean changeColor = true;
|
||||
private static long grupo = 0;
|
||||
private static long grupoConexionCtrl = 0;
|
||||
private ConexionConfService conexionConfService = (ConexionConfService) SpringUtil.getBean("conexionConfService");
|
||||
private String style1 = "Font-weight:bold;background-color: #858a8a";
|
||||
private String style2 = "Font-weight:bold;background-color: #535757";
|
||||
private String styleDesativada1 = "Font-weight:bold;background-color: #A52A2A";
|
||||
private String styleDesativada2 = "Font-weight:bold;background-color: #800000";
|
||||
|
||||
private void setStyle(Listcell lc, ConexionConf conexionConf) {
|
||||
lc.setStyle(changeColor ? style1 : style2);
|
||||
if (conexionConf != null && conexionConf.getIndisponible() != null && conexionConf.getIndisponible()) {
|
||||
lc.setStyle(changeColor ? styleDesativada1 : styleDesativada2);
|
||||
}
|
||||
}
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
|
||||
ParadaVOConexionRuta conexion = (ParadaVOConexionRuta) o;
|
||||
ConexionConf conexionConf = null;
|
||||
|
||||
Listcell lc = new Listcell(conexion.getParadaOrigem().getDescparada());
|
||||
// setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getParadaDestino().getDescparada());
|
||||
// setStyle(lc, conexionConf);
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
||||
lstm.setValue(conexion);
|
||||
}
|
||||
}
|
|
@ -70,9 +70,13 @@ public class RenderEditarConexion implements ListitemRenderer {
|
|||
lc.setParent(listItem);
|
||||
|
||||
setupCelServico(conexionConf);
|
||||
Ruta ruta = rutaService.obtenerID(conexion.getRutaId());
|
||||
lc = new Listcell(ruta.getNumRuta()+ " -"+ ruta.getDescruta());
|
||||
lc.setParent(listItem);
|
||||
Ruta ruta = null;
|
||||
if (conexion.getRutaId() != null) {
|
||||
ruta = rutaService.obtenerID(conexion.getRutaId());
|
||||
lc = new Listcell(ruta.getNumRuta() + " -" + ruta.getDescruta());
|
||||
lc.setParent(listItem);
|
||||
}
|
||||
|
||||
|
||||
listItem.setValue(conexion);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* To change this template, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.vo.parada.ParadaVOConexionRuta;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author wallace
|
||||
*/
|
||||
public class RenderGeracaoConexionPorRuta implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
|
||||
ParadaVOConexionRuta conexion = (ParadaVOConexionRuta) o;
|
||||
|
||||
Listcell lc = new Listcell(conexion.getParadaOrigem().getDescparada());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getParadaDestino().getDescparada());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(conexion.getNumRuta());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(String.valueOf(conexion.getSecuencia()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setValue(conexion);
|
||||
}
|
||||
}
|
|
@ -508,6 +508,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaTramoCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaExcepcionTipoPtoVta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaExcepcionPtoVta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaConf</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -6719,6 +6719,28 @@ busquedaConexionController.btnNovo.tooltiptext = Novo
|
|||
busquedaConexionController.btnPesquisa.label = Pesquisa
|
||||
busquedaConexionController.msg.erroConfConexion = Erro ao carregar a conexão origem {0} e destino {1} para grupo {2}
|
||||
|
||||
#Busqueda param conexion por ruta
|
||||
|
||||
busquedaConexionPorRutaController.window.title=Buscar conexões entre Linhas
|
||||
busquedaConexionPorRutaController.window.title=Buscar Conexões entre Linhas
|
||||
busquedaConexionPorRutaController.lhOrigenConexion.label=Ori. Conexão
|
||||
busquedaConexionPorRutaController.lhDestinoConexion.label= Dest. Conexão
|
||||
busquedaConexionPorRutaController.lhDecricao=Descrição
|
||||
busquedaConexionPorRutaController.lhId=Id
|
||||
busquedaConexionPorRutaController.lhGrupo.label=Grupo
|
||||
busquedaConexionPorRutaController.lhSecuencia.label = Sequencia
|
||||
busquedaConexionPorRutaController.lhOrigenTrecho.label=Ori. Trecho
|
||||
busquedaConexionPorRutaController.lhDestinoTrecho.label=Dest. Trecho
|
||||
busquedaConexionPorRutaController.btnCerrar.tooltiptext=Fechar
|
||||
busquedaConexionPorRutaController.btnGenerarConexiones.tooltiptext=Gerar Conexões
|
||||
busquedaConexionPorRutaController.msgGerarCombincoes=Deseja gerar as combinações de conexões?
|
||||
busquedaConexionPorRutaController.msgCombincoesGeradas=Combinações Geradas com Sucesso
|
||||
busquedaConexionPorRutaController.btnNovo.tooltiptext = Novo
|
||||
busquedaConexionPorRutaController.btnPesquisa.label = Pesquisa
|
||||
busquedaConexionPorRutaController.msg.erroConfConexion = Erro ao carregar a conexão origem {0} e destino {1} para grupo {2}
|
||||
busquedaConexionPorRutaController.labelDestino.value = Linha Destino
|
||||
busquedaConexionPorRutaController.labelOrigen.value = Linha Origem
|
||||
|
||||
|
||||
#Editar conexion por ruta
|
||||
editarConexionPorRutaController.window.title=Gerar Conexões entre Linhas
|
||||
|
@ -6740,10 +6762,13 @@ editarConexionPorRutaController.labelLocalidadesDescricao.value = Descrição
|
|||
editarConexionPorRutaController.labelLocalidadesCodigo.value = Cód.
|
||||
editarConexionPorRutaController.labelLinhaOrigem.value =Linha Origem
|
||||
editarConexionPorRutaController.labelLinhaDestino.value =Linha Destino
|
||||
editarConexionPorRutaController.labelLocalidadesComuns.value = Localidades Comuns
|
||||
editarConexionPorRutaController.labelLocalidadesComunsAB.value =Eixo A x B
|
||||
editarConexionPorRutaController.labelLocalidadesComunsBC.value =Eixo B x C
|
||||
editarConexionPorRutaController.labelAdicionarLocalidade.value = Adicionar
|
||||
editarConexionPorRutaController.labelOrigemTrecho.value = Origem Trecho
|
||||
editarConexionPorRutaController.labelDestinoTrecho.value = Destino Trecho
|
||||
editarConexionPorRutaController.labelNumRuta.value = Número da Linha
|
||||
editarConexionPorRutaController.labelSecuencia.value = Sequência
|
||||
editarConexionPorRutaController.MSG.selecionarConexion= Favor selecionar as linhas para gerar as combinações
|
||||
editarConexionPorRutaController.MSG.rutaJaSelecionada= Linha Já selecionada !
|
||||
editarConexionPorRutaController.tabResultadoCombinacao = Resultado Combinação
|
||||
|
@ -6752,11 +6777,21 @@ editarConexionController.tabConfiguracaoTempo.value = Tempo Conexão
|
|||
editarConexionPorRutaController.labelExcecaoPuntoVenta.value = Exceção Agências
|
||||
editarConexionPorRutaController.MSG.noPuntoVentaJaCadastrado = Ponto de Venda já cadastrado
|
||||
editarConexionExcepcionController.MSG.borrarPuntoVentaPergunta = Deseja remover essa Agência?
|
||||
editarConexionExcepcionController.MSG.borrarRutaPergunta = Deseja remover essa Linha?
|
||||
editarConexionPorRutaController.labelIDPuntoVenta = ID
|
||||
editarConexionPorRutaController.labelDescPuntoVenta = Agência
|
||||
editarConexionPorRutaController.MSG.suscribirOK = Conexão salva com sucesso.
|
||||
editarConexionPorRutaController.MSG.suscribirOBSOK = Já existem conexões criadas para os seguintes trechos.
|
||||
|
||||
editarConexionPorRutaController.tabLinhas.value=Linhas
|
||||
editarConexionPorRutaController.tabLocalidades = Localidades
|
||||
editarConexionPorRutaController.tabDescricao = Descrição
|
||||
editarConexionPorRutaController.labelLinhaA.value = Eixo A (Linhas)
|
||||
editarConexionPorRutaController.labelLinhaB.value = Eixo B (Linhas)
|
||||
editarConexionPorRutaController.labelLinhaC.value = Eixo C (Linhas)
|
||||
editarConexionPorRutaController.labelDescricao.value=Descrição
|
||||
editarConexionPorRutaController.MSG.ApagarOK = Conexão removida com sucesso.
|
||||
editarConexionPorRutaController.MSG.PerguntaApagar = Deseja remover essa Conexão ?
|
||||
editarConexionPorRutaController.MSG.SequenciaEixOK = Inserir as linhas nas sequências dos eixos. 1º Eixo A, 2º Eixo B, 3º Eixo C
|
||||
|
||||
#Busqueda param conexion
|
||||
busquedaParamConexionController.window.title=Parâmetros de Conexão
|
||||
|
@ -7962,6 +7997,11 @@ relatorioVendasPacotesDetalhadoController.lblSituacaoReservados.value = Reservad
|
|||
relatorioVendasPacotesDetalhadoController.lblSituacaoCancelados.value = Cancelados
|
||||
relatorioVendasPacotesDetalhadoController.lblVoucherNotaCredito=Voucher Nota Crédito
|
||||
|
||||
|
||||
# Relatorio Quadro Demonstrativo do Momvimento de Passageiro
|
||||
|
||||
relatorioQuadroDemonstrativoMovimentoPassageirosController.relatorio.lb.btnExecutarRelatorioNovoLayout = Layout 2
|
||||
|
||||
# Relatorio Vendas Pacotes Boletos
|
||||
relatorioVendasPacotesBoletosController.window.title = Relatório Vendas de Pacotes - Bilhetes
|
||||
relatorioVendasPacotesBoletosController.lbDataVendaIni.value = Dt Venda Inicial
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winConexionPorRuta"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winConexionPorRuta"
|
||||
title="${c:l('busquedaConexionPorRutaController.window.title')}"
|
||||
apply="${busquedaConexionPorRutaController}"
|
||||
contentStyle="overflow:auto" width="1000px" height="450px"
|
||||
border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<toolbar>
|
||||
<button id="btnCerrar" onClick="winConexionPorRuta.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionPorRutaController.btnCerrar.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConexionPorRutaController.btnNovo.tooltiptext')}" />
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaCatalogoDeRutaController.btnRefresh.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="90%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaConexionPorRutaController.lhId')}" />
|
||||
<intbox id="idConexionRutaConf" width="10%" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaConexionPorRutaController.lhDecricao')}" />
|
||||
<textbox id="txtDescricao" width="100%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaConexionPorRutaController.btnPesquisa.label')}" />
|
||||
|
||||
<separator orient="vertical" />
|
||||
<separator orient="vertical" />
|
||||
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingConexiones" pageSize="20" />
|
||||
<listbox id="conexionesRutaConfList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" vflex="true" height="50%">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif" width="10%"
|
||||
label="${c:l('busquedaConexionPorRutaController.lhId')}" />
|
||||
<listheader image="/gui/img/builder.gif" width="90%"
|
||||
label="${c:l('busquedaConexionPorRutaController.lhDecricao')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -209,79 +209,6 @@
|
|||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
<!-- CANAIS DE VENDAS -->
|
||||
<tabpanel height="100%">
|
||||
<grid height="100%">
|
||||
<rows>
|
||||
<row>
|
||||
<vbox height="100%" width="100%">
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarPricingController.ptovta.value')}" />
|
||||
<combobox id="cmbTipoPtovta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarConexion$composer.lsTipoPtovta}" />
|
||||
<button id="btnNovoCanalVenta"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}">
|
||||
</button>
|
||||
<button id="btnApagarCanalVenta"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
|
||||
</hbox>
|
||||
<listbox id="conexionRutaTipoPuntoVentaList"
|
||||
height="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacioninicial)"
|
||||
label="${c:l('editarPricingController.ptovta.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
<!-- AGENCIAS -->
|
||||
|
||||
<tabpanel>
|
||||
<grid>
|
||||
<rows>
|
||||
<row>
|
||||
<vbox height="100%" width="100%">
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelDescPuntoVenta')}" />
|
||||
<combobox id="cmbPtovta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
mold="rounded" buttonVisible="true" width="90%" />
|
||||
<button id="btnNovoPuntoVenta"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
|
||||
<button id="btnApagarPuntoVenta"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
|
||||
</hbox>
|
||||
<listbox id="conexionRutaPuntoVentaList"
|
||||
height="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacioninicial)"
|
||||
label="${c:l('editarConexionPorRutaController.labelDescPuntoVenta')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
</window>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winEditarConexionPorRuta" border="normal" width="955px"
|
||||
<window id="winEditarConexionPorRuta" border="normal" width="1100px"
|
||||
apply="${gerarConexionPorRutaController}" height="600px">
|
||||
<style dynamic="true">
|
||||
.z-textbox{background: #ffa99c}
|
||||
|
||||
.z-spinner-inp{background:#ffa99c} .z-textbox-real-readonly,
|
||||
.z-textbox-readonly{background:#99beff} .z-spinner-readonly,
|
||||
.z-spinner-text-disd{background:#99beff}
|
||||
|
@ -17,9 +17,12 @@
|
|||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
|
||||
<button id="btnSalvar" height="20"
|
||||
<button id="btnSalvarr" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarConexionPorRutaController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnApagarr" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarConexionController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarConexionPorRuta.detach()"
|
||||
|
@ -31,147 +34,245 @@
|
|||
<tabbox id="tb">
|
||||
<tabs id="tabs">
|
||||
<tab id="A"
|
||||
label="${c:l('editarConexionController.tabConexion.value')}" />
|
||||
label="${c:l('editarConexionPorRutaController.tabDescricao')}" />
|
||||
<tab id="B"
|
||||
label="${c:l('editarConexionPorRutaController.tabLinhas.value')}" />
|
||||
<tab id="C"
|
||||
label="${c:l('editarConexionPorRutaController.tabLocalidades')}" />
|
||||
<tab id="resultadoCombinacao"
|
||||
label="${c:l('editarConexionPorRutaController.tabResultadoCombinacao')}" />
|
||||
<tab id="C"
|
||||
label="${c:l('editarConexionController.tabConfiguracaoTempo.value')}" />
|
||||
<tab id="D"
|
||||
label="${c:l('editarConexionPorRutaController.labelExcecaoCanalVenta.value')}" height="100%" />
|
||||
label="${c:l('editarConexionController.tabConfiguracaoTempo.value')}" />
|
||||
<tab id="E"
|
||||
label="${c:l('editarConexionPorRutaController.labelExcecaoPuntoVenta.value')}" height="100%"/>
|
||||
label="${c:l('editarConexionPorRutaController.labelExcecaoCanalVenta.value')}"
|
||||
height="100%" />
|
||||
<tab id="F"
|
||||
label="${c:l('editarConexionPorRutaController.labelExcecaoPuntoVenta.value')}"
|
||||
height="100%" />
|
||||
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<!-- DESCRICAO -->
|
||||
<tabpanel>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="25%" />
|
||||
<column width="10%" />
|
||||
<column width="10%" />
|
||||
<column width="25%" />
|
||||
<column width="20%" />
|
||||
<column width="80%" />
|
||||
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaOrigem.value')}" />
|
||||
<combobox id="cmbRutaOrigem"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarConexionPorRuta$composer.lsRutas}"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
<label></label>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaDestino.value')}" />
|
||||
<combobox id="cmbRutaDestino"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarConexionPorRuta$composer.lsRutas}"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelDescricao.value')}" />
|
||||
<textbox id="txtDescricao" width="100%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
</tabpanel>
|
||||
<!-- LINHAS -->
|
||||
<tabpanel>
|
||||
<grid>
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="30%" />
|
||||
<column width="15%" />
|
||||
<column width="30%" />
|
||||
|
||||
<column width="33%" />
|
||||
<column width="33%" />
|
||||
<column width="34%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row spans="3">
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.MSG.SequenciaEixOK')}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLocalidades.value')}" />
|
||||
<bandbox id="bbPesquisaLinha"
|
||||
width="65%" mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<textbox
|
||||
id="txtPalavraPesquisaPermissao" />
|
||||
<button
|
||||
id="btnPesquisaPermissao" image="/gui/img/find.png"
|
||||
label="${c:l('relatorioLinhasHorarioController.btnPesquisa.label')}" />
|
||||
<button
|
||||
id="btnLimparLinha" image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioLinhasHorarioController.btnLimpar.label')}" />
|
||||
</hbox>
|
||||
<listbox
|
||||
id="localidadesOrigemlList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" width="710px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelAdicionarLocalidade.value')}"
|
||||
width="29%" />
|
||||
<listheader
|
||||
align="center" label=" " width="6%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingLinha"
|
||||
pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLocalidades.value')}" />
|
||||
<bandbox id="bbPesquisaLinha1"
|
||||
width="65%" mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<textbox
|
||||
id="txtPalavraPesquisaLocalidadesDestino" />
|
||||
<button
|
||||
id="btnPesquisaLocalidadesDestino"
|
||||
image="/gui/img/find.png"
|
||||
label="${c:l('relatorioLinhasHorarioController.btnPesquisa.label')}" />
|
||||
<button
|
||||
id="btnLimparLocalidadeDestino" image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioLinhasHorarioController.btnLimpar.label')}" />
|
||||
</hbox>
|
||||
<listbox
|
||||
id="localidadesDestinoList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" width="710px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelAdicionarLocalidade.value')}"
|
||||
width="29%" />
|
||||
<listheader
|
||||
align="center" label=" " width="6%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingLinhaq"
|
||||
pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
<vbox height="100%" width="100%">
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaA.value')}" />
|
||||
<combobox id="cmbRutaA"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
<button id="btnNovoRutaA"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
|
||||
<button id="btnApagarRutaA"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
|
||||
</hbox>
|
||||
<listbox id="rutasAList"
|
||||
height="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacioninicial)"
|
||||
label="${c:l('editarConexionController.tabLinhas.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</vbox>
|
||||
<vbox height="100%" width="100%">
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaB.value')}" />
|
||||
<combobox id="cmbRutaB"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
<button id="btnNovoRutaB"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
|
||||
<button id="btnApagarRutaB"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
|
||||
</hbox>
|
||||
<listbox id="rutasBList"
|
||||
height="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacioninicial)"
|
||||
label="${c:l('editarConexionController.tabLinhas.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</vbox>
|
||||
<vbox height="100%" width="100%">
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLinhaC.value')}" />
|
||||
<combobox id="cmbRutaC"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxRuta"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
<button id="btnNovoRutaC"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnAgencia.tooltiptext')}" />
|
||||
<button id="btnApagarRutaC"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
|
||||
</hbox>
|
||||
<listbox id="rutasCList"
|
||||
height="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
image="/gui/img/create_doc.gif"
|
||||
sort="auto(ocupacioninicial)"
|
||||
label="${c:l('editarConexionController.tabLinhas.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</vbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
|
||||
<tabpanel>
|
||||
|
||||
<grid fixedLayout="true" height="400px">
|
||||
<columns>
|
||||
<column width="35%" />
|
||||
<column width="30%" />
|
||||
<column width="35%" />
|
||||
<column width="25%" />
|
||||
<column width="14%" />
|
||||
<column width="25%" />
|
||||
<column width="12%" />
|
||||
<column width="25%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLocalidades.value')}" />
|
||||
<bandbox id="bbPesquisaLinha"
|
||||
width="100%" mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<listbox
|
||||
id="localidadesOrigemlList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" width="710px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelAdicionarLocalidade.value')}"
|
||||
width="29%" />
|
||||
<listheader
|
||||
align="center" label=" " width="6%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingLinha"
|
||||
pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</hbox>
|
||||
<hbox></hbox>
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLocalidades.value')}" />
|
||||
<bandbox id="bbPesquisaLinha1"
|
||||
width="100%" mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<listbox
|
||||
id="localidadesDestinoList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" width="710px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelAdicionarLocalidade.value')}"
|
||||
width="29%" />
|
||||
<listheader
|
||||
align="center" label=" " width="6%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging
|
||||
id="pagingLinhaq" pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</hbox>
|
||||
<hbox></hbox>
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarConexionPorRutaController.labelLocalidades.value')}" />
|
||||
<bandbox id="bbPesquisaLinhaC"
|
||||
width="100%" mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<listbox
|
||||
id="localidadesDestinoLinhaCList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="60%" width="710px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelAdicionarLocalidade.value')}"
|
||||
width="29%" />
|
||||
<listheader
|
||||
align="center" label=" " width="6%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging
|
||||
id="pagingLinhac" pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<cell>
|
||||
<borderlayout height="400px"
|
||||
width="100%">
|
||||
<center border="0">
|
||||
<listbox
|
||||
id="localidadesOrigenSelecionadaList" mold="paging"
|
||||
id="localidadesLinhaASelecionadaList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="100%" width="100%">
|
||||
<listhead>
|
||||
|
@ -181,8 +282,7 @@
|
|||
sort="auto(funcionSistema.nombfuncion)" width="20%" />
|
||||
<listheader
|
||||
align="center" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
label="Localidades Eixo A" width="65%" />
|
||||
<listheader
|
||||
align="center" label="" width="15%" />
|
||||
</listhead>
|
||||
|
@ -204,9 +304,8 @@
|
|||
<listheader
|
||||
align="center" style="background: #ffa99c"
|
||||
image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesComuns.value')}"
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesComunsAB.value')}"
|
||||
width="100%" />
|
||||
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
|
@ -217,7 +316,51 @@
|
|||
width="100%">
|
||||
<center border="0">
|
||||
<listbox
|
||||
id="localidadesDestinoSelecionadaList" mold="paging"
|
||||
id="localidadesLinhaBSelecionadaList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="50%" width="100%">
|
||||
<listhead>
|
||||
<listheader
|
||||
id="lhPermisoAuxxx" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesCodigo.value')}"
|
||||
sort="auto(funcionSistema.nombfuncion)" width="20%" />
|
||||
<listheader
|
||||
align="center" image="/gui/img/create_doc.gif"
|
||||
label="Localidades Eixo B" width="65%" />
|
||||
<listheader
|
||||
align="center" label="" width="15%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</cell>
|
||||
<cell>
|
||||
<borderlayout height="400px"
|
||||
width="100%">
|
||||
<center border="0">
|
||||
<listbox
|
||||
id="localidadesComunsDestinoCList"
|
||||
style="background: #ffa99c" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="50%" width="100%">
|
||||
<listhead
|
||||
style="background: #ffa99c">
|
||||
<listheader
|
||||
align="center" style="background: #ffa99c"
|
||||
image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesComunsBC.value')}"
|
||||
width="100%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
</borderlayout>
|
||||
</cell>
|
||||
<cell>
|
||||
<borderlayout height="400px"
|
||||
width="100%">
|
||||
<center border="0">
|
||||
<listbox
|
||||
id="localidadesLinhaCSelecionadaList" mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true" height="50%" width="100%">
|
||||
<listhead>
|
||||
|
@ -227,11 +370,9 @@
|
|||
sort="auto(funcionSistema.nombfuncion)" width="20%" />
|
||||
<listheader
|
||||
align="center" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||
width="65%" />
|
||||
label="Localidades Eixo C" width="65%" />
|
||||
<listheader
|
||||
align="center" label="" width="15%" />
|
||||
|
||||
</listhead>
|
||||
</listbox>
|
||||
</center>
|
||||
|
@ -259,9 +400,15 @@
|
|||
<listheader id="lhPermisoAux1x"
|
||||
label="${c:l('editarConexionPorRutaController.labelOrigemTrecho.value')}"
|
||||
width="50%" />
|
||||
<listheader align="center"
|
||||
<listheader
|
||||
label="${c:l('editarConexionPorRutaController.labelDestinoTrecho.value')}"
|
||||
width="50%" />
|
||||
<listheader align="center"
|
||||
label="${c:l('editarConexionPorRutaController.labelNumRuta.value')}"
|
||||
width="50%" />
|
||||
<listheader align="center"
|
||||
label="${c:l('editarConexionPorRutaController.labelSecuencia.value')}"
|
||||
width="50%" />
|
||||
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
@ -348,8 +495,8 @@
|
|||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarPricingController.btnApagarAgencia.tooltiptext')}" />
|
||||
</hbox>
|
||||
<listbox id="listPuntoVenta" height="400px"
|
||||
|
||||
<listbox id="listPuntoVenta"
|
||||
height="400px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
|
|
Loading…
Reference in New Issue