Totvs - WS Fornecedor / WS Cliente / WS Pedido Compra (fixes bug #6127)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@42890 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a5e284055e
commit
96af9a4efb
|
@ -79,6 +79,7 @@ import com.rjconsultores.ventaboletos.entidad.Usuario;
|
||||||
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
|
import com.rjconsultores.ventaboletos.entidad.UsuarioBancario;
|
||||||
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
|
import com.rjconsultores.ventaboletos.entidad.UsuarioPerfil;
|
||||||
import com.rjconsultores.ventaboletos.exception.IntegracionException;
|
import com.rjconsultores.ventaboletos.exception.IntegracionException;
|
||||||
|
import com.rjconsultores.ventaboletos.exception.ValidacionCampoException;
|
||||||
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
import com.rjconsultores.ventaboletos.service.CategoriaService;
|
||||||
import com.rjconsultores.ventaboletos.service.ColoniaService;
|
import com.rjconsultores.ventaboletos.service.ColoniaService;
|
||||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
@ -98,7 +99,6 @@ import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
|
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||||
import com.rjconsultores.ventaboletos.service.impl.PuntoVentaServiceImpl.TipoRetornoTotvs;
|
|
||||||
import com.rjconsultores.ventaboletos.utilerias.InscricaoEstadualUtil;
|
import com.rjconsultores.ventaboletos.utilerias.InscricaoEstadualUtil;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales.FechamentoParamptovtaListItemRenderer;
|
import com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales.FechamentoParamptovtaListItemRenderer;
|
||||||
|
@ -120,6 +120,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
|
||||||
import com.rjconsultores.ws.totvs.service.TotvsService;
|
import com.rjconsultores.ws.totvs.service.TotvsService;
|
||||||
|
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -310,7 +311,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
public static final int INTERVALO_FECHAMENTO_DECENDIAL = 10;
|
public static final int INTERVALO_FECHAMENTO_DECENDIAL = 10;
|
||||||
public static final int INTERVALO_FECHAMENTO_QUINZENAL = 15;
|
public static final int INTERVALO_FECHAMENTO_QUINZENAL = 15;
|
||||||
public static final int INTERVALO_FECHAMENTO_MENSAL = 30;
|
public static final int INTERVALO_FECHAMENTO_MENSAL = 30;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
|
|
||||||
|
@ -464,11 +465,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() == TipoRetornoTotvs.CONCLUIDA.getValor().shortValue()) {
|
if (puntoVenta.getIndIntegracion() == TipoRetorno.CONCLUIDA.getValor()) {
|
||||||
radTotvsSi.setChecked(true);
|
radTotvsSi.setChecked(true);
|
||||||
} else if (puntoVenta.getIndIntegracion() == TipoRetornoTotvs.JA_CADASTRADA.getValor().shortValue()) {
|
} else if (puntoVenta.getIndIntegracion() == TipoRetorno.JA_CADASTRADA.getValor()) {
|
||||||
radTotvsNo.setChecked(true);
|
radTotvsNo.setChecked(true);
|
||||||
} else if (puntoVenta.getIndIntegracion() == TipoRetornoTotvs.ERRO.getValor().shortValue()) {
|
} else if (puntoVenta.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
||||||
radTotvsErro.setChecked(true);
|
radTotvsErro.setChecked(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -789,7 +790,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
return getString;
|
return getString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnIntegracao(Event ev) {
|
public void onClick$btnIntegracao(Event ev) {
|
||||||
try {
|
try {
|
||||||
TotvsService.cadastrarTituloAReceber(puntoVenta.getPuntoventaId(), fecInicio.getValue(), fecFinal.getValue(), dataSource.getConnection());
|
TotvsService.cadastrarTituloAReceber(puntoVenta.getPuntoventaId(), fecInicio.getValue(), fecFinal.getValue(), dataSource.getConnection());
|
||||||
|
@ -801,8 +802,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
} catch (InterruptedException e1) {
|
} catch (InterruptedException e1) {
|
||||||
// TODO Auto-generated catch block
|
log.error("", e1);
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
try {
|
try {
|
||||||
|
@ -811,8 +811,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
Messagebox.OK, Messagebox.ERROR);
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
} catch (InterruptedException e1) {
|
} catch (InterruptedException e1) {
|
||||||
// TODO Auto-generated catch block
|
log.error("", e1);
|
||||||
e1.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1202,7 +1201,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (puntoVenta.getIndIntegracion() == null) {
|
if (puntoVenta.getIndIntegracion() == null) {
|
||||||
puntoVenta.setIndIntegracion(TipoRetornoTotvs.PENDENTE.getValor());
|
puntoVenta.setIndIntegracion(TipoRetorno.PENDENTE.getValor());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (puntoVenta.getPuntoventaId() == null) {
|
if (puntoVenta.getPuntoventaId() == null) {
|
||||||
|
@ -1222,6 +1221,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} catch (ValidacionCampoException ve) {
|
||||||
|
log.error("editarPuntoVentaController: ", ve);
|
||||||
|
Messagebox.show(
|
||||||
|
ve.getMessage(),
|
||||||
|
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
|
||||||
} catch (IntegracionException ex) {
|
} catch (IntegracionException ex) {
|
||||||
log.error("editarPuntoVentaController: ", ex);
|
log.error("editarPuntoVentaController: ", ex);
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
|
|
@ -856,6 +856,14 @@ 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.erro = Erro
|
editarPuntoVentaController.label.totvs.erro = Erro
|
||||||
|
editarPuntoVentaController.erro.numDoCPuntoVenta = Necessita informar CNPJ
|
||||||
|
editarPuntoVentaController.erro.numIEPuntoVenta = Necessita informar Inscrição Estadual
|
||||||
|
editarPuntoVentaController.erro.agenciaId = Necessita informar dados de agência bancaria
|
||||||
|
editarPuntoVentaController.erro.numagencia = Necessita informar numero da agência bancaria
|
||||||
|
editarPuntoVentaController.erro.numconta = Necessita informar numero de conta
|
||||||
|
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.label.fecInicio=Fecha Início
|
editarPuntoVentaController.label.fecInicio=Fecha Início
|
||||||
editarPuntoVentaController.label.fecFinal=Fecha Final
|
editarPuntoVentaController.label.fecFinal=Fecha Final
|
||||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||||
|
|
|
@ -888,11 +888,18 @@ 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.erro = Erro
|
editarPuntoVentaController.label.totvs.erro = Erro
|
||||||
|
editarPuntoVentaController.erro.numDoCPuntoVenta = Necessita informar CNPJ
|
||||||
|
editarPuntoVentaController.erro.numIEPuntoVenta = Necessita informar Inscrição Estadual
|
||||||
|
editarPuntoVentaController.erro.agenciaId = Necessita informar dados de agência bancaria
|
||||||
|
editarPuntoVentaController.erro.numagencia = Necessita informar numero da agência bancaria
|
||||||
|
editarPuntoVentaController.erro.numconta = Necessita informar numero de conta
|
||||||
|
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.label.fecInicio=Dt. Início
|
editarPuntoVentaController.label.fecInicio=Dt. Início
|
||||||
editarPuntoVentaController.label.fecFinal=Dt. Final
|
editarPuntoVentaController.label.fecFinal=Dt. Final
|
||||||
editarPuntoVentaController.tab.label.integracao=Integracao
|
editarPuntoVentaController.tab.label.integracao=Integracao
|
||||||
|
|
||||||
|
|
||||||
# Fechamento Conta Corrente Agencia
|
# Fechamento Conta Corrente Agencia
|
||||||
editarPuntoVentaController.puntoventa.label = Agencia
|
editarPuntoVentaController.puntoventa.label = Agencia
|
||||||
editarPuntoVentaController.btnPesquisa.label = Pesquisa
|
editarPuntoVentaController.btnPesquisa.label = Pesquisa
|
||||||
|
|
|
@ -278,7 +278,7 @@
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbdscNumDoCPuntoVenta.value')}" />
|
value="${c:l('editarPuntoVentaController.lbdscNumDoCPuntoVenta.value')}" />
|
||||||
<textbox id="txtNumDoCPuntoVenta"
|
<textbox id="txtNumDoCPuntoVenta"
|
||||||
width="70%" maxlength="20" constraint="no empty"
|
width="70%" maxlength="20"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.numDoCPuntoVenta}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.numDoCPuntoVenta}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
|
@ -287,7 +287,7 @@
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbdscRazonSocial.value')}" />
|
value="${c:l('editarPuntoVentaController.lbdscRazonSocial.value')}" />
|
||||||
<textbox id="txtRazonSocial" width="70%"
|
<textbox id="txtRazonSocial" width="70%"
|
||||||
maxlength="40" constraint="no empty"
|
maxlength="40"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.razonSocial}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.razonSocial}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
|
@ -297,7 +297,7 @@
|
||||||
value="${c:l('editarPuntoVentaController.lbIE.value')}" />
|
value="${c:l('editarPuntoVentaController.lbIE.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<textbox id="txtNumIEPuntoVenta"
|
<textbox id="txtNumIEPuntoVenta"
|
||||||
width="100%" maxlength="20" constraint="no empty"
|
width="100%" maxlength="20"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.numIEPuntoVenta}"
|
value="@{winEditarPuntoVenta$composer.puntoVenta.numIEPuntoVenta}"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
|
||||||
|
@ -381,12 +381,12 @@
|
||||||
<!--Colonia-->
|
<!--Colonia-->
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbColonia.value')}" />
|
value="${c:l('editarPuntoVentaController.lbColonia.value')}" />
|
||||||
<combobox id="cmbColonia" constraint="no empty"
|
<combobox id="cmbColonia"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
mold="rounded" buttonVisible="true" width="70%" />
|
mold="rounded" buttonVisible="true" width="70%" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<!--CP-->
|
<!--CEP-->
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbCP.value')}" />
|
value="${c:l('editarPuntoVentaController.lbCP.value')}" />
|
||||||
<textbox id="txtCP"
|
<textbox id="txtCP"
|
||||||
|
@ -453,13 +453,13 @@
|
||||||
<h:tr>
|
<h:tr>
|
||||||
|
|
||||||
<h:td>
|
<h:td>
|
||||||
<combobox id="cmbBanco" constraint="no empty"
|
<combobox id="cmbBanco"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
width="60%" mold="rounded" buttonVisible="true"
|
width="60%" mold="rounded" buttonVisible="true"
|
||||||
model="@{winEditarPuntoVenta$composer.lsBanco}" />
|
model="@{winEditarPuntoVenta$composer.lsBanco}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<textbox id="txtNomeBanco" constraint="no empty"
|
<textbox id="txtNomeBanco"
|
||||||
width="215px" disabled="true" />
|
width="215px" disabled="true" />
|
||||||
|
|
||||||
</h:td>
|
</h:td>
|
||||||
|
@ -478,13 +478,13 @@
|
||||||
<h:tr>
|
<h:tr>
|
||||||
|
|
||||||
<h:td>
|
<h:td>
|
||||||
<textbox id="txtNumAg" constraint="no empty"
|
<textbox id="txtNumAg"
|
||||||
width="70%" maxlength="5"
|
width="70%" maxlength="5"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label value=" - " />
|
<label value=" - " />
|
||||||
<textbox id="txtDigitoAg" constraint="no empty"
|
<textbox id="txtDigitoAg"
|
||||||
width="20%" maxlength="1"
|
width="20%" maxlength="1"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</h:td>
|
</h:td>
|
||||||
|
@ -497,7 +497,7 @@
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
|
value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
|
||||||
<combobox id="cmbTipoConta" constraint="no empty" width="70%"
|
<combobox id="cmbTipoConta" width="70%"
|
||||||
mold="rounded" buttonVisible="true" />
|
mold="rounded" buttonVisible="true" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -509,14 +509,14 @@
|
||||||
<h:tr>
|
<h:tr>
|
||||||
|
|
||||||
<h:td>
|
<h:td>
|
||||||
<textbox id="txtConta" constraint="no empty"
|
<textbox id="txtConta"
|
||||||
width="250px" maxlength="9"
|
width="250px" maxlength="9"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numconta}" />
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numconta}" />
|
||||||
</h:td>
|
</h:td>
|
||||||
<h:td>
|
<h:td>
|
||||||
<label value=" - " />
|
<label value=" - " />
|
||||||
<textbox id="txtDigito" constraint="no empty"
|
<textbox id="txtDigito"
|
||||||
width="20%" maxlength="1"
|
width="20%" maxlength="1"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.digito}" />
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.digito}" />
|
||||||
|
@ -530,7 +530,7 @@
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionAgenciaBancariaController.lbPessoa.value')}" />
|
value="${c:l('editarConfiguracionAgenciaBancariaController.lbPessoa.value')}" />
|
||||||
<combobox id="cmbPessoa" width="70%" constraint="no empty"
|
<combobox id="cmbPessoa" width="70%"
|
||||||
mold="rounded" buttonVisible="true" />
|
mold="rounded" buttonVisible="true" />
|
||||||
|
|
||||||
</row>
|
</row>
|
||||||
|
|
Loading…
Reference in New Issue