fixes bug#6255
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@43663 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ec14369369
commit
80be0dc5f2
|
@ -8,6 +8,7 @@ import java.util.HashMap;
|
|||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -65,6 +66,7 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
|||
private Textbox txtColonia;
|
||||
private Textbox txtTelefonoUno;
|
||||
private Textbox txtTelefonoDos;
|
||||
private Textbox txtNumDocPuntoVenta;
|
||||
private List<Empresa> lsEmpresas;
|
||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||
private List<Moneda> lsMoneda;
|
||||
|
@ -315,6 +317,10 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
|||
claseServicioBusqueda.addFilterLike("numtelefonodos", txtTelefonoDos.getText().replace("_", ""));
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(txtNumDocPuntoVenta.getText())) {
|
||||
claseServicioBusqueda.addFilterLike("numDoCPuntoVenta", txtNumDocPuntoVenta.getText().trim().concat("%"));
|
||||
}
|
||||
|
||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
claseServicioBusqueda.addSortAsc("nombpuntoventa");
|
||||
claseServicioBusqueda.addFilterNotEqual("puntoventaId", -1);
|
||||
|
|
|
@ -473,11 +473,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
if (puntoVenta.getPuntoventaId() != null) {
|
||||
if (puntoVenta.getIndIntegracion() != null) {
|
||||
|
||||
if (puntoVenta.getIndIntegracion() == TipoRetorno.CONCLUIDA.getValor()) {
|
||||
if (puntoVenta.getIndIntegracion().equals(TipoRetorno.CONCLUIDA.getValor())) {
|
||||
radTotvsSi.setChecked(true);
|
||||
} else if (puntoVenta.getIndIntegracion() == TipoRetorno.JA_CADASTRADA.getValor()) {
|
||||
} else if (puntoVenta.getIndIntegracion().equals(TipoRetorno.JA_CADASTRADA.getValor())) {
|
||||
radTotvsNo.setChecked(true);
|
||||
} else if (puntoVenta.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
||||
} else if (puntoVenta.getIndIntegracion().equals(TipoRetorno.ERRO.getValor())) {
|
||||
radTotvsErro.setChecked(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -23,6 +24,9 @@ public class RenderPuntoVenta implements ListitemRenderer {
|
|||
Listcell lc = new Listcell(puntoVenta.getNumPuntoVenta().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(StringUtils.isNotBlank(puntoVenta.getNumDoCPuntoVenta())?puntoVenta.getNumDoCPuntoVenta():"");
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(puntoVenta.getNombpuntoventa());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
|
|
@ -870,6 +870,9 @@ editarPuntoVentaController.erro.digito = Necessita informar o dígito da conta
|
|||
editarPuntoVentaController.erro.instiFinanceiraId = Necessita informar o banco
|
||||
editarPuntoVentaController.erro.instiFinanceiraId.codigo = Necessita informar o código do banco
|
||||
editarPuntoVentaController.erro.colonia = Necessita informar o bairro
|
||||
editarPuntoVentaController.erro.cep = Necessita informar o el codigo postal
|
||||
editarPuntoVentaController.erro.calle = Necessita informar la calle
|
||||
editarPuntoVentaController.erro.cpfCnpj= CPF ou CNPJ incorreto
|
||||
editarPuntoVentaController.label.fecIntegracion=Fecha
|
||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integracion
|
||||
|
|
|
@ -902,6 +902,9 @@ editarPuntoVentaController.erro.digito = Necessita informar o dígito da conta d
|
|||
editarPuntoVentaController.erro.instiFinanceiraId = Necessita informar o banco do banco
|
||||
editarPuntoVentaController.erro.instiFinanceiraId.codigo = Necessita informar o código do banco do banco
|
||||
editarPuntoVentaController.erro.colonia = Necessita informar o bairro
|
||||
editarPuntoVentaController.erro.cep = Necessita informar o CEP
|
||||
editarPuntoVentaController.erro.calle= Necessita informar os dados do endereço
|
||||
editarPuntoVentaController.erro.cpfCnpj= CPF ou CNPJ incorreto
|
||||
editarPuntoVentaController.label.fecIntegracion=Data
|
||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integração
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
model="@{winBusquedaPuntoVenta$composer.lsNodos}" />
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
<row>
|
||||
<!-- Status Aprobacion -->
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}" />
|
||||
|
@ -89,6 +89,13 @@
|
|||
<radio id="radAprobacionLatente"
|
||||
label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}" />
|
||||
</radiogroup>
|
||||
|
||||
<!-- CNPJ -->
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbdscNumDoCPuntoVenta.value')}" />
|
||||
|
||||
<textbox id="txtNumDocPuntoVenta" width="99%" maxlength="60"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
|
||||
<row spans="1,3">
|
||||
|
@ -141,6 +148,9 @@
|
|||
<listheader image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('busquedaPuntoVentaController.lhNumero.label')}"
|
||||
sort="auto(numPuntoVenta)" />
|
||||
<listheader image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarPuntoVentaController.lbdscNumDoCPuntoVenta.value')}"
|
||||
sort="auto(numDoCPuntoVenta)" />
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaPuntoVentaController.lhDesc.label')}"
|
||||
sort="auto(nombpuntoventa)" width="200px" />
|
||||
|
|
Loading…
Reference in New Issue