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.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.log4j.Logger;
|
||||
|
@ -22,17 +20,27 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
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.ConfTotemVentaRapidaOrigem;
|
||||
import com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapida;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.service.ConfTotemService;
|
||||
import com.rjconsultores.ventaboletos.service.ConfTotemVentaRapidaService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
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.RenderConfTotemVentaRapidaOrigemDestino;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -58,22 +66,33 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
|||
private Checkbox chktrabalhaComParcelamento;
|
||||
private Checkbox chkImprimeComprovanteCartaoEmpresaCorrida;
|
||||
private Checkbox chktListarPassageiroUltimaPoltrona;
|
||||
private Checkbox chkPermitirVendaRapida;
|
||||
private static Logger log = Logger.getLogger(BusquedaConfTotemController.class);
|
||||
private MyListbox empresaList;
|
||||
private MyListbox bandeirasList;
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private ConfTotemVentaRapidaService confTotemVentaRapidaOrigemDestinoService;
|
||||
private List<Empresa> lsEmpresa;
|
||||
private List<String> lsBandeiras;
|
||||
private Combobox cmbEmpresa;
|
||||
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
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
getLsBandeiras();
|
||||
localidadesOrigemDestinoList.setItemRenderer(new RenderConfTotemVentaRapidaOrigemDestino());
|
||||
|
||||
refreshLista();
|
||||
}
|
||||
|
@ -124,13 +143,62 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
|||
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")));
|
||||
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);
|
||||
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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
refreshLista();
|
||||
}
|
||||
|
@ -143,7 +211,7 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
|||
public void onClick$buttonSalvar(Event ev) throws InterruptedException {
|
||||
|
||||
try {
|
||||
|
||||
// cantCorrida.getValue();
|
||||
ConfTotem novoItem = new ConfTotem();
|
||||
novoItem.setActivo(Boolean.TRUE);
|
||||
novoItem.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
@ -334,6 +402,33 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
|||
|
||||
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(
|
||||
Labels.getLabel("busquedaConfTotemController.MSG.suscribirOK"),
|
||||
|
@ -404,4 +499,24 @@ public class BusquedaConfTotemController extends MyGenericForwardComposer {
|
|||
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.ReservaEspecialCliente</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConexionRutaLocalidadeRemovida</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfTotemVentaRapida</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -9147,6 +9147,12 @@ busquedaConfTotemController.trabalhaComParcelamento.ajuda=Habilita o parcelament
|
|||
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.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
|
||||
|
|
|
@ -9789,8 +9789,24 @@ busquedaConfTotemController.trabalhaComParcelamento.ajuda=Habilita o parcelament
|
|||
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.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
|
||||
relatorioTrocoSimples.window.title=Relatório Troco Simples
|
||||
relatorioTrocoSimples.dataInicial.label=Data Inicial
|
||||
|
|
|
@ -21,238 +21,357 @@
|
|||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkPermitirTecladoAlfaNumerico" />
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirVenda')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkPermitirVenda"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirVenda.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirImpressao')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkPermitirImpressao"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirImpressao.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirReserva')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkPermitirReserva"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirReserva.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.tituloInicial')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkTituloInicial"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.tituloInicial.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.seguroTabela')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkSeguroTabela"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.seguroTabela.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.pagamentoMultiempresaBPe')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkPagamentoMultiempresaBPe"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.pagamentoMultiempresaBPe.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.imprimeComprovanteCartaoEmpresaCorrida.value')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox id="chkImprimeComprovanteCartaoEmpresaCorrida"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.imprimeComprovanteCartaoEmpresaCorrida.value')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.trabalhaComParcelamento')}" />
|
||||
<hlayout>
|
||||
<checkbox id="chktrabalhaComParcelamento"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.trabalhaComParcelamento.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona')}" />
|
||||
<hlayout>
|
||||
<checkbox id="chktListarPassageiroUltimaPoltrona"></checkbox>
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<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">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkPermitirTecladoAlfaNumerico" />
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirTecladoAlfaNumerico.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirVenda')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkPermitirVenda">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirVenda.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirImpressao')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkPermitirImpressao">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirImpressao.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.permitirReserva')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkPermitirReserva">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.permitirReserva.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.tituloInicial')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkTituloInicial">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.tituloInicial.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.seguroTabela')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkSeguroTabela">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.seguroTabela.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.empresasVendas')}" />
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="10%" />
|
||||
<column width="20%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnAddEmpresa" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnAddEmpresa.tooltiptext')}" />
|
||||
<button id="btnRemEmpresa" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveEmpresa.tooltiptext')}" />
|
||||
</hbox>
|
||||
<label
|
||||
value="${c:l('busquedaConfTotemController.empresa.label')}" />
|
||||
<combobox id="cmbEmpresa" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaConfTotem$composer.lsEmpresa}" />
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.empresasVendas.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<listbox id="empresaList" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="100px">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
label="" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.pagamentoMultiempresaBPe')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkPagamentoMultiempresaBPe">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.pagamentoMultiempresaBPe.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.imprimeComprovanteCartaoEmpresaCorrida.value')}" />
|
||||
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.bandeiraCartao')}" />
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="20%" />
|
||||
<column width="25%" />
|
||||
<column width="45%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnAddbandeira" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnAddBandeiracartao.tooltiptext')}" />
|
||||
<button id="btnRemBandeira" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveBandeiraCartao.tooltiptext')}" />
|
||||
</hbox>
|
||||
<label
|
||||
value="${c:l('busquedaConfTotemController.bandeiraCartao.label')}" />
|
||||
<combobox id="cmbBandeira" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaConfTotem$composer.lsBandeiras}" />
|
||||
<image src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.bandeirasVendas.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<listbox id="bandeirasList" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="100px">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
label="" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chkImprimeComprovanteCartaoEmpresaCorrida">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.imprimeComprovanteCartaoEmpresaCorrida.value')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.trabalhaComParcelamento')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chktrabalhaComParcelamento">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.trabalhaComParcelamento.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona')}" />
|
||||
|
||||
<hlayout>
|
||||
|
||||
<checkbox
|
||||
id="chktListarPassageiroUltimaPoltrona">
|
||||
</checkbox>
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.ListarPassageiroUltimaPoltrona.ajuda')}"
|
||||
style="cursor: help" />
|
||||
|
||||
</hlayout>
|
||||
</groupbox>
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.empresasVendas')}" />
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="10%" />
|
||||
<column width="20%" />
|
||||
<column width="70%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox spacing="5px"
|
||||
style="padding:1px" align="right">
|
||||
<button id="btnAddEmpresa"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnAddEmpresa.tooltiptext')}" />
|
||||
<button id="btnRemEmpresa"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveEmpresa.tooltiptext')}" />
|
||||
</hbox>
|
||||
<label
|
||||
value="${c:l('busquedaConfTotemController.empresa.label')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaConfTotem$composer.lsEmpresa}" />
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.empresasVendas.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<listbox id="empresaList" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="100px">
|
||||
<listhead sizable="true">
|
||||
<listheader label="" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
||||
</groupbox>
|
||||
<groupbox>
|
||||
<caption
|
||||
label="${c:l('busquedaConfTotemController.bandeiraCartao')}" />
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column width="20%" />
|
||||
<column width="25%" />
|
||||
<column width="45%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox spacing="5px"
|
||||
style="padding:1px" align="right">
|
||||
<button id="btnAddbandeira"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnAddBandeiracartao.tooltiptext')}" />
|
||||
<button id="btnRemBandeira"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.btnRemoveBandeiraCartao.tooltiptext')}" />
|
||||
</hbox>
|
||||
<label
|
||||
value="${c:l('busquedaConfTotemController.bandeiraCartao.label')}" />
|
||||
<combobox id="cmbBandeira"
|
||||
width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true"
|
||||
model="@{winBusquedaConfTotem$composer.lsBandeiras}" />
|
||||
<image
|
||||
src="/gui/img/Question_mark_1.png"
|
||||
tooltiptext="${c:l('busquedaConfTotemController.bandeirasVendas.ajuda')}"
|
||||
style="cursor: help" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<listbox id="bandeirasList" width="100%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="100px">
|
||||
<listhead sizable="true">
|
||||
<listheader label="" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</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>
|
||||
|
||||
</groupbox>
|
||||
</window>
|
||||
</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