fixed bug #7416 - adição filtro de MAC tela de Estação
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55568 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
3a8a578013
commit
435e43407e
|
@ -46,12 +46,14 @@ public class BusquedaEstacionController extends MyGenericForwardComposer {
|
|||
private Paging pagingEstacion;
|
||||
private Textbox txtDescEstacion;
|
||||
private Combobox cmbPuntoVenta;
|
||||
private Textbox txtMAC;
|
||||
private Longbox txtNumCaja;
|
||||
private static Logger log = Logger.getLogger(BusquedaEstacionController.class);
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
|
||||
estacionList.setItemRenderer(new RenderEstacion());
|
||||
estacionList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
@ -98,7 +100,21 @@ public class BusquedaEstacionController extends MyGenericForwardComposer {
|
|||
|
||||
estacionBusqueda.addSortAsc("descestacion");
|
||||
estacionBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
if (txtMAC.getValue() != null && !txtMAC.getValue().isEmpty()) {
|
||||
if(txtMAC.getValue().length() != 17){
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("editarEstacionController.MSG.informarMACCompleto"),
|
||||
Labels.getLabel("editarEstacionController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
log.error(ex);
|
||||
Clients.alert(Labels.getLabel("MSG.Error"), Labels.getLabel("editarEstacionController.window.title"), Messagebox.INFORMATION);
|
||||
}
|
||||
return;
|
||||
}
|
||||
Long l = Long.parseLong(txtMAC.getValue().replaceAll("-", ""), 16);
|
||||
estacionBusqueda.addFilterLike("descmac", l.toString());
|
||||
}
|
||||
plwEstacion.init(estacionBusqueda, estacionList, pagingEstacion);
|
||||
|
||||
if (estacionList.getData().length == 0) {
|
||||
|
|
|
@ -3527,6 +3527,7 @@ busquedaEstacionController.ID.label = ID
|
|||
busquedaEstacionController.lhDescMac.label = Descripción MAC
|
||||
busquedaEstacionController.lhNumCaja.label = Caja
|
||||
busquedaEstacionController.lhPuntoVenta.label = Punto de venta
|
||||
busquedaEstacionController.lhMAC.label = MAC
|
||||
busquedaEstacionController.btnPesquisa.label = Búsqueda
|
||||
busquedaEstacionController.nomeImpressora.label = Impresora
|
||||
busquedaEstacionController.nomeImpressoraRelatorio.label = Impresora reporte
|
||||
|
@ -3560,6 +3561,7 @@ editarEstacionController.numEmpresa.label=Cód. Empresa
|
|||
editarEstacionController.numFilial.label=Cód. Filial
|
||||
editarEstacionController.numPdv.label=Num. PDV
|
||||
editarEstacionController.txtIpServidor.value = Dirección Sitef
|
||||
editarEstacionController.MSG.informarMACCompleto = Informe o MAC completo para filtro.
|
||||
|
||||
#Editar Estacion Sitef
|
||||
editarEstacionController.tab.label.sitef = SiTef
|
||||
|
|
|
@ -3591,6 +3591,7 @@ busquedaEstacionController.ID.label = ID
|
|||
busquedaEstacionController.lhDescMac.label = Descrição Mac
|
||||
busquedaEstacionController.lhNumCaja.label = Caixa
|
||||
busquedaEstacionController.lhPuntoVenta.label = Ponto Venda
|
||||
busquedaEstacionController.lhMAC.label = MAC
|
||||
busquedaEstacionController.btnPesquisa.label = Pesquisa
|
||||
busquedaEstacionController.nomeImpressora.label = Impressora
|
||||
busquedaEstacionController.nomeImpressoraRelatorio.label = Impressora Relatório
|
||||
|
@ -3624,6 +3625,7 @@ editarEstacionController.numEmpresa.label=Cód. Empresa
|
|||
editarEstacionController.numFilial.label=Cód. Filial
|
||||
editarEstacionController.numPdv.label=Num. PDV
|
||||
editarEstacionController.txtIpServidor.value = Endereço Sitef
|
||||
editarEstacionController.MSG.informarMACCompleto = Informe o MAC completo para filtro.
|
||||
|
||||
#Editar Estacion Sitef
|
||||
editarEstacionController.tab.label.sitef = SiTef
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
<label
|
||||
value="${c:l('busquedaEstacionController.lhDescEstacion.label')}" />
|
||||
<textbox id="txtDescEstacion" width="300px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||
maxlength="60" />
|
||||
</row>
|
||||
<row>
|
||||
|
@ -50,6 +49,12 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
mold="rounded" buttonVisible="true" width="300px" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaEstacionController.lhMAC.label')}" />
|
||||
<textbox id="txtMAC" width="300px" maxlength="17" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
|
Loading…
Reference in New Issue