fixes bug#24409
dev:wallace qua:24409 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@112530 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
fc395838f9
commit
540cfc33dc
|
@ -8,10 +8,8 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
@ -22,17 +20,27 @@ import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zhtml.Messagebox;
|
import org.zkoss.zhtml.Messagebox;
|
||||||
import org.zkoss.zk.ui.Component;
|
import org.zkoss.zk.ui.Component;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zul.Checkbox;
|
import org.zkoss.zul.Checkbox;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Comboitem;
|
import org.zkoss.zul.Comboitem;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
import org.zkoss.zul.Spinner;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.ConfTotem;
|
import com.rjconsultores.ventaboletos.entidad.ConfTotem;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapidaOrigem;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapida;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.service.ConfTotemService;
|
import com.rjconsultores.ventaboletos.service.ConfTotemService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConfTotemVentaRapidaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
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.RenderConfTotemVentaRapidaOrigemDestino;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -58,22 +66,33 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
private Checkbox chktrabalhaComParcelamento;
|
private Checkbox chktrabalhaComParcelamento;
|
||||||
private Checkbox chkImprimeComprovanteCartaoEmpresaCorrida;
|
private Checkbox chkImprimeComprovanteCartaoEmpresaCorrida;
|
||||||
private Checkbox chktListarPassageiroUltimaPoltrona;
|
private Checkbox chktListarPassageiroUltimaPoltrona;
|
||||||
|
private Checkbox chkPermitirVendaRapida;
|
||||||
private static Logger log = Logger.getLogger(BusquedaConfTotemController.class);
|
private static Logger log = Logger.getLogger(BusquedaConfTotemController.class);
|
||||||
private MyListbox empresaList;
|
private MyListbox empresaList;
|
||||||
private MyListbox bandeirasList;
|
private MyListbox bandeirasList;
|
||||||
@Autowired
|
@Autowired
|
||||||
private EmpresaService empresaService;
|
private EmpresaService empresaService;
|
||||||
|
@Autowired
|
||||||
|
private ConfTotemVentaRapidaService confTotemVentaRapidaOrigemDestinoService;
|
||||||
private List<Empresa> lsEmpresa;
|
private List<Empresa> lsEmpresa;
|
||||||
private List<String> lsBandeiras;
|
private List<String> lsBandeiras;
|
||||||
private Combobox cmbEmpresa;
|
private Combobox cmbEmpresa;
|
||||||
private Combobox cmbBandeira;
|
private Combobox cmbBandeira;
|
||||||
|
private Combobox cmbParadaOrigem;
|
||||||
|
private Combobox cmbParadaDestino;
|
||||||
|
private MyListbox localidadesOrigemDestinoList;
|
||||||
|
private Spinner cantCorrida;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<ConfTotemVentaRapida> plwOrigensDestinosVentaRapida;
|
||||||
|
private MyListbox localidadesOrigemList;
|
||||||
|
private Paging pagingOrigensDestinosVentaRapida;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
lsEmpresa = empresaService.obtenerTodos();
|
lsEmpresa = empresaService.obtenerTodos();
|
||||||
getLsBandeiras();
|
getLsBandeiras();
|
||||||
|
localidadesOrigemDestinoList.setItemRenderer(new RenderConfTotemVentaRapidaOrigemDestino());
|
||||||
|
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
@ -124,10 +143,59 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
chkImprimeComprovanteCartaoEmpresaCorrida.setChecked(StringUtils.isBlank(map.get("isImprimeComprovanteCartaoEmpresaCorrida")) ? false : Boolean.parseBoolean(map.get("isImprimeComprovanteCartaoEmpresaCorrida")));
|
chkImprimeComprovanteCartaoEmpresaCorrida.setChecked(StringUtils.isBlank(map.get("isImprimeComprovanteCartaoEmpresaCorrida")) ? false : Boolean.parseBoolean(map.get("isImprimeComprovanteCartaoEmpresaCorrida")));
|
||||||
chktrabalhaComParcelamento.setChecked(StringUtils.isBlank(map.get("trabalhaComParcelamentoCartaoCredito")) ? false : Boolean.parseBoolean(map.get("trabalhaComParcelamentoCartaoCredito")));
|
chktrabalhaComParcelamento.setChecked(StringUtils.isBlank(map.get("trabalhaComParcelamentoCartaoCredito")) ? false : Boolean.parseBoolean(map.get("trabalhaComParcelamentoCartaoCredito")));
|
||||||
chktListarPassageiroUltimaPoltrona.setChecked(StringUtils.isBlank(map.get("listarPassageiro")) ? false : Boolean.parseBoolean(map.get("listarPassageiro")));
|
chktListarPassageiroUltimaPoltrona.setChecked(StringUtils.isBlank(map.get("listarPassageiro")) ? false : Boolean.parseBoolean(map.get("listarPassageiro")));
|
||||||
|
chkPermitirVendaRapida.setChecked(StringUtils.isBlank(map.get("isVendaRapidaHabilitado")) ? false : Boolean.parseBoolean(map.get("isVendaRapidaHabilitado")));
|
||||||
|
// cantCorrida.setValue(StringUtils.isBlank(map.get("cantCorrida")) ? 0 : Integer.parseInt(map.get("cantCorrida")));
|
||||||
|
|
||||||
|
|
||||||
empresaList.setData(lsEmpresas);
|
empresaList.setData(lsEmpresas);
|
||||||
bandeirasList.setData(lsBandeirasCartao);
|
bandeirasList.setData(lsBandeirasCartao);
|
||||||
|
|
||||||
|
buscarOrigenDestinosVentaRapida();
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void buscarOrigenDestinosVentaRapida() {
|
||||||
|
|
||||||
|
localidadesOrigemDestinoList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
ConfTotemVentaRapida confTotemVentaRapidaOrigemDestino = (ConfTotemVentaRapida) localidadesOrigemDestinoList.getSelected();
|
||||||
|
if(confTotemVentaRapidaOrigemDestino != null){
|
||||||
|
visualizaOrigens(confTotemVentaRapidaOrigemDestinoService.buscarOrigem(confTotemVentaRapidaOrigemDestino.getOrigen()).get(0));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
HibernateSearchObject<ConfTotemVentaRapida> origensDestinoVentaRapida = new HibernateSearchObject<ConfTotemVentaRapida>(ConfTotemVentaRapida.class, pagingOrigensDestinosVentaRapida.getPageSize());
|
||||||
|
|
||||||
|
Comboitem cbi = cmbParadaOrigem.getSelectedItem();
|
||||||
|
if (cbi != null) {
|
||||||
|
Parada origem = (Parada) cbi.getValue();
|
||||||
|
origensDestinoVentaRapida.addFilterEqual("origen", origem);
|
||||||
|
}
|
||||||
|
|
||||||
|
cbi = cmbParadaDestino.getSelectedItem();
|
||||||
|
if (cbi != null) {
|
||||||
|
Parada destino = (Parada) cbi.getValue();
|
||||||
|
origensDestinoVentaRapida.addFilterEqual("destino", destino);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
origensDestinoVentaRapida.addSortAsc("origen");
|
||||||
|
origensDestinoVentaRapida.addSortAsc("destino");
|
||||||
|
origensDestinoVentaRapida.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
plwOrigensDestinosVentaRapida.init(origensDestinoVentaRapida, localidadesOrigemDestinoList, pagingOrigensDestinosVentaRapida);
|
||||||
|
|
||||||
|
if (localidadesOrigemDestinoList.getData().length == 0) {
|
||||||
|
try {
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaTramosController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,7 +211,7 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
public void onClick$buttonSalvar(Event ev) throws InterruptedException {
|
public void onClick$buttonSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// cantCorrida.getValue();
|
||||||
ConfTotem novoItem = new ConfTotem();
|
ConfTotem novoItem = new ConfTotem();
|
||||||
novoItem.setActivo(Boolean.TRUE);
|
novoItem.setActivo(Boolean.TRUE);
|
||||||
novoItem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
novoItem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
@ -335,6 +403,33 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
confTotemService.suscribir(novoItem);
|
confTotemService.suscribir(novoItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// confTotem = map.get("cantCorrida");
|
||||||
|
// if (confTotem != null) {
|
||||||
|
// confTotem.setValor(String.valueOf(cantCorrida.getValue()));
|
||||||
|
// confTotem.setFecmodif(new Date());
|
||||||
|
// confTotem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
// confTotemService.actualizacion(confTotem);
|
||||||
|
// } else {
|
||||||
|
// novoItem = new ConfTotem();
|
||||||
|
// novoItem.setChave("cantCorrida");
|
||||||
|
// novoItem.setValor(String.valueOf(cantCorrida.getValue()));
|
||||||
|
// confTotemService.suscribir(novoItem);
|
||||||
|
// }
|
||||||
|
|
||||||
|
confTotem = map.get("isVendaRapidaHabilitado");
|
||||||
|
if (confTotem != null) {
|
||||||
|
confTotem.setValor(String.valueOf(chkPermitirVendaRapida.isChecked()));
|
||||||
|
confTotem.setFecmodif(new Date());
|
||||||
|
confTotem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
confTotemService.actualizacion(confTotem);
|
||||||
|
} else {
|
||||||
|
novoItem = new ConfTotem();
|
||||||
|
novoItem.setChave("isVendaRapidaHabilitado");
|
||||||
|
novoItem.setValor(String.valueOf(chkPermitirVendaRapida.isChecked()));
|
||||||
|
|
||||||
|
confTotemService.suscribir(novoItem);
|
||||||
|
}
|
||||||
|
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("busquedaConfTotemController.MSG.suscribirOK"),
|
Labels.getLabel("busquedaConfTotemController.MSG.suscribirOK"),
|
||||||
Labels.getLabel("busquedaConfTotemController.window.title"),
|
Labels.getLabel("busquedaConfTotemController.window.title"),
|
||||||
|
@ -404,4 +499,24 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
||||||
this.lsBandeiras = lsBandeiras;
|
this.lsBandeiras = lsBandeiras;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private void visualizaOrigens(ConfTotemVentaRapida confTotemVentaRapidaOrigemDestino){
|
||||||
|
|
||||||
|
if (confTotemVentaRapidaOrigemDestino == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
Map args = new HashMap();
|
||||||
|
args.put("confTotemVentaRapidaOrigemDestino", confTotemVentaRapidaOrigemDestino);
|
||||||
|
args.put("busquedaConfTotemController", this);
|
||||||
|
|
||||||
|
openWindow("/gui/catalogos/editarConfTotemVentaRapida.zul",
|
||||||
|
Labels.getLabel("editarConfTotemController.window.title"), args, MODAL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
visualizaOrigens(new ConfTotemVentaRapida());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,218 @@
|
||||||
|
|
||||||
|
/*
|
||||||
|
* To change this template, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
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.zhtml.Messagebox;
|
||||||
|
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.Button;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapidaOrigem;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapida;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConfTotemVentaRapidaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ConfTotemVentaRapidaOrigemService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||||
|
import com.rjconsultores.ventaboletos.vo.conftotem.ConfTotemVentaRapidaVO;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfTotemVentaRapidaOrigemDestino;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaConfTotem;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author Wallace
|
||||||
|
*/
|
||||||
|
@Controller("editarConfTotemVentaRapidaController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class EditarConfTotemVentaRapidaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
@Autowired
|
||||||
|
private static Logger log = Logger.getLogger(EditarConfTotemVentaRapidaController.class);
|
||||||
|
private MyComboboxParada cmbParadaOrigem;
|
||||||
|
private MyListbox localidadesDestinoList;
|
||||||
|
@Autowired
|
||||||
|
private ParadaService paradaService;
|
||||||
|
@Autowired
|
||||||
|
private ConfTotemVentaRapidaService confTotemVentaRapidaService;
|
||||||
|
private MyListbox localidadesOrigemDestinoList;
|
||||||
|
private ConfTotemVentaRapida confTotemVentaRapida;
|
||||||
|
private Button btnApagar;
|
||||||
|
private BusquedaConfTotemController busquedaConfTotemController;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
localidadesOrigemDestinoList.setItemRenderer(new RenderConfTotemVentaRapidaOrigemDestino());
|
||||||
|
confTotemVentaRapida = (ConfTotemVentaRapida) Executions.getCurrent().getArg().get("confTotemVentaRapidaOrigemDestino");
|
||||||
|
localidadesOrigemDestinoList.setData(confTotemVentaRapidaService.buscarOrigem(confTotemVentaRapida.getOrigen()));
|
||||||
|
busquedaConfTotemController = (BusquedaConfTotemController) Executions.getCurrent().getArg().get("busquedaConfTotemController");
|
||||||
|
|
||||||
|
if(confTotemVentaRapida.getOrigen() != null){
|
||||||
|
cmbParadaOrigem.setValue(confTotemVentaRapida.getOrigen().getDescparada());
|
||||||
|
cmbParadaOrigem.setComboItemByParada((Parada) confTotemVentaRapida.getOrigen());
|
||||||
|
cmbParadaOrigem.setDisabled(Boolean.TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (confTotemVentaRapida == null) {
|
||||||
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
try {
|
||||||
|
executarPesquisaLocalidadesDestino();
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
cmbParadaOrigem.addEventListener("onSelect", new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event event) throws Exception {
|
||||||
|
if (cmbParadaOrigem.getSelectedItem() != null) {
|
||||||
|
executarPesquisaLocalidadesDestino();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRefresh(Event ev) {
|
||||||
|
refreshLista();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$buttonSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
if(localidadesOrigemDestinoList.getListData().isEmpty() && confTotemVentaRapida.getOrigen() == null){
|
||||||
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("customController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(cmbParadaOrigem.getSelectedObject() != null){
|
||||||
|
confTotemVentaRapidaService.apagarPorOrigem(confTotemVentaRapida.getOrigen());
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
Map<Integer, Parada> origens = new HashMap<Integer, Parada>();
|
||||||
|
@SuppressWarnings("unchecked")
|
||||||
|
List<ConfTotemVentaRapida> list = localidadesOrigemDestinoList.getListData();
|
||||||
|
for (ConfTotemVentaRapida confTotemVentaRapidaOrigemDestino : list) {
|
||||||
|
origens.put(confTotemVentaRapidaOrigemDestino.getOrigen().getParadaId(), confTotemVentaRapidaOrigemDestino.getOrigen());
|
||||||
|
}
|
||||||
|
|
||||||
|
for (Map.Entry<Integer, Parada> entry : origens.entrySet()) {
|
||||||
|
for (ConfTotemVentaRapida confTotemVentaRapidaOrigemDestino : list) {
|
||||||
|
if (entry.getKey().equals(confTotemVentaRapidaOrigemDestino.getOrigen().getParadaId())) {
|
||||||
|
ConfTotemVentaRapida entidad = confTotemVentaRapidaService.buscarOrigemDestino(confTotemVentaRapidaOrigemDestino.getOrigen(), confTotemVentaRapidaOrigemDestino.getDestino());
|
||||||
|
if(entidad == null){
|
||||||
|
entidad = new ConfTotemVentaRapida();
|
||||||
|
entidad.setOrigen(confTotemVentaRapidaOrigemDestino.getOrigen());
|
||||||
|
entidad.setDestino(confTotemVentaRapidaOrigemDestino.getDestino());
|
||||||
|
confTotemVentaRapidaService.suscribir(entidad);;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error("", ex);
|
||||||
|
}
|
||||||
|
busquedaConfTotemController.buscarOrigenDestinosVentaRapida();
|
||||||
|
try {
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("busquedaConfTotemController.MSG.suscribirOK"),
|
||||||
|
Labels.getLabel("busquedaConfTotemController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
log.error(ex);
|
||||||
|
}
|
||||||
|
closeWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void apagarHistorico(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisaLocalidadesDestino() throws InterruptedException {
|
||||||
|
|
||||||
|
if(cmbParadaOrigem.getModel() == null){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
final Parada origem = (Parada) cmbParadaOrigem.getModel().getElementAt(0);
|
||||||
|
List<Parada> lsParadas = paradaService.buscarDestinosPorOrigem(origem.getParadaId());
|
||||||
|
if(lsParadas != null){
|
||||||
|
localidadesDestinoList.setData(paradaService.buscarDestinosPorOrigem(origem.getParadaId()));
|
||||||
|
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
|
||||||
|
localidadesDestinoList.setItemRenderer(new RenderParadaConfTotem(new EventListener() {
|
||||||
|
@Override
|
||||||
|
public void onEvent(Event arg0) throws Exception {
|
||||||
|
Parada destino = (Parada) arg0.getTarget().getAttribute("data");
|
||||||
|
if (arg0.getTarget().getAttribute("tipo").equals(RenderParadaConfTotem.BOTAO_ADICIONAR_PERMISSAO)) {
|
||||||
|
if (localidadesOrigemDestinoList.getListData().isEmpty()) {
|
||||||
|
ConfTotemVentaRapida vo = new ConfTotemVentaRapida();
|
||||||
|
vo.setOrigen(origem);
|
||||||
|
vo.setDestino(destino);
|
||||||
|
localidadesOrigemDestinoList.addItemNovo(vo);
|
||||||
|
} else {
|
||||||
|
for (Object objectParada : localidadesOrigemDestinoList.getListData()) {
|
||||||
|
if (localidadesOrigemDestinoList.getListData().contains(new ConfTotemVentaRapida(origem, destino))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!(((ConfTotemVentaRapida) objectParada).getDestino().equals(destino) && ((ConfTotemVentaRapida) objectParada).getOrigen().equals(origem))) {
|
||||||
|
ConfTotemVentaRapida vo = new ConfTotemVentaRapida();
|
||||||
|
vo.setOrigen(origem);
|
||||||
|
vo.setDestino(destino);
|
||||||
|
localidadesOrigemDestinoList.addItemNovo(vo);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnRemoverOrigemDestino(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
|
try {
|
||||||
|
localidadesOrigemDestinoList.removeItem(localidadesOrigemDestinoList.getSelected());
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error("", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapida;
|
||||||
|
|
||||||
|
public class RenderConfTotemVentaRapidaOrigemDestino implements ListitemRenderer {
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
|
||||||
|
ConfTotemVentaRapida vo = (ConfTotemVentaRapida) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(vo.getOrigen().getCveparada() + " - " + vo.getOrigen().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", vo);
|
||||||
|
|
||||||
|
lc = new Listcell(vo.getDestino().getCveparada() + " - " + vo.getDestino().getDescparada());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", vo);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,51 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
|
import org.zkoss.zul.Button;
|
||||||
|
import org.zkoss.zul.Listcell;
|
||||||
|
import org.zkoss.zul.Listitem;
|
||||||
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author wallace
|
||||||
|
*/
|
||||||
|
public class RenderParadaConfTotem implements ListitemRenderer {
|
||||||
|
|
||||||
|
private EventListener listenerGenerico;
|
||||||
|
public static final String BOTAO_ADICIONAR_PERMISSAO = "btnAdicionarPermissao";
|
||||||
|
|
||||||
|
public RenderParadaConfTotem(EventListener listenerGenerico) {
|
||||||
|
super();
|
||||||
|
this.listenerGenerico = listenerGenerico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public RenderParadaConfTotem() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
|
|
||||||
|
Parada parada = (Parada) o;
|
||||||
|
|
||||||
|
Listcell lc = new Listcell(parada.getDescparada().toString());
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell();
|
||||||
|
|
||||||
|
Button btnAdicionarPermissao = new Button("");
|
||||||
|
btnAdicionarPermissao.setAttribute("data", o);
|
||||||
|
btnAdicionarPermissao.setAttribute("tipo", "btnAdicionarPermissao");
|
||||||
|
btnAdicionarPermissao.addEventListener("onClick", listenerGenerico);
|
||||||
|
btnAdicionarPermissao.setImage("/gui/img/add.png");
|
||||||
|
lc.appendChild(btnAdicionarPermissao);
|
||||||
|
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", parada);
|
||||||
|
}
|
||||||
|
}
|
|
@ -514,6 +514,7 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConfContratoPuntoVenta</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConfContratoPuntoVenta</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ReservaEspecialCliente</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ReservaEspecialCliente</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaLocalidadeRemovida</value>
|
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaLocalidadeRemovida</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapida</value>
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
|
|
@ -9147,6 +9147,12 @@ busquedaConfTotemController.trabalhaComParcelamento.ajuda=Habilita o parcelament
|
||||||
busquedaConfTotemController.trabalhaComParcelamento=Parcelamento no cartão de credito.
|
busquedaConfTotemController.trabalhaComParcelamento=Parcelamento no cartão de credito.
|
||||||
busquedaConfTotemController.ListarPassageiroUltimaPoltrona=Preencher dado(s) do(s) passageiro(s) só após selecionar poltrona(s).
|
busquedaConfTotemController.ListarPassageiroUltimaPoltrona=Preencher dado(s) do(s) passageiro(s) só após selecionar poltrona(s).
|
||||||
busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda=Na tela de poltrona, só será solicitado dados do(s) passageiro(s) (Nome e documento) após selecionar as poltrona(s).
|
busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda=Na tela de poltrona, só será solicitado dados do(s) passageiro(s) (Nome e documento) após selecionar as poltrona(s).
|
||||||
|
busquedaConfTotemController.configuraoVendaRapida.label=Configuraciones Venda Rápida
|
||||||
|
busquedaConfTotemController.lbQtdCorrida.value = Cantidade Corrida
|
||||||
|
busquedaConfTotemController.lbParadaOrigem.value= Parada Origen
|
||||||
|
busquedaConfTotemController.lbParadaDestino.value= Parada Destino
|
||||||
|
busquedaConfTotemController.permiteVendaRapida.ajuda=Permitir que o totem habilite o botão próximas partidas.(Venta Rápida)
|
||||||
|
busquedaConfTotemController.lbPermitirProximasPartidas.value = Permitir Venta Rápida (Próximas Partidas )
|
||||||
|
|
||||||
|
|
||||||
relatorioVendasCartoesController.window.title = Relatório Vendas Cartões
|
relatorioVendasCartoesController.window.title = Relatório Vendas Cartões
|
||||||
|
|
|
@ -9789,8 +9789,24 @@ busquedaConfTotemController.trabalhaComParcelamento.ajuda=Habilita o parcelament
|
||||||
busquedaConfTotemController.trabalhaComParcelamento=Parcelamento no cartão de credito.
|
busquedaConfTotemController.trabalhaComParcelamento=Parcelamento no cartão de credito.
|
||||||
busquedaConfTotemController.ListarPassageiroUltimaPoltrona=Preencher dado(s) do(s) passageiro(s) só após selecionar poltrona(s).
|
busquedaConfTotemController.ListarPassageiroUltimaPoltrona=Preencher dado(s) do(s) passageiro(s) só após selecionar poltrona(s).
|
||||||
busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda=Na tela de poltrona, só será solicitado dados do(s) passageiro(s) (Nome e documento) após selecionar as poltrona(s).
|
busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda=Na tela de poltrona, só será solicitado dados do(s) passageiro(s) (Nome e documento) após selecionar as poltrona(s).
|
||||||
|
busquedaConfTotemController.configuraoGeral.label=Configuração Geral
|
||||||
|
busquedaConfTotemController.configuraoVendaRapida.label=Configuração Venda Rápida
|
||||||
|
busquedaConfTotemController.lbQtdCorrida.value = Quantidade Corrida
|
||||||
|
busquedaConfTotemController.lbParadaOrigem.value= Localidade Origem
|
||||||
|
busquedaConfTotemController.lbParadaDestino.value= Localidade Destino
|
||||||
|
busquedaConfTotemController.permiteVendaRapida.ajuda=Permitir que o totem habilite o botão próximas partidas.(Venda Rápida)
|
||||||
|
busquedaConfTotemController.lbPermitirProximasPartidas.value = Permitirr Venda Rápida (Próximas Partidas )
|
||||||
|
|
||||||
|
|
||||||
|
editarConfTotemController.lbParadaOrigem.value = Localidade de Origem
|
||||||
|
editarConfTotemController.lbParadaDestino.value = Localidade de Destino
|
||||||
|
editarConfTotemController.btnBorrarCorrida.tooltiptext = Eliminar Localidade
|
||||||
|
editarConfTotemController.labelAdicionarLocalidade.value = Adicionar
|
||||||
|
editarConfTotemController.labelLocalidadesDescricao.value = Descrição
|
||||||
|
editarConfTotemController.window.title= Editar Localidades Origem/Destino Venda Rapida Totem
|
||||||
|
editarConfTotemController.btnFechar.tooltiptext = Fechar
|
||||||
|
editarConfTotemController.btnSalvarLocalidades.tooltiptext = Salvar Localidades
|
||||||
|
|
||||||
indexController.mniTrocoSimples.mniRelatorioTrocoSimples.label=Relatório Troco Simples
|
indexController.mniTrocoSimples.mniRelatorioTrocoSimples.label=Relatório Troco Simples
|
||||||
relatorioTrocoSimples.window.title=Relatório Troco Simples
|
relatorioTrocoSimples.window.title=Relatório Troco Simples
|
||||||
relatorioTrocoSimples.dataInicial.label=Data Inicial
|
relatorioTrocoSimples.dataInicial.label=Data Inicial
|
||||||
|
|
|
@ -21,6 +21,16 @@
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
|
<tabbox id="tb">
|
||||||
|
<tabs id="tabs">
|
||||||
|
<tab id="A"
|
||||||
|
label="${c:l('busquedaConfTotemController.configuraoGeral.label')}" />
|
||||||
|
<tab id="B"
|
||||||
|
label="${c:l('busquedaConfTotemController.configuraoVendaRapida.label')}" />
|
||||||
|
</tabs>
|
||||||
|
<tabpanels>
|
||||||
|
<!-- CONFIGURAÇÃO GERAL-->
|
||||||
|
<tabpanel>
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="50%" />
|
<column width="50%" />
|
||||||
|
@ -34,8 +44,10 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkPermitirTecladoAlfaNumerico" />
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkPermitirTecladoAlfaNumerico" />
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -47,8 +59,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkPermitirVenda"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkPermitirVenda">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.permitirVenda.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.permitirVenda.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -62,8 +77,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkPermitirImpressao"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkPermitirImpressao">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.permitirImpressao.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.permitirImpressao.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -75,8 +93,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkPermitirReserva"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkPermitirReserva">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.permitirReserva.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.permitirReserva.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -90,8 +111,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkTituloInicial"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkTituloInicial">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.tituloInicial.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.tituloInicial.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -103,8 +127,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkSeguroTabela"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkSeguroTabela">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.seguroTabela.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.seguroTabela.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -119,8 +146,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkPagamentoMultiempresaBPe"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkPagamentoMultiempresaBPe">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.pagamentoMultiempresaBPe.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.pagamentoMultiempresaBPe.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -132,8 +162,11 @@
|
||||||
|
|
||||||
<hlayout>
|
<hlayout>
|
||||||
|
|
||||||
<checkbox id="chkImprimeComprovanteCartaoEmpresaCorrida"></checkbox>
|
<checkbox
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
id="chkImprimeComprovanteCartaoEmpresaCorrida">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.imprimeComprovanteCartaoEmpresaCorrida.value')}"
|
tooltiptext="${c:l('busquedaConfTotemController.imprimeComprovanteCartaoEmpresaCorrida.value')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
|
@ -144,22 +177,34 @@
|
||||||
<row>
|
<row>
|
||||||
<groupbox>
|
<groupbox>
|
||||||
<caption
|
<caption
|
||||||
label="${c:l('busquedaConfTotemController.trabalhaComParcelamento')}" />
|
label="${c:l('busquedaConfTotemController.trabalhaComParcelamento')}" />
|
||||||
<hlayout>
|
|
||||||
<checkbox id="chktrabalhaComParcelamento"></checkbox>
|
<hlayout>
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
|
||||||
|
<checkbox
|
||||||
|
id="chktrabalhaComParcelamento">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.trabalhaComParcelamento.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.trabalhaComParcelamento.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
</hlayout>
|
</hlayout>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
<groupbox>
|
<groupbox>
|
||||||
<caption
|
<caption
|
||||||
label="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona')}" />
|
label="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona')}" />
|
||||||
<hlayout>
|
|
||||||
<checkbox id="chktListarPassageiroUltimaPoltrona"></checkbox>
|
<hlayout>
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
|
||||||
|
<checkbox
|
||||||
|
id="chktListarPassageiroUltimaPoltrona">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
|
|
||||||
</hlayout>
|
</hlayout>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
|
@ -179,21 +224,24 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px"
|
||||||
<button id="btnAddEmpresa" height="20"
|
style="padding:1px" align="right">
|
||||||
image="/gui/img/add.png" width="35px"
|
<button id="btnAddEmpresa"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.btnAddEmpresa.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfTotemController.btnAddEmpresa.tooltiptext')}" />
|
||||||
<button id="btnRemEmpresa" height="20"
|
<button id="btnRemEmpresa"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveEmpresa.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveEmpresa.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaConfTotemController.empresa.label')}" />
|
value="${c:l('busquedaConfTotemController.empresa.label')}" />
|
||||||
<combobox id="cmbEmpresa" width="100%"
|
<combobox id="cmbEmpresa"
|
||||||
|
width="100%"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true"
|
mold="rounded" buttonVisible="true"
|
||||||
model="@{winBusquedaConfTotem$composer.lsEmpresa}" />
|
model="@{winBusquedaConfTotem$composer.lsEmpresa}" />
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.empresasVendas.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.empresasVendas.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
</row>
|
</row>
|
||||||
|
@ -204,8 +252,7 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
vflex="true" multiple="false" height="100px">
|
vflex="true" multiple="false" height="100px">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader
|
<listheader label="" />
|
||||||
label="" />
|
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
|
|
||||||
|
@ -223,21 +270,24 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px"
|
||||||
<button id="btnAddbandeira" height="20"
|
style="padding:1px" align="right">
|
||||||
image="/gui/img/add.png" width="35px"
|
<button id="btnAddbandeira"
|
||||||
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.btnAddBandeiracartao.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfTotemController.btnAddBandeiracartao.tooltiptext')}" />
|
||||||
<button id="btnRemBandeira" height="20"
|
<button id="btnRemBandeira"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveBandeiraCartao.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveBandeiraCartao.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaConfTotemController.bandeiraCartao.label')}" />
|
value="${c:l('busquedaConfTotemController.bandeiraCartao.label')}" />
|
||||||
<combobox id="cmbBandeira" width="100%"
|
<combobox id="cmbBandeira"
|
||||||
|
width="100%"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true"
|
mold="rounded" buttonVisible="true"
|
||||||
model="@{winBusquedaConfTotem$composer.lsBandeiras}" />
|
model="@{winBusquedaConfTotem$composer.lsBandeiras}" />
|
||||||
<image src="/gui/img/Question_mark_1.png"
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
tooltiptext="${c:l('busquedaConfTotemController.bandeirasVendas.ajuda')}"
|
tooltiptext="${c:l('busquedaConfTotemController.bandeirasVendas.ajuda')}"
|
||||||
style="cursor: help" />
|
style="cursor: help" />
|
||||||
</row>
|
</row>
|
||||||
|
@ -248,11 +298,80 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
vflex="true" multiple="false" height="100px">
|
vflex="true" multiple="false" height="100px">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader
|
<listheader label="" />
|
||||||
label="" />
|
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
|
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
</tabpanel>
|
||||||
|
<tabpanel height="430px">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfTotemController.lbPermitirProximasPartidas.value')}" />
|
||||||
|
<hlayout>
|
||||||
|
<checkbox
|
||||||
|
id="chkPermitirVendaRapida">
|
||||||
|
</checkbox>
|
||||||
|
<image
|
||||||
|
src="/gui/img/Question_mark_1.png"
|
||||||
|
tooltiptext="${c:l('busquedaConfTotemController.inicioLocalidadePuntoVenta.ajuda')}"
|
||||||
|
style="cursor: help" />
|
||||||
|
</hlayout>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfTotemController.lbParadaOrigem.value')}" />
|
||||||
|
<combobox id="cmbParadaOrigem"
|
||||||
|
autodrop="false" mold="rounded" buttonVisible="true"
|
||||||
|
width="90%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfTotemController.lbParadaDestino.value')}" />
|
||||||
|
<combobox id="cmbParadaDestino"
|
||||||
|
autodrop="false" mold="rounded" buttonVisible="true"
|
||||||
|
width="90%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
|
</row>
|
||||||
|
<row spans="4">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnPesquisa"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('busquedaTramosController.btnPesquisa.label')}" />
|
||||||
|
</toolbar>
|
||||||
|
</row>
|
||||||
|
<row spans="4">
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnNovo" height="20"
|
||||||
|
image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCategoriaController.btnAddCorrida.tooltiptext')}" />
|
||||||
|
</toolbar>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<paging id="pagingOrigensDestinosVentaRapida"
|
||||||
|
pageSize="20" />
|
||||||
|
<listbox id="localidadesOrigemDestinoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
height="425px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="localidade" width="30%"
|
||||||
|
sort="auto(origen.descparada)" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaConfTotemController.lbParadaOrigem.value')}" />
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
sort="auto(destino.descparada)"
|
||||||
|
label="${c:l('busquedaConfTotemController.lbParadaDestino.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
</tabpanels>
|
||||||
|
</tabbox>
|
||||||
|
|
||||||
</window>
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -0,0 +1,84 @@
|
||||||
|
<?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="winEditarConfTotemVentaRapida"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winEditarConfTotemVentaRapida"
|
||||||
|
title="${c:l('editarConfTotemController.window.title')}"
|
||||||
|
apply="${editarConfTotemVentaRapidaController}" contentStyle="overflow:auto"
|
||||||
|
height="510px" width="980px" border="normal">
|
||||||
|
<toolbar>
|
||||||
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
|
<button id="buttonSalvar" height="20"
|
||||||
|
image="/gui/img/save.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfTotemController.btnSalvarLocalidades.tooltiptext')}" />
|
||||||
|
<button id="btnFechar" height="20"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
onClick="winEditarConfTotemVentaRapida.detach()"
|
||||||
|
tooltiptext="${c:l('editarConfTotemController.btnFechar.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="20%" />
|
||||||
|
<column width="80%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfTotemController.lbParadaOrigem.value')}" />
|
||||||
|
<combobox id="cmbParadaOrigem" autodrop="false"
|
||||||
|
mold="rounded" buttonVisible="true" width="100%"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfTotemController.lbParadaDestino.value')}" />
|
||||||
|
<bandbox id="bbPesquisaLinha" width="100%"
|
||||||
|
mold="rounded" readonly="true">
|
||||||
|
<bandpopup>
|
||||||
|
<vbox>
|
||||||
|
<listbox id="localidadesDestinoList"
|
||||||
|
mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false" height="60%" width="710px">
|
||||||
|
<listhead>
|
||||||
|
<listheader
|
||||||
|
label="${c:l('editarConexionPorRutaController.labelLocalidadesDescricao.value')}"
|
||||||
|
width="65%" />
|
||||||
|
<listheader
|
||||||
|
label="${c:l('editarConfTotemController.labelAdicionarLocalidade.value')}"
|
||||||
|
width="29%" />
|
||||||
|
<listheader align="center"
|
||||||
|
label=" " width="6%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
<paging id="pagingLinha" pageSize="10" />
|
||||||
|
</vbox>
|
||||||
|
</bandpopup>
|
||||||
|
</bandbox>
|
||||||
|
</row>
|
||||||
|
<row spans="4">
|
||||||
|
<hbox>
|
||||||
|
<button id="btnRemoverOrigemDestino" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfTotemController.btnBorrarCorrida.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<listbox id="localidadesOrigemDestinoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
height="425px">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader id="localidade" width="30%" sort="auto(origen.descparada)" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarConfTotemController.lbParadaOrigem.value')}" />
|
||||||
|
<listheader label="${c:l('editarConfTotemController.lbParadaDestino.value')}" sort="auto(destino.descparada)" image="/gui/img/builder.gif" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue