Totvs - WS Fornecedor / WS Cliente / WS Pedido Compra (bug #6127)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@42725 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1ea013e703
commit
676f01456f
|
@ -95,6 +95,7 @@ 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.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;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||||
|
@ -252,6 +253,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
private MyTextbox txtNumFax;
|
private MyTextbox txtNumFax;
|
||||||
private MyTextbox txtCompl;
|
private MyTextbox txtCompl;
|
||||||
private MyTextbox txtNumAg;
|
private MyTextbox txtNumAg;
|
||||||
|
private MyTextbox txtDigitoAg;
|
||||||
private MyTextbox txtConta;
|
private MyTextbox txtConta;
|
||||||
private MyTextbox txtDigito;
|
private MyTextbox txtDigito;
|
||||||
private MyTextbox txtBilhetes;
|
private MyTextbox txtBilhetes;
|
||||||
|
@ -938,6 +940,23 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
||||||
cmbTipoConta.getValue();
|
cmbTipoConta.getValue();
|
||||||
cmbPosicao.getValue();
|
cmbPosicao.getValue();
|
||||||
|
|
||||||
|
if (!ckIsento.isChecked()) {
|
||||||
|
try {
|
||||||
|
String uf = puntoVenta.getColonia() == null ? null : puntoVenta.getColonia().getCiudad().getEstado().getCveestado();
|
||||||
|
String inscEstadual = puntoVenta.getNumIEPuntoVenta();
|
||||||
|
|
||||||
|
InscricaoEstadualUtil.valida(inscEstadual, uf);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("editarPuntoVentaController: ", e);
|
||||||
|
Messagebox.show(e.getMessage(), Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.ERROR);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String numagencia = txtNumAg.getValue() + (StringUtils.isBlank(txtDigitoAg.getValue()) ? "" : "-" + txtDigitoAg.getValue());
|
||||||
|
puntoVenta.getAgenciaId().setNumagencia(numagencia);
|
||||||
|
|
||||||
if (puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()) {
|
if (puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()) {
|
||||||
cmbPuntoVentaPadre.getValue(true);
|
cmbPuntoVentaPadre.getValue(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,23 +276,24 @@
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<!-- Inscrição Estadual -->
|
<!-- Inscrição Estadual -->
|
||||||
<label value="${c:l('editarPuntoVentaController.lbIE.value')}" />
|
<label
|
||||||
|
value="${c:l('editarPuntoVentaController.lbIE.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
|
|
||||||
<textbox id="txtNumIEPuntoVenta" width="100%" maxlength="20"
|
<textbox id="txtNumIEPuntoVenta"
|
||||||
|
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" />
|
||||||
|
|
||||||
<checkbox id="ckIsento"
|
<checkbox id="ckIsento" />
|
||||||
checked="@{winEditarPuntoVenta$composer.puntoVenta.incProgConcessaoCredito}" />
|
<label value="ISENTO" />
|
||||||
<label value="ISENTO" />
|
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<!-- Inscrição Programa concessão de Crédito -->
|
<!-- Inscrição Programa concessão de Crédito -->
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarPuntoVentaController.lbProgConcessao.value')}" />
|
value="${c:l('editarPuntoVentaController.lbProgConcessao.value')}" />
|
||||||
<checkbox
|
<checkbox id="ckIncProgConcessaoCredito"
|
||||||
checked="@{winEditarPuntoVenta$composer.puntoVenta.incProgConcessaoCredito}" />
|
checked="@{winEditarPuntoVenta$composer.puntoVenta.incProgConcessaoCredito}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
|
@ -451,14 +452,33 @@
|
||||||
</h:table>
|
</h:table>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionAgenciaBancariaController.lbNumAg.value')}" />
|
value="${c:l('editarConfiguracionAgenciaBancariaController.lbNumAg.value')}" />
|
||||||
<textbox id="txtNumAg" width="70%"
|
|
||||||
maxlength="5"
|
<hbox>
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
<h:table border="none">
|
||||||
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numagencia}" />
|
<h:tr>
|
||||||
|
|
||||||
|
<h:td>
|
||||||
|
<textbox id="txtNumAg"
|
||||||
|
width="70%" maxlength="5"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numagencia}" />
|
||||||
|
</h:td>
|
||||||
|
<h:td>
|
||||||
|
<label value=" - " />
|
||||||
|
<textbox id="txtDigitoAg"
|
||||||
|
width="20%" maxlength="1"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
|
</h:td>
|
||||||
|
|
||||||
|
</h:tr>
|
||||||
|
</h:table>
|
||||||
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row>
|
<row>
|
||||||
<label
|
<label
|
||||||
value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
|
value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
|
||||||
|
|
Loading…
Reference in New Issue