git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20595 d1611594-4594-4d17-8e1d-87c2c4800839
parent
d7810bfbf2
commit
882e3bcfa0
|
@ -4,20 +4,10 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Plaza;
|
|
||||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.PlazaService;
|
|
||||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
|
||||||
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.RenderCiudad;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
@ -34,6 +24,16 @@ import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.Row;
|
import org.zkoss.zul.Row;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||||
|
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.RenderCiudad;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author MCosso
|
* @author MCosso
|
||||||
|
@ -42,203 +42,115 @@ import org.zkoss.zul.Textbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class BusquedaCiudadController extends MyGenericForwardComposer {
|
public class BusquedaCiudadController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private transient PagedListWrapper<Ciudad> plwCiudad;
|
@Autowired
|
||||||
@Autowired
|
private transient PagedListWrapper<Ciudad> plwCiudad;
|
||||||
private EstadoService estadoService;
|
@Autowired
|
||||||
@Autowired
|
private EstadoService estadoService;
|
||||||
private PlazaService plazaService;
|
private MyListbox ciudadList;
|
||||||
private MyListbox ciudadList;
|
private Paging pagingCiudad;
|
||||||
private Paging pagingCiudad;
|
private List<Estado> lsEstado;
|
||||||
private List<Estado> lsEstado;
|
private Textbox txtNombre;
|
||||||
private List<Plaza> lsPlaza;
|
private Textbox txtEquivalencia;
|
||||||
private Textbox txtNombre;
|
private Combobox cmbEstado;
|
||||||
private Textbox txtEquivalencia;
|
private Row rowEquivalencia;
|
||||||
private Combobox cmbEstado;
|
private Listheader headerEquivalencia;
|
||||||
private Combobox cmbPlaza;
|
private Intbox txtZonaHoraria;
|
||||||
private Row rowEquivalencia;
|
|
||||||
private Listheader headerEquivalencia;
|
|
||||||
private Intbox txtZonaHoraria;
|
|
||||||
|
|
||||||
public MyListbox getCiudadList() {
|
public List<Estado> getLsEstado() {
|
||||||
return ciudadList;
|
return lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCiudadList(MyListbox ciudadList) {
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
this.ciudadList = ciudadList;
|
this.lsEstado = lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbEstado() {
|
@Override
|
||||||
return cmbEstado;
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
}
|
lsEstado = estadoService.obtenerTodos();
|
||||||
|
|
||||||
public void setCmbEstado(Combobox cmbEstado) {
|
super.doAfterCompose(comp);
|
||||||
this.cmbEstado = cmbEstado;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbPlaza() {
|
ciudadList.setItemRenderer(new RenderCiudad());
|
||||||
return cmbPlaza;
|
ciudadList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbPlaza(Combobox cmbPlaza) {
|
@Override
|
||||||
this.cmbPlaza = cmbPlaza;
|
public void onEvent(Event event) throws Exception {
|
||||||
}
|
Ciudad ciu = (Ciudad) ciudadList.getSelected();
|
||||||
|
verCiudad(ciu);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
public List<Estado> getLsEstado() {
|
refreshLista();
|
||||||
return lsEstado;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsEstado(List<Estado> lsEstado) {
|
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||||
this.lsEstado = lsEstado;
|
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||||
}
|
headerEquivalencia.setVisible(Boolean.FALSE);
|
||||||
|
}
|
||||||
|
|
||||||
public List<Plaza> getLsPlaza() {
|
txtNombre.focus();
|
||||||
return lsPlaza;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsPlaza(List<Plaza> lsPlaza) {
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
this.lsPlaza = lsPlaza;
|
private void verCiudad(Ciudad ci) {
|
||||||
}
|
if (ci == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
public Paging getPagingCiudad() {
|
Map args = new HashMap();
|
||||||
return pagingCiudad;
|
args.put("ciudad", ci);
|
||||||
}
|
args.put("ciudadList", ciudadList);
|
||||||
|
|
||||||
public void setPagingCiudad(Paging pagingCiudad) {
|
openWindow("/gui/catalogos/editarCiudad.zul",
|
||||||
this.pagingCiudad = pagingCiudad;
|
Labels.getLabel("editarCiudadController.window.title"), args, MODAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Textbox getTxtNombre() {
|
private void refreshLista() {
|
||||||
return txtNombre;
|
HibernateSearchObject<Ciudad> ciudadBusqueda =
|
||||||
}
|
new HibernateSearchObject<Ciudad>(Ciudad.class, pagingCiudad.getPageSize());
|
||||||
|
|
||||||
public void setTxtNombre(Textbox txtNombre) {
|
ciudadBusqueda.addFilterEqual("activo", true);
|
||||||
this.txtNombre = txtNombre;
|
ciudadBusqueda.addFilterLike("nombciudad", txtNombre.getText().trim().concat("%"));
|
||||||
}
|
ciudadBusqueda.addFilterNotEqual("ciudadId", -1);
|
||||||
|
|
||||||
public Textbox getTxtEquivalencia() {
|
if (!txtEquivalencia.getText().isEmpty()) {
|
||||||
return txtEquivalencia;
|
ciudadBusqueda.addFilterLike("equivalenciaId", "%" + txtEquivalencia.getText().trim().concat("%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTxtEquivalencia(Textbox txtEquivalencia) {
|
Comboitem cbiEstado = cmbEstado.getSelectedItem();
|
||||||
this.txtEquivalencia = txtEquivalencia;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Intbox getTxtZonaHoraria() {
|
if (cbiEstado != null) {
|
||||||
return txtZonaHoraria;
|
Estado estado = (Estado) cbiEstado.getValue();
|
||||||
}
|
ciudadBusqueda.addFilterEqual("estado", estado);
|
||||||
|
}
|
||||||
|
|
||||||
public void setTxtZonaHoraria(Intbox txtZonaHoraria) {
|
if (txtZonaHoraria.getValue() != null) {
|
||||||
this.txtZonaHoraria = txtZonaHoraria;
|
ciudadBusqueda.addFilterEqual("zonaHoraria", txtZonaHoraria.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
ciudadBusqueda.addSortAsc("nombciudad");
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
plwCiudad.init(ciudadBusqueda, ciudadList, pagingCiudad);
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
if (ciudadList.getData().length == 0) {
|
||||||
verCiudad(new Ciudad());
|
try {
|
||||||
}
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaCiudadController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Listheader getHeaderEquivalencia() {
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
return headerEquivalencia;
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHeaderEquivalencia(Listheader headerEquivalencia) {
|
public void onClick$btnRefresh(Event ev) {
|
||||||
this.headerEquivalencia = headerEquivalencia;
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Row getRowEquivalencia() {
|
public void onClick$btnNovo(Event ev) {
|
||||||
return rowEquivalencia;
|
verCiudad(new Ciudad());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRowEquivalencia(Row rowEquivalencia) {
|
|
||||||
this.rowEquivalencia = rowEquivalencia;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
lsEstado = estadoService.obtenerTodos();
|
|
||||||
lsPlaza = plazaService.obtenerTodos();
|
|
||||||
super.doAfterCompose(comp);
|
|
||||||
|
|
||||||
ciudadList.setItemRenderer(new RenderCiudad());
|
|
||||||
ciudadList.addEventListener("onDoubleClick", new EventListener() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onEvent(Event event) throws Exception {
|
|
||||||
Ciudad ciu = (Ciudad) ciudadList.getSelected();
|
|
||||||
verCiudad(ciu);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
refreshLista();
|
|
||||||
|
|
||||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
|
||||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
|
||||||
headerEquivalencia.setVisible(Boolean.FALSE);
|
|
||||||
}
|
|
||||||
|
|
||||||
txtNombre.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void verCiudad(Ciudad ci) {
|
|
||||||
if (ci == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Map args = new HashMap();
|
|
||||||
args.put("ciudad", ci);
|
|
||||||
args.put("ciudadList", ciudadList);
|
|
||||||
|
|
||||||
openWindow("/gui/catalogos/editarCiudad.zul",
|
|
||||||
Labels.getLabel("editarCiudadController.window.title"), args, MODAL);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void refreshLista() {
|
|
||||||
HibernateSearchObject<Ciudad> ciudadBusqueda =
|
|
||||||
new HibernateSearchObject<Ciudad>(Ciudad.class, pagingCiudad.getPageSize());
|
|
||||||
|
|
||||||
ciudadBusqueda.addFilterEqual("activo", true);
|
|
||||||
ciudadBusqueda.addFilterLike("nombciudad", txtNombre.getText().trim().concat("%"));
|
|
||||||
ciudadBusqueda.addFilterNotEqual("ciudadId", -1);
|
|
||||||
|
|
||||||
if (!txtEquivalencia.getText().isEmpty()) {
|
|
||||||
ciudadBusqueda.addFilterLike("equivalenciaId", "%" + txtEquivalencia.getText().trim().concat("%"));
|
|
||||||
}
|
|
||||||
|
|
||||||
Comboitem cbiEstado = cmbEstado.getSelectedItem();
|
|
||||||
Comboitem cbiPlaza = cmbPlaza.getSelectedItem();
|
|
||||||
|
|
||||||
if (cbiEstado != null) {
|
|
||||||
Estado estado = (Estado) cbiEstado.getValue();
|
|
||||||
ciudadBusqueda.addFilterEqual("estado", estado);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cbiPlaza != null) {
|
|
||||||
Plaza plaza = (Plaza) cbiPlaza.getValue();
|
|
||||||
ciudadBusqueda.addFilterEqual("plaza", plaza);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (txtZonaHoraria.getValue() != null) {
|
|
||||||
ciudadBusqueda.addFilterEqual("zonaHoraria", txtZonaHoraria.getValue());
|
|
||||||
}
|
|
||||||
|
|
||||||
ciudadBusqueda.addSortAsc("nombciudad");
|
|
||||||
|
|
||||||
plwCiudad.init(ciudadBusqueda, ciudadList, pagingCiudad);
|
|
||||||
|
|
||||||
if (ciudadList.getData().length == 0) {
|
|
||||||
try {
|
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
|
||||||
Labels.getLabel("busquedaCiudadController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
} catch (InterruptedException ex) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,25 +4,10 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Nodo;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
|
||||||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.MonedaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.NodoService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
|
||||||
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.RenderPuntoVenta;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
@ -37,6 +22,21 @@ import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.Radio;
|
import org.zkoss.zul.Radio;
|
||||||
import org.zkoss.zul.Textbox;
|
import org.zkoss.zul.Textbox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Moneda;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Nodo;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MonedaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.NodoService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
|
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.RenderPuntoVenta;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Rafius
|
* @author Rafius
|
||||||
|
@ -45,278 +45,279 @@ import org.zkoss.zul.Textbox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
@Autowired
|
||||||
@Autowired
|
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||||
private EmpresaService empresaService;
|
@Autowired
|
||||||
@Autowired
|
private EmpresaService empresaService;
|
||||||
private TipoPuntoVentaService tipoPuntoVentaService;
|
@Autowired
|
||||||
@Autowired
|
private TipoPuntoVentaService tipoPuntoVentaService;
|
||||||
private MonedaService monedaService;
|
@Autowired
|
||||||
@Autowired
|
private MonedaService monedaService;
|
||||||
private NodoService nodoService;
|
@Autowired
|
||||||
private MyListbox puntoVentaList;
|
private NodoService nodoService;
|
||||||
private Paging pagingPuntoVenta;
|
private MyListbox puntoVentaList;
|
||||||
private Textbox txtNombre;
|
private Paging pagingPuntoVenta;
|
||||||
private Textbox txtCalle;
|
private Textbox txtNombre;
|
||||||
private Textbox txtNumero;
|
private Textbox txtCalle;
|
||||||
private Textbox txtColonia;
|
private Textbox txtNumero;
|
||||||
private Textbox txtTelefonoUno;
|
private Textbox txtColonia;
|
||||||
private Textbox txtTelefonoDos;
|
private Textbox txtTelefonoUno;
|
||||||
private List<Empresa> lsEmpresas;
|
private Textbox txtTelefonoDos;
|
||||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
private List<Empresa> lsEmpresas;
|
||||||
private List<Moneda> lsMoneda;
|
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||||
private List<Nodo> lsNodos;
|
private List<Moneda> lsMoneda;
|
||||||
private Combobox cmbEmpresa;
|
private List<Nodo> lsNodos;
|
||||||
private Combobox cmbTipoPontoVenta;
|
private Combobox cmbEmpresa;
|
||||||
private Combobox cmbMoneda;
|
private Combobox cmbTipoPontoVenta;
|
||||||
private Combobox cmbNodo;
|
private Combobox cmbMoneda;
|
||||||
private Radio radAprobacionAutorizado;
|
private Combobox cmbNodo;
|
||||||
private Radio radAprobacionLatente;
|
private Radio radAprobacionAutorizado;
|
||||||
|
private Radio radAprobacionLatente;
|
||||||
|
|
||||||
public Radio getRadAprobacionAutorizado() {
|
public Radio getRadAprobacionAutorizado() {
|
||||||
return radAprobacionAutorizado;
|
return radAprobacionAutorizado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRadAprobacionAutorizado(Radio radAprobacionAutorizado) {
|
public void setRadAprobacionAutorizado(Radio radAprobacionAutorizado) {
|
||||||
this.radAprobacionAutorizado = radAprobacionAutorizado;
|
this.radAprobacionAutorizado = radAprobacionAutorizado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Radio getRadAprobacionLatente() {
|
public Radio getRadAprobacionLatente() {
|
||||||
return radAprobacionLatente;
|
return radAprobacionLatente;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRadAprobacionLatente(Radio radAprobacionLatente) {
|
public void setRadAprobacionLatente(Radio radAprobacionLatente) {
|
||||||
this.radAprobacionLatente = radAprobacionLatente;
|
this.radAprobacionLatente = radAprobacionLatente;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbEmpresa() {
|
public Combobox getCmbEmpresa() {
|
||||||
return cmbEmpresa;
|
return cmbEmpresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
public void setCmbEmpresa(Combobox cmbEmpresa) {
|
||||||
this.cmbEmpresa = cmbEmpresa;
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbMoneda() {
|
public Combobox getCmbMoneda() {
|
||||||
return cmbMoneda;
|
return cmbMoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbMoneda(Combobox cmbMoneda) {
|
public void setCmbMoneda(Combobox cmbMoneda) {
|
||||||
this.cmbMoneda = cmbMoneda;
|
this.cmbMoneda = cmbMoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbNodo() {
|
public Combobox getCmbNodo() {
|
||||||
return cmbNodo;
|
return cmbNodo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbNodo(Combobox cmbNodo) {
|
public void setCmbNodo(Combobox cmbNodo) {
|
||||||
this.cmbNodo = cmbNodo;
|
this.cmbNodo = cmbNodo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbTipoPontoVenta() {
|
public Combobox getCmbTipoPontoVenta() {
|
||||||
return cmbTipoPontoVenta;
|
return cmbTipoPontoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbTipoPontoVenta(Combobox cmbTipoPontoVenta) {
|
public void setCmbTipoPontoVenta(Combobox cmbTipoPontoVenta) {
|
||||||
this.cmbTipoPontoVenta = cmbTipoPontoVenta;
|
this.cmbTipoPontoVenta = cmbTipoPontoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Textbox getTxtNombre() {
|
public Textbox getTxtNombre() {
|
||||||
return txtNombre;
|
return txtNombre;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTxtNombre(Textbox txtNombre) {
|
public void setTxtNombre(Textbox txtNombre) {
|
||||||
this.txtNombre = txtNombre;
|
this.txtNombre = txtNombre;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Paging getPagingPuntoVenta() {
|
public Paging getPagingPuntoVenta() {
|
||||||
return pagingPuntoVenta;
|
return pagingPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPagingPuntoVenta(Paging pagingPuntoVenta) {
|
public void setPagingPuntoVenta(Paging pagingPuntoVenta) {
|
||||||
this.pagingPuntoVenta = pagingPuntoVenta;
|
this.pagingPuntoVenta = pagingPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MyListbox getPuntoVentaList() {
|
public MyListbox getPuntoVentaList() {
|
||||||
return puntoVentaList;
|
return puntoVentaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPuntoVentaList(MyListbox puntoVentaList) {
|
public void setPuntoVentaList(MyListbox puntoVentaList) {
|
||||||
this.puntoVentaList = puntoVentaList;
|
this.puntoVentaList = puntoVentaList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PagedListWrapper<PuntoVenta> getPlwPuntoVenta() {
|
public PagedListWrapper<PuntoVenta> getPlwPuntoVenta() {
|
||||||
return plwPuntoVenta;
|
return plwPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPlwPuntoVenta(PagedListWrapper<PuntoVenta> plwPuntoVenta) {
|
public void setPlwPuntoVenta(PagedListWrapper<PuntoVenta> plwPuntoVenta) {
|
||||||
this.plwPuntoVenta = plwPuntoVenta;
|
this.plwPuntoVenta = plwPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
public void onClick$btnRefresh(Event ev) {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
public void onClick$btnNovo(Event ev) {
|
||||||
verPeriodo(new PuntoVenta());
|
verPeriodo(new PuntoVenta());
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Empresa> getLsEmpresas() {
|
public List<Empresa> getLsEmpresas() {
|
||||||
return lsEmpresas;
|
return lsEmpresas;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
this.lsEmpresas = lsEmpresas;
|
this.lsEmpresas = lsEmpresas;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Moneda> getLsMoneda() {
|
public List<Moneda> getLsMoneda() {
|
||||||
return lsMoneda;
|
return lsMoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsMoneda(List<Moneda> lsMoneda) {
|
public void setLsMoneda(List<Moneda> lsMoneda) {
|
||||||
this.lsMoneda = lsMoneda;
|
this.lsMoneda = lsMoneda;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Nodo> getLsNodos() {
|
public List<Nodo> getLsNodos() {
|
||||||
return lsNodos;
|
return lsNodos;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsNodos(List<Nodo> lsNodos) {
|
public void setLsNodos(List<Nodo> lsNodos) {
|
||||||
this.lsNodos = lsNodos;
|
this.lsNodos = lsNodos;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
|
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
|
||||||
return lsTipoPuntoVenta;
|
return lsTipoPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsTipoPuntoVenta(List<TipoPuntoVenta> lsTipoPuntoVenta) {
|
public void setLsTipoPuntoVenta(List<TipoPuntoVenta> lsTipoPuntoVenta) {
|
||||||
this.lsTipoPuntoVenta = lsTipoPuntoVenta;
|
this.lsTipoPuntoVenta = lsTipoPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
lsEmpresas = empresaService.obtenerIndTipo1();
|
lsEmpresas = empresaService.obtenerIndTipo1();
|
||||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
||||||
lsMoneda = monedaService.obtenerTodos();
|
lsMoneda = monedaService.obtenerTodos();
|
||||||
lsNodos = nodoService.obtenerTodos();
|
lsNodos = nodoService.obtenerTodos();
|
||||||
|
|
||||||
puntoVentaList.setItemRenderer(new RenderPuntoVenta());
|
puntoVentaList.setItemRenderer(new RenderPuntoVenta());
|
||||||
puntoVentaList.addEventListener("onDoubleClick", new EventListener() {
|
puntoVentaList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
PuntoVenta c = (PuntoVenta) puntoVentaList.getSelected();
|
PuntoVenta c = (PuntoVenta) puntoVentaList.getSelected();
|
||||||
verPeriodo(c);
|
verPeriodo(c);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
refreshLista();
|
refreshLista();
|
||||||
txtNombre.focus();
|
txtNombre.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void verPeriodo(PuntoVenta c) {
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
if (c == null) {
|
private void verPeriodo(PuntoVenta c) {
|
||||||
return;
|
if (c == null) {
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("puntoVenta", c);
|
args.put("puntoVenta", c);
|
||||||
args.put("puntoVentaList", puntoVentaList);
|
args.put("puntoVentaList", puntoVentaList);
|
||||||
|
|
||||||
openWindow("/gui/catalogos/editarPuntoVenta.zul",
|
openWindow("/gui/catalogos/editarPuntoVenta.zul",
|
||||||
Labels.getLabel("editarPuntoVentaController.window.title"), args, MODAL);
|
Labels.getLabel("editarPuntoVentaController.window.title"), args, MODAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
private void refreshLista() {
|
||||||
HibernateSearchObject<PuntoVenta> claseServicioBusqueda =
|
HibernateSearchObject<PuntoVenta> claseServicioBusqueda =
|
||||||
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
|
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
|
||||||
pagingPuntoVenta.getPageSize());
|
pagingPuntoVenta.getPageSize());
|
||||||
|
|
||||||
claseServicioBusqueda.addFilterLike("nombpuntoventa",
|
claseServicioBusqueda.addFilterLike("nombpuntoventa",
|
||||||
"%" + txtNombre.getText().trim().concat("%"));
|
"%" + txtNombre.getText().trim().concat("%"));
|
||||||
|
|
||||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||||
Comboitem itemTipoPontoVenta = cmbTipoPontoVenta.getSelectedItem();
|
Comboitem itemTipoPontoVenta = cmbTipoPontoVenta.getSelectedItem();
|
||||||
Comboitem itemMoneda = cmbMoneda.getSelectedItem();
|
Comboitem itemMoneda = cmbMoneda.getSelectedItem();
|
||||||
Comboitem itemNodo = cmbNodo.getSelectedItem();
|
Comboitem itemNodo = cmbNodo.getSelectedItem();
|
||||||
|
|
||||||
Empresa empresa;
|
Empresa empresa;
|
||||||
TipoPuntoVenta tipoPontoVenta;
|
TipoPuntoVenta tipoPontoVenta;
|
||||||
Moneda moneda;
|
Moneda moneda;
|
||||||
Nodo nodo;
|
Nodo nodo;
|
||||||
Ciudad ciudad;
|
String statusAprobacion = null;
|
||||||
String statusAprobacion = null;
|
|
||||||
|
|
||||||
if (radAprobacionAutorizado.isChecked()) {
|
if (radAprobacionAutorizado.isChecked()) {
|
||||||
statusAprobacion = "A";
|
statusAprobacion = "A";
|
||||||
} else if (radAprobacionLatente.isChecked()) {
|
} else if (radAprobacionLatente.isChecked()) {
|
||||||
statusAprobacion = "L";
|
statusAprobacion = "L";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusAprobacion != null) {
|
if (statusAprobacion != null) {
|
||||||
claseServicioBusqueda.addFilterEqual("statusaprobacion", statusAprobacion);
|
claseServicioBusqueda.addFilterEqual("statusaprobacion", statusAprobacion);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemEmpresa != null) {
|
if (itemEmpresa != null) {
|
||||||
empresa = (Empresa) itemEmpresa.getValue();
|
empresa = (Empresa) itemEmpresa.getValue();
|
||||||
claseServicioBusqueda.addFilterEqual("empresa", empresa);
|
claseServicioBusqueda.addFilterEqual("empresa", empresa);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemTipoPontoVenta != null) {
|
if (itemTipoPontoVenta != null) {
|
||||||
tipoPontoVenta = (TipoPuntoVenta) itemTipoPontoVenta.getValue();
|
tipoPontoVenta = (TipoPuntoVenta) itemTipoPontoVenta.getValue();
|
||||||
claseServicioBusqueda.addFilterEqual("tipoPuntoVenta", tipoPontoVenta);
|
claseServicioBusqueda.addFilterEqual("tipoPuntoVenta", tipoPontoVenta);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemMoneda != null) {
|
if (itemMoneda != null) {
|
||||||
moneda = (Moneda) itemMoneda.getValue();
|
moneda = (Moneda) itemMoneda.getValue();
|
||||||
claseServicioBusqueda.addFilterEqual("moneda", moneda);
|
claseServicioBusqueda.addFilterEqual("moneda", moneda);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (itemNodo != null) {
|
if (itemNodo != null) {
|
||||||
nodo = (Nodo) itemNodo.getValue();
|
nodo = (Nodo) itemNodo.getValue();
|
||||||
claseServicioBusqueda.addFilterEqual("nodo", nodo);
|
claseServicioBusqueda.addFilterEqual("nodo", nodo);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!txtCalle.getText().isEmpty()) {
|
if (!txtCalle.getText().isEmpty()) {
|
||||||
claseServicioBusqueda.addFilterLike("direccioncalle", txtCalle.getText());
|
claseServicioBusqueda.addFilterLike("direccioncalle", txtCalle.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!txtNumero.getText().isEmpty()) {
|
if (!txtNumero.getText().isEmpty()) {
|
||||||
claseServicioBusqueda.addFilterLike("direccionnumero", txtNumero.getText());
|
claseServicioBusqueda.addFilterLike("direccionnumero", txtNumero.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!txtColonia.getText().isEmpty()) {
|
if (!txtColonia.getText().isEmpty()) {
|
||||||
claseServicioBusqueda.addFilterLike("direccioncolonia", txtColonia.getText());
|
claseServicioBusqueda.addFilterLike("direccioncolonia", txtColonia.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!txtTelefonoUno.getText().isEmpty()) {
|
if (!txtTelefonoUno.getText().isEmpty()) {
|
||||||
claseServicioBusqueda.addFilterLike("numtelefonouno", txtTelefonoUno.getText());
|
claseServicioBusqueda.addFilterLike("numtelefonouno", txtTelefonoUno.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!txtTelefonoDos.getText().isEmpty()) {
|
if (!txtTelefonoDos.getText().isEmpty()) {
|
||||||
claseServicioBusqueda.addFilterLike("numtelefonodos", txtTelefonoDos.getText());
|
claseServicioBusqueda.addFilterLike("numtelefonodos", txtTelefonoDos.getText());
|
||||||
}
|
}
|
||||||
|
|
||||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
claseServicioBusqueda.addSortAsc("nombpuntoventa");
|
claseServicioBusqueda.addSortAsc("nombpuntoventa");
|
||||||
claseServicioBusqueda.addFilterNotEqual("puntoventaId", -1);
|
claseServicioBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||||
|
|
||||||
plwPuntoVenta.init(claseServicioBusqueda, puntoVentaList, pagingPuntoVenta);
|
plwPuntoVenta.init(claseServicioBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||||
|
|
||||||
if (puntoVentaList.getData().length == 0) {
|
if (puntoVentaList.getData().length == 0) {
|
||||||
try {
|
try {
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
Labels.getLabel("busquedaPuntoVentaController.window.title"),
|
Labels.getLabel("busquedaPuntoVentaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,19 +4,9 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Plaza;
|
|
||||||
import com.rjconsultores.ventaboletos.service.CiudadService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.PlazaService;
|
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
|
||||||
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
|
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
|
@ -30,6 +20,16 @@ import org.zkoss.zul.Button;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Row;
|
import org.zkoss.zul.Row;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Ciudad;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||||
|
import com.rjconsultores.ventaboletos.service.CiudadService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||||
|
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.MyTextbox;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author MCosso
|
* @author MCosso
|
||||||
|
@ -38,193 +38,133 @@ import org.zkoss.zul.Row;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class EditarCiudadController extends MyGenericForwardComposer {
|
public class EditarCiudadController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private CiudadService ciudadService;
|
@Autowired
|
||||||
@Autowired
|
private CiudadService ciudadService;
|
||||||
private EstadoService estadoService;
|
@Autowired
|
||||||
@Autowired
|
private EstadoService estadoService;
|
||||||
private PlazaService plazaService;
|
private List<Estado> lsEstado;
|
||||||
private List<Estado> lsEstado;
|
private Ciudad ciudad;
|
||||||
private List<Plaza> lsPlaza;
|
private MyListbox ciudadList;
|
||||||
private Ciudad ciudad;
|
private static Logger log = Logger.getLogger(EditarCiudadController.class);
|
||||||
private MyListbox ciudadList;
|
private MyTextbox txtNome;
|
||||||
private static Logger log = Logger.getLogger(EditarCiudadController.class);
|
private Combobox cmbEstado;
|
||||||
private MyTextbox txtNome;
|
private Button btnApagar;
|
||||||
private Combobox cmbEstado;
|
private Row rowEquivalencia;
|
||||||
private Combobox cmbPlaza;
|
|
||||||
private Button btnApagar;
|
|
||||||
private Row rowEquivalencia;
|
|
||||||
|
|
||||||
public Ciudad getCiudad() {
|
public Ciudad getCiudad() {
|
||||||
return ciudad;
|
return ciudad;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCiudad(Ciudad ciudad) {
|
public void setCiudad(Ciudad ciudad) {
|
||||||
this.ciudad = ciudad;
|
this.ciudad = ciudad;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Button getBtnApagar() {
|
public List<Estado> getLsEstado() {
|
||||||
return btnApagar;
|
return lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBtnApagar(Button btnApagar) {
|
public void setLsEstado(List<Estado> lsEstado) {
|
||||||
this.btnApagar = btnApagar;
|
this.lsEstado = lsEstado;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MyListbox getCiudadList() {
|
@Override
|
||||||
return ciudadList;
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
}
|
lsEstado = estadoService.obtenerTodos();
|
||||||
|
|
||||||
public void setCiudadList(MyListbox ciudadList) {
|
super.doAfterCompose(comp);
|
||||||
this.ciudadList = ciudadList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Estado> getLsEstado() {
|
ciudad = (Ciudad) Executions.getCurrent().getArg().get("ciudad");
|
||||||
return lsEstado;
|
ciudadList = (MyListbox) Executions.getCurrent().getArg().get("ciudadList");
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsEstado(List<Estado> lsEstado) {
|
if (ciudad.getCiudadId() == null) {
|
||||||
this.lsEstado = lsEstado;
|
btnApagar.setVisible(Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Plaza> getLsPlaza() {
|
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||||
return lsPlaza;
|
rowEquivalencia.setVisible(Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLsPlaza(List<Plaza> lsPlaza) {
|
txtNome.focus();
|
||||||
this.lsPlaza = lsPlaza;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public MyTextbox getTxtNome() {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
return txtNome;
|
txtNome.getValue();
|
||||||
}
|
cmbEstado.getValue();
|
||||||
|
cmbEstado.getValue();
|
||||||
|
|
||||||
public void setTxtNome(MyTextbox txtNome) {
|
try {
|
||||||
this.txtNome = txtNome;
|
ciudad.setActivo(Boolean.TRUE);
|
||||||
}
|
ciudad.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
ciudad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
|
|
||||||
public Combobox getCmbEstado() {
|
List<Ciudad> lsCiudad = ciudadService.buscar(ciudad.getNombciudad(),
|
||||||
return cmbEstado;
|
ciudad.getEstado(), ciudad.getPlaza());
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbEstado(Combobox cmbEstado) {
|
boolean podeSalvar = false;
|
||||||
this.cmbEstado = cmbEstado;
|
if (lsCiudad.isEmpty()) {
|
||||||
}
|
podeSalvar = true;
|
||||||
|
} else {
|
||||||
|
if (ciudad.getCiudadId() != null) {
|
||||||
|
for (Ciudad c : lsCiudad) {
|
||||||
|
if (c.getCiudadId().equals(ciudad.getCiudadId())) {
|
||||||
|
podeSalvar = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (podeSalvar) {
|
||||||
|
if (ciudad.getCiudadId() == null) {
|
||||||
|
ciudadService.suscribir(ciudad);
|
||||||
|
ciudadList.addItem(ciudad);
|
||||||
|
} else {
|
||||||
|
ciudadService.actualizacion(ciudad);
|
||||||
|
ciudadList.updateItem(ciudad);
|
||||||
|
}
|
||||||
|
|
||||||
public Combobox getCmbPlaza() {
|
Messagebox.show(
|
||||||
return cmbPlaza;
|
Labels.getLabel("editarCiudadController.MSG.suscribirOK"),
|
||||||
}
|
Labels.getLabel("editarCiudadController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
public void setCmbPlaza(Combobox cmbPlaza) {
|
closeWindow();
|
||||||
this.cmbPlaza = cmbPlaza;
|
} else {
|
||||||
}
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Registro.Existe"),
|
||||||
|
Labels.getLabel("editarCiudadController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
|
}
|
||||||
|
} catch (Exception ex) {
|
||||||
|
log.error("editarCiudadController: " + ex);
|
||||||
|
Messagebox.show(
|
||||||
|
Labels.getLabel("MSG.Error"),
|
||||||
|
Labels.getLabel("editarCiudadController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public Row getRowEquivalencia() {
|
public void onClick$btnApagar(Event ev) {
|
||||||
return rowEquivalencia;
|
try {
|
||||||
}
|
int resp = Messagebox.show(
|
||||||
|
Labels.getLabel("editarCiudadController.MSG.borrarPergunta"),
|
||||||
|
Labels.getLabel("editarCiudadController.window.title"),
|
||||||
|
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||||
|
|
||||||
public void setRowEquivalencia(Row rowEquivalencia) {
|
if (resp == Messagebox.YES) {
|
||||||
this.rowEquivalencia = rowEquivalencia;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
ciudadService.borrar(ciudad);
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
|
||||||
lsEstado = estadoService.obtenerTodos();
|
|
||||||
lsPlaza = plazaService.obtenerTodos();
|
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
Messagebox.show(
|
||||||
|
Labels.getLabel("editarCiudadController.MSG.borrarOK"),
|
||||||
|
Labels.getLabel("editarCiudadController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
ciudad = (Ciudad) Executions.getCurrent().getArg().get("ciudad");
|
ciudadList.removeItem(ciudad);
|
||||||
ciudadList = (MyListbox) Executions.getCurrent().getArg().get("ciudadList");
|
|
||||||
|
|
||||||
if (ciudad.getCiudadId() == null) {
|
closeWindow();
|
||||||
btnApagar.setVisible(Boolean.FALSE);
|
}
|
||||||
}
|
} catch (Exception ex) {
|
||||||
|
log.error(ex);
|
||||||
if (!ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
}
|
||||||
rowEquivalencia.setVisible(Boolean.FALSE);
|
}
|
||||||
}
|
|
||||||
|
|
||||||
txtNome.focus();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
|
||||||
txtNome.getValue();
|
|
||||||
cmbEstado.getValue();
|
|
||||||
cmbEstado.getValue();
|
|
||||||
|
|
||||||
try {
|
|
||||||
ciudad.setActivo(Boolean.TRUE);
|
|
||||||
ciudad.setFecmodif(Calendar.getInstance().getTime());
|
|
||||||
ciudad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
|
||||||
|
|
||||||
List<Ciudad> lsCiudad = ciudadService.buscar(ciudad.getNombciudad(),
|
|
||||||
ciudad.getEstado(), ciudad.getPlaza());
|
|
||||||
|
|
||||||
boolean podeSalvar = false;
|
|
||||||
if (lsCiudad.isEmpty()) {
|
|
||||||
podeSalvar = true;
|
|
||||||
} else {
|
|
||||||
if (ciudad.getCiudadId() != null) {
|
|
||||||
for (Ciudad c : lsCiudad) {
|
|
||||||
if (c.getCiudadId().equals(ciudad.getCiudadId())) {
|
|
||||||
podeSalvar = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (podeSalvar) {
|
|
||||||
if (ciudad.getCiudadId() == null) {
|
|
||||||
ciudadService.suscribir(ciudad);
|
|
||||||
ciudadList.addItem(ciudad);
|
|
||||||
} else {
|
|
||||||
ciudadService.actualizacion(ciudad);
|
|
||||||
ciudadList.updateItem(ciudad);
|
|
||||||
}
|
|
||||||
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("editarCiudadController.MSG.suscribirOK"),
|
|
||||||
Labels.getLabel("editarCiudadController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
} else {
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("MSG.Registro.Existe"),
|
|
||||||
Labels.getLabel("editarCiudadController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
|
||||||
}
|
|
||||||
} catch (Exception ex) {
|
|
||||||
log.error("editarCiudadController: " + ex);
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("MSG.Error"),
|
|
||||||
Labels.getLabel("editarCiudadController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnApagar(Event ev) {
|
|
||||||
try {
|
|
||||||
int resp = Messagebox.show(
|
|
||||||
Labels.getLabel("editarCiudadController.MSG.borrarPergunta"),
|
|
||||||
Labels.getLabel("editarCiudadController.window.title"),
|
|
||||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
|
||||||
|
|
||||||
if (resp == Messagebox.YES) {
|
|
||||||
|
|
||||||
ciudadService.borrar(ciudad);
|
|
||||||
|
|
||||||
Messagebox.show(
|
|
||||||
Labels.getLabel("editarCiudadController.MSG.borrarOK"),
|
|
||||||
Labels.getLabel("editarCiudadController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
|
|
||||||
ciudadList.removeItem(ciudad);
|
|
||||||
|
|
||||||
closeWindow();
|
|
||||||
}
|
|
||||||
} catch (Exception ex) {
|
|
||||||
log.error(ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,35 +16,32 @@ import org.zkoss.zul.ListitemRenderer;
|
||||||
*/
|
*/
|
||||||
public class RenderCiudad implements ListitemRenderer {
|
public class RenderCiudad implements ListitemRenderer {
|
||||||
|
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
Ciudad ciudad = (Ciudad) o;
|
Ciudad ciudad = (Ciudad) o;
|
||||||
|
|
||||||
Listcell lc = new Listcell();
|
Listcell lc = new Listcell();
|
||||||
|
|
||||||
lc = new Listcell(ciudad.getCiudadId().toString() == null ? "-" : ciudad.getCiudadId().toString());
|
lc = new Listcell(ciudad.getCiudadId().toString() == null ? "-" : ciudad.getCiudadId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(ciudad.getNombciudad() == null ? "-" : ciudad.getNombciudad());
|
lc = new Listcell(ciudad.getNombciudad() == null ? "-" : ciudad.getNombciudad());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(ciudad.getEstado() == null ? "-" : ciudad.getEstado().getNombestado());
|
lc = new Listcell(ciudad.getEstado() == null ? "-" : ciudad.getEstado().getNombestado());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(ciudad.getPlaza() == null ? "-" : ciudad.getPlaza().getNombplaza());
|
if (ciudad.getZonaHoraria() != null) {
|
||||||
lc.setParent(lstm);
|
lc = new Listcell(ciudad.getZonaHoraria().toString());
|
||||||
|
} else {
|
||||||
|
lc = new Listcell("");
|
||||||
|
}
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
if (ciudad.getZonaHoraria() != null) {
|
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
||||||
lc = new Listcell(ciudad.getZonaHoraria().toString());
|
lc = new Listcell(ciudad.getEquivalenciaId() == null ? "-" : ciudad.getEquivalenciaId());
|
||||||
} else {
|
lc.setParent(lstm);
|
||||||
lc = new Listcell("");
|
}
|
||||||
}
|
|
||||||
lc.setParent(lstm);
|
|
||||||
|
|
||||||
if (ApplicationProperties.getInstance().mostrarEquivalencia()) {
|
lstm.setAttribute("data", ciudad);
|
||||||
lc = new Listcell(ciudad.getEquivalenciaId() == null ? "-" : ciudad.getEquivalenciaId());
|
}
|
||||||
lc.setParent(lstm);
|
|
||||||
}
|
|
||||||
|
|
||||||
lstm.setAttribute("data", ciudad);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -282,6 +282,7 @@
|
||||||
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
||||||
<property name="sessionFactory" ref="sessionFactory" />
|
<property name="sessionFactory" ref="sessionFactory" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="contextApplicationContextProvider"
|
<bean id="contextApplicationContextProvider"
|
||||||
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
||||||
</bean>
|
</bean>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# <controler>. <id>. <propiedade> = XXX
|
# <controler>. <id>. <propiedade> = XXX
|
||||||
|
|
||||||
#Versao do VentaBoleto:
|
#Versao do VentaBoleto:
|
||||||
versao = ADM_20120820_1RC48
|
versao = ADM_20120820_1RC49
|
||||||
|
|
||||||
# MSG Defaut:
|
# MSG Defaut:
|
||||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||||
|
@ -88,9 +88,9 @@ indexController.mniPeriodoVacacional.label = Período de Férias
|
||||||
indexController.mniMotivoCancelacion.label = Motivo do Cancelamento
|
indexController.mniMotivoCancelacion.label = Motivo do Cancelamento
|
||||||
indexController.mniMotivoReimpresion.label = Motivo da Reimpressão
|
indexController.mniMotivoReimpresion.label = Motivo da Reimpressão
|
||||||
indexController.mniCategoria.label = Tipo de Passageiro
|
indexController.mniCategoria.label = Tipo de Passageiro
|
||||||
indexController.mniPuntoVenta.label = Ponto de Venda
|
indexController.mniPuntoVenta.label = Ponto de Venda (Agências)
|
||||||
indexController.mniEmpresa.label = Empresa
|
indexController.mniEmpresa.label = Empresa
|
||||||
indexController.mniTipoServicio.label = Tipo de Classe
|
indexController.mniTipoServicio.label = Tipo de Viagem
|
||||||
indexController.mniTipoVenta.label = Tipo de Venda
|
indexController.mniTipoVenta.label = Tipo de Venda
|
||||||
indexController.mniDiagramaAutoBus.label = Tipos de Carro
|
indexController.mniDiagramaAutoBus.label = Tipos de Carro
|
||||||
indexController.mniAsociacionClaseServicioMarca.label = Associação Tipo de Classe e Marca
|
indexController.mniAsociacionClaseServicioMarca.label = Associação Tipo de Classe e Marca
|
||||||
|
@ -153,7 +153,7 @@ indexController.mniTurno.label = Turno
|
||||||
indexController.mniTipoMovimiento.label = Tipo Movimento
|
indexController.mniTipoMovimiento.label = Tipo Movimento
|
||||||
indexController.mniTipoOcupacion.label = Tipo Ocupação
|
indexController.mniTipoOcupacion.label = Tipo Ocupação
|
||||||
indexController.mniTipoDomicilio.label = Tipo Domicilio
|
indexController.mniTipoDomicilio.label = Tipo Domicilio
|
||||||
indexController.mniTipoCambioCiudad.label = Tipo Câmbio Cidade
|
indexController.mniTipoCambioCiudad.label = Tipo Paridade
|
||||||
indexController.mniEstado.label = Estado
|
indexController.mniEstado.label = Estado
|
||||||
indexController.mnEquivalencia.label = Equivalencia
|
indexController.mnEquivalencia.label = Equivalencia
|
||||||
indexController.mniParadaEquivalencia.label = Equivalencia Localidade
|
indexController.mniParadaEquivalencia.label = Equivalencia Localidade
|
||||||
|
@ -514,6 +514,7 @@ editarPuntoVentaController.tab.label.endereco = Dirección
|
||||||
editarPuntoVentaController.tab.label.recoleccion = Sangria
|
editarPuntoVentaController.tab.label.recoleccion = Sangria
|
||||||
editarPuntoVentaController.tab.label.empVenta = Empresas para Venda
|
editarPuntoVentaController.tab.label.empVenta = Empresas para Venda
|
||||||
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
editarPuntoVentaController.tab.label.usuBancario = Usuarios bancários
|
||||||
|
editarPuntoVentaController.lbCP.value = Cod. Postal
|
||||||
|
|
||||||
# Muestra o TipoVenta Pesquisa
|
# Muestra o TipoVenta Pesquisa
|
||||||
busquedaTipoVentaController.window.title = Tipo de Venda
|
busquedaTipoVentaController.window.title = Tipo de Venda
|
||||||
|
|
|
@ -5,82 +5,84 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winBusquedaCiudad" title="${c:l('busquedaCiudadController.window.title')}"
|
<window id="winBusquedaCiudad"
|
||||||
apply="${busquedaCiudadController}" contentStyle="overflow:auto"
|
title="${c:l('busquedaCiudadController.window.title')}"
|
||||||
height="500px" width="650px" border="normal" >
|
apply="${busquedaCiudadController}" contentStyle="overflow:auto"
|
||||||
<toolbar>
|
height="500px" width="650px" border="normal">
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
<toolbar>
|
||||||
tooltiptext="${c:l('busquedaCiudadController.btnRefresh.tooltiptext')}" />
|
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||||
<separator orient="vertical" />
|
width="35px"
|
||||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
tooltiptext="${c:l('busquedaCiudadController.btnRefresh.tooltiptext')}" />
|
||||||
tooltiptext="${c:l('busquedaCiudadController.btnNovo.tooltiptext')}" />
|
<separator orient="vertical" />
|
||||||
<separator orient="vertical" />
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
<button id="btnCerrar" onClick="winBusquedaCiudad.detach()" image="/gui/img/exit.png" width="35px"
|
tooltiptext="${c:l('busquedaCiudadController.btnNovo.tooltiptext')}" />
|
||||||
tooltiptext="${c:l('busquedaCiudadController.btnCerrar.tooltiptext')}"/>
|
<separator orient="vertical" />
|
||||||
</toolbar>
|
<button id="btnCerrar" onClick="winBusquedaCiudad.detach()"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaCiudadController.btnCerrar.tooltiptext')}" />
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="20%" />
|
<column width="20%" />
|
||||||
<column width="80%" />
|
<column width="80%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('busquedaCiudadController.txtNome.label')}"/>
|
<label
|
||||||
<textbox id="txtNombre" width="300px" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
value="${c:l('busquedaCiudadController.txtNome.label')}" />
|
||||||
</row>
|
<textbox id="txtNombre" width="300px"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<label value="${c:l('busquedaCiudadController.estado.label')}"/>
|
</row>
|
||||||
<combobox id="cmbEstado" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<row>
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<label
|
||||||
model="@{winBusquedaCiudad$composer.lsEstado}"/>
|
value="${c:l('busquedaCiudadController.estado.label')}" />
|
||||||
</row>
|
<combobox id="cmbEstado"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<label value="${c:l('busquedaCiudadController.plaza.label')}"/>
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
<combobox id="cmbPlaza" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
model="@{winBusquedaCiudad$composer.lsEstado}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
</row>
|
||||||
model="@{winBusquedaCiudad$composer.lsPlaza}"/>
|
<row>
|
||||||
</row>
|
<label
|
||||||
<row>
|
value="${c:l('busquedaCiudadController.zonahorario.label')}" />
|
||||||
<label value="${c:l('busquedaCiudadController.zonahorario.label')}"/>
|
<intbox id="txtZonaHoraria" width="100px"
|
||||||
<intbox id="txtZonaHoraria" width="100px" maxlength="3"/>
|
maxlength="3" />
|
||||||
</row>
|
</row>
|
||||||
<row id="rowEquivalencia">
|
<row id="rowEquivalencia">
|
||||||
<label value="${c:l('lb.Equivalencia')}"/>
|
<label value="${c:l('lb.Equivalencia')}" />
|
||||||
<textbox id="txtEquivalencia" width="100px" maxlength="10"
|
<textbox id="txtEquivalencia" width="100px"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
maxlength="10"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</rows>
|
</row>
|
||||||
</grid>
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
label="${c:l('busquedaCiudadController.btnPesquisa.label')}"/>
|
label="${c:l('busquedaCiudadController.btnPesquisa.label')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<paging id="pagingCiudad" pageSize="15" />
|
<paging id="pagingCiudad" pageSize="15" />
|
||||||
<listbox id="ciudadList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="ciudadList"
|
||||||
vflex="true" multiple="false" height="70%">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
vflex="true" multiple="false" height="70%">
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('busquedaCiudadController.lhId.label')}" width="70px"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
sort="auto(ciudadId)"/>
|
label="${c:l('busquedaCiudadController.lhId.label')}" width="70px"
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
sort="auto(ciudadId)" />
|
||||||
label="${c:l('busquedaCiudadController.lhNome.label')}"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
sort="auto(nombciudad)"/>
|
label="${c:l('busquedaCiudadController.lhNome.label')}"
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
sort="auto(nombciudad)" />
|
||||||
label="${c:l('busquedaCiudadController.lhEstado.label')}"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
sort="auto(estado.nombestado)"/>
|
label="${c:l('busquedaCiudadController.lhEstado.label')}"
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
sort="auto(estado.nombestado)" />
|
||||||
label="${c:l('busquedaCiudadController.lhPlaza.label')}"
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
sort="auto(plaza.nombplaza)"/>
|
label="${c:l('busquedaCiudadController.zonahorario.label')}"
|
||||||
<listheader image="/gui/img/create_doc.gif"
|
sort="auto(zonaHoraria)" />
|
||||||
label="${c:l('busquedaCiudadController.zonahorario.label')}"
|
<listheader id="headerEquivalencia"
|
||||||
sort="auto(zonaHoraria)"/>
|
image="/gui/img/create_doc.gif" label="${c:l('lb.Equivalencia')}"
|
||||||
<listheader id="headerEquivalencia" image="/gui/img/create_doc.gif"
|
sort="auto(equivalenciaId)" />
|
||||||
label="${c:l('lb.Equivalencia')}"
|
</listhead>
|
||||||
sort="auto(equivalenciaId)"/>
|
</listbox>
|
||||||
</listhead>
|
</window>
|
||||||
</listbox>
|
|
||||||
</window>
|
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -5,69 +5,71 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarCiudad" border="normal"
|
<window id="winEditarCiudad" border="normal"
|
||||||
apply="${editarCiudadController}"
|
apply="${editarCiudadController}" width="400px" height="457x"
|
||||||
width="400px" height="457x" contentStyle="overflow:auto"
|
contentStyle="overflow:auto"
|
||||||
title="${c:l('editarCiudadController.window.title')}">
|
title="${c:l('editarCiudadController.window.title')}">
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnApagar" height="20"
|
<button id="btnApagar" height="20"
|
||||||
image="/gui/img/remove.png" width="35px"
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarCiudadController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarCiudadController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
image="/gui/img/save.png" width="35px"
|
image="/gui/img/save.png" width="35px"
|
||||||
tooltiptext="${c:l('editarCiudadController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarCiudadController.btnSalvar.tooltiptext')}" />
|
||||||
<button id="btnFechar" height="20"
|
<button id="btnFechar" height="20"
|
||||||
image="/gui/img/exit.png" width="35px"
|
image="/gui/img/exit.png" width="35px"
|
||||||
onClick="winEditarCiudad.detach()"
|
onClick="winEditarCiudad.detach()"
|
||||||
tooltiptext="${c:l('editarCiudadController.btnFechar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarCiudadController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="40%" />
|
<column width="40%" />
|
||||||
<column width="60%" />
|
<column width="60%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarCiudadController.lbNome.value')}"/>
|
<label
|
||||||
<textbox id="txtNome" constraint="no empty" width="80%" maxlength="30"
|
value="${c:l('editarCiudadController.lbNome.value')}" />
|
||||||
value="@{winEditarCiudad$composer.ciudad.nombciudad}"
|
<textbox id="txtNome" constraint="no empty"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
width="80%" maxlength="30"
|
||||||
</row>
|
value="@{winEditarCiudad$composer.ciudad.nombciudad}"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<label value="${c:l('editarCiudadController.lbCodMunicipio.value')}"/>
|
</row>
|
||||||
<intbox id="txtCodMunicipio" constraint="no empty" width="80%" maxlength="5"
|
<row>
|
||||||
value="@{winEditarCiudad$composer.ciudad.codmunicipio}"/>
|
<label
|
||||||
</row>
|
value="${c:l('editarCiudadController.lbCodMunicipio.value')}" />
|
||||||
<row>
|
<intbox id="txtCodMunicipio" constraint="no empty"
|
||||||
<label value="${c:l('busquedaCiudadController.estado.label')}"/>
|
width="80%" maxlength="5"
|
||||||
<combobox id="cmbEstado" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="@{winEditarCiudad$composer.ciudad.codmunicipio}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
</row>
|
||||||
model="@{winEditarCiudad$composer.lsEstado}"
|
<row>
|
||||||
selectedItem="@{winEditarCiudad$composer.ciudad.estado}"/>
|
<label
|
||||||
</row>
|
value="${c:l('busquedaCiudadController.estado.label')}" />
|
||||||
<row>
|
<combobox id="cmbEstado"
|
||||||
<label value="${c:l('busquedaCiudadController.plaza.label')}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<combobox id="cmbPlaza" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
width="70%" model="@{winEditarCiudad$composer.lsEstado}"
|
||||||
model="@{winEditarCiudad$composer.lsPlaza}"
|
selectedItem="@{winEditarCiudad$composer.ciudad.estado}" />
|
||||||
selectedItem="@{winEditarCiudad$composer.ciudad.plaza}"/>
|
</row>
|
||||||
</row>
|
<row>
|
||||||
<row>
|
<label
|
||||||
<label value="${c:l('busquedaCiudadController.zonahorario.label')}"/>
|
value="${c:l('busquedaCiudadController.zonahorario.label')}" />
|
||||||
<intbox id="txtZonaHorario" width="100px" maxlength="2"
|
<intbox id="txtZonaHorario" width="100px"
|
||||||
value="@{winEditarCiudad$composer.ciudad.zonaHoraria}"/>
|
maxlength="2"
|
||||||
</row>
|
value="@{winEditarCiudad$composer.ciudad.zonaHoraria}" />
|
||||||
<row id="rowEquivalencia">
|
</row>
|
||||||
<label value="${c:l('lb.Equivalencia')}"/>
|
<row id="rowEquivalencia">
|
||||||
<textbox id="txtEquivalencia" width="100px" maxlength="10"
|
<label value="${c:l('lb.Equivalencia')}" />
|
||||||
value="@{winEditarCiudad$composer.ciudad.equivalenciaId}"
|
<textbox id="txtEquivalencia" width="100px"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
maxlength="10"
|
||||||
</row>
|
value="@{winEditarCiudad$composer.ciudad.equivalenciaId}"
|
||||||
</rows>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</grid>
|
</row>
|
||||||
</window>
|
</rows>
|
||||||
|
</grid>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -5,372 +5,456 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winEditarPuntoVenta" border="normal"
|
<window id="winEditarPuntoVenta" border="normal"
|
||||||
apply="${editarPuntoVentaController}"
|
apply="${editarPuntoVentaController}" height="520px" width="640px"
|
||||||
height="520px" width="640px" contentStyle="overflow:auto"
|
contentStyle="overflow:auto"
|
||||||
title="${c:l('editarPuntoVentaController.window.title')}">
|
title="${c:l('editarPuntoVentaController.window.title')}">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px" align="right">
|
||||||
<button id="btnApagar" height="20"
|
<button id="btnApagar" height="20"
|
||||||
image="/gui/img/remove.png" width="35px"
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarPuntoVentaController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarPuntoVentaController.btnApagar.tooltiptext')}" />
|
||||||
<button id="btnSalvar" height="20"
|
<button id="btnSalvar" height="20"
|
||||||
image="/gui/img/save.png" width="35px"
|
image="/gui/img/save.png" width="35px"
|
||||||
tooltiptext="${c:l('editarPuntoVentaController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarPuntoVentaController.btnSalvar.tooltiptext')}" />
|
||||||
<button id="btnFechar" height="20"
|
<button id="btnFechar" height="20"
|
||||||
image="/gui/img/exit.png" width="35px"
|
image="/gui/img/exit.png" width="35px"
|
||||||
onClick="winEditarPuntoVenta.detach()"
|
onClick="winEditarPuntoVenta.detach()"
|
||||||
tooltiptext="${c:l('editarPuntoVentaController.btnFechar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarPuntoVentaController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<tabbox>
|
<tabbox>
|
||||||
<tabs width="200px">
|
<tabs width="200px">
|
||||||
<tab label="${c:l('editarPuntoVentaController.window.title')}"/>
|
<tab
|
||||||
<tab label="${c:l('editarPuntoVentaController.tab.label.endereco')}"/>
|
label="${c:l('editarPuntoVentaController.window.title')}" />
|
||||||
<tab label="${c:l('indexController.mniFormaPago.label')}"/>
|
<tab
|
||||||
<tab label="${c:l('editarPuntoVentaController.tab.label.recoleccion')}"/>
|
label="${c:l('editarPuntoVentaController.tab.label.endereco')}" />
|
||||||
<tab label="${c:l('editarPuntoVentaController.tab.label.empVenta')}"/>
|
<tab
|
||||||
<tab label="${c:l('editarPuntoVentaController.tab.label.usuBancario')}"/>
|
label="${c:l('indexController.mniFormaPago.label')}" />
|
||||||
</tabs>
|
<tab
|
||||||
|
label="${c:l('editarPuntoVentaController.tab.label.recoleccion')}" />
|
||||||
|
<tab
|
||||||
|
label="${c:l('editarPuntoVentaController.tab.label.empVenta')}" />
|
||||||
|
<tab visible="false"
|
||||||
|
label="${c:l('editarPuntoVentaController.tab.label.usuBancario')}" />
|
||||||
|
</tabs>
|
||||||
|
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
<tabpanel>
|
<tabpanel>
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="30%" />
|
<column width="30%" />
|
||||||
<column width="70%" />
|
<column width="70%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<!--Nome do Ponto de Venda-->
|
<!--Nome do Ponto de Venda-->
|
||||||
<label value="${c:l('editarPuntoVentaController.lbNome.value')}"/>
|
<label
|
||||||
<textbox id="txtNome" constraint="no empty" width="70%" maxlength="60"
|
value="${c:l('editarPuntoVentaController.lbNome.value')}" />
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.nombpuntoventa}"
|
<textbox id="txtNome"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
constraint="no empty" width="70%" maxlength="60"
|
||||||
</row>
|
value="@{winEditarPuntoVenta$composer.puntoVenta.nombpuntoventa}"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<!-- Parada -->
|
</row>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbparada.value')}"/>
|
<row>
|
||||||
<combobox id="cmbParada" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
<!-- Parada -->
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<label
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.parada}"/>
|
value="${c:l('editarPuntoVentaController.lbparada.value')}" />
|
||||||
</row>
|
<combobox id="cmbParada"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
<!-- Empresa -->
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbEmpresa.value')}"/>
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.parada}" />
|
||||||
<combobox id="cmbEmpresa" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
</row>
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<row>
|
||||||
model="@{winEditarPuntoVenta$composer.lsEmpresas}"
|
<!-- Empresa -->
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.empresa}"/>
|
<label
|
||||||
</row>
|
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||||
<row>
|
<combobox id="cmbEmpresa"
|
||||||
<!-- Tipo Pto Venda -->
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbTpoPtoVta.value')}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
<combobox id="cmbTipoPontoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
width="70%" model="@{winEditarPuntoVenta$composer.lsEmpresas}"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.empresa}" />
|
||||||
model="@{winEditarPuntoVenta$composer.lsTipoPuntoVenta}"
|
</row>
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.tipoPuntoVenta}"/>
|
<row>
|
||||||
</row>
|
<!-- Tipo Pto Venda -->
|
||||||
<row>
|
<label
|
||||||
<!-- Moneda -->
|
value="${c:l('editarPuntoVentaController.lbTpoPtoVta.value')}" />
|
||||||
<label value="${c:l('editarPuntoVentaController.lbMoneda.value')}"/>
|
<combobox id="cmbTipoPontoVenta"
|
||||||
<combobox id="cmbMoneda" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
model="@{winEditarPuntoVenta$composer.lsMoneda}"
|
width="70%"
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.moneda}"/>
|
model="@{winEditarPuntoVenta$composer.lsTipoPuntoVenta}"
|
||||||
</row>
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.tipoPuntoVenta}" />
|
||||||
<row>
|
</row>
|
||||||
<!-- Status Aprobacion -->
|
<row>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}"/>
|
<!-- Moneda -->
|
||||||
<radiogroup Id="indAprobacion" >
|
<label
|
||||||
<radio id="radAprobacionAutorizado" label="${c:l('editarCatalogoDeRutaController.radAprobacionAutorizado.value')}" checked="true"/>
|
value="${c:l('editarPuntoVentaController.lbMoneda.value')}" />
|
||||||
<radio id="radAprobacionLatente" label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}"/>
|
<combobox id="cmbMoneda"
|
||||||
</radiogroup>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
</row>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
<row>
|
width="70%" model="@{winEditarPuntoVenta$composer.lsMoneda}"
|
||||||
<!-- Tel1 -->
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.moneda}" />
|
||||||
<label value="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}"/>
|
</row>
|
||||||
<textbox id="numtelefonouno" constraint="no zero" width="70%" maxlength="10"
|
<row>
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.numtelefonouno}"
|
<!-- Status Aprobacion -->
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
<label
|
||||||
</row>
|
value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}" />
|
||||||
<row>
|
<radiogroup Id="indAprobacion">
|
||||||
<!-- Tel2 -->
|
<radio id="radAprobacionAutorizado"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}"/>
|
label="${c:l('editarCatalogoDeRutaController.radAprobacionAutorizado.value')}"
|
||||||
<textbox id="numtelefonodos" constraint="no zero" width="70%" maxlength="10"
|
checked="true" />
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.numtelefonodos}"
|
<radio id="radAprobacionLatente"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}" />
|
||||||
</row>
|
</radiogroup>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<!-- Tel1 -->
|
||||||
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}" />
|
||||||
|
<textbox id="numtelefonouno"
|
||||||
|
constraint="no zero" width="70%" maxlength="10"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.numtelefonouno}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<!-- Tel2 -->
|
||||||
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}" />
|
||||||
|
<textbox id="numtelefonodos"
|
||||||
|
constraint="no zero" width="70%" maxlength="10"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.numtelefonodos}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<!-- Nodo -->
|
<!-- Nodo -->
|
||||||
<label value="${c:l('editarPuntoVentaController.lbNodo.value')}"/>
|
<label
|
||||||
<combobox id="cmbNodo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarPuntoVentaController.lbNodo.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
<combobox id="cmbNodo"
|
||||||
model="@{winEditarPuntoVenta$composer.lsNodos}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.nodo}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
</row>
|
width="70%" model="@{winEditarPuntoVenta$composer.lsNodos}"
|
||||||
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.nodo}" />
|
||||||
|
</row>
|
||||||
|
|
||||||
<!-- Novo dados bancarios -->
|
<!-- Novo dados bancarios -->
|
||||||
<row>
|
<row visible="false">
|
||||||
<label value="${c:l('editarEstacionController.conexion')}"/>
|
<label
|
||||||
<combobox id="cmbConexion" width="90%" mold="rounded" buttonVisible="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
value="${c:l('editarEstacionController.conexion')}" />
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.conexionBancaria}">
|
<combobox id="cmbConexion" width="90%"
|
||||||
<comboitem value="B" label="${c:l('editarEstacionController.IndTipo.1')}" />
|
mold="rounded" buttonVisible="true"
|
||||||
<comboitem value="M" label="${c:l('editarEstacionController.IndTipo.2')}" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<comboitem value="S" label="${c:l('editarEstacionController.IndTipo.3')}" />
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.conexionBancaria}">
|
||||||
</combobox>
|
<comboitem value="B"
|
||||||
</row>
|
label="${c:l('editarEstacionController.IndTipo.1')}" />
|
||||||
<row>
|
<comboitem value="M"
|
||||||
<label value="${c:l('editarEstacionController.usuario')}"/>
|
label="${c:l('editarEstacionController.IndTipo.2')}" />
|
||||||
<combobox id="cmbUsuarioBancario" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<comboitem value="S"
|
||||||
mold="rounded" buttonVisible="true" width="90%" disabled="true"
|
label="${c:l('editarEstacionController.IndTipo.3')}" />
|
||||||
model="@{winEditarPuntoVenta$composer.lsUsuarioBancario}"
|
</combobox>
|
||||||
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.usuarioBancario}" />
|
</row>
|
||||||
</row>
|
<row visible="false">
|
||||||
<!-- Novo dados bancarios fim -->
|
<label
|
||||||
<row>
|
value="${c:l('editarEstacionController.usuario')}" />
|
||||||
<!-- dscUsuarioInternet -->
|
<combobox id="cmbUsuarioBancario"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbdscUsuarioInternet.value')}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<textbox id="dscUsuarioInternet" constraint="no empty" width="70%" maxlength="30"
|
mold="rounded" buttonVisible="true" width="90%" disabled="true"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.dscUsuarioInternet}"
|
model="@{winEditarPuntoVenta$composer.lsUsuarioBancario}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
selectedItem="@{winEditarPuntoVenta$composer.puntoVenta.usuarioBancario}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<!-- Novo dados bancarios fim -->
|
||||||
<!-- dscContrasenaInternet -->
|
<row>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbdscContrasenaInternet.value')}"/>
|
<!-- dscUsuarioInternet -->
|
||||||
<textbox id="dscContrasenaInternet" constraint="no empty" width="70%" maxlength="30"
|
<label
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.dscContrasenaInternet}"
|
value="${c:l('editarPuntoVentaController.lbdscUsuarioInternet.value')}" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
<textbox id="dscUsuarioInternet"
|
||||||
</row>
|
constraint="no empty" width="70%" maxlength="30"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.dscUsuarioInternet}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<!-- dscContrasenaInternet -->
|
||||||
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.lbdscContrasenaInternet.value')}" />
|
||||||
|
<textbox id="dscContrasenaInternet"
|
||||||
|
constraint="no empty" width="70%" maxlength="30"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.dscContrasenaInternet}"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<!-- Comentarios -->
|
<!-- Comentarios -->
|
||||||
<label value="${c:l('editarPuntoVentaController.lbComentarios.value')}"/>
|
<label
|
||||||
<textbox id="comentarios" rows="3" constraint="no empty" width="90%" maxlength="100"
|
value="${c:l('editarPuntoVentaController.lbComentarios.value')}" />
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comentarios}"
|
<textbox id="comentarios" rows="3"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
constraint="no empty" width="90%" maxlength="100"
|
||||||
</row>
|
value="@{winEditarPuntoVenta$composer.puntoVenta.comentarios}"
|
||||||
</rows>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</grid>
|
</row>
|
||||||
</tabpanel>
|
</rows>
|
||||||
<tabpanel>
|
</grid>
|
||||||
<grid fixedLayout="true">
|
</tabpanel>
|
||||||
<columns>
|
<tabpanel>
|
||||||
<column width="30%" />
|
<grid fixedLayout="true">
|
||||||
<column width="70%" />
|
<columns>
|
||||||
</columns>
|
<column width="30%" />
|
||||||
<rows>
|
<column width="70%" />
|
||||||
<row>
|
</columns>
|
||||||
<!--Rua-->
|
<rows>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbCalle.value')}"/>
|
<row>
|
||||||
<textbox id="direccioncalle" constraint="no empty" width="70%" maxlength="30"
|
<!--Rua-->
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.direccioncalle}"
|
<label
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
value="${c:l('editarPuntoVentaController.lbCalle.value')}" />
|
||||||
</row>
|
<textbox id="direccioncalle"
|
||||||
<row>
|
constraint="no empty" width="70%" maxlength="30"
|
||||||
<!--Numero-->
|
value="@{winEditarPuntoVenta$composer.puntoVenta.direccioncalle}"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbNumero.value')}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<textbox id="direccionnumero" constraint="no empty" width="70%" maxlength="30"
|
</row>
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.direccionnumero}"
|
<row>
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
<!--Numero-->
|
||||||
</row>
|
<label
|
||||||
<row>
|
value="${c:l('editarPuntoVentaController.lbNumero.value')}" />
|
||||||
<!-- descCorreo -->
|
<textbox id="direccionnumero"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbDescCorreo.value')}"/>
|
constraint="no empty" width="70%" maxlength="30"
|
||||||
<textbox id="descCorreo" constraint="no empty" width="70%" maxlength="60"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.direccionnumero}"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.descCorreo}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
</row>
|
||||||
</row>
|
<row>
|
||||||
<row>
|
<!-- descCorreo -->
|
||||||
<!--Ciudad-->
|
<label
|
||||||
<label value="${c:l('editarPuntoVentaController.lbCiudad.value')}"/>
|
value="${c:l('editarPuntoVentaController.lbDescCorreo.value')}" />
|
||||||
<combobox id="cmbCiudad" autodrop="false" constraint="no empty"
|
<textbox id="descCorreo"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxCiudad"
|
constraint="no empty" width="70%" maxlength="60"
|
||||||
mold="rounded" buttonVisible="true" width="70%"/>
|
value="@{winEditarPuntoVenta$composer.puntoVenta.descCorreo}"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
<row>
|
</row>
|
||||||
<!--Colonia-->
|
<row>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbColonia.value')}"/>
|
<!--Ciudad-->
|
||||||
<combobox id="cmbColonia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<label
|
||||||
mold="rounded" buttonVisible="true" width="70%"/>
|
value="${c:l('editarPuntoVentaController.lbCiudad.value')}" />
|
||||||
</row>
|
<combobox id="cmbCiudad"
|
||||||
<row>
|
autodrop="false" constraint="no empty"
|
||||||
<!--CP-->
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxCiudad"
|
||||||
<label value="${c:l('editarPuntoVentaController.lbCP.value')}"/>
|
mold="rounded" buttonVisible="true" width="70%" />
|
||||||
<textbox id="txtCP" constraint="no empty" width="70%" maxlength="30"
|
</row>
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.colonia.codpostal}"/>
|
<row>
|
||||||
</row>
|
<!--Colonia-->
|
||||||
</rows>
|
<label
|
||||||
</grid>
|
value="${c:l('editarPuntoVentaController.lbColonia.value')}" />
|
||||||
</tabpanel>
|
<combobox id="cmbColonia"
|
||||||
<tabpanel height="300px">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<grid fixedLayout="true">
|
mold="rounded" buttonVisible="true" width="70%" />
|
||||||
<columns>
|
</row>
|
||||||
<column width="40%" />
|
<row>
|
||||||
<column width="60%" />
|
<!--CP-->
|
||||||
</columns>
|
<label
|
||||||
<rows>
|
value="${c:l('editarPuntoVentaController.lbCP.value')}" />
|
||||||
<row>
|
<textbox id="txtCP"
|
||||||
<label id="lblFormaPago" value="${c:l('editarConfiguracionFormaPagoController.lblInicial.value')}"/>
|
constraint="no empty" width="70%" maxlength="30"
|
||||||
<combobox id="cmbFormaPago" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" width="80%"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.colonia.codpostal}" />
|
||||||
mold="rounded" buttonVisible="true" constraint="no empty"
|
</row>
|
||||||
model="@{winEditarPuntoVenta$composer.lsFormaPago}"/>
|
</rows>
|
||||||
</row>
|
</grid>
|
||||||
<row>
|
</tabpanel>
|
||||||
<label id="lblCargosExtras" value="${c:l('editarConfiguracionFormaPagoController.lblCargosExtras.value')}"/>
|
<tabpanel height="300px">
|
||||||
<doublebox id="txtCargosExtras" width="80%" value="0.0" maxlength="7" constraint="no empty, no negative"/>
|
<grid fixedLayout="true">
|
||||||
</row>
|
<columns>
|
||||||
</rows>
|
<column width="40%" />
|
||||||
</grid>
|
<column width="60%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label id="lblFormaPago"
|
||||||
|
value="${c:l('editarConfiguracionFormaPagoController.lblInicial.value')}" />
|
||||||
|
<combobox id="cmbFormaPago"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
width="80%" mold="rounded" buttonVisible="true"
|
||||||
|
constraint="no empty"
|
||||||
|
model="@{winEditarPuntoVenta$composer.lsFormaPago}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label id="lblCargosExtras"
|
||||||
|
value="${c:l('editarConfiguracionFormaPagoController.lblCargosExtras.value')}" />
|
||||||
|
<doublebox id="txtCargosExtras"
|
||||||
|
width="80%" value="0.0" maxlength="7"
|
||||||
|
constraint="no empty, no negative" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnApagarFormaPago" height="20"
|
align="right">
|
||||||
image="/gui/img/remove.png" width="35px"
|
<button id="btnApagarFormaPago" height="20"
|
||||||
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnApagar.tooltiptext')}"/>
|
image="/gui/img/remove.png" width="35px"
|
||||||
<button id="btnSalvarFormaPago" height="20"
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnApagar.tooltiptext')}" />
|
||||||
image="/gui/img/add.png" width="35px"
|
<button id="btnSalvarFormaPago" height="20"
|
||||||
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnSalvar.tooltiptext')}"/>
|
image="/gui/img/add.png" width="35px"
|
||||||
</hbox>
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnSalvar.tooltiptext')}" />
|
||||||
</toolbar>
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
<listbox id="formaPagoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="formaPagoList"
|
||||||
vflex="true" multiple="false">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
vflex="true" multiple="false">
|
||||||
<listheader id="lhFormaPago" image="/gui/img/builder.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('editarConfiguracionFormaPagoController.lblInicial.value')}"/>
|
<listheader id="lhFormaPago"
|
||||||
<listheader id="lhCargosExtras" image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('editarConfiguracionFormaPagoController.lblCargosExtras.value')}"/>
|
label="${c:l('editarConfiguracionFormaPagoController.lblInicial.value')}" />
|
||||||
</listhead>
|
<listheader id="lhCargosExtras"
|
||||||
</listbox>
|
image="/gui/img/builder.gif"
|
||||||
</tabpanel>
|
label="${c:l('editarConfiguracionFormaPagoController.lblCargosExtras.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
|
||||||
<!-- ParamRecoleccion -->
|
<!-- ParamRecoleccion -->
|
||||||
<tabpanel height="300px">
|
<tabpanel height="300px">
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
<columns>
|
<columns>
|
||||||
<column width="40%" />
|
<column width="40%" />
|
||||||
<column width="60%" />
|
<column width="60%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarPuntoVentaController.lblInicial.value')}"/>
|
<label
|
||||||
<textbox id="importeInicial" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty"/>
|
value="${c:l('editarPuntoVentaController.lblInicial.value')}" />
|
||||||
|
<textbox id="importeInicial"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
precision="7" scale="2" constraint="no empty" />
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarPuntoVentaController.lblAdicional.value')}"/>
|
<label
|
||||||
<textbox id="importeAdicional" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" constraint="no empty"/>
|
value="${c:l('editarPuntoVentaController.lblAdicional.value')}" />
|
||||||
</row>
|
<textbox id="importeAdicional"
|
||||||
</rows>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
</grid>
|
precision="7" scale="2" constraint="no empty" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnApagarParamRecoleccion" height="20"
|
align="right">
|
||||||
image="/gui/img/remove.png" width="35px"
|
<button id="btnApagarParamRecoleccion"
|
||||||
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnApagar.tooltiptext')}"/>
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
<button id="btnSalvarParamRecoleccion" height="20"
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnApagar.tooltiptext')}" />
|
||||||
image="/gui/img/add.png" width="35px"
|
<button id="btnSalvarParamRecoleccion"
|
||||||
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnSalvar.tooltiptext')}"/>
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
</hbox>
|
tooltiptext="${c:l('editarConfiguracionFormaPagoController.btnSalvar.tooltiptext')}" />
|
||||||
</toolbar>
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
|
||||||
<listbox id="paramRecoleccionList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="paramRecoleccionList"
|
||||||
vflex="true" multiple="false">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
vflex="true" multiple="false">
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('editarPuntoVentaController.lblInicial.value')}"/>
|
<listheader image="/gui/img/builder.gif"
|
||||||
<listheader image="/gui/img/builder.gif"
|
label="${c:l('editarPuntoVentaController.lblInicial.value')}" />
|
||||||
label="${c:l('editarPuntoVentaController.lblAdicional.value')}"/>
|
<listheader image="/gui/img/builder.gif"
|
||||||
</listhead>
|
label="${c:l('editarPuntoVentaController.lblAdicional.value')}" />
|
||||||
</listbox>
|
</listhead>
|
||||||
</tabpanel>
|
</listbox>
|
||||||
<!-- Empresas para venta -->
|
</tabpanel>
|
||||||
<tabpanel height="300px">
|
<!-- Empresas para venta -->
|
||||||
<grid fixedLayout="true">
|
<tabpanel height="300px">
|
||||||
<columns>
|
<grid fixedLayout="true">
|
||||||
<column width="40%" />
|
<columns>
|
||||||
<column width="60%" />
|
<column width="40%" />
|
||||||
</columns>
|
<column width="60%" />
|
||||||
<rows>
|
</columns>
|
||||||
<row>
|
<rows>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbEmpresa.value')}"/>
|
<row>
|
||||||
<combobox id="cmbEmpresaPtoVta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
<label
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||||
model="@{winEditarPuntoVenta$composer.lsEmpresas}"/>
|
<combobox id="cmbEmpresaPtoVta"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
</rows>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
</grid>
|
width="70%" model="@{winEditarPuntoVenta$composer.lsEmpresas}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnSalvarPtovtaEmpresa" height="20"
|
align="right">
|
||||||
image="/gui/img/add.png" width="35px"
|
<button id="btnSalvarPtovtaEmpresa"
|
||||||
tooltiptext="${c:l('tooltiptext.btnAgregar')}"/>
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
||||||
|
|
||||||
<button id="btnApagarPtovtaEmpresa" height="20"
|
<button id="btnApagarPtovtaEmpresa"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('tooltiptext.btnEliminar')}"/>
|
tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<listbox id="ptovtaEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="ptovtaEmpresaList"
|
||||||
vflex="true" multiple="false">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
vflex="true" multiple="false">
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}"/>
|
<listheader image="/gui/img/builder.gif"
|
||||||
</listhead>
|
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||||
</listbox>
|
</listhead>
|
||||||
</tabpanel>
|
</listbox>
|
||||||
<!-- Usuario Bancario -->
|
</tabpanel>
|
||||||
<tabpanel height="300px">
|
<!-- Usuario Bancario -->
|
||||||
<grid fixedLayout="true">
|
<tabpanel height="300px">
|
||||||
<columns>
|
<grid fixedLayout="true">
|
||||||
<column width="40%" />
|
<columns>
|
||||||
<column width="60%" />
|
<column width="40%" />
|
||||||
</columns>
|
<column width="60%" />
|
||||||
<rows>
|
</columns>
|
||||||
<row>
|
<rows>
|
||||||
<label value="${c:l('editarPuntoVentaController.lbEmpresa.value')}"/>
|
<row>
|
||||||
<combobox id="cmbEmpresaPtoVtaUsuarioBancario" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
<label
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||||
model="@{winEditarPuntoVenta$composer.lsEmpresas}"/>
|
<combobox
|
||||||
</row>
|
id="cmbEmpresaPtoVtaUsuarioBancario"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<label value="${c:l('editarPuntoVentaController.tab.label.usuBancario')}"/>
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
<combobox id="cmbUsuarioBancarioPtoVtaUsuarioBancario" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
width="70%" model="@{winEditarPuntoVenta$composer.lsEmpresas}" />
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
</row>
|
||||||
model="@{winEditarPuntoVenta$composer.lsUsuarioBancario}"/>
|
<row>
|
||||||
</row>
|
<label
|
||||||
</rows>
|
value="${c:l('editarPuntoVentaController.tab.label.usuBancario')}" />
|
||||||
</grid>
|
<combobox
|
||||||
|
id="cmbUsuarioBancarioPtoVtaUsuarioBancario"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
width="70%"
|
||||||
|
model="@{winEditarPuntoVenta$composer.lsUsuarioBancario}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnSalvarPtovtaUsuarioBancario" height="20"
|
align="right">
|
||||||
image="/gui/img/add.png" width="35px"
|
<button id="btnSalvarPtovtaUsuarioBancario"
|
||||||
tooltiptext="${c:l('tooltiptext.btnAgregar')}"/>
|
height="20" image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('tooltiptext.btnAgregar')}" />
|
||||||
|
|
||||||
<button id="btnApagarPtovtaUsuarioBancario" height="20"
|
<button id="btnApagarPtovtaUsuarioBancario"
|
||||||
image="/gui/img/remove.png" width="35px"
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('tooltiptext.btnEliminar')}"/>
|
tooltiptext="${c:l('tooltiptext.btnEliminar')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<listbox id="ptovtaUsuarioBancarioList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="ptovtaUsuarioBancarioList"
|
||||||
vflex="true" multiple="false">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
vflex="true" multiple="false">
|
||||||
<listheader image="/gui/img/builder.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}"/>
|
<listheader image="/gui/img/builder.gif"
|
||||||
<listheader image="/gui/img/builder.gif"
|
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
|
||||||
label="${c:l('editarPuntoVentaController.tab.label.usuBancario')}"/>
|
<listheader image="/gui/img/builder.gif"
|
||||||
</listhead>
|
label="${c:l('editarPuntoVentaController.tab.label.usuBancario')}" />
|
||||||
</listbox>
|
</listhead>
|
||||||
</tabpanel>
|
</listbox>
|
||||||
</tabpanels>
|
</tabpanel>
|
||||||
</tabbox>
|
</tabpanels>
|
||||||
</window>
|
</tabbox>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -324,13 +324,13 @@
|
||||||
<tabpanel height="300px">
|
<tabpanel height="300px">
|
||||||
<grid>
|
<grid>
|
||||||
<columns>
|
<columns>
|
||||||
<column width="40%" />
|
<column width="20%" />
|
||||||
<column width="60%" />
|
<column width="30%" />
|
||||||
<column width="40%" />
|
<column width="20%" />
|
||||||
<column width="60%" />
|
<column width="30%" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row spans="1,1,1,1">
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarTramosController.labelCoeficiente1.value')}" />
|
value="${c:l('editarTramosController.labelCoeficiente1.value')}" />
|
||||||
<combobox id="cmbCoeficiente1"
|
<combobox id="cmbCoeficiente1"
|
||||||
|
@ -342,7 +342,7 @@
|
||||||
value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
||||||
<intbox id="txtKMCoeficiente1" />
|
<intbox id="txtKMCoeficiente1" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row spans="1,1,1,1">
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarTramosController.labelCoeficiente2.value')}" />
|
value="${c:l('editarTramosController.labelCoeficiente2.value')}" />
|
||||||
<combobox id="cmbCoeficiente2"
|
<combobox id="cmbCoeficiente2"
|
||||||
|
@ -354,7 +354,7 @@
|
||||||
value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
||||||
<intbox id="txtKMCoeficiente2" />
|
<intbox id="txtKMCoeficiente2" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row spans="1,1,1,1">
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarTramosController.labelCoeficiente3.value')}" />
|
value="${c:l('editarTramosController.labelCoeficiente3.value')}" />
|
||||||
<combobox id="cmbCoeficiente3"
|
<combobox id="cmbCoeficiente3"
|
||||||
|
@ -366,11 +366,11 @@
|
||||||
value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
||||||
<intbox id="txtKMCoeficiente3" />
|
<intbox id="txtKMCoeficiente3" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row spans="1,3">
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
|
value="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
|
||||||
<combobox id="cmbOrgaoConcedente"
|
<combobox id="cmbOrgaoConcedente"
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
mold="rounded" buttonVisible="true" width="35%"
|
||||||
model="@{winEditarTramos$composer.lsOrgaoConcedentes}"
|
model="@{winEditarTramos$composer.lsOrgaoConcedentes}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
</row>
|
</row>
|
||||||
|
|
Loading…
Reference in New Issue