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