git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20586 d1611594-4594-4d17-8e1d-87c2c4800839
parent
da985137b7
commit
d90fb44600
|
@ -1,48 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Usuario;
|
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.zk.ui.Component;
|
|
||||||
import org.zkoss.zul.Label;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("aberturaTurnoRecaudacionController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class AberturaTurnoRecaudacionController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
private Usuario usuarioLogado;
|
|
||||||
private Label lblRecaudador;
|
|
||||||
|
|
||||||
public Label getLblRecaudador() {
|
|
||||||
return lblRecaudador;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblRecaudador(Label lblRecaudador) {
|
|
||||||
this.lblRecaudador = lblRecaudador;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
usuarioLogado = UsuarioLogado.getUsuarioLogado();
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
if (usuarioLogado != null) {
|
|
||||||
lblRecaudador.setValue(usuarioLogado.getName());
|
|
||||||
} else {
|
|
||||||
alert("ERRO DE LOGIN");
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,246 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Corrida;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion;
|
|
||||||
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCorridaTarjetaRecaudacion;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.List;
|
|
||||||
import org.apache.log4j.Logger;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.util.resource.Labels;
|
|
||||||
import org.zkoss.zk.ui.Component;
|
|
||||||
import org.zkoss.zk.ui.Executions;
|
|
||||||
import org.zkoss.zk.ui.event.Event;
|
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
|
||||||
import org.zkoss.zul.Combobox;
|
|
||||||
import org.zkoss.zul.Comboitem;
|
|
||||||
import org.zkoss.zul.Intbox;
|
|
||||||
import org.zkoss.zul.Messagebox;
|
|
||||||
import org.zkoss.zul.Paging;
|
|
||||||
import org.zkoss.zul.Timebox;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("busquedaCorridaTarjetaRecaudacionController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class BusquedaCorridaTarjetaRecaudacionController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private transient PagedListWrapper<Corrida> plwCorrida;
|
|
||||||
@Autowired
|
|
||||||
private ClaseServicioService claseServicioService;
|
|
||||||
private List<ClaseServicio> lsClaseServicio;
|
|
||||||
private MyListbox corridaList;
|
|
||||||
private Paging pagingCorrida;
|
|
||||||
private Intbox idCorrida;
|
|
||||||
private Combobox cmbParadaOrigem;
|
|
||||||
private Combobox cmbParadaDestino;
|
|
||||||
private Combobox cmbTipoServicio;
|
|
||||||
private Timebox timeInicio;
|
|
||||||
private Timebox timeFin;
|
|
||||||
private TarjetaRecaudacion tarjetaRecaudacion;
|
|
||||||
private EditarTarjetaRecaudacionController editarTarjetaRecaudacionController;
|
|
||||||
private static Logger log = Logger.getLogger(BusquedaCorridaTarjetaRecaudacionController.class);
|
|
||||||
|
|
||||||
public Combobox getCmbParadaDestino() {
|
|
||||||
return cmbParadaDestino;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbParadaDestino(Combobox cmbParadaDestino) {
|
|
||||||
this.cmbParadaDestino = cmbParadaDestino;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbParadaOrigem() {
|
|
||||||
return cmbParadaOrigem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbParadaOrigem(Combobox cmbParadaOrigem) {
|
|
||||||
this.cmbParadaOrigem = cmbParadaOrigem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbTipoServicio() {
|
|
||||||
return cmbTipoServicio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbTipoServicio(Combobox cmbTipoServicio) {
|
|
||||||
this.cmbTipoServicio = cmbTipoServicio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getCorridaList() {
|
|
||||||
return corridaList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCorridaList(MyListbox corridaList) {
|
|
||||||
this.corridaList = corridaList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Intbox getIdCorrida() {
|
|
||||||
return idCorrida;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIdCorrida(Intbox idCorrida) {
|
|
||||||
this.idCorrida = idCorrida;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ClaseServicio> getLsClaseServicio() {
|
|
||||||
return lsClaseServicio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsClaseServicio(List<ClaseServicio> lsClaseServicio) {
|
|
||||||
this.lsClaseServicio = lsClaseServicio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Paging getPagingCorrida() {
|
|
||||||
return pagingCorrida;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPagingCorrida(Paging pagingCorrida) {
|
|
||||||
this.pagingCorrida = pagingCorrida;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Timebox getTimeFin() {
|
|
||||||
return timeFin;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTimeFin(Timebox timeFin) {
|
|
||||||
this.timeFin = timeFin;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Timebox getTimeInicio() {
|
|
||||||
return timeInicio;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTimeInicio(Timebox timeInicio) {
|
|
||||||
this.timeInicio = timeInicio;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
lsClaseServicio = claseServicioService.buscarTodosExceto(-1);
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
tarjetaRecaudacion =
|
|
||||||
(TarjetaRecaudacion) Executions.getCurrent().getArg().get("tarjetaRecaudacion");
|
|
||||||
editarTarjetaRecaudacionController =
|
|
||||||
(EditarTarjetaRecaudacionController) Executions.getCurrent().getArg().get("editarTarjetaRecaudacionController");
|
|
||||||
|
|
||||||
corridaList.setItemRenderer(new RenderCorridaTarjetaRecaudacion());
|
|
||||||
corridaList.addEventListener("onDoubleClick", new EventListener() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onEvent(Event event) throws Exception {
|
|
||||||
selecionarCorrida();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
private void refreshLista() {
|
|
||||||
HibernateSearchObject<Corrida> corridaSearch =
|
|
||||||
new HibernateSearchObject<Corrida>(Corrida.class,
|
|
||||||
pagingCorrida.getPageSize());
|
|
||||||
|
|
||||||
if (idCorrida.getValue() != null) {
|
|
||||||
corridaSearch.addFilterEqual("id.corridaId", idCorrida.getValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
|
|
||||||
if (cbiOrigem != null) {
|
|
||||||
Parada origem = (Parada) cbiOrigem.getValue();
|
|
||||||
corridaSearch.addFilterEqual("origem", origem);
|
|
||||||
}
|
|
||||||
|
|
||||||
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
|
|
||||||
if (cbiDestino != null) {
|
|
||||||
Parada destino = (Parada) cbiDestino.getValue();
|
|
||||||
corridaSearch.addFilterEqual("destino", destino);
|
|
||||||
}
|
|
||||||
|
|
||||||
Comboitem cbiTipoServicio = cmbTipoServicio.getSelectedItem();
|
|
||||||
if (cbiTipoServicio != null) {
|
|
||||||
ClaseServicio calseServicio = (ClaseServicio) cbiTipoServicio.getValue();
|
|
||||||
corridaSearch.addFilterEqual("claseServicio", calseServicio);
|
|
||||||
}
|
|
||||||
|
|
||||||
Date horaInicio = timeInicio.getValue();
|
|
||||||
if (horaInicio != null) {
|
|
||||||
corridaSearch.addFilterGreaterOrEqual("corridaCtrl.horario", horaInicio);
|
|
||||||
}
|
|
||||||
|
|
||||||
Date horaFin = timeFin.getValue();
|
|
||||||
if (horaFin != null) {
|
|
||||||
corridaSearch.addFilterLessOrEqual("corridaCtrl.horario", horaFin);
|
|
||||||
}
|
|
||||||
|
|
||||||
corridaSearch.addFilterEqual("activo", Boolean.TRUE);
|
|
||||||
|
|
||||||
corridaSearch.addSortAsc("id.feccorrida");
|
|
||||||
|
|
||||||
plwCorrida.init(corridaSearch, corridaList, pagingCorrida);
|
|
||||||
|
|
||||||
if (corridaList.getData().length == 0) {
|
|
||||||
try {
|
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
|
||||||
Labels.getLabel("busquedaPricingController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
} catch (InterruptedException ex) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void selecionarCorrida() {
|
|
||||||
try {
|
|
||||||
Corrida corrida = (Corrida) corridaList.getSelected();
|
|
||||||
|
|
||||||
if (corrida != null) {
|
|
||||||
tarjetaRecaudacion.setCorrida(corrida);
|
|
||||||
|
|
||||||
Integer corridaId = corrida.getId().getCorridaId();
|
|
||||||
Date fecHor = corrida.getId().getFeccorrida();
|
|
||||||
|
|
||||||
editarTarjetaRecaudacionController.atualizarCorridaTela(fecHor, corridaId);
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
}
|
|
||||||
} catch (Exception ex) {
|
|
||||||
log.error(ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) {
|
|
||||||
cmbParadaOrigem.clearErrorMessage();
|
|
||||||
cmbParadaDestino.clearErrorMessage();
|
|
||||||
cmbTipoServicio.clearErrorMessage();
|
|
||||||
|
|
||||||
if (idCorrida.getValue() == null) {
|
|
||||||
cmbParadaOrigem.setConstraint("no empty");
|
|
||||||
cmbParadaDestino.setConstraint("no empty");
|
|
||||||
cmbTipoServicio.setConstraint("no empty");
|
|
||||||
|
|
||||||
cmbParadaOrigem.getValue();
|
|
||||||
cmbParadaDestino.getValue();
|
|
||||||
cmbTipoServicio.getValue();
|
|
||||||
}
|
|
||||||
|
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnAdicionarCorrida(Event ev) throws Exception {
|
|
||||||
selecionarCorrida();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,155 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion;
|
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTarjetaRecaudacion;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.util.resource.Labels;
|
|
||||||
import org.zkoss.zk.ui.Component;
|
|
||||||
import org.zkoss.zk.ui.Executions;
|
|
||||||
import org.zkoss.zk.ui.event.Event;
|
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
|
||||||
import org.zkoss.zul.Combobox;
|
|
||||||
import org.zkoss.zul.Intbox;
|
|
||||||
import org.zkoss.zul.Messagebox;
|
|
||||||
import org.zkoss.zul.Paging;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("busquedaTarjetaRecaudacionController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class BusquedaTarjetaRecaudacionController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private transient PagedListWrapper<TarjetaRecaudacion> plwTarjetaRecaudacion;
|
|
||||||
@Autowired
|
|
||||||
private EmpresaService empresaService;
|
|
||||||
private List<Empresa> lsEmpresas;
|
|
||||||
private Paging pagingTarjetaRecaudacion;
|
|
||||||
private MyListbox tarjetaRecaudacionList;
|
|
||||||
private Combobox cmbEmpresas;
|
|
||||||
private Intbox txtClaveOperador;
|
|
||||||
private Integer claveConductor;
|
|
||||||
|
|
||||||
public List<Empresa> getLsEmpresas() {
|
|
||||||
return lsEmpresas;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
|
||||||
this.lsEmpresas = lsEmpresas;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
lsEmpresas = empresaService.buscarTodosExceto(-1);
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
tarjetaRecaudacionList.setItemRenderer(new RenderTarjetaRecaudacion());
|
|
||||||
tarjetaRecaudacionList.addEventListener("onDoubleClick", new EventListener() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onEvent(Event event) throws Exception {
|
|
||||||
TarjetaRecaudacion tarjetaRecaudacion =
|
|
||||||
(TarjetaRecaudacion) tarjetaRecaudacionList.getSelected();
|
|
||||||
verTarjetaRecaudacion(tarjetaRecaudacion);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
claveConductor = (Integer) Executions.getCurrent().getArg().get("claveConductor");
|
|
||||||
txtClaveOperador.setValue(claveConductor);
|
|
||||||
txtClaveOperador.setDisabled(Boolean.TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void refreshList() {
|
|
||||||
Empresa empresa = (Empresa) (cmbEmpresas.getSelectedItem() != null
|
|
||||||
? cmbEmpresas.getSelectedItem().getValue() : null);
|
|
||||||
|
|
||||||
HibernateSearchObject<TarjetaRecaudacion> tarjetasRecaudacionSearch =
|
|
||||||
new HibernateSearchObject<TarjetaRecaudacion>(TarjetaRecaudacion.class,
|
|
||||||
pagingTarjetaRecaudacion.getPageSize());
|
|
||||||
|
|
||||||
if (empresa != null) {
|
|
||||||
tarjetasRecaudacionSearch.addFilterEqual("empresa", empresa);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (txtClaveOperador.getValue() != null) {
|
|
||||||
tarjetasRecaudacionSearch.addFilterEqual("conductorId",
|
|
||||||
txtClaveOperador.getValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
tarjetasRecaudacionSearch.addFilterEqual("activo", Boolean.TRUE);
|
|
||||||
|
|
||||||
tarjetasRecaudacionSearch.addSortAsc("empresa.nombempresa");
|
|
||||||
|
|
||||||
plwTarjetaRecaudacion.init(tarjetasRecaudacionSearch, tarjetaRecaudacionList,
|
|
||||||
pagingTarjetaRecaudacion);
|
|
||||||
|
|
||||||
if (tarjetaRecaudacionList.getData().length == 0) {
|
|
||||||
try {
|
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
|
||||||
Labels.getLabel("busquedaTarjetaRecaudacionController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
} catch (InterruptedException ex) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void verTarjetaRecaudacion(TarjetaRecaudacion tarjetaRecaudacion) {
|
|
||||||
if (tarjetaRecaudacion == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Map args = new HashMap();
|
|
||||||
args.put("tarjetaRecaudacion", tarjetaRecaudacion);
|
|
||||||
args.put("tarjetaRecaudacionList", tarjetaRecaudacionList);
|
|
||||||
args.put("claveConductor", claveConductor);
|
|
||||||
|
|
||||||
openWindow("/gui/recaudacion/editarTarjetaRecaudacion.zul",
|
|
||||||
Labels.getLabel("editarTarjetaRecaudacionController.window.title"), args, MODAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
|
||||||
refreshList();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) {
|
|
||||||
refreshList();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
|
||||||
verTarjetaRecaudacion(new TarjetaRecaudacion());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnConfirmaPago(Event ev) throws InterruptedException {
|
|
||||||
List<Object> lsTarjetaRecaudacion = tarjetaRecaudacionList.getSelectedsItens();
|
|
||||||
|
|
||||||
if (!lsTarjetaRecaudacion.isEmpty()) {
|
|
||||||
Map args = new HashMap();
|
|
||||||
args.put("lsTarjetaRecaudacion", lsTarjetaRecaudacion);
|
|
||||||
|
|
||||||
openWindow("/gui/recaudacion/pagarTarjetasViajes.zul",
|
|
||||||
Labels.getLabel("pagarTarjetasViajesController.window.title"), args, MODAL);
|
|
||||||
} else {
|
|
||||||
Messagebox.show(Labels.getLabel("busquedaTarjetaRecaudacionController.MSG.Seleccionar.Tajetas"),
|
|
||||||
Labels.getLabel("busquedaTarjetaRecaudacionController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.zul.Label;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("corteTurnoRecaudacionController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class CorteTurnoRecaudacionController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
private Label lblFechaInicio;
|
|
||||||
private Label lblClvRecaudador;
|
|
||||||
private Label lblFechaFinal;
|
|
||||||
private Label lblHoraInicio;
|
|
||||||
private Label lblNombreRecaudador;
|
|
||||||
private Label lblHoraFinal;
|
|
||||||
private Label lblSaldoInicialCaja;
|
|
||||||
private Label lblTurno;
|
|
||||||
private Label lblSaldoFinalCaja;
|
|
||||||
private Label lblReposicionTurno;
|
|
||||||
private Label lblSaldoFinalTransferidoPara;
|
|
||||||
private Label lblRecolecciones;
|
|
||||||
private Label lblTotalPago;
|
|
||||||
private Label lblTotalPagadoNormal;
|
|
||||||
private Label lblTotalPagadoCapacitacion;
|
|
||||||
private Label lblTotalPagadoIncapacidades;
|
|
||||||
private Label lblTotalAbonoCartera;
|
|
||||||
}
|
|
|
@ -1,214 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Autobus;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacionPK;
|
|
||||||
import com.rjconsultores.ventaboletos.service.AutobusService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.TarjetaRecaudacionService;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import java.util.Date;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.util.resource.Labels;
|
|
||||||
import org.zkoss.zk.ui.Component;
|
|
||||||
import org.zkoss.zk.ui.Executions;
|
|
||||||
import org.zkoss.zk.ui.event.Event;
|
|
||||||
import org.zkoss.zul.Checkbox;
|
|
||||||
import org.zkoss.zul.Datebox;
|
|
||||||
import org.zkoss.zul.Intbox;
|
|
||||||
import org.zkoss.zul.Textbox;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("editarTarjetaRecaudacionController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class EditarTarjetaRecaudacionController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private TarjetaRecaudacionService tarjetaRecaudacionService;
|
|
||||||
@Autowired
|
|
||||||
private EmpresaService empresaService;
|
|
||||||
@Autowired
|
|
||||||
private RutaService rutaService;
|
|
||||||
@Autowired
|
|
||||||
private ClaseServicioService claseServicioService;
|
|
||||||
@Autowired
|
|
||||||
private AutobusService autobusService;
|
|
||||||
private List<Empresa> lsEmpresas;
|
|
||||||
private List<Ruta> lsRutas;
|
|
||||||
private List<ClaseServicio> lsClaseSsClervico;
|
|
||||||
private List<Autobus> lsAutobus;
|
|
||||||
private TarjetaRecaudacion tarjetaRecaudacion;
|
|
||||||
private MyListbox tarjetaRecaudacionList;
|
|
||||||
private Datebox databoxFecHor;
|
|
||||||
private Intbox intboxCorrida;
|
|
||||||
private Intbox numTarjeta;
|
|
||||||
private Checkbox chkManual;
|
|
||||||
private Checkbox chkActualizado;
|
|
||||||
private Integer claveConductor;
|
|
||||||
private Textbox clvConductor;
|
|
||||||
|
|
||||||
public List<ClaseServicio> getLsClaseSsClervico() {
|
|
||||||
return lsClaseSsClervico;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsClaseSsClervico(List<ClaseServicio> lsClaseSsClervico) {
|
|
||||||
this.lsClaseSsClervico = lsClaseSsClervico;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Empresa> getLsEmpresas() {
|
|
||||||
return lsEmpresas;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
|
||||||
this.lsEmpresas = lsEmpresas;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Ruta> getLsRutas() {
|
|
||||||
return lsRutas;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsRutas(List<Ruta> lsRutas) {
|
|
||||||
this.lsRutas = lsRutas;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TarjetaRecaudacion getTarjetaRecaudacion() {
|
|
||||||
return tarjetaRecaudacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTarjetaRecaudacion(TarjetaRecaudacion tarjetaRecaudacion) {
|
|
||||||
this.tarjetaRecaudacion = tarjetaRecaudacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void atualizarCorridaTela(Date fecHor, Integer corridaId) {
|
|
||||||
intboxCorrida.setValue(corridaId);
|
|
||||||
databoxFecHor.setValue(fecHor);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Checkbox getChkActualizado() {
|
|
||||||
return chkActualizado;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChkActualizado(Checkbox chkActualizado) {
|
|
||||||
this.chkActualizado = chkActualizado;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Checkbox getChkManual() {
|
|
||||||
return chkManual;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setChkManual(Checkbox chkManual) {
|
|
||||||
this.chkManual = chkManual;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Datebox getDataboxFecHor() {
|
|
||||||
return databoxFecHor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDataboxFecHor(Datebox databoxFecHor) {
|
|
||||||
this.databoxFecHor = databoxFecHor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Intbox getIntboxCorrida() {
|
|
||||||
return intboxCorrida;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIntboxCorrida(Intbox intboxCorrida) {
|
|
||||||
this.intboxCorrida = intboxCorrida;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Intbox getNumTarjeta() {
|
|
||||||
return numTarjeta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNumTarjeta(Intbox numTarjeta) {
|
|
||||||
this.numTarjeta = numTarjeta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Autobus> getLsAutobus() {
|
|
||||||
return lsAutobus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsAutobus(List<Autobus> lsAutobus) {
|
|
||||||
this.lsAutobus = lsAutobus;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Textbox getClvConductor() {
|
|
||||||
return clvConductor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setClvConductor(Textbox clvConductor) {
|
|
||||||
this.clvConductor = clvConductor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
lsEmpresas = empresaService.buscarTodosExceto(-1);
|
|
||||||
lsRutas = rutaService.buscarTodosExceto(-1);
|
|
||||||
lsClaseSsClervico = claseServicioService.buscarTodosExceto(-1);
|
|
||||||
lsAutobus = autobusService.obtenerTodos();
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
claveConductor = (Integer) Executions.getCurrent().getArg().get("claveConductor");
|
|
||||||
if (claveConductor != null) {
|
|
||||||
clvConductor.setValue(claveConductor.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
tarjetaRecaudacion = (TarjetaRecaudacion) Executions.getCurrent().getArg().get("tarjetaRecaudacion");
|
|
||||||
if (tarjetaRecaudacion.getTarjetasRecaudacionPK() != null) {
|
|
||||||
tarjetaRecaudacion = tarjetaRecaudacionService.obtenerID(tarjetaRecaudacion.getTarjetasRecaudacionPK());
|
|
||||||
}
|
|
||||||
tarjetaRecaudacionList = (MyListbox) Executions.getCurrent().getArg().get("tarjetaRecaudacionList");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnPesquisarCorrida(Event ev) {
|
|
||||||
Map args = new HashMap();
|
|
||||||
args.put("tarjetaRecaudacion", tarjetaRecaudacion);
|
|
||||||
args.put("editarTarjetaRecaudacionController", this);
|
|
||||||
|
|
||||||
openWindow("/gui/recaudacion/busquedaCorridaTarjetaRecaudacion.zul",
|
|
||||||
Labels.getLabel("editarPricingController.windowCorrida.title"), args, MODAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) {
|
|
||||||
if (tarjetaRecaudacion.getTarjetasRecaudacionPK() == null) {
|
|
||||||
tarjetaRecaudacion.setConductorId(claveConductor);
|
|
||||||
tarjetaRecaudacion.setActivo(Boolean.TRUE);
|
|
||||||
tarjetaRecaudacion.setActualizar(Boolean.FALSE);
|
|
||||||
|
|
||||||
TarjetaRecaudacionPK tarjetasRecaudacionPK = new TarjetaRecaudacionPK();
|
|
||||||
tarjetasRecaudacionPK.setManual(chkManual.isChecked());
|
|
||||||
tarjetasRecaudacionPK.setTarjetarecaudacionId(numTarjeta.getValue());
|
|
||||||
|
|
||||||
tarjetaRecaudacion.setTarjetasRecaudacionPK(tarjetasRecaudacionPK);
|
|
||||||
tarjetaRecaudacionService.suscribir(tarjetaRecaudacion);
|
|
||||||
|
|
||||||
tarjetaRecaudacionList.addItem(tarjetaRecaudacion);
|
|
||||||
} else {
|
|
||||||
tarjetaRecaudacionService.actualizacion(tarjetaRecaudacion);
|
|
||||||
tarjetaRecaudacion.setActualizar(Boolean.TRUE);
|
|
||||||
|
|
||||||
tarjetaRecaudacionList.updateItem(tarjetaRecaudacion);
|
|
||||||
}
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,63 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Conductor;
|
|
||||||
import com.rjconsultores.ventaboletos.service.ConductorService;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.util.resource.Labels;
|
|
||||||
import org.zkoss.zhtml.Messagebox;
|
|
||||||
import org.zkoss.zk.ui.event.Event;
|
|
||||||
import org.zkoss.zul.Textbox;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("loginConductorController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class LoginConductorController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ConductorService conductorService;
|
|
||||||
private Textbox txtClaveConductor;
|
|
||||||
private Textbox txtContraSenha;
|
|
||||||
|
|
||||||
public void onClick$btnAcessar(Event ev) throws InterruptedException {
|
|
||||||
String claveConductor = txtClaveConductor.getValue();
|
|
||||||
String contraSenha = txtContraSenha.getValue();
|
|
||||||
|
|
||||||
Conductor conductor = conductorService.buscar(claveConductor, contraSenha);
|
|
||||||
|
|
||||||
if (conductor != null) {
|
|
||||||
Integer opcao = Messagebox.show(
|
|
||||||
Labels.getLabel("winLoginConductorRecaudacion.conductor.corecto") + "\n\n"
|
|
||||||
+ Labels.getLabel("winLoginConductorRecaudacion.conductor.nombre") + conductor.getNombconductor() + ", "
|
|
||||||
+ Labels.getLabel("winLoginConductorRecaudacion.conductor.clave") + conductor.getConductorId(),
|
|
||||||
Labels.getLabel("winLoginConductorRecaudacion.title"),
|
|
||||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
|
||||||
|
|
||||||
if (opcao.equals(Messagebox.YES)) {
|
|
||||||
Map args = new HashMap();
|
|
||||||
args.put("claveConductor", conductor.getConductorId());
|
|
||||||
|
|
||||||
openWindow("/gui/recaudacion/busquedaTarjetaRecaudacion.zul",
|
|
||||||
Labels.getLabel("busquedaTarjetaRecaudacionController.window.title"), args, MODAL);
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
} else {
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("winLoginConductorRecaudacion.lblloginIncorreto"),
|
|
||||||
Labels.getLabel("winLoginConductorRecaudacion.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,134 +0,0 @@
|
||||||
/*
|
|
||||||
* To change this template, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.recaudacion;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderDeducciones;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderDescripcionViajes;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPercepciones;
|
|
||||||
import java.util.List;
|
|
||||||
import org.springframework.context.annotation.Scope;
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.zkoss.zk.ui.Component;
|
|
||||||
import org.zkoss.zk.ui.Executions;
|
|
||||||
import org.zkoss.zk.ui.event.Event;
|
|
||||||
import org.zkoss.zul.Label;
|
|
||||||
import org.zkoss.zul.Messagebox;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author Administrador
|
|
||||||
*/
|
|
||||||
@Controller("pagarTarjetasViajesController")
|
|
||||||
@Scope("prototype")
|
|
||||||
public class PagarTarjetasViajesController extends MyGenericForwardComposer {
|
|
||||||
|
|
||||||
private List<TarjetaRecaudacion> lsTarjetaRecaudacion;
|
|
||||||
private MyListbox descripcionViajesList;
|
|
||||||
private MyListbox percepcionesList;
|
|
||||||
private MyListbox deduccionesList;
|
|
||||||
private Label lblNombreClaveConductor;
|
|
||||||
private Label lblTotalPercepciones1;
|
|
||||||
private Label lblTotalPercepciones2;
|
|
||||||
private Label lblTotalDeducciones1;
|
|
||||||
private Label lblTotalDeducciones2;
|
|
||||||
private Label lblNetoPagar;
|
|
||||||
|
|
||||||
public MyListbox getDeduccionesList() {
|
|
||||||
return deduccionesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDeduccionesList(MyListbox deduccionesList) {
|
|
||||||
this.deduccionesList = deduccionesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getDescripcionViajesList() {
|
|
||||||
return descripcionViajesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDescripcionViajesList(MyListbox descripcionViajesList) {
|
|
||||||
this.descripcionViajesList = descripcionViajesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Label getLblNetoPagar() {
|
|
||||||
return lblNetoPagar;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblNetoPagar(Label lblNetoPagar) {
|
|
||||||
this.lblNetoPagar = lblNetoPagar;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Label getLblNombreClaveConductor() {
|
|
||||||
return lblNombreClaveConductor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblNombreClaveConductor(Label lblNombreClaveConductor) {
|
|
||||||
this.lblNombreClaveConductor = lblNombreClaveConductor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Label getLblTotalDeducciones1() {
|
|
||||||
return lblTotalDeducciones1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblTotalDeducciones1(Label lblTotalDeducciones1) {
|
|
||||||
this.lblTotalDeducciones1 = lblTotalDeducciones1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Label getLblTotalDeducciones2() {
|
|
||||||
return lblTotalDeducciones2;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblTotalDeducciones2(Label lblTotalDeducciones2) {
|
|
||||||
this.lblTotalDeducciones2 = lblTotalDeducciones2;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Label getLblTotalPercepciones1() {
|
|
||||||
return lblTotalPercepciones1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblTotalPercepciones1(Label lblTotalPercepciones1) {
|
|
||||||
this.lblTotalPercepciones1 = lblTotalPercepciones1;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Label getLblTotalPercepciones2() {
|
|
||||||
return lblTotalPercepciones2;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLblTotalPercepciones2(Label lblTotalPercepciones2) {
|
|
||||||
this.lblTotalPercepciones2 = lblTotalPercepciones2;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getPercepcionesList() {
|
|
||||||
return percepcionesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPercepcionesList(MyListbox percepcionesList) {
|
|
||||||
this.percepcionesList = percepcionesList;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
lsTarjetaRecaudacion = (List<TarjetaRecaudacion>) Executions.getCurrent().getArg().get("lsTarjetaRecaudacion");
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
descripcionViajesList.setItemRenderer(new RenderDescripcionViajes());
|
|
||||||
percepcionesList.setItemRenderer(new RenderPercepciones());
|
|
||||||
deduccionesList.setItemRenderer(new RenderDeducciones());
|
|
||||||
|
|
||||||
lblNombreClaveConductor.setValue("Nombre/Clave Conductor");
|
|
||||||
lblTotalDeducciones1.setValue("$");
|
|
||||||
lblTotalDeducciones2.setValue("$");
|
|
||||||
lblTotalPercepciones1.setValue("$");
|
|
||||||
lblTotalPercepciones2.setValue("$");
|
|
||||||
lblNetoPagar.setValue("$");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnConfirmaPago(Event ev) throws InterruptedException {
|
|
||||||
Messagebox.show("Imprimindo recibo.", "VTABOL", Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -286,19 +286,19 @@
|
||||||
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
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 -->
|
||||||
<!-- ====================================================== -->
|
<!-- ====================================================== -->
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarCombinacionTramoRuta" border="normal"
|
<window id="winEditarCombinacionTramoRuta" border="normal"
|
||||||
width="750px" apply="${editarCombinacionTramoRutaController}"
|
width="900px" apply="${editarCombinacionTramoRutaController}"
|
||||||
height="550px">
|
height="550px">
|
||||||
<style dynamic="true">
|
<style dynamic="true">
|
||||||
.z-textbox{background: #ffa99c}
|
.z-textbox{background: #ffa99c}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<?component name="intbox" extends="intbox" constraint="no empty" style="text-align:right; color:#373842" inplace="true" width="55px"?>
|
<?component name="intbox" extends="intbox" constraint="no empty" style="text-align:right; color:#373842" inplace="true" width="55px"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winNuevaParada" border="normal" width="300px"
|
<window id="winNuevaParada" border="normal" width="350px"
|
||||||
apply="${nuevaParadaController}" height="200px%">
|
apply="${nuevaParadaController}" height="200px%">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
@ -30,19 +30,19 @@
|
||||||
<label value="${c:l('nuevaParadaController.lblOrigen.value')}" />
|
<label value="${c:l('nuevaParadaController.lblOrigen.value')}" />
|
||||||
<combobox id="cmbParadaOrigen"
|
<combobox id="cmbParadaOrigen"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
mold="rounded" buttonVisible="true" width="80%" />
|
mold="rounded" buttonVisible="true" width="98%" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('nuevaParadaController.lblDestino.value')}" />
|
<label value="${c:l('nuevaParadaController.lblDestino.value')}" />
|
||||||
<combobox id="cmbParadaDestino"
|
<combobox id="cmbParadaDestino"
|
||||||
constraint="no empty"
|
constraint="no empty"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
mold="rounded" buttonVisible="true" width="80%" />
|
mold="rounded" buttonVisible="true" width="98%" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('nuevaParadaController.lblVia.value')}" />
|
<label value="${c:l('nuevaParadaController.lblVia.value')}" />
|
||||||
<combobox id="cmbVia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
<combobox id="cmbVia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
||||||
mold="rounded" buttonVisible="true" width="80%"
|
mold="rounded" buttonVisible="true" width="98%"
|
||||||
model="@{winNuevaParada$composer.lsVias}"/>
|
model="@{winNuevaParada$composer.lsVias}"/>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winAberturaTrunoRecaudacion"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
<window id="winAberturaTrunoRecaudacion" contentStyle="overflow:auto"
|
|
||||||
title="${c:l('aberturaTurnoRecaudacionController.title')}" border="normal"
|
|
||||||
width="400px" position="center" apply="${aberturaTurnoRecaudacionController}">
|
|
||||||
|
|
||||||
<toolbar>
|
|
||||||
<button id="btnCerrar" onClick="winAberturaTrunoRecaudacion.detach()"
|
|
||||||
image="/gui/img/exit.png" width="35px"/>
|
|
||||||
<button id="btnInicioTurno" image="/gui/img/ok.png"
|
|
||||||
label="${c:l('aberturaTurnoRecaudacionController.btnInicioTurno')}"/>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<grid>
|
|
||||||
<columns>
|
|
||||||
<column width="30%"/>
|
|
||||||
<column width="70%"/>
|
|
||||||
</columns>
|
|
||||||
<rows >
|
|
||||||
<row spans="2">
|
|
||||||
<label id="lblRecaudador" style="font-weight: bold" value="RECAUDADOR"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('aberturaTurnoRecaudacionController.lblFechaHoraInicioTurno')}" />
|
|
||||||
<datebox id="dtFechaHoraInicioTurno" constraint="no empty" width="60%"
|
|
||||||
format="dd/MM/yyyy HH:mm"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('aberturaTurnoRecaudacionController.lblValorInicioTurno')}"/>
|
|
||||||
<decimalbox id="decValorInicioTurno" constraint="no empty"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
|
@ -1,92 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBuscarCorridaTarjetaRecaudacion"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
<window id="winBuscarCorridaTarjetaRecaudacion" border="normal"
|
|
||||||
apply="${busquedaCorridaTarjetaRecaudacionController}"
|
|
||||||
width="850px" height="460px" contentStyle="overflow:auto"
|
|
||||||
title="${c:l('editarPricingController.windowCorrida.title')}">
|
|
||||||
<toolbar>
|
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
|
||||||
<button id="btnAdicionarCorrida" height="20"
|
|
||||||
image="/gui/img/save.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarPricingCorridaController.btnSalvar.tooltiptext')}"/>
|
|
||||||
<button height="20"
|
|
||||||
image="/gui/img/exit.png" width="35px"
|
|
||||||
onClick="winBuscarCorridaTarjetaRecaudacion.detach()"
|
|
||||||
tooltiptext="${c:l('editarPricingCorridaController.btnFechar.tooltiptext')}"/>
|
|
||||||
</hbox>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="15%"/>
|
|
||||||
<column width="30%"/>
|
|
||||||
<column width="15%"/>
|
|
||||||
<column width="30%"/>
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarPricingController.corridaId.value')}"/>
|
|
||||||
<intbox id="idCorrida" maxlength="7"/>
|
|
||||||
<label value="${c:l('editarPricingController.windowTipoServicio.title')}"/>
|
|
||||||
<combobox id="cmbTipoServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
mold="rounded" buttonVisible="true" width="95%"
|
|
||||||
model="@{winBuscarCorridaTarjetaRecaudacion$composer.lsClaseServicio}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarPricingCorridaController.labelOrigen.value')}"/>
|
|
||||||
<combobox id="cmbParadaOrigem" autodrop="false" mold="rounded"
|
|
||||||
buttonVisible="true" width="95%"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
|
||||||
<label value="${c:l('editarPricingCorridaController.labelDestino.value')}"/>
|
|
||||||
<combobox id="cmbParadaDestino" autodrop="false" mold="rounded"
|
|
||||||
buttonVisible="true" width="95%"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarPricingCorridaController.lblInicio.value')}"/>
|
|
||||||
<timebox id="timeInicio" format="HH:mm" mold="rounded"/>
|
|
||||||
<label value="${c:l('editarPricingCorridaController.lblFin.value')}"/>
|
|
||||||
<timebox id="timeFin" format="HH:mm" mold="rounded"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
|
|
||||||
<toolbar>
|
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
|
||||||
label="${c:l('editarPricingCorridaController.btnPesquisa.label')}"/>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<paging id="pagingCorrida" pageSize="15"/>
|
|
||||||
<listbox id="corridaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
multiple="false" height="60%" checkmark="true">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader width="80px" image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.lhId.label')}"
|
|
||||||
sort="auto(id.corridaId)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.feccorrida.label')}"
|
|
||||||
sort="auto(id.feccorrida)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.fechorsalida.label')}"
|
|
||||||
sort="auto(fechorsalida)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.labelOrigen.value')}"
|
|
||||||
sort="auto(origem.descparada)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.labelDestino.value')}"
|
|
||||||
sort="auto(destino.descparada)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.claseServicio.label')}"
|
|
||||||
sort="auto(claseServicio.descclase)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('editarPricingCorridaController.marca.label')}"
|
|
||||||
sort="auto(marca.descmarca)"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
|
@ -1,92 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaTarjetaRecaudacion"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
<window id="winBusquedaTarjetaRecaudacion" title="${c:l('busquedaTarjetaRecaudacionController.window.title')}"
|
|
||||||
apply="${busquedaTarjetaRecaudacionController}" contentStyle="overflow:auto"
|
|
||||||
height="500px" width="1000px" border="normal" >
|
|
||||||
|
|
||||||
<toolbar>
|
|
||||||
<button id="btnConfirmaPago" image="/gui/img/ok.png"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.btnConfirmaPago')}"/>
|
|
||||||
<separator orient="vertical" />
|
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
|
||||||
tooltiptext="${c:l('busquedaTarjetaRecaudacionController.btnRefresh.tooltiptext')}" />
|
|
||||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
|
||||||
tooltiptext="${c:l('busquedaTarjetaRecaudacionController.btnNovo.tooltiptext')}" />
|
|
||||||
<separator orient="vertical" />
|
|
||||||
<button id="btnCerrar" onClick="winBusquedaTarjetaRecaudacion.detach()" image="/gui/img/exit.png" width="35px"
|
|
||||||
tooltiptext="${c:l('busquedaTarjetaRecaudacionController.btnCerrar.tooltiptext')}"/>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="20%"/>
|
|
||||||
<column/>
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.claveConductor.label')}"/>
|
|
||||||
<intbox id="txtClaveOperador" width="100px"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.empresa.label')}"/>
|
|
||||||
<combobox id="cmbEmpresas" width="200px" mold="rounded" buttonVisible="true"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
model="@{winBusquedaTarjetaRecaudacion$composer.lsEmpresas}"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
|
|
||||||
<toolbar>
|
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.btnPesquisa.label')}"/>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<paging id="pagingTarjetaRecaudacion" pageSize="20"/>
|
|
||||||
<listbox id="tarjetaRecaudacionList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="true" checkmark="true">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.numTarjeta.label')}"
|
|
||||||
sort="auto(tarjetasRecaudacionPK.tarjetarecaudacionId)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.corrida.label')}"
|
|
||||||
sort="auto(corrida.id.corridaId)"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.fechaHora.label')}"
|
|
||||||
sort="auto(corrida.id.feccorrida)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.origen.label')}"
|
|
||||||
sort="auto(origen.descparada)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.destino.label')}"
|
|
||||||
sort="auto(destino.descparada)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.ruta.label')}"
|
|
||||||
sort="auto(ruta.descruta)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.autoBus.label')}"
|
|
||||||
sort="auto(autobus.numautobus)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.servicio.label')}"
|
|
||||||
sort="auto(claseServicio.descclase)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.empresa.label')}"
|
|
||||||
sort="auto(empresa.nombempresa)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.ingresoCorrida.label')}"
|
|
||||||
sort="auto(ingresoCorrida)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.manual.label')}"
|
|
||||||
sort="auto(tarjetasRecaudacionPK.manual)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="150px"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.atualizado.label')}"
|
|
||||||
sort="auto(actualizar)"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
|
@ -1,151 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winCorteTrunoRecaudacion"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
<window id="winCorteTrunoRecaudacion" contentStyle="overflow:auto"
|
|
||||||
title="${c:l('corteTurnoRecaudacionController.title')}" border="normal"
|
|
||||||
width="850px" position="center" apply="${corteTurnoRecaudacionController}">
|
|
||||||
|
|
||||||
<toolbar>
|
|
||||||
<button id="btnImpressaoCompleta" image="/gui/img/btn_print2_16x16.gif"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.ImpressaoCompleta.label')}"/>
|
|
||||||
<button id="btnImpressaoSimples" image="/gui/img/btn_print2_16x16.gif"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.ImpressaoSimples.label')}"/>
|
|
||||||
<button id="btnCerrar" onClick="winCorteTrunoRecaudacion.detach()"
|
|
||||||
image="/gui/img/exit.png" width="35px"/>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<grid>
|
|
||||||
<columns>
|
|
||||||
<column/>
|
|
||||||
<column/>
|
|
||||||
<column/>
|
|
||||||
<column/>
|
|
||||||
<column/>
|
|
||||||
<column/>
|
|
||||||
</columns>
|
|
||||||
<rows >
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.FechaInicio.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblFechaInicio" value="Fecha Inicio"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.ClvRecaudador.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblClvRecaudador" value="Clv Recaudador"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.FechaFinal.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblFechaFinal" value="Fecha Final"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.HoraInicio.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblHoraInicio" value="Hora Inicio"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.NombreRecaudador.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblNombreRecaudador" value="Nombre Recaudador"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.HoraFinal.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblHoraFinal" value="Hora Final"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="6">
|
|
||||||
<label value=" "/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="2,1,2,1">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.SaldoInicialCaja.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblSaldoInicialCaja" value="Saldo Inicial en Caja"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.Turno.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTurno" value="Turno"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="2,1,2,1">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.SaldoFinalCaja.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblSaldoFinalCaja" value="Saldo Final en Caja"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.ReposicionTurno.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblReposicionTurno" value="Reposicion en Turno"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="2,1,2,1">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.SaldoFinalTransferidoPara.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblSaldoFinalTransferidoPara" value="Saldo final transferido para"/>
|
|
||||||
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.Recoleccciones.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblRecolecciones" value="Recoleccciones"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="6">
|
|
||||||
<listbox id="descripcionViajesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false" height="250px">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.FolioRecibo.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.TipoPago.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.Operador.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.Autobus.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.Percepcion.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.Deduccion.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.NetoLiquidar.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.AbonoCartera.label')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('corteTurnoRecaudacionController.NetoPagar.label')}"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="1,5">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.TotalPago.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalPago" value="Total Pago"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="1,5">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.TotalPagadoNormal.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalPagadoNormal" value="Total Pagado Normal"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="1,5">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.TotalPagadoCapacitacion.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalPagadoCapacitacion" value="Total Pagado Capacitacion"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="1,5">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.TotalPagadoIncapacidades.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalPagadoIncapacidades" value="Total Pagado Incapacidades"/>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="1,5">
|
|
||||||
<label value="${c:l('corteTurnoRecaudacionController.TotalAbonoCartera.label')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalAbonoCartera" value="Total de Abono a Cartera"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
|
@ -1,127 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarTarjetaRecaudacion"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
<window id="winEditarTarjetaRecaudacion" border="normal"
|
|
||||||
apply="${editarTarjetaRecaudacionController}"
|
|
||||||
width="400px" height="457x" contentStyle="overflow:auto"
|
|
||||||
title="${c:l('editarTarjetaRecaudacionController.window.title')}">
|
|
||||||
<toolbar>
|
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
|
||||||
<button id="btnSalvar" height="20"
|
|
||||||
image="/gui/img/save.png" width="35px"
|
|
||||||
tooltiptext="${c:l('editarTarjetaRecaudacionController.btnSalvar.tooltiptext')}"/>
|
|
||||||
<button id="btnFechar" height="20"
|
|
||||||
image="/gui/img/exit.png" width="35px"
|
|
||||||
onClick="winEditarTarjetaRecaudacion.detach()"
|
|
||||||
tooltiptext="${c:l('editarTarjetaRecaudacionController.btnFechar.tooltiptext')}"/>
|
|
||||||
</hbox>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<tabbox>
|
|
||||||
<tabs>
|
|
||||||
<tab label="${c:l('editarTarjetaRecaudacionController.window.title')}" />
|
|
||||||
<tab label="${c:l('busquedaTarjetaRecaudacionController.observaciones.label')}" />
|
|
||||||
</tabs>
|
|
||||||
<tabpanels>
|
|
||||||
<tabpanel>
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="40%" />
|
|
||||||
<column width="60%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('winLoginConductorRecaudacion.lblUsuario')}"/>
|
|
||||||
<textbox id="clvConductor" constraint="no empty" disabled="true"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.numTarjeta.label')}"/>
|
|
||||||
<intbox id="numTarjeta" constraint="no empty"
|
|
||||||
value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.tarjetasRecaudacionPK.tarjetarecaudacionId}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.corrida.label')}"/>
|
|
||||||
<hbox>
|
|
||||||
<intbox id="intboxCorrida" constraint="no empty" disabled="true"
|
|
||||||
value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.corrida.id.corridaId}"/>
|
|
||||||
<button id="btnPesquisarCorrida" image="/gui/img/find.png"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.corrida.label')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.fechaHora.label')}"/>
|
|
||||||
<datebox id="databoxFecHor" constraint="no empty" disabled="true"
|
|
||||||
value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.corrida.id.feccorrida}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.origen.label')}"/>
|
|
||||||
<combobox id="cmbOrigem"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
initialValue="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.origen}"
|
|
||||||
selectedItem="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.origen,save-when='self.onBlur'}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.destino.label')}"/>
|
|
||||||
<combobox id="cmbDestino"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
initialValue="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.destino}"
|
|
||||||
selectedItem="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.destino,save-when='self.onBlur'}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.ruta.label')}"/>
|
|
||||||
<combobox id="cmbRuta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
model="@{winEditarTarjetaRecaudacion$composer.lsRutas}"
|
|
||||||
selectedItem="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.ruta}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.autoBus.label')}"/>
|
|
||||||
<combobox id="cmbAutobus" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
model="@{winEditarTarjetaRecaudacion$composer.lsAutobus}"
|
|
||||||
selectedItem="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.autobus}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.servicio.label')}"/>
|
|
||||||
<combobox id="cmbClaseServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
model="@{winEditarTarjetaRecaudacion$composer.lsClaseSsClervico}"
|
|
||||||
selectedItem="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.claseServicio}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.empresa.label')}"/>
|
|
||||||
<combobox id="cmbEmpresas" mold="rounded" buttonVisible="true" width="90%"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
|
||||||
model="@{winEditarTarjetaRecaudacion$composer.lsEmpresas}"
|
|
||||||
selectedItem="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.empresa}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.ingresoCorrida.label')}"/>
|
|
||||||
<decimalbox constraint="no empty"
|
|
||||||
value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.ingresoCorrida}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.manual.label')}"/>
|
|
||||||
<checkbox id="chkManual" value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.tarjetasRecaudacionPK.manual}"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('busquedaTarjetaRecaudacionController.atualizado.label')}"/>
|
|
||||||
<checkbox id="chkActualizado" value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.actualizar}"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
</tabpanel>
|
|
||||||
<tabpanel>
|
|
||||||
<textbox use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" width="98%" rows="20"
|
|
||||||
value="@{winEditarTarjetaRecaudacion$composer.tarjetaRecaudacion.observaciones}"/>
|
|
||||||
</tabpanel>
|
|
||||||
</tabpanels>
|
|
||||||
</tabbox>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
|
@ -1,40 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winLoginConductorRecaudacion"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
|
|
||||||
<window id="winLoginConductorRecaudacion"
|
|
||||||
title="${c:l('winLoginConductorRecaudacion.title')}" border="normal"
|
|
||||||
width="400px" position="center" apply="${loginConductorController}"
|
|
||||||
contentStyle="overflow:auto" >
|
|
||||||
<grid>
|
|
||||||
<rows >
|
|
||||||
<row align="left">
|
|
||||||
<label id="lblUsuario" value="${c:l('winLoginConductorRecaudacion.lblUsuario')}" />
|
|
||||||
<hbox align="center">
|
|
||||||
<image src="/gui/img/user24.png"/>
|
|
||||||
<textbox id="txtClaveConductor" constraint="no empty"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row align="left">
|
|
||||||
<label id="lblSenha" value="${c:l('winLoginConductorRecaudacion.lblSenha')}"/>
|
|
||||||
<hbox align="center">
|
|
||||||
<image src="/gui/img/pass24_4.png"/>
|
|
||||||
<textbox id="txtContraSenha" type="password" constraint="no empty"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
|
|
||||||
<row spans="2" align="center">
|
|
||||||
<hbox align="center">
|
|
||||||
<button id="btnAcessar" label="${c:l('winLoginConductorRecaudacion.btnAcessar')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
|
@ -1,111 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?page contentType="text/html;charset=UTF-8"?>
|
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
||||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winPagarTarjetaViajes"?>
|
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
|
||||||
<window id="winPagarTarjetaViajes" border="normal"
|
|
||||||
apply="${pagarTarjetasViajesController}"
|
|
||||||
width="600px" height="500px" contentStyle="overflow:auto"
|
|
||||||
title="${c:l('pagarTarjetasViajesController.window.title')}">
|
|
||||||
<toolbar>
|
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
|
||||||
<button id="btnConfirmaPago" image="/gui/img/ok.png"
|
|
||||||
label="${c:l('busquedaTarjetaRecaudacionController.btnConfirmaPago')}"/>
|
|
||||||
<button id="btnFechar" height="20"
|
|
||||||
image="/gui/img/exit.png" width="35px"
|
|
||||||
onClick="winPagarTarjetaViajes.detach()"
|
|
||||||
tooltiptext="${c:l('pagarTarjetasViajesController.btnFechar.tooltiptext')}"/>
|
|
||||||
</hbox>
|
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<grid>
|
|
||||||
<columns>
|
|
||||||
<column width="30%"/>
|
|
||||||
<column width="70%"/>
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.Conductor')}"/>
|
|
||||||
<label id="lblNombreClaveConductor"/>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.DescripcionViajes')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<listbox id="descripcionViajesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false" height="250px">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/builder.gif" width="120px"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.FechaHora')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.Trayecto')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.KM')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.Salario')}"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.Percepciones')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<listbox id="percepcionesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.Concepto')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.Cantidad')}"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.TotalPercepciones')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalPercepciones1"/>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.Deducciones')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<listbox id="deduccionesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
|
||||||
vflex="true" multiple="false">
|
|
||||||
<listhead sizable="true">
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.Concepto')}"/>
|
|
||||||
<listheader image="/gui/img/builder.gif"
|
|
||||||
label="${c:l('pagarTarjetasViajesController.label.Cantidad')}"/>
|
|
||||||
</listhead>
|
|
||||||
</listbox>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.TotalDeducciones')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblTotalDeducciones1"/>
|
|
||||||
</row>
|
|
||||||
<row spans="2">
|
|
||||||
<label value=""/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.TotalPercepciones')}"/>
|
|
||||||
<label id="lblTotalPercepciones2"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.TotalDeducciones')}"/>
|
|
||||||
<label id="lblTotalDeducciones2"/>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('pagarTarjetasViajesController.label.NetoPagar')}"
|
|
||||||
style="font-weight: bold"/>
|
|
||||||
<label id="lblNetoPagar"/>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
</window>
|
|
||||||
</zk>
|
|
Loading…
Reference in New Issue