From ba192afce187e3276eec0fd68093aca820c0a3a5 Mon Sep 17 00:00:00 2001 From: gleimar Date: Sat, 16 Jul 2016 16:33:44 +0000 Subject: [PATCH] =?UTF-8?q?Corre=C3=A7=C3=A3o=20para=20n=C3=A3o=20listar?= =?UTF-8?q?=20TODOS=20no=20convecio.fixes=20bug#7637?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@57955 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../web/utilerias/MyComboboxPuntoVenta.java | 18 +++++++++++++++--- .../editarConvenio.zul | 1 + 2 files changed, 16 insertions(+), 3 deletions(-) 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')}" />