diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxPuntoVenta.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxPuntoVenta.java index 0b9cb5070..a1ed40ed2 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxPuntoVenta.java +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/MyComboboxPuntoVenta.java @@ -4,10 +4,9 @@ */ package com.rjconsultores.ventaboletos.web.utilerias; -import com.rjconsultores.ventaboletos.entidad.PuntoVenta; -import com.rjconsultores.ventaboletos.service.PuntoVentaService; import java.util.ArrayList; import java.util.List; + import org.zkoss.util.resource.Labels; import org.zkoss.zk.ui.WrongValueException; import org.zkoss.zk.ui.event.Event; @@ -18,6 +17,9 @@ import org.zkoss.zkplus.databind.BindingListModelList; import org.zkoss.zkplus.spring.SpringUtil; import org.zkoss.zul.Combobox; +import com.rjconsultores.ventaboletos.entidad.PuntoVenta; +import com.rjconsultores.ventaboletos.service.PuntoVentaService; + /** * * @author Administrador @@ -28,6 +30,7 @@ public class MyComboboxPuntoVenta extends Combobox { private List lsPuntoVenta; private PuntoVenta initialValue; private Integer indiceSelected = null; + private boolean sinTodos = false; public MyComboboxPuntoVenta() { super(); @@ -48,7 +51,7 @@ public class MyComboboxPuntoVenta extends Combobox { return; } if (!strPuntoVenta.isEmpty()) { - lsPuntoVenta = puntoVentaService.buscaLike(strPuntoVenta); + lsPuntoVenta = puntoVentaService.buscaLike(strPuntoVenta, sinTodos); BindingListModel listModelPuntoVenta = new BindingListModelList(lsPuntoVenta, true); MyComboboxPuntoVenta.this.setModel(listModelPuntoVenta); @@ -109,4 +112,13 @@ public class MyComboboxPuntoVenta extends Combobox { super.getValue(); } } + + public boolean isSinTodos() { + return sinTodos; + } + + public void setSinTodos(boolean sinTodos) { + this.sinTodos = sinTodos; + } + } diff --git a/web/gui/configuraciones_comerciales/editarConvenio.zul b/web/gui/configuraciones_comerciales/editarConvenio.zul index 1e0afc64e..0460fff37 100644 --- a/web/gui/configuraciones_comerciales/editarConvenio.zul +++ b/web/gui/configuraciones_comerciales/editarConvenio.zul @@ -365,6 +365,7 @@ value="${c:l('editarConvenioController.tabPuntoVenta.value')}" />