fixes bug #6302
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@43984 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
bffaec7a37
commit
9d8e42e98b
|
@ -4,8 +4,12 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.ListIterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
import org.apache.commons.lang.StringUtils;
|
||||||
|
@ -33,12 +37,14 @@ import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||||
import com.rjconsultores.ventaboletos.service.MonedaService;
|
import com.rjconsultores.ventaboletos.service.MonedaService;
|
||||||
import com.rjconsultores.ventaboletos.service.NodoService;
|
import com.rjconsultores.ventaboletos.service.NodoService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
|
import com.rjconsultores.ventaboletos.utilerias.ApplicationProperties;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVenta;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVenta;
|
||||||
|
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -77,6 +83,21 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Combobox cmbNodo;
|
private Combobox cmbNodo;
|
||||||
private Radio radAprobacionAutorizado;
|
private Radio radAprobacionAutorizado;
|
||||||
private Radio radAprobacionLatente;
|
private Radio radAprobacionLatente;
|
||||||
|
private Radio radTotvsSi;
|
||||||
|
private Radio radTotvsNo;
|
||||||
|
private boolean integracionTotvs;
|
||||||
|
|
||||||
|
public boolean isIntegracionTotvs() {
|
||||||
|
integracionTotvs = false;
|
||||||
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
|
integracionTotvs = true;
|
||||||
|
}
|
||||||
|
return integracionTotvs;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIntegracionTotvs(boolean integracionTotvs) {
|
||||||
|
this.integracionTotvs = integracionTotvs;
|
||||||
|
}
|
||||||
|
|
||||||
public Radio getRadAprobacionAutorizado() {
|
public Radio getRadAprobacionAutorizado() {
|
||||||
return radAprobacionAutorizado;
|
return radAprobacionAutorizado;
|
||||||
|
@ -264,6 +285,18 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
||||||
claseServicioBusqueda.addFilterLike("numPuntoVenta", "%" + txtNumeroPtoVenta.getText().trim().concat("%"));
|
claseServicioBusqueda.addFilterLike("numPuntoVenta", "%" + txtNumeroPtoVenta.getText().trim().concat("%"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
List<Integer> lsIntegracion = new ArrayList<Integer>();
|
||||||
|
lsIntegracion.add(1);
|
||||||
|
lsIntegracion.add(2);
|
||||||
|
|
||||||
|
if (radTotvsSi.isChecked()){
|
||||||
|
claseServicioBusqueda.addFilterIn("indIntegracion", lsIntegracion);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (radTotvsNo.isChecked()){
|
||||||
|
claseServicioBusqueda.addFilterEqual("indIntegracion", -1);
|
||||||
|
}
|
||||||
|
|
||||||
String statusAprobacion = null;
|
String statusAprobacion = null;
|
||||||
if (radAprobacionAutorizado.isChecked()) {
|
if (radAprobacionAutorizado.isChecked()) {
|
||||||
statusAprobacion = "A";
|
statusAprobacion = "A";
|
||||||
|
|
|
@ -860,6 +860,8 @@ editarPuntoVentaController.label.isento = ISENTO
|
||||||
editarPuntoVentaController.label.totvs = Integracion TOTVS
|
editarPuntoVentaController.label.totvs = Integracion TOTVS
|
||||||
editarPuntoVentaController.label.totvs.sim = Concluída
|
editarPuntoVentaController.label.totvs.sim = Concluída
|
||||||
editarPuntoVentaController.label.totvs.nao = Já Cadastrada
|
editarPuntoVentaController.label.totvs.nao = Já Cadastrada
|
||||||
|
editarPuntoVentaController.label.totvs.integrado=Integrado
|
||||||
|
editarPuntoVentaController.label.totvs.naointegrado=Não Integrado
|
||||||
editarPuntoVentaController.label.totvs.erro = Erro
|
editarPuntoVentaController.label.totvs.erro = Erro
|
||||||
editarPuntoVentaController.erro.numDoCPuntoVenta = Necessita informar CNPJ
|
editarPuntoVentaController.erro.numDoCPuntoVenta = Necessita informar CNPJ
|
||||||
editarPuntoVentaController.erro.numIEPuntoVenta = Necessita informar Inscrição Estadual
|
editarPuntoVentaController.erro.numIEPuntoVenta = Necessita informar Inscrição Estadual
|
||||||
|
|
|
@ -897,6 +897,8 @@ editarPuntoVentaController.label.isento = ISENTO
|
||||||
editarPuntoVentaController.label.totvs = Integração TOTVS
|
editarPuntoVentaController.label.totvs = Integração TOTVS
|
||||||
editarPuntoVentaController.label.totvs.sim = Concluída
|
editarPuntoVentaController.label.totvs.sim = Concluída
|
||||||
editarPuntoVentaController.label.totvs.nao = Já Cadastrada
|
editarPuntoVentaController.label.totvs.nao = Já Cadastrada
|
||||||
|
editarPuntoVentaController.label.totvs.integrado=Integrado
|
||||||
|
editarPuntoVentaController.label.totvs.naointegrado=Não Integrado
|
||||||
editarPuntoVentaController.label.totvs.erro = Erro
|
editarPuntoVentaController.label.totvs.erro = Erro
|
||||||
editarPuntoVentaController.erro.numDoCPuntoVenta = Necessita informar CNPJ
|
editarPuntoVentaController.erro.numDoCPuntoVenta = Necessita informar CNPJ
|
||||||
editarPuntoVentaController.erro.numIEPuntoVenta = Necessita informar Inscrição Estadual
|
editarPuntoVentaController.erro.numIEPuntoVenta = Necessita informar Inscrição Estadual
|
||||||
|
|
|
@ -98,12 +98,20 @@
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row spans="1,3">
|
<row>
|
||||||
<!-- calle -->
|
<!-- calle -->
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbCalle.value')}" />
|
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" />
|
||||||
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.label.totvs')}" visible="@{winBusquedaPuntoVenta$composer.integracionTotvs}" />
|
||||||
|
<radiogroup Id="indIntegracion" visible="@{winBusquedaPuntoVenta$composer.integracionTotvs}">
|
||||||
|
<radio id="radTotvsSi"
|
||||||
|
label="${c:l('editarPuntoVentaController.label.totvs.integrado')}" />
|
||||||
|
<radio id="radTotvsNo"
|
||||||
|
label="${c:l('editarPuntoVentaController.label.totvs.naointegrado')}" />
|
||||||
|
</radiogroup>
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
|
Loading…
Reference in New Issue