git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@21877 d1611594-4594-4d17-8e1d-87c2c4800839
parent
5a09d2046c
commit
ed078e893d
|
@ -78,6 +78,7 @@ import org.zkoss.zul.Checkbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class EditarCorridaController extends MyGenericForwardComposer {
|
public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
@Autowired
|
@Autowired
|
||||||
private EsquemaCorridaService esquemaCorridaService;
|
private EsquemaCorridaService esquemaCorridaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -157,6 +158,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
private Label lbClaseDoblePiso;
|
private Label lbClaseDoblePiso;
|
||||||
private Button btnApagar;
|
private Button btnApagar;
|
||||||
private Textbox txtIdCorridaRebote;
|
private Textbox txtIdCorridaRebote;
|
||||||
|
private Textbox txtPlataforma;
|
||||||
private static Logger log = Logger.getLogger(EditarCorridaController.class);
|
private static Logger log = Logger.getLogger(EditarCorridaController.class);
|
||||||
private Button btnAbrirEsquemaCorrida;
|
private Button btnAbrirEsquemaCorrida;
|
||||||
|
|
||||||
|
@ -211,18 +213,24 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
ParadaEsquema pe = (ParadaEsquema) esquemaTramoList.getSelected();
|
ParadaEsquema pe = (ParadaEsquema) esquemaTramoList.getSelected();
|
||||||
EsquemaTramo esquemaTramo = null;
|
EsquemaTramo esquemaTramo = null;
|
||||||
|
|
||||||
|
// quando sequencia igual a 1 nao deixar adicionar tempo
|
||||||
|
// estancia
|
||||||
|
Boolean primeraSequencia = Boolean.FALSE;
|
||||||
if (pe.getNumsecuencia().equals(Short.valueOf("1"))) {
|
if (pe.getNumsecuencia().equals(Short.valueOf("1"))) {
|
||||||
return;
|
primeraSequencia = Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (EsquemaTramo et : lsEsquemaTramo) {
|
for (EsquemaTramo et : lsEsquemaTramo) {
|
||||||
Short numSec = et.getNumsecuencia();
|
Short numSec = et.getNumsecuencia();
|
||||||
numSec++;
|
numSec++;
|
||||||
if (numSec.equals(pe.getNumsecuencia())) {
|
if (numSec.equals(pe.getNumsecuencia())) {
|
||||||
esquemaTramo = et;
|
esquemaTramo = et;
|
||||||
|
esquemaTramo.setPlataforma(pe.getPlataforma());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
verTempoEstanciaTramo(esquemaTramo, pe);
|
verTempoEstanciaTramo(esquemaTramo, pe, primeraSequencia);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -269,7 +277,6 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
selecionarRutaSequenciaForaEsqCorrida();
|
selecionarRutaSequenciaForaEsqCorrida();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fecniciovigencia.focus();
|
fecniciovigencia.focus();
|
||||||
|
|
||||||
horasalida.setVisible(true);
|
horasalida.setVisible(true);
|
||||||
|
@ -314,12 +321,12 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addTramoPardaEsquema(Parada parada, Short numsecuencia,
|
private void addTramoPardaEsquema(Parada parada, Short numsecuencia, Date tiempoEstancia, String plataforma) {
|
||||||
Date tiempoEstancia) {
|
|
||||||
ParadaEsquema ps = new ParadaEsquema();
|
ParadaEsquema ps = new ParadaEsquema();
|
||||||
ps.setParada(parada);
|
ps.setParada(parada);
|
||||||
ps.setNumsecuencia(numsecuencia);
|
ps.setNumsecuencia(numsecuencia);
|
||||||
ps.setTiempoEstancia(tiempoEstancia);
|
ps.setTiempoEstancia(tiempoEstancia);
|
||||||
|
ps.setPlataforma(plataforma);
|
||||||
|
|
||||||
lsParadaEsquema.add(ps);
|
lsParadaEsquema.add(ps);
|
||||||
}
|
}
|
||||||
|
@ -348,7 +355,8 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
Parada paradaOrigem = tramo.getOrigem();
|
Parada paradaOrigem = tramo.getOrigem();
|
||||||
// So adicionar a parada se o EsquemaTramo estiver ativo.
|
// So adicionar a parada se o EsquemaTramo estiver ativo.
|
||||||
if (rs.getActivo()) {
|
if (rs.getActivo()) {
|
||||||
addTramoPardaEsquema(paradaOrigem, numsecuencia, tiempoEstancia);
|
String plataforma = rs.getPlataforma();
|
||||||
|
addTramoPardaEsquema(paradaOrigem, numsecuencia, tiempoEstancia, plataforma);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,8 +364,8 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
Parada paradaDestino = esquemaTramoFinal.getTramo().getDestino();
|
Parada paradaDestino = esquemaTramoFinal.getTramo().getDestino();
|
||||||
Integer num = numsecuencia.intValue() + 1;
|
Integer num = numsecuencia.intValue() + 1;
|
||||||
addTramoPardaEsquema(paradaDestino, num.shortValue(), null);
|
String plataforma = esquemaTramoFinal.getPlataforma();
|
||||||
|
addTramoPardaEsquema(paradaDestino, num.shortValue(), null, plataforma);
|
||||||
}
|
}
|
||||||
|
|
||||||
esquemaTramoList.setData(lsParadaEsquema);
|
esquemaTramoList.setData(lsParadaEsquema);
|
||||||
|
@ -534,13 +542,10 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
// Salva
|
// Salva
|
||||||
ec = esquemaCorridaService.suscribir(ec);
|
ec = esquemaCorridaService.suscribir(ec);
|
||||||
esquemaCorridaService.actualizaEsquemaTramo(
|
esquemaCorridaService.actualizaEsquemaTramo(lsParadaEsquema, ec);
|
||||||
lsParadaEsquema,
|
|
||||||
ec);
|
|
||||||
|
|
||||||
// Acrescenta Minutos na Hora
|
// Acrescenta Minutos na Hora
|
||||||
des.setMinutes(des.getMinutes()
|
des.setMinutes(des.getMinutes() + minutos.getValue());
|
||||||
+ minutos.getValue());
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
EsquemaOperacional eo = esquemaCorrida.getEsquemaOperacional();
|
EsquemaOperacional eo = esquemaCorrida.getEsquemaOperacional();
|
||||||
|
@ -548,9 +553,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
eo.setFecfinvigencia(fecfinvigencia.getValue());
|
eo.setFecfinvigencia(fecfinvigencia.getValue());
|
||||||
esquemaCorrida.setEsquemaOperacional(eo);
|
esquemaCorrida.setEsquemaOperacional(eo);
|
||||||
esquemaCorridaService.suscribir(esquemaCorrida);
|
esquemaCorridaService.suscribir(esquemaCorrida);
|
||||||
esquemaCorridaService.actualizaEsquemaTramo(
|
esquemaCorridaService.actualizaEsquemaTramo(lsParadaEsquema, esquemaCorrida);
|
||||||
lsParadaEsquema,
|
|
||||||
esquemaCorrida);
|
|
||||||
}
|
}
|
||||||
Messagebox.show(Labels.getLabel("editarConfiguracionCorridaController.MSG.suscribirOK"),
|
Messagebox.show(Labels.getLabel("editarConfiguracionCorridaController.MSG.suscribirOK"),
|
||||||
Labels.getLabel("editarConfiguracionCorridaController.window.title"),
|
Labels.getLabel("editarConfiguracionCorridaController.window.title"),
|
||||||
|
@ -578,7 +581,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
if (podeSalvar) {
|
if (podeSalvar) {
|
||||||
esquemaCorridaService.actualizacion(esquemaCorrida);
|
esquemaCorridaService.actualizacion(esquemaCorrida);
|
||||||
esquemaCorridaService.actualizaEsquemaTramo(lsParadaEsquema,esquemaCorrida);
|
esquemaCorridaService.actualizaEsquemaTramo(lsParadaEsquema, esquemaCorrida);
|
||||||
esquemaCorridaList.updateItem(esquemaCorrida);
|
esquemaCorridaList.updateItem(esquemaCorrida);
|
||||||
} else {
|
} else {
|
||||||
Messagebox.show(Labels.getLabel("MSG.Registro.Existe"),
|
Messagebox.show(Labels.getLabel("MSG.Registro.Existe"),
|
||||||
|
@ -669,12 +672,15 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
public void onClick$btnAdicionarTramo(Event ev) {
|
public void onClick$btnAdicionarTramo(Event ev) {
|
||||||
try {
|
try {
|
||||||
if (cmbTramo.getSelectedItem() != null) {
|
if (cmbTramo.getSelectedItem() != null) {
|
||||||
|
String plataforma = txtPlataforma.getValue();
|
||||||
// Ruta Secuencia
|
// Ruta Secuencia
|
||||||
lsEsquemaTramo = adicionarParadaEsquemaTramo(lsParadaEsquema, (Parada) cmbTramo.getSelectedItem().getValue(), esquemaCorrida, (Ruta) cmbRuta.getSelectedItem().getValue());
|
lsEsquemaTramo = adicionarParadaEsquemaTramo(lsParadaEsquema, (Parada) cmbTramo.getSelectedItem().getValue(), esquemaCorrida, (Ruta) cmbRuta.getSelectedItem().getValue(), plataforma);
|
||||||
esquemaCorrida.setEsquemaTramoList(lsEsquemaTramo);
|
esquemaCorrida.setEsquemaTramoList(lsEsquemaTramo);
|
||||||
carregarParadaSecuencia(lsEsquemaTramo);
|
carregarParadaSecuencia(lsEsquemaTramo);
|
||||||
cmbTramo.setSelectedItem(null);
|
cmbTramo.setSelectedItem(null);
|
||||||
selecionarRutaSequenciaForaEsqCorrida();
|
selecionarRutaSequenciaForaEsqCorrida();
|
||||||
|
|
||||||
|
txtPlataforma.setValue("");
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("ESQ CORRIDA - Erro ao adicionar tramo: " + e);
|
log.error("ESQ CORRIDA - Erro ao adicionar tramo: " + e);
|
||||||
|
@ -774,7 +780,8 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verTempoEstanciaTramo(EsquemaTramo et, ParadaEsquema pe) {
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
|
private void verTempoEstanciaTramo(EsquemaTramo et, ParadaEsquema pe, Boolean primeraSequencia) {
|
||||||
if (et == null) {
|
if (et == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -782,12 +789,11 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("esquemaTramo", et);
|
args.put("esquemaTramo", et);
|
||||||
args.put("paradaEsquema", pe);
|
args.put("paradaEsquema", pe);
|
||||||
|
args.put("primeraSequencia", primeraSequencia);
|
||||||
args.put("esquemaTramoList", esquemaTramoList);
|
args.put("esquemaTramoList", esquemaTramoList);
|
||||||
|
|
||||||
openWindow(
|
openWindow("/gui/esquema_operacional/tiempoEstanciaTramo.zul",
|
||||||
"/gui/esquema_operacional/tiempoEstanciaTramo.zul",
|
Labels.getLabel("editarCatalogoDeRutaController.lhTiempoEstancia"), args, MODAL);
|
||||||
Labels.getLabel("editarCatalogoDeRutaController.lhTiempoEstancia"),
|
|
||||||
args, MODAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onChange$cmbRuta(Event ev) {
|
public void onChange$cmbRuta(Event ev) {
|
||||||
|
@ -809,11 +815,19 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
boolean podeExcluir = false;
|
boolean podeExcluir = false;
|
||||||
for (int i = 0; i < lsParadaEsquema.size(); i++) {
|
for (int i = 0; i < lsParadaEsquema.size(); i++) {
|
||||||
if (lsParadaEsquema.get(i).getParada().equals(pe.getParada())) {
|
if (lsParadaEsquema.get(i).getParada().equals(pe.getParada())) {
|
||||||
if (i > 0 && i < lsParadaEsquema.size() - 1) {// condição para não poder remover o inicial nem o final
|
if (i > 0 && i < lsParadaEsquema.size() - 1) {// condição
|
||||||
|
// para
|
||||||
|
// não
|
||||||
|
// poder
|
||||||
|
// remover
|
||||||
|
// o
|
||||||
|
// inicial
|
||||||
|
// nem o
|
||||||
|
// final
|
||||||
ParadaEsquema paradaEsquema = lsParadaEsquema.get(i);
|
ParadaEsquema paradaEsquema = lsParadaEsquema.get(i);
|
||||||
lsParadaEsquema.remove(paradaEsquema);
|
lsParadaEsquema.remove(paradaEsquema);
|
||||||
|
|
||||||
log.debug("Esquema Tramo Removida: "+ lsParadaEsquema.get(i).getNumsecuencia()+ " - "+ lsParadaEsquema.get(i).getParada().getCveparada());
|
log.debug("Esquema Tramo Removida: " + lsParadaEsquema.get(i).getNumsecuencia() + " - " + lsParadaEsquema.get(i).getParada().getCveparada());
|
||||||
|
|
||||||
esquemaTramoList.setData(lsParadaEsquema);
|
esquemaTramoList.setData(lsParadaEsquema);
|
||||||
// paradaEsquema.setActivo(Boolean.FALSE);
|
// paradaEsquema.setActivo(Boolean.FALSE);
|
||||||
|
@ -845,7 +859,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
Labels.getLabel("editarConfiguracionCorridaController.window.title"),
|
Labels.getLabel("editarConfiguracionCorridaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
}
|
}
|
||||||
lsEsquemaTramo = generaEsquemaTramoCorrecto(lsParadaEsquema,esquemaCorrida);
|
lsEsquemaTramo = generaEsquemaTramoCorrecto(lsParadaEsquema, esquemaCorrida);
|
||||||
selecionarRutaSequenciaForaEsqCorrida();
|
selecionarRutaSequenciaForaEsqCorrida();
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -915,7 +929,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
private List<EsquemaTramo> adicionarParadaEsquemaTramo(
|
private List<EsquemaTramo> adicionarParadaEsquemaTramo(
|
||||||
List<ParadaEsquema> listParadaEsquema, Parada novaParada,
|
List<ParadaEsquema> listParadaEsquema, Parada novaParada,
|
||||||
EsquemaCorrida ec, Ruta ruta) {
|
EsquemaCorrida ec, Ruta ruta, String plataforma) {
|
||||||
List<EsquemaTramo> result = new ArrayList<EsquemaTramo>();
|
List<EsquemaTramo> result = new ArrayList<EsquemaTramo>();
|
||||||
|
|
||||||
lsRutaSecuencia = rutaSecuenciaService.buscarSecuenciaOrdenado(ruta);
|
lsRutaSecuencia = rutaSecuenciaService.buscarSecuenciaOrdenado(ruta);
|
||||||
|
@ -936,6 +950,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
secuencia++;
|
secuencia++;
|
||||||
paradaEsquema.setNumsecuencia(secuencia);
|
paradaEsquema.setNumsecuencia(secuencia);
|
||||||
paradaEsquema.setParada(novaParada);
|
paradaEsquema.setParada(novaParada);
|
||||||
|
paradaEsquema.setPlataforma(plataforma);
|
||||||
|
|
||||||
listParadaEsquemaComNovaParada.add(paradaEsquema);
|
listParadaEsquemaComNovaParada.add(paradaEsquema);
|
||||||
nuevoAgregado = true;
|
nuevoAgregado = true;
|
||||||
|
@ -961,6 +976,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
secuencia++;
|
secuencia++;
|
||||||
paradaEsquema.setNumsecuencia(secuencia);
|
paradaEsquema.setNumsecuencia(secuencia);
|
||||||
paradaEsquema.setParada(rutaSecuencia.getTramo().getDestino());
|
paradaEsquema.setParada(rutaSecuencia.getTramo().getDestino());
|
||||||
|
paradaEsquema.setPlataforma(plataforma);
|
||||||
|
|
||||||
listParadaEsquemaComNovaParada.add(paradaEsquema);
|
listParadaEsquemaComNovaParada.add(paradaEsquema);
|
||||||
}
|
}
|
||||||
|
@ -972,6 +988,7 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
secuencia++;
|
secuencia++;
|
||||||
paradaEsquema.setNumsecuencia(secuencia);
|
paradaEsquema.setNumsecuencia(secuencia);
|
||||||
paradaEsquema.setParada(novaParada);
|
paradaEsquema.setParada(novaParada);
|
||||||
|
paradaEsquema.setPlataforma(plataforma);
|
||||||
|
|
||||||
listParadaEsquemaComNovaParada.add(paradaEsquema);
|
listParadaEsquemaComNovaParada.add(paradaEsquema);
|
||||||
}
|
}
|
||||||
|
@ -996,9 +1013,9 @@ public class EditarCorridaController extends MyGenericForwardComposer {
|
||||||
et.setTiempoEstancia(listParadaEsquemaComNovaParada.get(i + 1).getTiempoEstancia());
|
et.setTiempoEstancia(listParadaEsquemaComNovaParada.get(i + 1).getTiempoEstancia());
|
||||||
et.setTramo(t);
|
et.setTramo(t);
|
||||||
et.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
et.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
et.setPlataforma(plataforma);
|
||||||
|
|
||||||
result.add(et);
|
result.add(et);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -34,6 +34,7 @@ import org.zkoss.zul.Messagebox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class GeracionCorridaController extends MyGenericForwardComposer {
|
public class GeracionCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CorridaService corridaService;
|
private CorridaService corridaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -63,7 +64,7 @@ public class GeracionCorridaController extends MyGenericForwardComposer {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(" Generacion de corrida" + e);
|
log.error(" Generacion de corrida" + e);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("geracionCorridaController.MSG.qtdDias", new Object[]{constante.getValorconstante()}),
|
Labels.getLabel("geracionCorridaController.MSG.qtdDias", new Object[] { constante.getValorconstante() }),
|
||||||
Labels.getLabel("geracionCorridaController.window.title"),
|
Labels.getLabel("geracionCorridaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
closeWindow();
|
closeWindow();
|
||||||
|
@ -72,15 +73,15 @@ public class GeracionCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
SimpleDateFormat sdfData = new SimpleDateFormat("dd/MM/yyyy");
|
SimpleDateFormat sdfData = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
int resp = Messagebox.show(
|
int resp = Messagebox.show(
|
||||||
Labels.getLabel("geracionCorridaController.MSG.gerarPergunta", new Object[]{sdfData.format(calcularDataFinal())}),
|
Labels.getLabel("geracionCorridaController.MSG.gerarPergunta", new Object[] { sdfData.format(calcularDataFinal()) }),
|
||||||
Labels.getLabel("geracionCorridaController.window.title"),
|
Labels.getLabel("geracionCorridaController.window.title"),
|
||||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
if (resp == Messagebox.YES) {
|
if (resp == Messagebox.YES) {
|
||||||
generarCorridasAutomatica();
|
generarCorridasAutomatica();
|
||||||
}
|
}
|
||||||
closeWindow();
|
|
||||||
|
|
||||||
|
closeWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date calcularDataFinal() throws InterruptedException {
|
public Date calcularDataFinal() throws InterruptedException {
|
||||||
|
@ -98,15 +99,14 @@ public class GeracionCorridaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
SimpleDateFormat sdfData = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
SimpleDateFormat sdfData = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
|
||||||
|
|
||||||
|
|
||||||
Date dataDe = new Date();
|
Date dataDe = new Date();
|
||||||
// Date dataDe = null;
|
// Date dataDe = null;
|
||||||
// try {
|
// try {
|
||||||
// dataDe = new SimpleDateFormat("dd/MM/yyyy").parse("7/08/2012");
|
// dataDe = new SimpleDateFormat("dd/MM/yyyy").parse("7/08/2012");
|
||||||
// } catch (ParseException ex) {
|
// } catch (ParseException ex) {
|
||||||
// ex.printStackTrace();
|
// ex.printStackTrace();
|
||||||
// }
|
// }
|
||||||
//Date dataAte = calcularDataFinal();
|
// Date dataAte = calcularDataFinal();
|
||||||
Date dataAte = calcularDataFinal();
|
Date dataAte = calcularDataFinal();
|
||||||
dataDe.setSeconds(0);
|
dataDe.setSeconds(0);
|
||||||
dataAte.setSeconds(0);
|
dataAte.setSeconds(0);
|
||||||
|
|
|
@ -4,11 +4,6 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.EsquemaTramo;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ParadaEsquema;
|
|
||||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
|
@ -17,9 +12,15 @@ import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.Executions;
|
import org.zkoss.zk.ui.Executions;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Label;
|
import org.zkoss.zul.Label;
|
||||||
import org.zkoss.zul.Timebox;
|
import org.zkoss.zul.Textbox;
|
||||||
import org.zkoss.zul.api.Spinner;
|
import org.zkoss.zul.api.Spinner;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.EsquemaTramo;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ParadaEsquema;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
|
@ -28,12 +29,15 @@ import org.zkoss.zul.api.Spinner;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class TiempoEstanciaEsquemaTramoController extends MyGenericForwardComposer {
|
public class TiempoEstanciaEsquemaTramoController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
private MyListbox esquemaTramoList;
|
private MyListbox esquemaTramoList;
|
||||||
private EsquemaTramo esquemaTramo;
|
private EsquemaTramo esquemaTramo;
|
||||||
private ParadaEsquema paradaEsquema;
|
private ParadaEsquema paradaEsquema;
|
||||||
private Label lbTramo;
|
private Label lbTramo;
|
||||||
private Spinner spHora;
|
private Spinner spHora;
|
||||||
private Spinner spMinuto;
|
private Spinner spMinuto;
|
||||||
|
private Textbox txtPlataforma;
|
||||||
|
private Boolean primeraSequencia;
|
||||||
|
|
||||||
public Label getLbTramo() {
|
public Label getLbTramo() {
|
||||||
return lbTramo;
|
return lbTramo;
|
||||||
|
@ -82,15 +86,24 @@ public class TiempoEstanciaEsquemaTramoController extends MyGenericForwardCompos
|
||||||
esquemaTramo = (EsquemaTramo) Executions.getCurrent().getArg().get("esquemaTramo");
|
esquemaTramo = (EsquemaTramo) Executions.getCurrent().getArg().get("esquemaTramo");
|
||||||
paradaEsquema = (ParadaEsquema) Executions.getCurrent().getArg().get("paradaEsquema");
|
paradaEsquema = (ParadaEsquema) Executions.getCurrent().getArg().get("paradaEsquema");
|
||||||
esquemaTramoList = (MyListbox) Executions.getCurrent().getArg().get("esquemaTramoList");
|
esquemaTramoList = (MyListbox) Executions.getCurrent().getArg().get("esquemaTramoList");
|
||||||
|
primeraSequencia = (Boolean) Executions.getCurrent().getArg().get("primeraSequencia");
|
||||||
|
|
||||||
|
// quando sequencia igual a 1 nao deixar adicionar tempo
|
||||||
|
// estancia
|
||||||
|
spHora.setDisabled(primeraSequencia);
|
||||||
|
spMinuto.setDisabled(primeraSequencia);
|
||||||
|
|
||||||
String parada = paradaEsquema.getParada().getCveparada();
|
String parada = paradaEsquema.getParada().getCveparada();
|
||||||
String tramo = esquemaTramo.getTramo().getDesctramo();
|
String tramo = esquemaTramo.getTramo().getDesctramo();
|
||||||
lbTramo.setValue(parada);
|
lbTramo.setValue(parada);
|
||||||
|
|
||||||
|
String plataforma = txtPlataforma.getValue();
|
||||||
|
esquemaTramo.setPlataforma(plataforma);
|
||||||
|
|
||||||
if (esquemaTramo.getTiempoEstancia() != null) {
|
if (esquemaTramo.getTiempoEstancia() != null) {
|
||||||
Calendar c = Calendar.getInstance();
|
Calendar c = Calendar.getInstance();
|
||||||
c.setTime(esquemaTramo.getTiempoEstancia());
|
c.setTime(esquemaTramo.getTiempoEstancia());
|
||||||
System.out.println(DateUtil.getFecInicio().getTime() + " " + c.getTime());
|
|
||||||
Long tempo = DateUtil.getElapsedMinutos(DateUtil.getFecInicio().getTime(), c.getTime());
|
Long tempo = DateUtil.getElapsedMinutos(DateUtil.getFecInicio().getTime(), c.getTime());
|
||||||
Long minutos = (tempo % 60);
|
Long minutos = (tempo % 60);
|
||||||
int horas = (tempo.intValue() / 60);
|
int horas = (tempo.intValue() / 60);
|
||||||
|
@ -105,11 +118,17 @@ public class TiempoEstanciaEsquemaTramoController extends MyGenericForwardCompos
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) {
|
public void onClick$btnSalvar(Event ev) {
|
||||||
|
if (!primeraSequencia) {
|
||||||
spHora.getValue();
|
spHora.getValue();
|
||||||
spMinuto.getValue();
|
spMinuto.getValue();
|
||||||
|
|
||||||
esquemaTramo.setTiempoEstancia(DateUtil.getFecInicio(spHora.getValue(), spMinuto.getValue()).getTime());
|
esquemaTramo.setTiempoEstancia(DateUtil.getFecInicio(spHora.getValue(), spMinuto.getValue()).getTime());
|
||||||
paradaEsquema.setTiempoEstancia(DateUtil.getFecInicio(spHora.getValue(), spMinuto.getValue()).getTime());
|
paradaEsquema.setTiempoEstancia(DateUtil.getFecInicio(spHora.getValue(), spMinuto.getValue()).getTime());
|
||||||
|
}
|
||||||
|
|
||||||
|
String plataforma = txtPlataforma.getValue();
|
||||||
|
esquemaTramo.setPlataforma(plataforma);
|
||||||
|
paradaEsquema.setPlataforma(plataforma);
|
||||||
|
|
||||||
esquemaTramoList.updateItem(paradaEsquema);
|
esquemaTramoList.updateItem(paradaEsquema);
|
||||||
|
|
||||||
|
|
|
@ -26,29 +26,23 @@ public class RenderConfiguracionCorridaTramo implements ListitemRenderer {
|
||||||
lc = new Listcell(pe.getParada().getDescparada());
|
lc = new Listcell(pe.getParada().getDescparada());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
// SimpleDateFormat sf = new SimpleDateFormat("HH:mm");
|
|
||||||
// if (pe.getTiempoEstancia() != null) {
|
|
||||||
// lc = new Listcell(sf.format(pe.getTiempoEstancia()));
|
|
||||||
// } else {
|
|
||||||
// lc = new Listcell("");
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
if (pe.getTiempoEstancia() == null) {
|
if (pe.getTiempoEstancia() == null) {
|
||||||
lc = new Listcell("");
|
lc = new Listcell("");
|
||||||
} else {
|
} else {
|
||||||
Calendar c = Calendar.getInstance();
|
Calendar c = Calendar.getInstance();
|
||||||
c.setTime(pe.getTiempoEstancia());
|
c.setTime(pe.getTiempoEstancia());
|
||||||
System.out.println(DateUtil.getFecInicio().getTime() + " " + c.getTime());
|
|
||||||
Long tempo = DateUtil.getElapsedMinutos(DateUtil.getFecInicio().getTime(), c.getTime());
|
Long tempo = DateUtil.getElapsedMinutos(DateUtil.getFecInicio().getTime(), c.getTime());
|
||||||
long minutos = (tempo % 60);
|
long minutos = (tempo % 60);
|
||||||
int horas = (tempo.intValue() / 60);
|
int horas = (tempo.intValue() / 60);
|
||||||
|
|
||||||
|
|
||||||
String sMinutos = String.valueOf(minutos);
|
String sMinutos = String.valueOf(minutos);
|
||||||
lc = new Listcell(horas + ":" + ((sMinutos.length() < 2) ? "0" + sMinutos : sMinutos));
|
lc = new Listcell(horas + ":" + ((sMinutos.length() < 2) ? "0" + sMinutos : sMinutos));
|
||||||
}
|
}
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(pe.getPlataforma());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", pe);
|
lstm.setAttribute("data", pe);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
||||||
|
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p"
|
||||||
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
||||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
|
||||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
|
||||||
|
|
||||||
<!-- Hibernate config -->
|
<!-- Hibernate config -->
|
||||||
<context:property-placeholder location="classpath:/com/rjconsultores/ventaboletos/web/cliente/conf/database.properties" />
|
<context:property-placeholder
|
||||||
|
location="classpath:/com/rjconsultores/ventaboletos/web/cliente/conf/database.properties" />
|
||||||
<context:component-scan base-package="com.rjconsultores.ventaboletos" />
|
<context:component-scan base-package="com.rjconsultores.ventaboletos" />
|
||||||
<tx:annotation-driven transaction-manager="transactionManager" />
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
||||||
|
|
||||||
<bean id="sessionFactory" class="com.rjconsultores.ventaboletos.utilerias.spring.MyAnnotationSessionFactoryBean">
|
<bean id="sessionFactory"
|
||||||
|
class="com.rjconsultores.ventaboletos.utilerias.spring.MyAnnotationSessionFactoryBean">
|
||||||
<property name="dataSource">
|
<property name="dataSource">
|
||||||
<ref local="dataSource" />
|
<ref local="dataSource" />
|
||||||
</property>
|
</property>
|
||||||
|
@ -21,31 +25,46 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AlertaCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.AlertaCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Autobus</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Autobus</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Autorizacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Autorizacion</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil</value>
|
<value>com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Articulo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Articulo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AsientoExclusivo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.AsientoExclusivo
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Banco</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Banco</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCtrl
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCargo</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCargo
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Categoria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Categoria</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaClase</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaClase</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCorrida</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCorrida
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaDescuento</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaDescuento
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMarca</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMarca</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMercado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMercado
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaPeriodo</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaTipoPtoVta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaPeriodo
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.CategoriaTipoPtoVta
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Ciudad</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Ciudad</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Colonia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Colonia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ClaseServicio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ClaseServicio</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ClaseservicioEquivalencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ClaseservicioEquivalencia
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ComisionistaExterno</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CompaniaBancaria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ComisionistaExterno
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.CompaniaBancaria
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Conductor</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Conductor</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Convenio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Convenio</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConvenioDet</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConvenioDet</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Constante</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Constante</value>
|
||||||
|
@ -53,78 +72,113 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CorridaCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CorridaCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CorridaTramo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CorridaTramo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Cortesia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Cortesia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaBeneficiario</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CortesiaBeneficiario
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaDireccion</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.CortesiaDireccion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Conexion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Conexion</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionTemp</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConexionTemp</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConexionCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionCtrlTemp</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConexionCtrlTemp
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CuponConvenio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CuponConvenio</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.CuponSecretaria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.CuponSecretaria
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.DepositoBancario</value>
|
<value>com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.DiagramaAutobus</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.DepositoBancario
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.DiagramaAutobus
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Division</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Division</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Empleado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Empleado</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Empresa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Empresa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaEquivalencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EmpresaEquivalencia
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Estacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Estacion</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAsiento</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAsiento</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaCorrida</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EsquemaCorrida</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaTramo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EsquemaTramo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ExcepcionRedondo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ExcepcionRedondo
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FormaPago</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FormaPago</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FormaPagoDet</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FormaPagoDet</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.GrupoCortesia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.GrupoCortesia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.FuncionSistema</value>
|
<value>com.rjconsultores.ventaboletos.entidad.FuncionSistema</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Marca</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Marca</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MercadoCompetido</value>
|
<value>com.rjconsultores.ventaboletos.entidad.MercadoCompetido
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MerchantBancario</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.MerchantBancario
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Moneda</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Moneda</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoCancelacion</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.MotivoCancelacion
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoReimpresion</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.MotivoReimpresion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoViaje</value>
|
<value>com.rjconsultores.ventaboletos.entidad.MotivoViaje</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Nodo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Nodo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OrgaoConcedente</value>
|
<value>com.rjconsultores.ventaboletos.entidad.OrgaoConcedente
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.OrgaoTramo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.OrgaoTramo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Pais</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Pais</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Parada</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Parada</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParadaEquivalencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParadaEquivalencia
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaPunto</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCanjePunto</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaPunto
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCompraPunto</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamRecoleccion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParamCanjePunto
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ParamCompraPunto
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ParamRecoleccion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamConexion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParamConexion</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Perfil</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Perfil</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PerfilFuncion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PerfilFuncion</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PeriodoVacacional</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PeriodoVacacional
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Plaza</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Plaza</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Pricing</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Pricing</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingAnticipacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingAnticipacion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingImporte</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingImporte</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingVigencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingVigencia
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingClase</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingClase</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingMarca</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingMarca</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingMercado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingMercado</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingDia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingDia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingCorrida</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingCorrida</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingCategoria</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingCategoria
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoServicio</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoServicio
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingAsiento</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingAsiento</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingOcupacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingOcupacion
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingEspecifico</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.PricingEspecifico
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PricingRuta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PricingRuta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdClaseServicio</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ProdClaseServicio
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdFormaPago</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProdFormaPago</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdMarca</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProdMarca</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdPrecio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProdPrecio</value>
|
||||||
|
@ -133,45 +187,63 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdRuta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProdRuta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdTipoptovta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProdTipoptovta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProdVigencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProdVigencia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PuntoVenta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PuntoVenta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Redondeo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Redondeo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RedondeoCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RedondeoCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RedondeoMarca</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RedondeoMarca</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCategoria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCategoria
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionClase</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ReservacionClase
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMarca</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMercado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCtrl
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RestriccionPago</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMarca
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMercado
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.RestriccionPago
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RolOperativo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RolOperativo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Ruta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Ruta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RutaCombinacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RutaCombinacion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RutaEmpresa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RutaEmpresa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RutaSecuencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RutaSecuencia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.RhPagoConductor</value>
|
<value>com.rjconsultores.ventaboletos.entidad.RhPagoConductor
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Secretaria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Secretaria</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.SeguroKm</value>
|
<value>com.rjconsultores.ventaboletos.entidad.SeguroKm</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.SeguroTarifa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.SeguroTarifa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Sistema</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Sistema</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueParada</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueParada
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad
|
||||||
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Tarifa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Tarifa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaOficial</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarifaOficial</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaHist</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarifaHist</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaMinima</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarifaMinima</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaCategoria</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarifaCategoria
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaTipoptovta</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.TarifaTipoptovta
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoConvenio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoConvenio</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCtrl</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCtrl</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCiudad</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCiudad
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCorte</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoCorte</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesiaDescuento</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesiaDescuento
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoDomicilio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoDomicilio</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEmpleado</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoEmpleado</value>
|
||||||
|
@ -183,21 +255,26 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoVenta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoVenta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Tramo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Tramo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TramoServicio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TramoServicio</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TramoKmServicio</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TramoKmServicio
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TramoTiempo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TramoTiempo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TramoKm</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TramoKm</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Turno</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Turno</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Usuario</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Usuario</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioBancario</value>
|
<value>com.rjconsultores.ventaboletos.entidad.UsuarioBancario
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioPerfil</value>
|
<value>com.rjconsultores.ventaboletos.entidad.UsuarioPerfil</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion</value>
|
<value>com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Via</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Via</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.VigenciaTarifa</value>
|
<value>com.rjconsultores.ventaboletos.entidad.VigenciaTarifa</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.Zona</value>
|
<value>com.rjconsultores.ventaboletos.entidad.Zona</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ParamArticulo</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ParamArticulo</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.EventoExtra</value>
|
<value>com.rjconsultores.ventaboletos.entidad.EventoExtra</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaViaje</value>
|
<value>com.rjconsultores.ventaboletos.entidad.TarjetaViaje</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
@ -212,36 +289,44 @@
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
<bean id="transactionManager"
|
||||||
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
||||||
<property name="sessionFactory" ref="sessionFactory" />
|
<property name="sessionFactory" ref="sessionFactory" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="contextApplicationContextProvider" class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
<bean id="contextApplicationContextProvider"
|
||||||
|
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> -->
|
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
|
||||||
<!-- <property name="resourceRef" value="true" /> -->
|
<property name="resourceRef" value="true" />
|
||||||
<!-- <property name="jndiName" value="${database.jndi.name}" /> -->
|
<property name="jndiName" value="${database.jndi.name}" />
|
||||||
<!-- </bean> -->
|
|
||||||
|
|
||||||
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
|
||||||
<property name="driverClassName" value="${database.driver}" />
|
|
||||||
<property name="url" value="${database.url}" />
|
|
||||||
<property name="username" value="${database.username}" />
|
|
||||||
<property name="password" value="${database.password}" />
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
<!-- <bean id="dataSource" -->
|
||||||
|
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||||
|
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||||
|
<!-- <property name="url" value="${database.url}" /> -->
|
||||||
|
<!-- <property name="username" value="${database.username}" /> -->
|
||||||
|
<!-- <property name="password" value="${database.password}" /> -->
|
||||||
|
<!-- </bean> -->
|
||||||
|
|
||||||
<!-- ====================================================== -->
|
<!-- ====================================================== -->
|
||||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||||
<!-- ====================================================== -->
|
<!-- ====================================================== -->
|
||||||
<bean id="hibernateSearchSupport" scope="prototype" class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
|
<bean id="hibernateSearchSupport" scope="prototype"
|
||||||
|
class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
|
||||||
<property name="sessionFactory" ref="sessionFactory" />
|
<property name="sessionFactory" ref="sessionFactory" />
|
||||||
<property name="hibernateSearchProcessor">
|
<property name="hibernateSearchProcessor">
|
||||||
<bean class="com.trg.search.hibernate.HibernateSearchProcessor" factory-method="getInstanceForSessionFactory">
|
<bean class="com.trg.search.hibernate.HibernateSearchProcessor"
|
||||||
|
factory-method="getInstanceForSessionFactory">
|
||||||
<constructor-arg ref="sessionFactory" />
|
<constructor-arg ref="sessionFactory" />
|
||||||
</bean>
|
</bean>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="sqlFactory" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" />
|
<bean id="sqlFactory"
|
||||||
<bean id="sqlBuilder" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder" factory-bean="sqlFactory" factory-method="getBuilder" />
|
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" />
|
||||||
|
<bean id="sqlBuilder"
|
||||||
|
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder"
|
||||||
|
factory-bean="sqlFactory" factory-method="getBuilder" />
|
||||||
</beans>
|
</beans>
|
|
@ -989,6 +989,7 @@ editarCatalogoDeRutaController.btnSalvar.tooltiptext = Salvar
|
||||||
editarCatalogoDeRutaController.btnFechar.tooltiptext = Fechar
|
editarCatalogoDeRutaController.btnFechar.tooltiptext = Fechar
|
||||||
editarCatalogoDeRutaController.btnModificar.tooltiptext = Modificar sequência
|
editarCatalogoDeRutaController.btnModificar.tooltiptext = Modificar sequência
|
||||||
editarCatalogoDeRutaController.lbNome.value = Linha
|
editarCatalogoDeRutaController.lbNome.value = Linha
|
||||||
|
editarCatalogoDeRutaController.lhPlataforma = Plataforma
|
||||||
editarCatalogoDeRutaController.lbClase.value = Tipo de Classe
|
editarCatalogoDeRutaController.lbClase.value = Tipo de Classe
|
||||||
editarCatalogoDeRutaController.lbTramo.value = Localidade
|
editarCatalogoDeRutaController.lbTramo.value = Localidade
|
||||||
editarCatalogoDeRutaController.lbVia.value = Via
|
editarCatalogoDeRutaController.lbVia.value = Via
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
label="Hora Viagem" />
|
label="Hora Viagem" />
|
||||||
<comboitem value="getAsiento"
|
<comboitem value="getAsiento"
|
||||||
label="Poltrona" />
|
label="Poltrona" />
|
||||||
<comboitem value="getAnden"
|
<comboitem value="getPlataforma"
|
||||||
label="Plataforma" />
|
label="Plataforma" />
|
||||||
<comboitem value="getValorPedagio"
|
<comboitem value="getValorPedagio"
|
||||||
label="Pedagio" />
|
label="Pedagio" />
|
||||||
|
|
|
@ -7,36 +7,39 @@
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
|
||||||
<window id="winEditarCorrida" border="normal"
|
<window id="winEditarCorrida" border="normal"
|
||||||
apply="${editarCorridaController}"
|
apply="${editarCorridaController}" width="740px" height="570px"
|
||||||
width="740px" height="570px" contentStyle="overflow:auto"
|
contentStyle="overflow:auto"
|
||||||
title="${c:l('editarConfiguracionCorridaController.window.title')}"
|
title="${c:l('editarConfiguracionCorridaController.window.title')}"
|
||||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnApagar" height="20"
|
<button id="btnApagar" height="20"
|
||||||
image="/gui/img/remove.png" width="35px"
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
image="/gui/img/save.png" width="35px"
|
image="/gui/img/save.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnSalvar.tooltiptext')}" />
|
||||||
<separator orient="vertical" />
|
<separator orient="vertical" />
|
||||||
<button id="btnAsientos" height="20"
|
<button id="btnAsientos" height="20"
|
||||||
image="/gui/img/char1.png"
|
image="/gui/img/char1.png"
|
||||||
label="${c:l('editarConfiguracionCorridaController.cmbAsiento.value')}"
|
label="${c:l('editarConfiguracionCorridaController.cmbAsiento.value')}"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.cmbAsiento.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCorridaController.cmbAsiento.tooltiptext')}" />
|
||||||
<separator orient="vertical" />
|
<separator orient="vertical" />
|
||||||
<button id="btnFechar" height="20"
|
<button id="btnFechar" height="20"
|
||||||
image="/gui/img/exit.png" width="35px"
|
image="/gui/img/exit.png" width="35px"
|
||||||
onClick="winEditarCorrida.detach()"
|
onClick="winEditarCorrida.detach()"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnFechar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<tabbox id="tb">
|
<tabbox id="tb">
|
||||||
<tabs id="tabs">
|
<tabs id="tabs">
|
||||||
<tab id="A" label="${c:l('editarConfiguracionCorridaController.tabCorrida.value')}" />
|
<tab id="A"
|
||||||
<tab id="B" label="${c:l('editarConfiguracionCorridaController.tabCorridaTramo.value')}" />
|
label="${c:l('editarConfiguracionCorridaController.tabCorrida.value')}" />
|
||||||
<tab id="C" label="${c:l('editarConfiguracionCorridaController.tabCorridaRebote.value')}" />
|
<tab id="B"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.tabCorridaTramo.value')}" />
|
||||||
|
<tab id="C"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.tabCorridaRebote.value')}" />
|
||||||
</tabs>
|
</tabs>
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
<tabpanel>
|
<tabpanel>
|
||||||
|
@ -47,192 +50,269 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.lbVigencia.value')}"/>
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbVigencia.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<h:table border="0">
|
<h:table border="0">
|
||||||
<h:tr>
|
<h:tr>
|
||||||
<h:td >
|
<h:td>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.lbDe.value')}"/>
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbDe.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<datebox id="fecniciovigencia" constraint="no empty" width="70x" mold="rounded" lenient="false"
|
<datebox
|
||||||
value="@{winEditarCorrida$composer.esquemaCorrida.esquemaOperacional.fecniciovigencia}"/>
|
id="fecniciovigencia" constraint="no empty" width="70x"
|
||||||
|
mold="rounded" lenient="false"
|
||||||
|
value="@{winEditarCorrida$composer.esquemaCorrida.esquemaOperacional.fecniciovigencia}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.lbHasta.value')}"/>
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbHasta.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<datebox id="fecfinvigencia" constraint="no empty" width="120px" mold="rounded" lenient="false"
|
<datebox
|
||||||
value="@{winEditarCorrida$composer.esquemaCorrida.esquemaOperacional.fecfinvigencia}"/>
|
id="fecfinvigencia" constraint="no empty" width="120px"
|
||||||
|
mold="rounded" lenient="false"
|
||||||
|
value="@{winEditarCorrida$composer.esquemaCorrida.esquemaOperacional.fecfinvigencia}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
</h:tr>
|
</h:tr>
|
||||||
</h:table>
|
</h:table>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbClase.value')}"/>
|
<label
|
||||||
<combobox id="cmbClase" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.cmbClase.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<combobox id="cmbClase"
|
||||||
model="@{winEditarCorrida$composer.lsClase}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.claseServicio}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
width="70%" model="@{winEditarCorrida$composer.lsClase}"
|
||||||
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.claseServicio}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbMarca.value')}"/>
|
<label
|
||||||
<combobox id="cmbMarca" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.cmbMarca.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<combobox id="cmbMarca"
|
||||||
model="@{winEditarCorrida$composer.lsMarca}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.marca}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
width="70%" model="@{winEditarCorrida$composer.lsMarca}"
|
||||||
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.marca}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}"/>
|
<label
|
||||||
<combobox id="cmbRuta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.cmbRuta.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<combobox id="cmbRuta"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.ruta}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
width="70%"
|
||||||
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.ruta}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<radiogroup Id="radioPor" >
|
<radiogroup Id="radioPor">
|
||||||
<vbox height="90px" align="center" >
|
<vbox height="90px"
|
||||||
<radio Id="porHora" label="${c:l('editarConfiguracionCorridaController.rdPorHora.value')}" checked="true"/>
|
align="center">
|
||||||
<radio Id="porBloq" label="${c:l('editarConfiguracionCorridaController.rdPorBloq.value')}" />
|
<radio Id="porHora"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.rdPorHora.value')}"
|
||||||
|
checked="true" />
|
||||||
|
<radio Id="porBloq"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.rdPorBloq.value')}" />
|
||||||
</vbox>
|
</vbox>
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
<vbox>
|
<vbox>
|
||||||
<h:table border="0">
|
<h:table border="0">
|
||||||
<h:tr>
|
<h:tr>
|
||||||
<h:td align="right">
|
<h:td align="right">
|
||||||
<label id="minutosLabel1" width="200px" value="${c:l('editarConfiguracionCorridaController.lbCada.value')}"/>
|
<label
|
||||||
|
id="minutosLabel1" width="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbCada.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<spinner id="minutos" width="200px" mold="rounded" constraint="no negative,no zero,no empty, min 0 max 999" maxlength="3"/>
|
<spinner id="minutos"
|
||||||
|
width="200px" mold="rounded"
|
||||||
|
constraint="no negative,no zero,no empty, min 0 max 999"
|
||||||
|
maxlength="3" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label id="minutosLabel2" width="200px" value="${c:l('editarConfiguracionCorridaController.lbMinutos.value')}"/>
|
<label
|
||||||
|
id="minutosLabel2" width="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbMinutos.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
</h:tr>
|
</h:tr>
|
||||||
<h:tr>
|
<h:tr>
|
||||||
<h:td align="right">
|
<h:td align="right">
|
||||||
<label id="horaLabel1" width="200px" height="200px" value="${c:l('editarConfiguracionCorridaController.lbDe.value')}"/>
|
<label id="horaLabel1"
|
||||||
|
width="200px" height="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbDe.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<timebox id="hora" width="200px" mold="rounded" constraint="no empty"/>
|
<timebox id="hora"
|
||||||
|
width="200px" mold="rounded" constraint="no empty" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label id="horaLabel2" width="200px" value="${c:l('editarConfiguracionCorridaController.lbHrs.value')}"/>
|
<label id="horaLabel2"
|
||||||
|
width="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbHrs.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
</h:tr>
|
</h:tr>
|
||||||
<h:tr>
|
<h:tr>
|
||||||
<h:td align="right">
|
<h:td align="right">
|
||||||
<label id="horaLabel21" width="200px" value="${c:l('editarConfiguracionCorridaController.lbHasta.value')}"/>
|
<label id="horaLabel21"
|
||||||
|
width="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbHasta.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<timebox id="hora2" width="200px" mold="rounded" constraint="no empty"/>
|
<timebox id="hora2"
|
||||||
|
width="200px" mold="rounded" constraint="no empty" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label id="horaLabel22" width="200px" value="${c:l('editarConfiguracionCorridaController.lbHrs.value')}"/>
|
<label id="horaLabel22"
|
||||||
|
width="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbHrs.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
</h:tr>
|
</h:tr>
|
||||||
<h:tr>
|
<h:tr>
|
||||||
<h:td align="right">
|
<h:td align="right">
|
||||||
<timebox id="horasalida" mold="rounded" width="200px" constraint="no empty"
|
<timebox id="horasalida"
|
||||||
value="@{winEditarCorrida$composer.esquemaCorrida.horasalida}"/>
|
mold="rounded" width="200px" constraint="no empty"
|
||||||
|
value="@{winEditarCorrida$composer.esquemaCorrida.horasalida}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label id="horasalidaLabel" width="200px" value="${c:l('editarConfiguracionCorridaController.lbHrs.value')}"/>
|
<label
|
||||||
|
id="horasalidaLabel" width="200px"
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbHrs.value')}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
</h:tr>
|
</h:tr>
|
||||||
</h:table>
|
</h:table>
|
||||||
</vbox>
|
</vbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.lbCantParados.value')}"/>
|
<label
|
||||||
<spinner id="cantparados" mold="rounded" constraint="no negative, no empty, min 0 max 99" maxlength="2"
|
value="${c:l('editarConfiguracionCorridaController.lbCantParados.value')}" />
|
||||||
value="@{winEditarCorrida$composer.esquemaCorrida.cantparados}"/>
|
<spinner id="cantparados" mold="rounded"
|
||||||
|
constraint="no negative, no empty, min 0 max 99" maxlength="2"
|
||||||
|
value="@{winEditarCorrida$composer.esquemaCorrida.cantparados}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.lbSemana.value')}"/>
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lbSemana.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<checkbox id="lun" label="${c:l('editarConfiguracionCorridaController.lbL.value')}"
|
<checkbox id="lun"
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.indlunes}"/>
|
label="${c:l('editarConfiguracionCorridaController.lbL.value')}"
|
||||||
<checkbox id="mar" label="${c:l('editarConfiguracionCorridaController.lbMa.value')}"
|
checked="@{winEditarCorrida$composer.esquemaCorrida.indlunes}" />
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.indmartes}"/>
|
<checkbox id="mar"
|
||||||
<checkbox id="mie" label="${c:l('editarConfiguracionCorridaController.lbMi.value')}"
|
label="${c:l('editarConfiguracionCorridaController.lbMa.value')}"
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.indmiercoles}"/>
|
checked="@{winEditarCorrida$composer.esquemaCorrida.indmartes}" />
|
||||||
<checkbox id="jue" label="${c:l('editarConfiguracionCorridaController.lbJ.value')}"
|
<checkbox id="mie"
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.indjueves}"/>
|
label="${c:l('editarConfiguracionCorridaController.lbMi.value')}"
|
||||||
<checkbox id="vie" label="${c:l('editarConfiguracionCorridaController.lbV.value')}"
|
checked="@{winEditarCorrida$composer.esquemaCorrida.indmiercoles}" />
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.indviernes}"/>
|
<checkbox id="jue"
|
||||||
<checkbox id="sab" label="${c:l('editarConfiguracionCorridaController.lbS.value')}"
|
label="${c:l('editarConfiguracionCorridaController.lbJ.value')}"
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.indsabado}"/>
|
checked="@{winEditarCorrida$composer.esquemaCorrida.indjueves}" />
|
||||||
<checkbox id="dom" label="${c:l('editarConfiguracionCorridaController.lbD.value')}"
|
<checkbox id="vie"
|
||||||
checked="@{winEditarCorrida$composer.esquemaCorrida.inddomingo}"/>
|
label="${c:l('editarConfiguracionCorridaController.lbV.value')}"
|
||||||
|
checked="@{winEditarCorrida$composer.esquemaCorrida.indviernes}" />
|
||||||
|
<checkbox id="sab"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.lbS.value')}"
|
||||||
|
checked="@{winEditarCorrida$composer.esquemaCorrida.indsabado}" />
|
||||||
|
<checkbox id="dom"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.lbD.value')}"
|
||||||
|
checked="@{winEditarCorrida$composer.esquemaCorrida.inddomingo}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbEmpresaCorrida.value')}"/>
|
<label
|
||||||
<combobox id="cmbEmpresaCorrida" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.cmbEmpresaCorrida.value')}" />
|
||||||
mold="rounded" width="70%"
|
<combobox id="cmbEmpresaCorrida"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" width="70%"
|
||||||
model="@{winEditarCorrida$composer.lsEmpresa}"
|
model="@{winEditarCorrida$composer.lsEmpresa}"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.empresa}"/>
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.empresa}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbEmpresaIngresso.value')}"/>
|
<label
|
||||||
<combobox id="cmbEmpresaIngresso" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.cmbEmpresaIngresso.value')}" />
|
||||||
mold="rounded" width="70%"
|
<combobox id="cmbEmpresaIngresso"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" width="70%"
|
||||||
model="@{winEditarCorrida$composer.lsEmpresa}"
|
model="@{winEditarCorrida$composer.lsEmpresa}"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.empresa1}"/>
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.empresa1}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbEmpresaRolOperativo.value')}"/>
|
<label
|
||||||
<combobox id="cmbRolOperativo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.cmbEmpresaRolOperativo.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<combobox id="cmbRolOperativo"
|
||||||
model="@{winEditarCorrida$composer.lsRolOperativo}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.rolOperativo}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
width="70%" model="@{winEditarCorrida$composer.lsRolOperativo}"
|
||||||
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.rolOperativo}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.cmbStatus.value')}"/>
|
<label
|
||||||
<radiogroup Id="radioStatus" >
|
value="${c:l('editarConfiguracionCorridaController.cmbStatus.value')}" />
|
||||||
<hbox align="center" >
|
<radiogroup Id="radioStatus">
|
||||||
<radio Id="autorizada" value="A" label="${c:l('editarConfiguracionCorridaController.rdAutorizada.value')}" checked="true"/>
|
<hbox align="center">
|
||||||
<radio Id="latente" value="L" label="${c:l('editarConfiguracionCorridaController.rdLatente.value')}" />
|
<radio Id="autorizada" value="A"
|
||||||
<radio Id="cancelada" value="C" label="${c:l('editarConfiguracionCorridaController.rdCancelada.value')}" />
|
label="${c:l('editarConfiguracionCorridaController.rdAutorizada.value')}"
|
||||||
|
checked="true" />
|
||||||
|
<radio Id="latente" value="L"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.rdLatente.value')}" />
|
||||||
|
<radio Id="cancelada" value="C"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.rdCancelada.value')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.tipoCorrida.value')}"/>
|
<label
|
||||||
<radiogroup Id="radioTipoCorrida" >
|
value="${c:l('editarConfiguracionCorridaController.tipoCorrida.value')}" />
|
||||||
<hbox align="center" >
|
<radiogroup Id="radioTipoCorrida">
|
||||||
<radio Id="fletes" value="F" label="${c:l('editarConfiguracionCorridaController.fletes')}" checked="true"/>
|
<hbox align="center">
|
||||||
<radio Id="viajesEspeciales" value="S" label="${c:l('editarConfiguracionCorridaController.viajesEspeciales')}" />
|
<radio Id="fletes" value="F"
|
||||||
<radio Id="transportePasajeros" value="P" label="${c:l('editarConfiguracionCorridaController.transportePasajeros')}" />
|
label="${c:l('editarConfiguracionCorridaController.fletes')}"
|
||||||
|
checked="true" />
|
||||||
|
<radio Id="viajesEspeciales"
|
||||||
|
value="S"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.viajesEspeciales')}" />
|
||||||
|
<radio Id="transportePasajeros"
|
||||||
|
value="P"
|
||||||
|
label="${c:l('editarConfiguracionCorridaController.transportePasajeros')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</radiogroup>
|
</radiogroup>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbDivision" value="${c:l('editarConfiguracionCorridaController.division.value')}" visible="false"/>
|
<label id="lbDivision"
|
||||||
<combobox id="cmbDivision" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarConfiguracionCorridaController.division.value')}"
|
||||||
mold="rounded" buttonVisible="true" width="70%" visible="false"
|
visible="false" />
|
||||||
|
<combobox id="cmbDivision"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
width="70%" visible="false"
|
||||||
model="@{winEditarCorrida$composer.lsDivision}"
|
model="@{winEditarCorrida$composer.lsDivision}"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.division}"/>
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.division}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.doblePiso.value')}"/>
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.doblePiso.value')}" />
|
||||||
<checkbox id="chkDoblePiso" />
|
<checkbox id="chkDoblePiso" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbRolOperativoDoblePiso" value="${c:l('editarConfiguracionCorridaController.cmbEmpresaRolOperativo2.value')}" visible="false"/>
|
<label id="lbRolOperativoDoblePiso"
|
||||||
<combobox id="cmbRolOperativoDoblePiso" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" visible="false"
|
value="${c:l('editarConfiguracionCorridaController.cmbEmpresaRolOperativo2.value')}"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
visible="false" />
|
||||||
|
<combobox id="cmbRolOperativoDoblePiso"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
visible="false" mold="rounded" buttonVisible="true" width="70%"
|
||||||
model="@{winEditarCorrida$composer.lsRolOperativo}"
|
model="@{winEditarCorrida$composer.lsRolOperativo}"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.rolOperativo2}"/>
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.rolOperativo2}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbClaseDoblePiso" value="${c:l('editarConfiguracionCorridaController.cmbClase2.value')}" visible="false"/>
|
<label id="lbClaseDoblePiso"
|
||||||
<combobox id="cmbClaseDoblePiso" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" visible="false"
|
value="${c:l('editarConfiguracionCorridaController.cmbClase2.value')}"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
visible="false" />
|
||||||
|
<combobox id="cmbClaseDoblePiso"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
visible="false" mold="rounded" buttonVisible="true" width="70%"
|
||||||
model="@{winEditarCorrida$composer.lsClase}"
|
model="@{winEditarCorrida$composer.lsClase}"
|
||||||
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.claseServicio2}"/>
|
selectedItem="@{winEditarCorrida$composer.esquemaCorrida.claseServicio2}" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
@ -240,38 +320,54 @@
|
||||||
<tabpanel height="300px">
|
<tabpanel height="300px">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="30%" />
|
||||||
<column width="70%" />
|
<column width="70%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.tabCorridaTramo.value')}"/>
|
<label
|
||||||
<hbox >
|
value="${c:l('editarConfiguracionCorridaController.tabCorridaTramo.value')}" />
|
||||||
<combobox id="cmbTramo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded" buttonVisible="true" width="200px"/>
|
<combobox id="cmbTramo"
|
||||||
<button id="btnAdicionarTramo" height="20" image="/gui/img/add.png" width="35px"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}"/>
|
mold="rounded" buttonVisible="true" width="200px" />
|
||||||
</hbox>
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}"/>
|
<label
|
||||||
<button id="btnRemoverTramo" height="20"
|
value="${c:l('editarCatalogoDeRutaController.lhPlataforma')}" />
|
||||||
image="/gui/img/remove.png" width="35px"
|
<textbox id="txtPlataforma" width="50%"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
maxlength="10" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<listbox id="esquemaTramoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnAdicionarTramo" height="20"
|
||||||
|
image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAdcionarTramo.tooltiptext')}" />
|
||||||
|
<button id="btnRemoverTramo" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnRemoverTramo.tooltiptext')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<listbox id="esquemaTramoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
multiple="false" checkmark="true" tooltiptext="">
|
multiple="false" checkmark="true" tooltiptext="">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader id="secuencia" image="/gui/img/create_doc.gif" width="20%"
|
<listheader id="secuencia"
|
||||||
|
image="/gui/img/create_doc.gif" width="20%"
|
||||||
label="${c:l('editarCatalogoDeRutaController.lbSecuencia.value')}"
|
label="${c:l('editarCatalogoDeRutaController.lbSecuencia.value')}"
|
||||||
sort="auto(numsecuencia)" />
|
sort="auto(numsecuencia)" />
|
||||||
<listheader id="secuencia2" image="/gui/img/create_doc.gif"
|
<listheader id="secuencia2"
|
||||||
|
image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarCatalogoDeRutaController.lbTramo.value')}"
|
label="${c:l('editarCatalogoDeRutaController.lbTramo.value')}"
|
||||||
sort="auto(tramo.desctramo)"/>
|
sort="auto(tramo.desctramo)" />
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}"
|
label="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}"
|
||||||
sort="auto(tiempoEstancia)"/>
|
sort="auto(tiempoEstancia)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
label="${c:l('editarCatalogoDeRutaController.lhPlataforma')}"
|
||||||
|
sort="auto(plataforma)" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -283,19 +379,22 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCorridaController.lblNumEsquemaRebote.value')}"/>
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCorridaController.lblNumEsquemaRebote.value')}" />
|
||||||
|
|
||||||
<hbox>
|
<hbox>
|
||||||
<textbox id="txtIdCorridaRebote" readonly="true"/>
|
<textbox id="txtIdCorridaRebote"
|
||||||
|
readonly="true" />
|
||||||
|
|
||||||
<button id="btnBuscarEsquemaCorrida" height="20"
|
<button id="btnBuscarEsquemaCorrida"
|
||||||
image="/gui/img/find.png" width="35px"
|
height="20" image="/gui/img/find.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnBuscarEsquemaCorrida.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnBuscarEsquemaCorrida.tooltiptext')}" />
|
||||||
<button id="btnAbrirEsquemaCorrida" height="20"
|
<button id="btnAbrirEsquemaCorrida"
|
||||||
image="/gui/img/edit.png" width="35px"
|
height="20" image="/gui/img/edit.png" width="35px"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAbrirEsquemaCorrida.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnAbrirEsquemaCorrida.tooltiptext')}" />
|
||||||
<button id="btnApagarRebote" height="20" image="/gui/img/remove.png" width="35px"
|
<button id="btnApagarRebote"
|
||||||
tooltiptext="${c:l('editarConfiguracionCorridaController.btnApagar.tooltiptext')}"/>
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCorridaController.btnApagar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
|
|
|
@ -6,15 +6,16 @@
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
|
||||||
<window id="winTiempoEstanciaTramo" border="normal"
|
<window id="winTiempoEstanciaTramo" border="normal" width="400px"
|
||||||
width="400px" height="210px"
|
|
||||||
position="center" mode="overlapped"
|
position="center" mode="overlapped"
|
||||||
apply="${tiempoEstanciaEsquemaTramoController}"
|
apply="${tiempoEstanciaEsquemaTramoController}"
|
||||||
title="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}">
|
title="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}">
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnSalvar" height="20" image="/gui/img/save.png" width="35px"/>
|
<button id="btnSalvar" height="20" image="/gui/img/save.png"
|
||||||
<button id="btnCerrar" image="/gui/img/exit.png" width="35px"/>
|
width="35px" />
|
||||||
|
<button id="btnCerrar" image="/gui/img/exit.png"
|
||||||
|
width="35px" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<grid>
|
<grid>
|
||||||
|
@ -22,31 +23,40 @@
|
||||||
<column width="30%" />
|
<column width="30%" />
|
||||||
<column width="70%" />
|
<column width="70%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows >
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarCatalogoDeRutaController.lbTramo.value')}"/>
|
<label
|
||||||
<label id="lbTramo"/>
|
value="${c:l('editarCatalogoDeRutaController.lbTramo.value')}" />
|
||||||
|
<label id="lbTramo" />
|
||||||
</row>
|
</row>
|
||||||
<!--row>
|
<!--row>
|
||||||
<label value="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}"/>
|
<label value="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}"/>
|
||||||
<timebox id="tbTiempoEstancia" mold="rounded" constraint="no empty"/>
|
<timebox id="tbTiempoEstancia" mold="rounded" constraint="no empty"/>
|
||||||
</row-->
|
</row-->
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}"/>
|
<label
|
||||||
|
value="${c:l('editarCatalogoDeRutaController.lhTiempoEstancia')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<hbox>
|
<hbox>
|
||||||
<spinner id="spHora"
|
<spinner id="spHora" value="00"
|
||||||
value="00" width="50px" maxlength="2"
|
width="50px" maxlength="2" constraint="max 99,no negative"
|
||||||
constraint="max 99,no negative" mold="rounded" />
|
mold="rounded" />
|
||||||
<label value=":" />
|
<label value=":" />
|
||||||
<spinner id="spMinuto"
|
<spinner id="spMinuto" value="00"
|
||||||
value="00" width="50px" maxlength="2"
|
width="50px" maxlength="2" constraint="max 59,no negative"
|
||||||
constraint="max 59,no negative" mold="rounded" />
|
mold="rounded" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarCatalogoDeRutaController.lhPlataforma')}" />
|
||||||
|
<textbox id="txtPlataforma" width="50%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
maxlength="10" />
|
||||||
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</window>
|
</window>
|
||||||
|
|
Loading…
Reference in New Issue