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.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.context.annotation.Scope;
|
import org.springframework.context.annotation.Scope;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
|
@ -65,6 +66,7 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private Textbox txtColonia;
|
private Textbox txtColonia;
|
||||||
private Textbox txtTelefonoUno;
|
private Textbox txtTelefonoUno;
|
||||||
private Textbox txtTelefonoDos;
|
private Textbox txtTelefonoDos;
|
||||||
|
private Textbox txtNumDocPuntoVenta;
|
||||||
private List<Empresa> lsEmpresas;
|
private List<Empresa> lsEmpresas;
|
||||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||||
private List<Moneda> lsMoneda;
|
private List<Moneda> lsMoneda;
|
||||||
|
@ -314,6 +316,10 @@ public class BusquedaPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (!txtTelefonoDos.getText().isEmpty()) {
|
if (!txtTelefonoDos.getText().isEmpty()) {
|
||||||
claseServicioBusqueda.addFilterLike("numtelefonodos", txtTelefonoDos.getText().replace("_", ""));
|
claseServicioBusqueda.addFilterLike("numtelefonodos", txtTelefonoDos.getText().replace("_", ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (StringUtils.isNotBlank(txtNumDocPuntoVenta.getText())) {
|
||||||
|
claseServicioBusqueda.addFilterLike("numDoCPuntoVenta", txtNumDocPuntoVenta.getText().trim().concat("%"));
|
||||||
|
}
|
||||||
|
|
||||||
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
claseServicioBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
claseServicioBusqueda.addSortAsc("nombpuntoventa");
|
claseServicioBusqueda.addSortAsc("nombpuntoventa");
|
||||||
|
|
|
@ -473,11 +473,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
if (puntoVenta.getPuntoventaId() != null) {
|
if (puntoVenta.getPuntoventaId() != null) {
|
||||||
if (puntoVenta.getIndIntegracion() != null) {
|
if (puntoVenta.getIndIntegracion() != null) {
|
||||||
|
|
||||||
if (puntoVenta.getIndIntegracion() == TipoRetorno.CONCLUIDA.getValor()) {
|
if (puntoVenta.getIndIntegracion().equals(TipoRetorno.CONCLUIDA.getValor())) {
|
||||||
radTotvsSi.setChecked(true);
|
radTotvsSi.setChecked(true);
|
||||||
} else if (puntoVenta.getIndIntegracion() == TipoRetorno.JA_CADASTRADA.getValor()) {
|
} else if (puntoVenta.getIndIntegracion().equals(TipoRetorno.JA_CADASTRADA.getValor())) {
|
||||||
radTotvsNo.setChecked(true);
|
radTotvsNo.setChecked(true);
|
||||||
} else if (puntoVenta.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
} else if (puntoVenta.getIndIntegracion().equals(TipoRetorno.ERRO.getValor())) {
|
||||||
radTotvsErro.setChecked(true);
|
radTotvsErro.setChecked(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -822,13 +822,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
sb= new StringBuilder();
|
sb= new StringBuilder();
|
||||||
TotvsService.setSb(sb);
|
TotvsService.setSb(sb);
|
||||||
}
|
}
|
||||||
|
|
||||||
DAO.getInstance().setDBConnection(myConn);
|
DAO.getInstance().setDBConnection(myConn);
|
||||||
String strEmpresas = DAO.getInstance().obterConstante("EMPRESAS_INTEGRACAO");
|
String strEmpresas = DAO.getInstance().obterConstante("EMPRESAS_INTEGRACAO");
|
||||||
for (String empresaId : strEmpresas.split(",")){
|
for (String empresaId : strEmpresas.split(",")){
|
||||||
TotvsService.cadastrarTituloAReceber(checkTodosPuntosVenta.isChecked() ? null : puntoVenta.getPuntoventaId(), dateInicio, dateFim, myConn, Integer.parseInt(empresaId));
|
TotvsService.cadastrarTituloAReceber(checkTodosPuntosVenta.isChecked() ? null : puntoVenta.getPuntoventaId(), dateInicio, dateFim, myConn, Integer.parseInt(empresaId));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkSimulaIntegracion.isChecked()) {
|
if (!checkSimulaIntegracion.isChecked()) {
|
||||||
myConn.commit();
|
myConn.commit();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.zkoss.zul.Listcell;
|
import org.zkoss.zul.Listcell;
|
||||||
import org.zkoss.zul.Listitem;
|
import org.zkoss.zul.Listitem;
|
||||||
import org.zkoss.zul.ListitemRenderer;
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
@ -22,6 +23,9 @@ public class RenderPuntoVenta implements ListitemRenderer {
|
||||||
|
|
||||||
Listcell lc = new Listcell(puntoVenta.getNumPuntoVenta().toString());
|
Listcell lc = new Listcell(puntoVenta.getNumPuntoVenta().toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
lc = new Listcell(StringUtils.isNotBlank(puntoVenta.getNumDoCPuntoVenta())?puntoVenta.getNumDoCPuntoVenta():"");
|
||||||
|
lc.setParent(lstm);
|
||||||
|
|
||||||
lc = new Listcell(puntoVenta.getNombpuntoventa());
|
lc = new Listcell(puntoVenta.getNombpuntoventa());
|
||||||
lc.setParent(lstm);
|
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 = Necessita informar o banco
|
||||||
editarPuntoVentaController.erro.instiFinanceiraId.codigo = Necessita informar o código do banco
|
editarPuntoVentaController.erro.instiFinanceiraId.codigo = Necessita informar o código do banco
|
||||||
editarPuntoVentaController.erro.colonia = Necessita informar o bairro
|
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.label.fecIntegracion=Fecha
|
||||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||||
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integracion
|
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 = Necessita informar o banco do banco
|
||||||
editarPuntoVentaController.erro.instiFinanceiraId.codigo = Necessita informar o código do 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.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.label.fecIntegracion=Data
|
||||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||||
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integração
|
editarPuntoVentaController.lbCheckSimulaIntegracion.value=Simula Integração
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
model="@{winBusquedaPuntoVenta$composer.lsNodos}" />
|
model="@{winBusquedaPuntoVenta$composer.lsNodos}" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row spans="1,3">
|
<row>
|
||||||
<!-- Status Aprobacion -->
|
<!-- Status Aprobacion -->
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}" />
|
value="${c:l('editarPuntoVentaController.lbStaAprobacion.value')}" />
|
||||||
|
@ -89,6 +89,13 @@
|
||||||
<radio id="radAprobacionLatente"
|
<radio id="radAprobacionLatente"
|
||||||
label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}" />
|
label="${c:l('editarCatalogoDeRutaController.radAprobacionLatente.value')}" />
|
||||||
</radiogroup>
|
</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>
|
||||||
|
|
||||||
<row spans="1,3">
|
<row spans="1,3">
|
||||||
|
@ -141,6 +148,9 @@
|
||||||
<listheader image="/gui/img/create_doc.gif" width="114px"
|
<listheader image="/gui/img/create_doc.gif" width="114px"
|
||||||
label="${c:l('busquedaPuntoVentaController.lhNumero.label')}"
|
label="${c:l('busquedaPuntoVentaController.lhNumero.label')}"
|
||||||
sort="auto(numPuntoVenta)" />
|
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"
|
<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" />
|
||||||
|
|
Loading…
Reference in New Issue