Correção para não listar TODOS no convecio.fixes bug#7637
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@57955 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
dcc186de9d
commit
ba192afce1
|
@ -4,10 +4,9 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.utilerias;
|
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.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.zkoss.util.resource.Labels;
|
import org.zkoss.util.resource.Labels;
|
||||||
import org.zkoss.zk.ui.WrongValueException;
|
import org.zkoss.zk.ui.WrongValueException;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
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.zkplus.spring.SpringUtil;
|
||||||
import org.zkoss.zul.Combobox;
|
import org.zkoss.zul.Combobox;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
|
@ -28,6 +30,7 @@ public class MyComboboxPuntoVenta extends Combobox {
|
||||||
private List<PuntoVenta> lsPuntoVenta;
|
private List<PuntoVenta> lsPuntoVenta;
|
||||||
private PuntoVenta initialValue;
|
private PuntoVenta initialValue;
|
||||||
private Integer indiceSelected = null;
|
private Integer indiceSelected = null;
|
||||||
|
private boolean sinTodos = false;
|
||||||
|
|
||||||
public MyComboboxPuntoVenta() {
|
public MyComboboxPuntoVenta() {
|
||||||
super();
|
super();
|
||||||
|
@ -48,7 +51,7 @@ public class MyComboboxPuntoVenta extends Combobox {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!strPuntoVenta.isEmpty()) {
|
if (!strPuntoVenta.isEmpty()) {
|
||||||
lsPuntoVenta = puntoVentaService.buscaLike(strPuntoVenta);
|
lsPuntoVenta = puntoVentaService.buscaLike(strPuntoVenta, sinTodos);
|
||||||
|
|
||||||
BindingListModel listModelPuntoVenta = new BindingListModelList(lsPuntoVenta, true);
|
BindingListModel listModelPuntoVenta = new BindingListModelList(lsPuntoVenta, true);
|
||||||
MyComboboxPuntoVenta.this.setModel(listModelPuntoVenta);
|
MyComboboxPuntoVenta.this.setModel(listModelPuntoVenta);
|
||||||
|
@ -109,4 +112,13 @@ public class MyComboboxPuntoVenta extends Combobox {
|
||||||
super.getValue();
|
super.getValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isSinTodos() {
|
||||||
|
return sinTodos;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSinTodos(boolean sinTodos) {
|
||||||
|
this.sinTodos = sinTodos;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -365,6 +365,7 @@
|
||||||
value="${c:l('editarConvenioController.tabPuntoVenta.value')}" />
|
value="${c:l('editarConvenioController.tabPuntoVenta.value')}" />
|
||||||
<combobox id="cmbPuntoVenta"
|
<combobox id="cmbPuntoVenta"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
|
sinTodos="true"
|
||||||
mold="rounded" buttonVisible="true" width="90%" />
|
mold="rounded" buttonVisible="true" width="90%" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
|
Loading…
Reference in New Issue