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

View File

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

View File

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