Tela de Busca de Agência

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30755 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2013-09-09 14:49:32 +00:00
parent 4f184f4a10
commit de4e619414
3 changed files with 163 additions and 120 deletions

View File

@ -19,6 +19,7 @@ import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.util.Clients;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Intbox;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Radio;
import org.zkoss.zul.Textbox;
@ -58,6 +59,7 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
private MyListbox puntoVentaList;
private Paging pagingPuntoVenta;
private Textbox txtNombre;
private Textbox txtNumeroPtoVenta;
private Textbox txtCalle;
private Textbox txtNumero;
private Textbox txtColonia;
@ -255,8 +257,12 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
TipoPuntoVenta tipoPontoVenta;
Moneda moneda;
Nodo nodo;
String statusAprobacion = null;
if (!txtNumeroPtoVenta.getText().isEmpty()) {
claseServicioBusqueda.addFilterLike("numPuntoVenta", "%" + txtNumeroPtoVenta.getText().trim().concat("%"));
}
String statusAprobacion = null;
if (radAprobacionAutorizado.isChecked()) {
statusAprobacion = "A";
} else if (radAprobacionLatente.isChecked()) {

View File

@ -692,6 +692,7 @@ editarPuntoVentaController.btnApagar.tooltiptext = Eliminar
editarPuntoVentaController.btnSalvar.tooltiptext = Salvar
editarPuntoVentaController.btnFechar.tooltiptext = Fechar
editarPuntoVentaController.lbNome.value = Ponto de Venda ( Agência )
editarPuntoVentaController.lbNumeroPtoVenta.value = Número da Agência
editarPuntoVentaController.lbSubordinadaPunto.label = Subordinado à Agência
editarPuntoVentaController.lbActivo.value = Ativo
editarPuntoVentaController.lbCalle.value = Rua

View File

@ -5,18 +5,22 @@
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winBusquedaPuntoVenta" title="${c:l('busquedaPuntoVentaController.window.title')}"
<window id="winBusquedaPuntoVenta"
title="${c:l('busquedaPuntoVentaController.window.title')}"
apply="${busquedaPuntoVentaController}" contentStyle="overflow:auto"
height="500px" width="950px" border="normal" >
height="510px" width="950px" border="normal">
<toolbar>
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
<button id="btnRefresh" image="/gui/img/refresh.png"
width="35px"
tooltiptext="${c:l('busquedaPuntoVentaController.btnRefresh.tooltiptext')}" />
<separator orient="vertical" />
<button id="btnNovo" image="/gui/img/add.png" width="35px"
tooltiptext="${c:l('busquedaPuntoVentaController.btnNovo.tooltiptext')}" />
<separator orient="vertical" />
<button id="btnCerrar" onClick="winBusquedaPuntoVenta.detach()" image="/gui/img/exit.png" width="35px"
tooltiptext="${c:l('busquedaPuntoVentaController.btnCerrar.tooltiptext')}"/>
<button id="btnCerrar"
onClick="winBusquedaPuntoVenta.detach()" image="/gui/img/exit.png"
width="35px"
tooltiptext="${c:l('busquedaPuntoVentaController.btnCerrar.tooltiptext')}" />
</toolbar>
<grid fixedLayout="true">
@ -29,100 +33,132 @@
<rows>
<row>
<!--Nome do Ponto de Venda-->
<label value="${c:l('editarPuntoVentaController.lbNome.value')}"/>
<label
value="${c:l('editarPuntoVentaController.lbNome.value')}" />
<textbox id="txtNombre" width="99%" maxlength="60"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<!-- Empresa -->
<label value="${c:l('editarPuntoVentaController.lbEmpresa.value')}"/>
<combobox id="cmbEmpresa" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" width="99%"
mold="rounded" buttonVisible="true"
model="@{winBusquedaPuntoVenta$composer.lsEmpresas}"/>
<label
value="${c:l('editarPuntoVentaController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
width="99%" mold="rounded" buttonVisible="true"
model="@{winBusquedaPuntoVenta$composer.lsEmpresas}" />
</row>
<row>
<!--Numero do Ponto de Venda-->
<label
value="${c:l('editarPuntoVentaController.lbNumeroPtoVenta.value')}" />
<textbox id="txtNumeroPtoVenta" width="99%"
maxlength="60"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<!-- Tipo Pto Venda -->
<label value="${c:l('editarPuntoVentaController.lbTpoPtoVta.value')}"/>
<combobox id="cmbTipoPontoVenta" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
<label
value="${c:l('editarPuntoVentaController.lbTpoPtoVta.value')}" />
<combobox id="cmbTipoPontoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" buttonVisible="true" width="100%"
model="@{winBusquedaPuntoVenta$composer.lsTipoPuntoVenta}"/>
<!-- Moneda -->
<label value="${c:l('editarPuntoVentaController.lbMoneda.value')}"/>
<combobox id="cmbMoneda" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" width="100%"
mold="rounded" buttonVisible="true"
model="@{winBusquedaPuntoVenta$composer.lsMoneda}"/>
model="@{winBusquedaPuntoVenta$composer.lsTipoPuntoVenta}" />
</row>
<row>
<!-- Status Aprobacion -->
<label value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}"/>
<radiogroup Id="indAprobacion" >
<radio id="radAprobacionAutorizado" label="${c:l('editarCatalogoDeRutaController.radAprobacionAutorizado.value')}"/>
<radio id="radAprobacionLatente" label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}"/>
</radiogroup>
<!-- Moneda -->
<label
value="${c:l('editarPuntoVentaController.lbMoneda.value')}" />
<combobox id="cmbMoneda"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
width="100%" mold="rounded" buttonVisible="true"
model="@{winBusquedaPuntoVenta$composer.lsMoneda}" />
<!-- Nodo -->
<label value="${c:l('editarPuntoVentaController.lbNodo.value')}"/>
<combobox id="cmbNodo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" width="100%"
mold="rounded" buttonVisible="true"
model="@{winBusquedaPuntoVenta$composer.lsNodos}"/>
<label
value="${c:l('editarPuntoVentaController.lbNodo.value')}" />
<combobox id="cmbNodo"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
width="100%" mold="rounded" buttonVisible="true"
model="@{winBusquedaPuntoVenta$composer.lsNodos}" />
</row>
<row spans="1,3">
<!-- Status Aprobacion -->
<label
value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}" />
<radiogroup Id="indAprobacion">
<radio id="radAprobacionAutorizado"
label="${c:l('editarCatalogoDeRutaController.radAprobacionAutorizado.value')}" />
<radio id="radAprobacionLatente"
label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}" />
</radiogroup>
</row>
<row spans="1,3">
<!-- calle -->
<label value="${c:l('editarPuntoVentaController.lbCalle.value')}"/>
<label
value="${c:l('editarPuntoVentaController.lbCalle.value')}" />
<textbox id="txtCalle" width="99%" maxlength="60"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
<row>
<!-- Numero-->
<label value="${c:l('editarPuntoVentaController.lbNumero.value')}"/>
<label
value="${c:l('editarPuntoVentaController.lbNumero.value')}" />
<textbox id="txtNumero" width="99%" maxlength="30"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<!-- Colonia -->
<label value="${c:l('editarPuntoVentaController.lbColonia.value')}"/>
<label
value="${c:l('editarPuntoVentaController.lbColonia.value')}" />
<textbox id="txtColonia" width="99%" maxlength="30"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
<row>
<!-- Telefono uno -->
<label value="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}"/>
<textbox id="txtTelefonoUno" width="99%" maxlength="15"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
<label
value="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}" />
<textbox id="txtTelefonoUno" width="99%"
maxlength="15"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<!-- Telefono dos -->
<label value="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}"/>
<textbox id="txtTelefonoDos" width="99%" maxlength="15"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
<label
value="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}" />
<textbox id="txtTelefonoDos" width="99%"
maxlength="15"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnPesquisa" image="/gui/img/find.png"
label="${c:l('busquedaPuntoVentaController.btnPesquisa.label')}"/>
label="${c:l('busquedaPuntoVentaController.btnPesquisa.label')}" />
</toolbar>
<paging id="pagingPuntoVenta" pageSize="20"/>
<listbox id="puntoVentaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
<paging id="pagingPuntoVenta" pageSize="20" />
<listbox id="puntoVentaList"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false">
<listhead sizable="true">
<listheader image="/gui/img/create_doc.gif" width="55px"
label="${c:l('busquedaPuntoVentaController.lhId.label')}"
sort="auto(puntoventaId)"/>
sort="auto(puntoventaId)" />
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
label="${c:l('busquedaPuntoVentaController.lhDesc.label')}"
sort="auto(nombpuntoventa)" width="200px"/>
sort="auto(nombpuntoventa)" width="200px" />
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbEmpresa.value')}"
sort="auto(empresa.nombempresa)" width="110px"/>
sort="auto(empresa.nombempresa)" width="110px" />
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbCalle.value')}"
sort="auto(direccioncalle)" width="200px"/>
sort="auto(direccioncalle)" width="200px" />
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbNumero.value')}"
sort="auto(direccionnumero)" width="110px"/>
sort="auto(direccionnumero)" width="110px" />
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}"
sort="auto(numtelefonouno)" width="110px"/>
sort="auto(numtelefonouno)" width="110px" />
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarPuntoVentaController.lbTelefonoDos.value')}"
sort="auto(numtelefonodos)" width="110px"/>
sort="auto(numtelefonodos)" width="110px" />
</listhead>
</listbox>
</window>