git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@22362 d1611594-4594-4d17-8e1d-87c2c4800839
parent
eebfdb549a
commit
b6d9bd90a0
|
@ -4,24 +4,11 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
|
||||||
import com.rjconsultores.ventaboletos.service.MarcaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
|
||||||
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.RenderConfiguracionCancelacion;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
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;
|
||||||
|
@ -32,7 +19,22 @@ import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zk.ui.event.EventListener;
|
import org.zkoss.zk.ui.event.EventListener;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
import org.zkoss.zul.Paging;
|
import org.zkoss.zul.Paging;
|
||||||
import org.zkoss.zul.Timebox;
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MarcaService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
|
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.RenderConfiguracionCancelacion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -42,245 +44,165 @@ import org.zkoss.zul.Timebox;
|
||||||
@Scope("prototype")
|
@Scope("prototype")
|
||||||
public class BusquedaConfiguracionCancelacionController extends MyGenericForwardComposer {
|
public class BusquedaConfiguracionCancelacionController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
@Autowired
|
private static final long serialVersionUID = 1L;
|
||||||
private transient PagedListWrapper<CancelacionCtrl> plwConfigCancelacion;
|
@Autowired
|
||||||
@Autowired
|
private transient PagedListWrapper<CancelacionCtrl> plwConfigCancelacion;
|
||||||
private PuntoVentaService puntoVentaService;
|
@Autowired
|
||||||
@Autowired
|
private PuntoVentaService puntoVentaService;
|
||||||
private MarcaService marcaService;
|
@Autowired
|
||||||
@Autowired
|
private MarcaService marcaService;
|
||||||
private ParadaService paradaService;
|
@Autowired
|
||||||
@Autowired
|
private MotivoCancelacionService motivoCancelacionService;
|
||||||
private MotivoCancelacionService motivoCancelacionService;
|
@Autowired
|
||||||
private MyListbox cancelacionCtrlList;
|
private OrgaoConcedenteService orgaoConcedenteService;
|
||||||
private Paging pagingCancelacion;
|
private MyListbox cancelacionCtrlList;
|
||||||
private List<PuntoVenta> lsPuntoVenta;
|
private Paging pagingCancelacion;
|
||||||
private List<Marca> lsMarca;
|
private List<PuntoVenta> lsPuntoVenta;
|
||||||
private List<MotivoCancelacion> lsMotivoCancelacion;
|
private List<Marca> lsMarca;
|
||||||
private Combobox cmbMarca;
|
private List<MotivoCancelacion> lsMotivoCancelacion;
|
||||||
private Combobox cmbParadaDestino;
|
private List<OrgaoConcedente> lsOrgaoConcedente;
|
||||||
private Combobox cmbParadaOrigem;
|
private Combobox cmbMarca;
|
||||||
private Combobox cmbPuntoVenta;
|
private Combobox cmbParadaDestino;
|
||||||
private Combobox cmbMotivoCancelacion;
|
private Combobox cmbParadaOrigem;
|
||||||
|
private Combobox cmbPuntoVenta;
|
||||||
|
private Combobox cmbMotivoCancelacion;
|
||||||
|
private Combobox cmbOrgaoConcedente;
|
||||||
|
|
||||||
public Combobox getCmbMarca() {
|
public List<MotivoCancelacion> getLsMotivoCancelacion() {
|
||||||
return cmbMarca;
|
return lsMotivoCancelacion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbMarca(Combobox cmbMarca) {
|
public void setLsMotivoCancelacion(List<MotivoCancelacion> lsMotivoCancelacion) {
|
||||||
this.cmbMarca = cmbMarca;
|
this.lsMotivoCancelacion = lsMotivoCancelacion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbParadaDestino() {
|
public List<Marca> getLsMarca() {
|
||||||
return cmbParadaDestino;
|
return lsMarca;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbParadaDestino(Combobox cmbParadaDestino) {
|
public void setLsMarca(List<Marca> lsMarca) {
|
||||||
this.cmbParadaDestino = cmbParadaDestino;
|
this.lsMarca = lsMarca;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbParadaOrigem() {
|
public List<PuntoVenta> getLsPuntoVenta() {
|
||||||
return cmbParadaOrigem;
|
return lsPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbParadaOrigem(Combobox cmbParadaOrigem) {
|
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
||||||
this.cmbParadaOrigem = cmbParadaOrigem;
|
this.lsPuntoVenta = lsPuntoVenta;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Combobox getCmbPuntoVenta() {
|
public List<OrgaoConcedente> getLsOrgaoConcedente() {
|
||||||
return cmbPuntoVenta;
|
return lsOrgaoConcedente;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
|
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
|
||||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
this.lsOrgaoConcedente = lsOrgaoConcedente;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Marca> getLsMarca() {
|
@Override
|
||||||
return lsMarca;
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
}
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
public void setLsMarca(List<Marca> lsMarca) {
|
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
|
||||||
this.lsMarca = lsMarca;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<PuntoVenta> getLsPuntoVenta() {
|
lsPuntoVenta = new ArrayList<PuntoVenta>();
|
||||||
return lsPuntoVenta;
|
lsPuntoVenta.add(new PuntoVenta());
|
||||||
}
|
lsPuntoVenta.addAll(puntoVentaService.obtenerTodos());
|
||||||
|
|
||||||
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
lsMarca = new ArrayList<Marca>();
|
||||||
this.lsPuntoVenta = lsPuntoVenta;
|
lsMarca.add(new Marca());
|
||||||
}
|
lsMarca.addAll(marcaService.obtenerTodos());
|
||||||
|
|
||||||
@Override
|
lsMotivoCancelacion = new ArrayList<MotivoCancelacion>();
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
lsMotivoCancelacion.add(new MotivoCancelacion());
|
||||||
super.doAfterCompose(comp);
|
lsMotivoCancelacion.addAll(motivoCancelacionService.obtenerTodosTipoMotivoB());
|
||||||
|
|
||||||
lsPuntoVenta = new ArrayList<PuntoVenta>();
|
cancelacionCtrlList.setItemRenderer(new RenderConfiguracionCancelacion());
|
||||||
lsPuntoVenta.add(new PuntoVenta());
|
cancelacionCtrlList.addEventListener("onDoubleClick", new EventListener() {
|
||||||
lsPuntoVenta.addAll(puntoVentaService.obtenerTodos());
|
|
||||||
|
|
||||||
lsMarca = new ArrayList<Marca>();
|
@Override
|
||||||
lsMarca.add(new Marca());
|
public void onEvent(Event event) throws Exception {
|
||||||
lsMarca.addAll(marcaService.obtenerTodos());
|
CancelacionCtrl cc = (CancelacionCtrl) cancelacionCtrlList.getSelected();
|
||||||
|
verConfigCancelacion(cc);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
lsMotivoCancelacion = new ArrayList<MotivoCancelacion>();
|
refreshLista();
|
||||||
lsMotivoCancelacion.add(new MotivoCancelacion());
|
}
|
||||||
lsMotivoCancelacion.addAll(motivoCancelacionService.obtenerTodosTipoMotivoB());
|
|
||||||
|
|
||||||
cancelacionCtrlList.setItemRenderer(new RenderConfiguracionCancelacion());
|
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||||
cancelacionCtrlList.addEventListener("onDoubleClick", new EventListener() {
|
private void verConfigCancelacion(CancelacionCtrl cc) {
|
||||||
|
if (cc == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
Map args = new HashMap();
|
||||||
public void onEvent(Event event) throws Exception {
|
args.put("cancelacionCtrl", cc);
|
||||||
CancelacionCtrl cc = (CancelacionCtrl) cancelacionCtrlList.getSelected();
|
args.put("cancelacionCtrlList", cancelacionCtrlList);
|
||||||
verConfigCancelacion(cc);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
refreshLista();
|
openWindow("/gui/configuraciones_comerciales/editarConfiguracionCancelacion.zul",
|
||||||
|
Labels.getLabel("editarConfiguracionCancelacionController.window.title"), args, MODAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void refreshLista() {
|
||||||
|
HibernateSearchObject<CancelacionCtrl> configCancelacionBusqueda =
|
||||||
|
new HibernateSearchObject<CancelacionCtrl>(CancelacionCtrl.class, pagingCancelacion.getPageSize());
|
||||||
|
|
||||||
}
|
configCancelacionBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
private void verConfigCancelacion(CancelacionCtrl cc) {
|
Marca marca = (Marca) (cmbMarca.getSelectedItem() != null ? cmbMarca.getSelectedItem().getValue() : null);
|
||||||
if (cc == null) {
|
Parada paradaDestino = (Parada) (cmbParadaDestino.getSelectedItem() != null ? cmbParadaDestino.getSelectedItem().getValue() : null);
|
||||||
return;
|
Parada paradaOrigem = (Parada) (cmbParadaOrigem.getSelectedItem() != null ? cmbParadaOrigem.getSelectedItem().getValue() : null);
|
||||||
}
|
PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null);
|
||||||
|
MotivoCancelacion motivoCancelacion = (MotivoCancelacion) (cmbMotivoCancelacion.getSelectedItem() != null ? cmbMotivoCancelacion.getSelectedItem().getValue() : null);
|
||||||
|
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) (cmbOrgaoConcedente.getSelectedItem() != null ? cmbOrgaoConcedente.getSelectedItem().getValue() : null);
|
||||||
|
|
||||||
Map args = new HashMap();
|
if (orgaoConcedente != null) {
|
||||||
args.put("cancelacionCtrl", cc);
|
configCancelacionBusqueda.addFilterEqual("orgaoConcedente", orgaoConcedente);
|
||||||
args.put("cancelacionCtrlList", cancelacionCtrlList);
|
}
|
||||||
|
|
||||||
openWindow("/gui/configuraciones_comerciales/editarConfiguracionCancelacion.zul",
|
if (marca != null) {
|
||||||
Labels.getLabel("editarConfiguracionCancelacionController.window.title"), args, MODAL);
|
configCancelacionBusqueda.addFilterEqual("marca", marca);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshLista() {
|
if (paradaDestino != null) {
|
||||||
HibernateSearchObject<CancelacionCtrl> configCancelacionBusqueda =
|
configCancelacionBusqueda.addFilterEqual("paradaDestino", paradaDestino);
|
||||||
new HibernateSearchObject<CancelacionCtrl>(CancelacionCtrl.class,
|
}
|
||||||
pagingCancelacion.getPageSize());
|
|
||||||
|
|
||||||
configCancelacionBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
if (paradaOrigem != null) {
|
||||||
|
configCancelacionBusqueda.addFilterEqual("paradaOrigem", paradaOrigem);
|
||||||
|
}
|
||||||
|
|
||||||
Marca marca = (Marca) (cmbMarca.getSelectedItem() != null ? cmbMarca.getSelectedItem().getValue() : null);
|
if (puntoVenta != null) {
|
||||||
Parada paradaDestino = (Parada) (cmbParadaDestino.getSelectedItem() != null ? cmbParadaDestino.getSelectedItem().getValue() : null);
|
configCancelacionBusqueda.addFilterEqual("puntoVenta", puntoVenta);
|
||||||
Parada paradaOrigem = (Parada) (cmbParadaOrigem.getSelectedItem() != null ? cmbParadaOrigem.getSelectedItem().getValue() : null);
|
}
|
||||||
PuntoVenta puntoVenta = (PuntoVenta) (cmbPuntoVenta.getSelectedItem() != null ? cmbPuntoVenta.getSelectedItem().getValue() : null);
|
|
||||||
MotivoCancelacion motivoCancelacion = (MotivoCancelacion) (cmbMotivoCancelacion.getSelectedItem() != null ? cmbMotivoCancelacion.getSelectedItem().getValue() : null);
|
|
||||||
|
|
||||||
if (marca != null) {
|
if (motivoCancelacion != null) {
|
||||||
configCancelacionBusqueda.addFilterEqual("marca", marca);
|
configCancelacionBusqueda.addFilterEqual("motivoCancelacion", motivoCancelacion);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paradaDestino != null) {
|
plwConfigCancelacion.init(configCancelacionBusqueda, cancelacionCtrlList, pagingCancelacion);
|
||||||
configCancelacionBusqueda.addFilterEqual("paradaDestino", paradaDestino);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (paradaOrigem != null) {
|
if (cancelacionCtrlList.getData().length == 0) {
|
||||||
configCancelacionBusqueda.addFilterEqual("paradaOrigem", paradaOrigem);
|
try {
|
||||||
}
|
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||||
|
Labels.getLabel("busquedaConfiguracionCancelacionController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (puntoVenta != null) {
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
configCancelacionBusqueda.addFilterEqual("puntoVenta", puntoVenta);
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (motivoCancelacion != null) {
|
public void onClick$btnRefresh(Event ev) {
|
||||||
configCancelacionBusqueda.addFilterEqual("motivoCancelacion", motivoCancelacion);
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
plwConfigCancelacion.init(configCancelacionBusqueda, cancelacionCtrlList, pagingCancelacion);
|
public void onClick$btnNovo(Event ev) {
|
||||||
|
verConfigCancelacion(new CancelacionCtrl());
|
||||||
if (cancelacionCtrlList.getData().length == 0) {
|
}
|
||||||
try {
|
|
||||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
|
||||||
Labels.getLabel("busquedaConfiguracionCancelacionController.window.title"),
|
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
|
||||||
} catch (InterruptedException ex) {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnPesquisa(Event ev) {
|
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnRefresh(Event ev) {
|
|
||||||
refreshLista();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onClick$btnNovo(Event ev) {
|
|
||||||
verConfigCancelacion(new CancelacionCtrl());
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getConfigCancelacionList() {
|
|
||||||
return cancelacionCtrlList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setConfigCancelacionList(MyListbox configCancelacionList) {
|
|
||||||
this.cancelacionCtrlList = configCancelacionList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Paging getPagingConfigCancelacion() {
|
|
||||||
return pagingCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPagingConfigCancelacion(Paging pagingConfigCancelacion) {
|
|
||||||
this.pagingCancelacion = pagingConfigCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PagedListWrapper<CancelacionCtrl> getPlwConfigCancelacion() {
|
|
||||||
return plwConfigCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPlwConfigCancelacion(PagedListWrapper<CancelacionCtrl> plwConfigCancelacion) {
|
|
||||||
this.plwConfigCancelacion = plwConfigCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbMotivoCancelacion() {
|
|
||||||
return cmbMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbMotivoCancelacion(Combobox cmbMotivoCancelacion) {
|
|
||||||
this.cmbMotivoCancelacion = cmbMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MotivoCancelacion> getLsMotivoCancelacion() {
|
|
||||||
return lsMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsMotivoCancelacion(List<MotivoCancelacion> lsMotivoCancelacion) {
|
|
||||||
this.lsMotivoCancelacion = lsMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MarcaService getMarcaService() {
|
|
||||||
return marcaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMarcaService(MarcaService marcaService) {
|
|
||||||
this.marcaService = marcaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MotivoCancelacionService getMotivoCancelacionService() {
|
|
||||||
return motivoCancelacionService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMotivoCancelacionService(MotivoCancelacionService motivoCancelacionService) {
|
|
||||||
this.motivoCancelacionService = motivoCancelacionService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ParadaService getParadaService() {
|
|
||||||
return paradaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setParadaService(ParadaService paradaService) {
|
|
||||||
this.paradaService = paradaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PuntoVentaService getPuntoVentaService() {
|
|
||||||
return puntoVentaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPuntoVentaService(PuntoVentaService puntoVentaService) {
|
|
||||||
this.puntoVentaService = puntoVentaService;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,13 @@ import com.rjconsultores.ventaboletos.entidad.CancelacionCargo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
|
import com.rjconsultores.ventaboletos.entidad.CancelacionCtrl;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Marca;
|
import com.rjconsultores.ventaboletos.entidad.Marca;
|
||||||
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
|
import com.rjconsultores.ventaboletos.entidad.MotivoCancelacion;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.service.CancelacionCtrlService;
|
import com.rjconsultores.ventaboletos.service.CancelacionCtrlService;
|
||||||
import com.rjconsultores.ventaboletos.service.MarcaService;
|
import com.rjconsultores.ventaboletos.service.MarcaService;
|
||||||
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
|
import com.rjconsultores.ventaboletos.service.MotivoCancelacionService;
|
||||||
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
|
@ -57,12 +59,15 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
private MarcaService marcaService;
|
private MarcaService marcaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private MotivoCancelacionService motivoCancelacionService;
|
private MotivoCancelacionService motivoCancelacionService;
|
||||||
|
@Autowired
|
||||||
|
private OrgaoConcedenteService orgaoConcedenteService;
|
||||||
private CancelacionCtrl cancelacionCtrl;
|
private CancelacionCtrl cancelacionCtrl;
|
||||||
private static Logger log = Logger.getLogger(EditarConfiguracionCancelacionController.class);
|
private static Logger log = Logger.getLogger(EditarConfiguracionCancelacionController.class);
|
||||||
private List<PuntoVenta> lsPuntoVenta;
|
private List<PuntoVenta> lsPuntoVenta;
|
||||||
private List<Marca> lsMarca;
|
private List<Marca> lsMarca;
|
||||||
private List<CancelacionCargo> lsCancelacionCargo;
|
private List<CancelacionCargo> lsCancelacionCargo;
|
||||||
private List<MotivoCancelacion> lsMotivoCancelacion;
|
private List<MotivoCancelacion> lsMotivoCancelacion;
|
||||||
|
private List<OrgaoConcedente> lsOrgaoConcedente;
|
||||||
private Combobox cmbMarca;
|
private Combobox cmbMarca;
|
||||||
private Combobox cmbPuntoVenta;
|
private Combobox cmbPuntoVenta;
|
||||||
private MyComboboxParada cmbParadaOrigem;
|
private MyComboboxParada cmbParadaOrigem;
|
||||||
|
@ -78,22 +83,58 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
private Radio radioImp;
|
private Radio radioImp;
|
||||||
private Tab tabCtrl;
|
private Tab tabCtrl;
|
||||||
|
|
||||||
public Button getBtnApagar() {
|
public CancelacionCtrl getCancelacionCtrl() {
|
||||||
return btnApagar;
|
return cancelacionCtrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBtnApagar(Button btnApagar) {
|
public void setCancelacionCtrl(CancelacionCtrl cancelacionCtrl) {
|
||||||
this.btnApagar = btnApagar;
|
this.cancelacionCtrl = cancelacionCtrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Marca> getLsMarca() {
|
||||||
|
return lsMarca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsMarca(List<Marca> lsMarca) {
|
||||||
|
this.lsMarca = lsMarca;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<PuntoVenta> getLsPuntoVenta() {
|
||||||
|
return lsPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
||||||
|
this.lsPuntoVenta = lsPuntoVenta;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<CancelacionCargo> getLsCancelacionCargo() {
|
||||||
|
return lsCancelacionCargo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsCancelacionCargo(List<CancelacionCargo> lsCancelacionCargo) {
|
||||||
|
this.lsCancelacionCargo = lsCancelacionCargo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<MotivoCancelacion> getLsMotivoCancelacion() {
|
||||||
|
return lsMotivoCancelacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsMotivoCancelacion(List<MotivoCancelacion> lsMotivoCancelacion) {
|
||||||
|
this.lsMotivoCancelacion = lsMotivoCancelacion;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<OrgaoConcedente> getLsOrgaoConcedente() {
|
||||||
|
return lsOrgaoConcedente;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsOrgaoConcedente(List<OrgaoConcedente> lsOrgaoConcedente) {
|
||||||
|
this.lsOrgaoConcedente = lsOrgaoConcedente;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void doAfterCompose(Component comp) throws Exception {
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
lsMarca = marcaService.obtenerTodos();
|
lsMarca = marcaService.obtenerTodos();
|
||||||
|
lsOrgaoConcedente = orgaoConcedenteService.obtenerTodos();
|
||||||
// Integer[] motivos = {10, 13, 14, -1};
|
|
||||||
// lsMotivoCancelacion =
|
|
||||||
// motivoCancelacionService.obtenerTodosEspecificos(motivos);
|
|
||||||
|
|
||||||
lsMotivoCancelacion = motivoCancelacionService.obtenerTodos();
|
lsMotivoCancelacion = motivoCancelacionService.obtenerTodos();
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
@ -112,9 +153,7 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
|
|
||||||
txtMaximo.setValue("0");
|
txtMaximo.setValue("0");
|
||||||
txtMaximo.setDisabled(true);
|
txtMaximo.setDisabled(true);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
cancelacionCtrl = cancelacionCtrlService.obtenerID(cancelacionCtrl.getCancelacionctrlId());
|
cancelacionCtrl = cancelacionCtrlService.obtenerID(cancelacionCtrl.getCancelacionctrlId());
|
||||||
|
|
||||||
lsCancelacionCargo = cancelacionCtrl.getCancelacionCargoList();
|
lsCancelacionCargo = cancelacionCtrl.getCancelacionCargoList();
|
||||||
|
@ -140,7 +179,6 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
|
|
||||||
// Habilitar tempo conforme motivo de cancelacion.
|
// Habilitar tempo conforme motivo de cancelacion.
|
||||||
motivosCancelacion();
|
motivosCancelacion();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
importe.setDisabled(true);
|
importe.setDisabled(true);
|
||||||
|
@ -150,7 +188,6 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
onClick$radioImp(null);
|
onClick$radioImp(null);
|
||||||
|
|
||||||
cmbMotivoCancelacion.focus();
|
cmbMotivoCancelacion.focus();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void motivosCancelacion() {
|
public void motivosCancelacion() {
|
||||||
|
@ -203,7 +240,6 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
// Motivo de cancelacion pode ser branco
|
// Motivo de cancelacion pode ser branco
|
||||||
cmbMotivoCancelacion.getValue();
|
cmbMotivoCancelacion.getValue();
|
||||||
tabCtrl.setSelected(Boolean.TRUE);
|
tabCtrl.setSelected(Boolean.TRUE);
|
||||||
|
@ -312,7 +348,6 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
Labels.getLabel("editarCategoriaController.window.title"),
|
Labels.getLabel("editarCategoriaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
public void onClick$btnApagar(Event ev) throws InterruptedException {
|
||||||
|
@ -345,7 +380,6 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onChange$cmbMotivoCancelacion(Event ev) {
|
public void onChange$cmbMotivoCancelacion(Event ev) {
|
||||||
|
|
||||||
Comboitem cbiMotivo = cmbMotivoCancelacion.getSelectedItem();
|
Comboitem cbiMotivo = cmbMotivoCancelacion.getSelectedItem();
|
||||||
MotivoCancelacion motivo = new MotivoCancelacion();
|
MotivoCancelacion motivo = new MotivoCancelacion();
|
||||||
if (cbiMotivo != null) {
|
if (cbiMotivo != null) {
|
||||||
|
@ -387,7 +421,6 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnAdicionarCargo(Event ev) throws InterruptedException {
|
public void onClick$btnAdicionarCargo(Event ev) throws InterruptedException {
|
||||||
|
|
||||||
txtMinimo.getValue();
|
txtMinimo.getValue();
|
||||||
txtMaximo.getValue();
|
txtMaximo.getValue();
|
||||||
porcentaje.getValue();
|
porcentaje.getValue();
|
||||||
|
@ -400,20 +433,8 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
if (cc.getTiempomaximo() == null) {
|
if (cc.getTiempomaximo() == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// if (txtMaximo.getValueDecimal() != null) {
|
|
||||||
// if (cc.getActivo() &&
|
|
||||||
// (cc.getTiempomaximo().compareTo(txtMaximo.getValueDecimal())
|
|
||||||
// == 0)) {
|
|
||||||
// existe = true;
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// if (cc.getActivo() &&
|
|
||||||
// (cc.getTiempominimo().compareTo(txtMinimo.getValueDecimal())
|
|
||||||
// == 0)) {
|
|
||||||
// existe = true;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!existe) {
|
if (!existe) {
|
||||||
CancelacionCargo cCargo = new CancelacionCargo();
|
CancelacionCargo cCargo = new CancelacionCargo();
|
||||||
cCargo.setCancelacionCtrl(cancelacionCtrl);
|
cCargo.setCancelacionCtrl(cancelacionCtrl);
|
||||||
|
@ -452,15 +473,14 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
lsTemp.add(cc);
|
lsTemp.add(cc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cancelacionCargoList.setData(lsTemp);
|
|
||||||
|
|
||||||
|
cancelacionCargoList.setData(lsTemp);
|
||||||
} else {
|
} else {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
Labels.getLabel("MSG.Registro.Existe"),
|
Labels.getLabel("MSG.Registro.Existe"),
|
||||||
Labels.getLabel("editarConfiguracionCancelacionController.window.title"),
|
Labels.getLabel("editarConfiguracionCancelacionController.window.title"),
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
log.error("Erro adicionar cargo : " + ex);
|
log.error("Erro adicionar cargo : " + ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -497,136 +517,4 @@ public class EditarConfiguracionCancelacionController extends MyGenericForwardCo
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public CancelacionCtrl getCancelacionCtrl() {
|
|
||||||
return cancelacionCtrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCancelacionCtrl(CancelacionCtrl cancelacionCtrl) {
|
|
||||||
this.cancelacionCtrl = cancelacionCtrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public CancelacionCtrlService getCancelacionCtrlService() {
|
|
||||||
return cancelacionCtrlService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCancelacionCtrlService(CancelacionCtrlService cancelacionCtrlService) {
|
|
||||||
this.cancelacionCtrlService = cancelacionCtrlService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getCancelacionCtrlList() {
|
|
||||||
return cancelacionCtrlList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCancelacionCtrlList(MyListbox cancelacionCtrlList) {
|
|
||||||
this.cancelacionCtrlList = cancelacionCtrlList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Logger getLog() {
|
|
||||||
return log;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setLog(Logger log) {
|
|
||||||
EditarConfiguracionCancelacionController.log = log;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<Marca> getLsMarca() {
|
|
||||||
return lsMarca;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsMarca(List<Marca> lsMarca) {
|
|
||||||
this.lsMarca = lsMarca;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<PuntoVenta> getLsPuntoVenta() {
|
|
||||||
return lsPuntoVenta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsPuntoVenta(List<PuntoVenta> lsPuntoVenta) {
|
|
||||||
this.lsPuntoVenta = lsPuntoVenta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MarcaService getMarcaService() {
|
|
||||||
return marcaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMarcaService(MarcaService marcaService) {
|
|
||||||
this.marcaService = marcaService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbMarca() {
|
|
||||||
return cmbMarca;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbMarca(Combobox cmbMarca) {
|
|
||||||
this.cmbMarca = cmbMarca;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyComboboxParada getCmbParadaDestino() {
|
|
||||||
return cmbParadaDestino;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbParadaDestino(MyComboboxParada cmbParadaDestino) {
|
|
||||||
this.cmbParadaDestino = cmbParadaDestino;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyComboboxParada getCmbParadaOrigem() {
|
|
||||||
return cmbParadaOrigem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbParadaOrigem(MyComboboxParada cmbParadaOrigem) {
|
|
||||||
this.cmbParadaOrigem = cmbParadaOrigem;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbPuntoVenta() {
|
|
||||||
return cmbPuntoVenta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
|
|
||||||
this.cmbPuntoVenta = cmbPuntoVenta;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MyListbox getCancelacionCargoList() {
|
|
||||||
return cancelacionCargoList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCancelacionCargoList(MyListbox cancelacionCargoList) {
|
|
||||||
this.cancelacionCargoList = cancelacionCargoList;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<CancelacionCargo> getLsCancelacionCargo() {
|
|
||||||
return lsCancelacionCargo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsCancelacionCargo(List<CancelacionCargo> lsCancelacionCargo) {
|
|
||||||
this.lsCancelacionCargo = lsCancelacionCargo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Textbox getTxtMaximo() {
|
|
||||||
return txtMaximo;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Combobox getCmbMotivoCancelacion() {
|
|
||||||
return cmbMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setCmbMotivoCancelacion(Combobox cmbMotivoCancelacion) {
|
|
||||||
this.cmbMotivoCancelacion = cmbMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<MotivoCancelacion> getLsMotivoCancelacion() {
|
|
||||||
return lsMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLsMotivoCancelacion(List<MotivoCancelacion> lsMotivoCancelacion) {
|
|
||||||
this.lsMotivoCancelacion = lsMotivoCancelacion;
|
|
||||||
}
|
|
||||||
|
|
||||||
public MotivoCancelacionService getMotivoCancelacionService() {
|
|
||||||
return motivoCancelacionService;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMotivoCancelacionService(MotivoCancelacionService motivoCancelacionService) {
|
|
||||||
this.motivoCancelacionService = motivoCancelacionService;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,27 +15,30 @@ import org.zkoss.zul.ListitemRenderer;
|
||||||
*/
|
*/
|
||||||
public class RenderConfiguracionCancelacion implements ListitemRenderer {
|
public class RenderConfiguracionCancelacion implements ListitemRenderer {
|
||||||
|
|
||||||
public void render(Listitem lstm, Object o) throws Exception {
|
public void render(Listitem lstm, Object o) throws Exception {
|
||||||
CancelacionCtrl cancelacion = (CancelacionCtrl) o;
|
CancelacionCtrl cancelacion = (CancelacionCtrl) o;
|
||||||
|
|
||||||
Listcell lc = new Listcell(cancelacion.getCancelacionctrlId() == null ? "" : cancelacion.getCancelacionctrlId().toString());
|
Listcell lc = new Listcell(cancelacion.getCancelacionctrlId() == null ? "" : cancelacion.getCancelacionctrlId().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(cancelacion.getMarca() == null ? "" : cancelacion.getMarca().getDescmarca());
|
lc = new Listcell(cancelacion.getMarca() == null ? "" : cancelacion.getMarca().getDescmarca());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(cancelacion.getParadaOrigem() == null ? "" : cancelacion.getParadaOrigem().getCveparada());
|
lc = new Listcell(cancelacion.getParadaOrigem() == null ? "" : cancelacion.getParadaOrigem().getCveparada());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(cancelacion.getParadaDestino() == null ? "" : cancelacion.getParadaDestino().getCveparada());
|
lc = new Listcell(cancelacion.getParadaDestino() == null ? "" : cancelacion.getParadaDestino().getCveparada());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(cancelacion.getPuntoVenta() == null ? "" : cancelacion.getPuntoVenta().getNombpuntoventa());
|
lc = new Listcell(cancelacion.getPuntoVenta() == null ? "" : cancelacion.getPuntoVenta().getNombpuntoventa());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(cancelacion.getMotivoCancelacion() == null ? "" : cancelacion.getMotivoCancelacion().getDescmotivo());
|
lc = new Listcell(cancelacion.getMotivoCancelacion() == null ? "" : cancelacion.getMotivoCancelacion().getDescmotivo());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lstm.setAttribute("data", cancelacion);
|
lc = new Listcell(cancelacion.getOrgaoConcedente() == null ? "" : cancelacion.getOrgaoConcedente().getDescOrgao());
|
||||||
}
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lstm.setAttribute("data", cancelacion);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||||
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p" xmlns:aop="http://www.springframework.org/schema/aop"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
|
||||||
|
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:p="http://www.springframework.org/schema/p"
|
||||||
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
|
||||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
|
||||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
|
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
|
||||||
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
|
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
|
||||||
|
|
||||||
<!-- Hibernate config -->
|
<!-- Hibernate config -->
|
||||||
<context:property-placeholder location="classpath:/com/rjconsultores/ventaboletos/web/cliente/conf/database.properties" />
|
<context:property-placeholder
|
||||||
|
location="classpath:/com/rjconsultores/ventaboletos/web/cliente/conf/database.properties" />
|
||||||
<context:component-scan base-package="com.rjconsultores.ventaboletos" />
|
<context:component-scan base-package="com.rjconsultores.ventaboletos" />
|
||||||
<tx:annotation-driven transaction-manager="transactionManager" />
|
<tx:annotation-driven transaction-manager="transactionManager" />
|
||||||
|
|
||||||
<bean id="sessionFactory" class="com.rjconsultores.ventaboletos.utilerias.spring.MyAnnotationSessionFactoryBean">
|
<bean id="sessionFactory"
|
||||||
|
class="com.rjconsultores.ventaboletos.utilerias.spring.MyAnnotationSessionFactoryBean">
|
||||||
<property name="dataSource">
|
<property name="dataSource">
|
||||||
<ref local="dataSource" />
|
<ref local="dataSource" />
|
||||||
</property>
|
</property>
|
||||||
|
@ -188,8 +192,10 @@
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
||||||
</value>
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAgencia</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAgencia</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaAntecipacomissao
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.InstiFinanceira</value>
|
</value>
|
||||||
|
<value>com.rjconsultores.ventaboletos.entidad.InstiFinanceira
|
||||||
|
</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaComissao</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaComissao</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaDiversos</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaDiversos</value>
|
||||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEstoque</value>
|
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEstoque</value>
|
||||||
|
@ -295,17 +301,19 @@
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
<bean id="transactionManager"
|
||||||
|
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
|
||||||
<property name="sessionFactory" ref="sessionFactory" />
|
<property name="sessionFactory" ref="sessionFactory" />
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="contextApplicationContextProvider" class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
<bean id="contextApplicationContextProvider"
|
||||||
|
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> -->
|
<!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> -->
|
||||||
<!-- <property name="resourceRef" value="true" /> -->
|
<!-- <property name="resourceRef" value="true" /> -->
|
||||||
<!-- <property name="jndiName" value="${database.jndi.name}" /> -->
|
<!-- <property name="jndiName" value="${database.jndi.name}" /> -->
|
||||||
<!-- </bean> -->
|
<!-- </bean> -->
|
||||||
|
|
||||||
<bean id="dataSource"
|
<bean id="dataSource"
|
||||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||||
|
@ -318,14 +326,19 @@
|
||||||
<!-- ====================================================== -->
|
<!-- ====================================================== -->
|
||||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||||
<!-- ====================================================== -->
|
<!-- ====================================================== -->
|
||||||
<bean id="hibernateSearchSupport" scope="prototype" class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
|
<bean id="hibernateSearchSupport" scope="prototype"
|
||||||
|
class="com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchSupportImpl">
|
||||||
<property name="sessionFactory" ref="sessionFactory" />
|
<property name="sessionFactory" ref="sessionFactory" />
|
||||||
<property name="hibernateSearchProcessor">
|
<property name="hibernateSearchProcessor">
|
||||||
<bean class="com.trg.search.hibernate.HibernateSearchProcessor" factory-method="getInstanceForSessionFactory">
|
<bean class="com.trg.search.hibernate.HibernateSearchProcessor"
|
||||||
|
factory-method="getInstanceForSessionFactory">
|
||||||
<constructor-arg ref="sessionFactory" />
|
<constructor-arg ref="sessionFactory" />
|
||||||
</bean>
|
</bean>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
<bean id="sqlFactory" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" />
|
<bean id="sqlFactory"
|
||||||
<bean id="sqlBuilder" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder" factory-bean="sqlFactory" factory-method="getBuilder" />
|
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" />
|
||||||
|
<bean id="sqlBuilder"
|
||||||
|
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder"
|
||||||
|
factory-bean="sqlFactory" factory-method="getBuilder" />
|
||||||
</beans>
|
</beans>
|
|
@ -706,6 +706,7 @@ busquedaConfiguracionCancelacionController.lhCveOrigen.label = Código Origem
|
||||||
busquedaConfiguracionCancelacionController.lhCveDestino.label = Código Destino
|
busquedaConfiguracionCancelacionController.lhCveDestino.label = Código Destino
|
||||||
busquedaConfiguracionCancelacionController.lhMarca.label = Marca
|
busquedaConfiguracionCancelacionController.lhMarca.label = Marca
|
||||||
busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar
|
busquedaConfiguracionCancelacionController.btnLimpar.tooltiptext = Eliminar
|
||||||
|
busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label = Orgão Concedente
|
||||||
|
|
||||||
# Pantalla Editar configuracional CANCELACION
|
# Pantalla Editar configuracional CANCELACION
|
||||||
editarConfiguracionCancelacionController.window.title = Configuração de Cancelamento
|
editarConfiguracionCancelacionController.window.title = Configuração de Cancelamento
|
||||||
|
|
|
@ -5,77 +5,112 @@
|
||||||
<?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="winBusquedaConfiguracionCancelacion" title="${c:l('busquedaConfiguracionCancelacionController.window.title')}"
|
<window id="winBusquedaConfiguracionCancelacion"
|
||||||
apply="${busquedaConfiguracionCancelacionController}" contentStyle="overflow:auto"
|
title="${c:l('busquedaConfiguracionCancelacionController.window.title')}"
|
||||||
height="500px" width="890px" border="normal" >
|
apply="${busquedaConfiguracionCancelacionController}"
|
||||||
<toolbar>
|
contentStyle="overflow:auto" height="500px" width="1000px"
|
||||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
border="normal">
|
||||||
tooltiptext="${c:l('busquedaConfiguracionCancelacionController.btnRefresh.tooltiptext')}" />
|
<toolbar>
|
||||||
<separator orient="vertical" />
|
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfiguracionCancelacionController.btnNovo.tooltiptext')}" />
|
tooltiptext="${c:l('busquedaConfiguracionCancelacionController.btnRefresh.tooltiptext')}" />
|
||||||
<separator orient="vertical" />
|
<separator orient="vertical" />
|
||||||
<button id="btnCerrar" onClick="winBusquedaConfiguracionCancelacion.detach()" image="/gui/img/exit.png" width="35px"
|
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||||
tooltiptext="${c:l('busquedaConfiguracionCancelacionController.btnCerrar.tooltiptext')}"/>
|
tooltiptext="${c:l('busquedaConfiguracionCancelacionController.btnNovo.tooltiptext')}" />
|
||||||
</toolbar>
|
<separator orient="vertical" />
|
||||||
|
<button id="btnCerrar"
|
||||||
|
onClick="winBusquedaConfiguracionCancelacion.detach()"
|
||||||
|
image="/gui/img/exit.png" width="35px"
|
||||||
|
tooltiptext="${c:l('busquedaConfiguracionCancelacionController.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('editarConfiguracionCancelacionController.lbMarca.label')}"/>
|
<label
|
||||||
<combobox id="cmbMarca" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
value="${c:l('editarConfiguracionCancelacionController.lbMarca.label')}" />
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
<combobox id="cmbMarca"
|
||||||
model="@{winBusquedaConfiguracionCancelacion$composer.lsMarca}"/>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
</row>
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
<row>
|
model="@{winBusquedaConfiguracionCancelacion$composer.lsMarca}" />
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbOrigen.label')}"/>
|
</row>
|
||||||
<combobox id="cmbParadaOrigem" mold="rounded" buttonVisible="true" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
<row>
|
||||||
</row>
|
<label
|
||||||
<row>
|
value="${c:l('editarConfiguracionCancelacionController.lbOrigen.label')}" />
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbDestino.label')}"/>
|
<combobox id="cmbParadaOrigem" mold="rounded"
|
||||||
<combobox id="cmbParadaDestino" mold="rounded" buttonVisible="true" width="90%" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"/>
|
buttonVisible="true" width="90%"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
<row>
|
</row>
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbPunto.label')}"/>
|
<row>
|
||||||
<combobox id="cmbPuntoVenta"
|
<label
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
value="${c:l('editarConfiguracionCancelacionController.lbDestino.label')}" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta" />
|
<combobox id="cmbParadaDestino" mold="rounded"
|
||||||
</row>
|
buttonVisible="true" width="90%"
|
||||||
<row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" />
|
||||||
<label value="${c:l('busquedaConfiguracionCancelacionController.lhMotivo.label')}"/>
|
</row>
|
||||||
<combobox id="cmbMotivoCancelacion" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<row>
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
<label
|
||||||
model="@{winBusquedaConfiguracionCancelacion$composer.lsMotivoCancelacion}"/>
|
value="${c:l('editarConfiguracionCancelacionController.lbPunto.label')}" />
|
||||||
</row>
|
<combobox id="cmbPuntoVenta" mold="rounded"
|
||||||
</rows>
|
buttonVisible="true" width="90%"
|
||||||
</grid>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfiguracionCancelacionController.lhMotivo.label')}" />
|
||||||
|
<combobox id="cmbMotivoCancelacion"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winBusquedaConfiguracionCancelacion$composer.lsMotivoCancelacion}" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label')}" />
|
||||||
|
<combobox id="cmbOrgaoConcedente"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winBusquedaConfiguracionCancelacion$composer.lsOrgaoConcedente}" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.btnPesquisa.label')}"/>
|
label="${c:l('busquedaConfiguracionCancelacionController.btnPesquisa.label')}" />
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<paging id="pagingCancelacion" pageSize="20" />
|
<paging id="pagingCancelacion" pageSize="20" />
|
||||||
<listbox id="cancelacionCtrlList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="cancelacionCtrlList"
|
||||||
multiple="false">
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
<listhead sizable="true">
|
multiple="false">
|
||||||
<listheader id="lhId" width="50px" image="/gui/img/builder.gif"
|
<listhead sizable="true">
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.lhId.label')}" sort="auto(cancelacionctrlId)"/>
|
<listheader id="lhId" width="50px"
|
||||||
<listheader id="lhMarca" image="/gui/img/builder.gif"
|
image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.lhMarca.label')}" sort="auto(marca.descmarca)"/>
|
label="${c:l('busquedaConfiguracionCancelacionController.lhId.label')}"
|
||||||
<listheader id="lhOrigem" image="/gui/img/builder.gif"
|
sort="auto(cancelacionctrlId)" />
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.lhCveOrigen.label')}" sort="auto(paradaOrigem.descparada)"/>
|
<listheader id="lhMarca" image="/gui/img/builder.gif"
|
||||||
<listheader id="lhDestino" image="/gui/img/builder.gif"
|
label="${c:l('busquedaConfiguracionCancelacionController.lhMarca.label')}"
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.lhCveDestino.label')}" sort="auto(paradaDestino.descparada)"/>
|
sort="auto(marca.descmarca)" />
|
||||||
<listheader id="lhPunto" image="/gui/img/builder.gif"
|
<listheader id="lhOrigem" image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.lhPunto.label')}" sort="auto(puntoVenta.nombpuntoventa)"/>
|
label="${c:l('busquedaConfiguracionCancelacionController.lhCveOrigen.label')}"
|
||||||
<listheader image="/gui/img/builder.gif"
|
sort="auto(paradaOrigem.descparada)" />
|
||||||
label="${c:l('busquedaConfiguracionCancelacionController.lhMotivo.label')}" sort="auto(motivoCancelacion.descmotivo)"/>
|
<listheader id="lhDestino" image="/gui/img/builder.gif"
|
||||||
</listhead>
|
label="${c:l('busquedaConfiguracionCancelacionController.lhCveDestino.label')}"
|
||||||
</listbox>
|
sort="auto(paradaDestino.descparada)" />
|
||||||
</window>
|
<listheader id="lhPunto" image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaConfiguracionCancelacionController.lhPunto.label')}"
|
||||||
|
sort="auto(puntoVenta.nombpuntoventa)" />
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaConfiguracionCancelacionController.lhMotivo.label')}"
|
||||||
|
sort="auto(motivoCancelacion.descmotivo)" />
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label')}"
|
||||||
|
sort="auto(orgaoConcedente.descOrgao)" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
|
@ -5,144 +5,194 @@
|
||||||
<?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="winEditarConfiguracionCancelacion" border="normal"
|
<window id="winEditarConfiguracionCancelacion" border="normal"
|
||||||
apply="${editarConfiguracionCancelacionController}"
|
apply="${editarConfiguracionCancelacionController}" height="530px"
|
||||||
height="530px" width="580px" contentStyle="overflow:auto"
|
width="580px" contentStyle="overflow:auto"
|
||||||
title="${c:l('editarConfiguracionCancelacionController.window.title')}">
|
title="${c:l('editarConfiguracionCancelacionController.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('editarConfiguracionCancelacionController.btnApagar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCancelacionController.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('editarConfiguracionCancelacionController.btnSalvar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCancelacionController.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="winEditarConfiguracionCancelacion.detach()"
|
onClick="winEditarConfiguracionCancelacion.detach()"
|
||||||
tooltiptext="${c:l('editarConfiguracionCancelacionController.btnFechar.tooltiptext')}"/>
|
tooltiptext="${c:l('editarConfiguracionCancelacionController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<tabbox>
|
<tabbox>
|
||||||
<tabs>
|
<tabs>
|
||||||
<tab id="tabCtrl" label="${c:l('editarConfiguracionCancelacionController.tabCtrl.label')}"/>
|
<tab id="tabCtrl"
|
||||||
<tab id="tabCargo" label="${c:l('editarConfiguracionCancelacionController.tabCargo.label')}"/>
|
label="${c:l('editarConfiguracionCancelacionController.tabCtrl.label')}" />
|
||||||
</tabs>
|
<tab id="tabCargo"
|
||||||
<tabpanels>
|
label="${c:l('editarConfiguracionCancelacionController.tabCargo.label')}" />
|
||||||
<tabpanel height="400px">
|
</tabs>
|
||||||
<grid fixedLayout="true">
|
<tabpanels>
|
||||||
<columns>
|
<tabpanel height="400px">
|
||||||
<column width="30%" />
|
<grid fixedLayout="true">
|
||||||
<column width="70%" />
|
<columns>
|
||||||
</columns>
|
<column width="30%" />
|
||||||
<rows>
|
<column width="70%" />
|
||||||
<row>
|
</columns>
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbMotivo.label')}"/>
|
<rows>
|
||||||
<combobox id="cmbMotivoCancelacion" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
<row>
|
||||||
mold="rounded" buttonVisible="true" width="90%" constraint="no empty"
|
<label
|
||||||
model="@{winEditarConfiguracionCancelacion$composer.lsMotivoCancelacion}"
|
value="${c:l('editarConfiguracionCancelacionController.lbMotivo.label')}" />
|
||||||
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.motivoCancelacion}"/>
|
<combobox id="cmbMotivoCancelacion"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
<row>
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbPunto.label')}"/>
|
constraint="no empty"
|
||||||
<combobox id="cmbPuntoVenta" constraint="no empty"
|
model="@{winEditarConfiguracionCancelacion$composer.lsMotivoCancelacion}"
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.motivoCancelacion}" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
</row>
|
||||||
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.puntoVenta}"/>
|
<row>
|
||||||
</row>
|
<label
|
||||||
<row>
|
value="${c:l('editarConfiguracionCancelacionController.lbPunto.label')}" />
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbMarca.label')}"/>
|
<combobox id="cmbPuntoVenta"
|
||||||
<combobox id="cmbMarca" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
mold="rounded" buttonVisible="true" width="90%"
|
width="90%"
|
||||||
model="@{winEditarConfiguracionCancelacion$composer.lsMarca}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.marca}"/>
|
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.puntoVenta}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbOrigen.label')}"/>
|
<label
|
||||||
<combobox id="cmbParadaOrigem"
|
value="${c:l('editarConfiguracionCancelacionController.lbMarca.label')}" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" buttonVisible="true" width="90%"
|
<combobox id="cmbMarca"
|
||||||
initialValue="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaOrigem}"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaOrigem,save-when='self.onBlur'}"/>
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
</row>
|
model="@{winEditarConfiguracionCancelacion$composer.lsMarca}"
|
||||||
<row>
|
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.marca}" />
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.lbDestino.label')}"/>
|
</row>
|
||||||
<combobox id="cmbParadaDestino"
|
<row>
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" buttonVisible="true" width="90%"
|
<label
|
||||||
initialValue="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaDestino}"
|
value="${c:l('editarConfiguracionCancelacionController.lbOrigen.label')}" />
|
||||||
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaDestino,save-when='self.onBlur'}"/>
|
<combobox id="cmbParadaOrigem"
|
||||||
</row>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
</rows>
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
</grid>
|
initialValue="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaOrigem}"
|
||||||
</tabpanel>
|
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaOrigem,save-when='self.onBlur'}" />
|
||||||
<tabpanel height="400px">
|
</row>
|
||||||
<grid fixedLayout="true">
|
<row>
|
||||||
<columns>
|
<label
|
||||||
<column width="30%" />
|
value="${c:l('editarConfiguracionCancelacionController.lbDestino.label')}" />
|
||||||
<column width="70%" />
|
<combobox id="cmbParadaDestino"
|
||||||
</columns>
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
<rows>
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
<row>
|
initialValue="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaDestino}"
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.minimo.label')}"/>
|
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.paradaDestino,save-when='self.onBlur'}" />
|
||||||
<hbox>
|
</row>
|
||||||
<textbox id="txtMinimo" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2" allowZero="true" defaultZero="true"/>
|
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.MSG.obsAntes')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.maximo.label')}"/>
|
|
||||||
<hbox>
|
|
||||||
<textbox id="txtMaximo" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2" allowZero="true"/>
|
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.MSG.obsDespues')}"/>
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}"/>
|
|
||||||
<radiogroup Id="descuento" >
|
|
||||||
<radio id="radioImp" label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}"/>
|
|
||||||
<radio id="radioPor" label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}"/>
|
|
||||||
</radiogroup>
|
|
||||||
|
|
||||||
</row>
|
<row>
|
||||||
<row>
|
<label
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.porc.label')}"/>
|
value="${c:l('busquedaConfiguracionCancelacionController.lhOrgaoConcedente.label')}" />
|
||||||
<!--decimalbox id="porcentaje" width="50%" maxlength="5" /-->
|
<combobox id="cmbOrgaoConcedente"
|
||||||
<textbox id="porcentaje" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="5" scale="2" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
</row>
|
mold="rounded" buttonVisible="true" width="90%" constraint="no empty"
|
||||||
<row>
|
model="@{winEditarConfiguracionCancelacion$composer.lsOrgaoConcedente}"
|
||||||
<label value="${c:l('editarConfiguracionCancelacionController.importe.label')}"/>
|
selectedItem="@{winEditarConfiguracionCancelacion$composer.cancelacionCtrl.orgaoConcedente}"/>
|
||||||
<!--decimalbox id="importe" width="50%" maxlength="7" /-->
|
</row>
|
||||||
<textbox id="importe" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="7" scale="2" />
|
</rows>
|
||||||
</row>
|
</grid>
|
||||||
</rows>
|
</tabpanel>
|
||||||
|
<tabpanel height="400px">
|
||||||
|
<grid fixedLayout="true">
|
||||||
|
<columns>
|
||||||
|
<column width="30%" />
|
||||||
|
<column width="70%" />
|
||||||
|
</columns>
|
||||||
|
<rows>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCancelacionController.minimo.label')}" />
|
||||||
|
<hbox>
|
||||||
|
<textbox id="txtMinimo"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
precision="6" scale="2" allowZero="true" defaultZero="true" />
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCancelacionController.MSG.obsAntes')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCancelacionController.maximo.label')}" />
|
||||||
|
<hbox>
|
||||||
|
<textbox id="txtMaximo"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
|
precision="6" scale="2" allowZero="true" />
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCancelacionController.MSG.obsDespues')}" />
|
||||||
|
</hbox>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('editarConfiguracionCategoriaController.lblDescuento.value')}" />
|
||||||
|
<radiogroup Id="descuento">
|
||||||
|
<radio id="radioImp"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoImporte.value')}" />
|
||||||
|
<radio id="radioPor"
|
||||||
|
label="${c:l('editarConfiguracionCategoriaController.lblDescuentoPorc.value')}" />
|
||||||
|
</radiogroup>
|
||||||
|
|
||||||
</grid>
|
</row>
|
||||||
<toolbar>
|
<row>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<label
|
||||||
<button id="btnAdicionarCargo" height="20"
|
value="${c:l('editarConfiguracionCancelacionController.porc.label')}" />
|
||||||
image="/gui/img/add.png" width="35px"
|
<!--decimalbox id="porcentaje" width="50%" maxlength="5" /-->
|
||||||
tooltiptext="${c:l('editarConfiguracionCancelacionController.btnAddCorrida.tooltiptext')}"/>
|
<textbox id="porcentaje"
|
||||||
<button id="btnRemoverCargo" height="20"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
image="/gui/img/remove.png" width="35px"
|
precision="5" scale="2" />
|
||||||
tooltiptext="${c:l('editarConfiguracionCancelacionController.btnBorrarCorrida.tooltiptext')}"/>
|
</row>
|
||||||
</hbox>
|
<row>
|
||||||
</toolbar>
|
<label
|
||||||
<listbox id="cancelacionCargoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
value="${c:l('editarConfiguracionCancelacionController.importe.label')}" />
|
||||||
vflex="true" multiple="false" >
|
<!--decimalbox id="importe" width="50%" maxlength="7" /-->
|
||||||
<listhead sizable="true">
|
<textbox id="importe"
|
||||||
<listheader image="/gui/img/create_doc.gif" width="25%"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||||
label="${c:l('editarConfiguracionCancelacionController.minimo.label')}" sort="auto(tiempominimo)"/>
|
precision="7" scale="2" />
|
||||||
<listheader image="/gui/img/create_doc.gif" width="25%"
|
</row>
|
||||||
label="${c:l('editarConfiguracionCancelacionController.maximo.label')}" sort="auto(tiempomaximo)"/>
|
</rows>
|
||||||
<listheader image="/gui/img/create_doc.gif" width="25%"
|
|
||||||
label="${c:l('editarConfiguracionCancelacionController.porc.label')}" sort="auto(porccargo)"/>
|
|
||||||
<listheader image="/gui/img/create_doc.gif" width="25%"
|
|
||||||
label="${c:l('editarConfiguracionCancelacionController.importe.label')}" sort="auto(importecargo)"/>
|
|
||||||
|
|
||||||
</listhead>
|
</grid>
|
||||||
</listbox>
|
<toolbar>
|
||||||
</tabpanel>
|
<hbox spacing="5px" style="padding:1px"
|
||||||
</tabpanels>
|
align="right">
|
||||||
</tabbox>
|
<button id="btnAdicionarCargo" height="20"
|
||||||
</window>
|
image="/gui/img/add.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCancelacionController.btnAddCorrida.tooltiptext')}" />
|
||||||
|
<button id="btnRemoverCargo" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
|
tooltiptext="${c:l('editarConfiguracionCancelacionController.btnBorrarCorrida.tooltiptext')}" />
|
||||||
|
</hbox>
|
||||||
|
</toolbar>
|
||||||
|
<listbox id="cancelacionCargoList"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" multiple="false">
|
||||||
|
<listhead sizable="true">
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="25%"
|
||||||
|
label="${c:l('editarConfiguracionCancelacionController.minimo.label')}"
|
||||||
|
sort="auto(tiempominimo)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="25%"
|
||||||
|
label="${c:l('editarConfiguracionCancelacionController.maximo.label')}"
|
||||||
|
sort="auto(tiempomaximo)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="25%"
|
||||||
|
label="${c:l('editarConfiguracionCancelacionController.porc.label')}"
|
||||||
|
sort="auto(porccargo)" />
|
||||||
|
<listheader image="/gui/img/create_doc.gif"
|
||||||
|
width="25%"
|
||||||
|
label="${c:l('editarConfiguracionCancelacionController.importe.label')}"
|
||||||
|
sort="auto(importecargo)" />
|
||||||
|
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</tabpanel>
|
||||||
|
</tabpanels>
|
||||||
|
</tabbox>
|
||||||
|
</window>
|
||||||
</zk>
|
</zk>
|
||||||
|
|
Loading…
Reference in New Issue