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@42775 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2015-04-07 13:29:33 +00:00
parent e656ef99f9
commit 13b3c00dda
2 changed files with 26 additions and 20 deletions

View File

@ -469,6 +469,14 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
txtNumIEPuntoVenta.setDisabled(true); txtNumIEPuntoVenta.setDisabled(true);
} }
} }
try {
String agencia = puntoVenta.getAgenciaId() == null ? "" : puntoVenta.getAgenciaId().getNumagencia();
String[] agenciaComp = agencia == null ? null : agencia.split("-");
txtNumAg.setValue(agencia == null ? "" : agenciaComp[0]);
txtDigitoAg.setValue(agencia == null ? "" : agenciaComp[1]);
} catch (Exception e) {
}
} }
if (puntoVenta.getPuntoventaId() != null) { if (puntoVenta.getPuntoventaId() != null) {

View File

@ -195,7 +195,7 @@
<!-- Tel1 --> <!-- Tel1 -->
<label <label
value="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}" /> value="${c:l('editarPuntoVentaController.lbTelefonoUno.value')}" />
<textbox id="numtelefonouno" <textbox id="numtelefonouno"
constraint="no zero" width="70%" maxlength="15" constraint="no zero" width="70%" maxlength="15"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" /> use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
</row> </row>
@ -277,7 +277,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" width="70%" maxlength="20" constraint="no empty"
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>
@ -286,7 +286,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" maxlength="40" constraint="no empty"
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>
@ -295,9 +295,8 @@
<label <label
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,7 +380,7 @@
<!--Colonia--> <!--Colonia-->
<label <label
value="${c:l('editarPuntoVentaController.lbColonia.value')}" /> value="${c:l('editarPuntoVentaController.lbColonia.value')}" />
<combobox id="cmbColonia" <combobox id="cmbColonia" constraint="no empty"
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>
@ -389,7 +388,7 @@
<!--CP--> <!--CP-->
<label <label
value="${c:l('editarPuntoVentaController.lbCP.value')}" /> value="${c:l('editarPuntoVentaController.lbCP.value')}" />
<textbox id="txtCP" <textbox id="txtCP"
constraint="no empty" width="70%" maxlength="30" constraint="no empty" width="70%" maxlength="30"
value="@{winEditarPuntoVenta$composer.puntoVenta.colonia.codpostal}" /> value="@{winEditarPuntoVenta$composer.puntoVenta.colonia.codpostal}" />
</row> </row>
@ -437,7 +436,7 @@
<!-- DADOS AGENCIA BANCARIA --> <!-- DADOS AGENCIA BANCARIA -->
<tabpanel height="215px"> <tabpanel >
<grid fixedLayout="true"> <grid fixedLayout="true">
<columns> <columns>
<column width="30%" /> <column width="30%" />
@ -453,14 +452,14 @@
<h:tr> <h:tr>
<h:td> <h:td>
<combobox id="cmbBanco" <combobox id="cmbBanco" constraint="no empty"
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 <textbox id="txtNomeBanco" constraint="no empty"
id="txtNomeBanco" width="215px" disabled="true" /> width="215px" disabled="true" />
</h:td> </h:td>
@ -478,14 +477,13 @@
<h:tr> <h:tr>
<h:td> <h:td>
<textbox id="txtNumAg" <textbox id="txtNumAg" constraint="no empty"
width="70%" maxlength="5" width="70%" maxlength="5"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numagencia}" />
</h:td> </h:td>
<h:td> <h:td>
<label value=" - " /> <label value=" - " />
<textbox id="txtDigitoAg" <textbox id="txtDigitoAg" constraint="no empty"
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>
@ -498,7 +496,7 @@
<row> <row>
<label <label
value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" /> value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
<combobox id="cmbTipoConta" width="70%" <combobox id="cmbTipoConta" constraint="no empty" width="70%"
mold="rounded" buttonVisible="true" /> mold="rounded" buttonVisible="true" />
</row> </row>
<row> <row>
@ -510,14 +508,14 @@
<h:tr> <h:tr>
<h:td> <h:td>
<textbox id="txtConta" <textbox id="txtConta" constraint="no empty"
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" <textbox id="txtDigito" constraint="no empty"
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}" />
@ -531,7 +529,7 @@
<row> <row>
<label <label
value="${c:l('editarConfiguracionAgenciaBancariaController.lbPessoa.value')}" /> value="${c:l('editarConfiguracionAgenciaBancariaController.lbPessoa.value')}" />
<combobox id="cmbPessoa" width="70%" <combobox id="cmbPessoa" width="70%" constraint="no empty"
mold="rounded" buttonVisible="true" /> mold="rounded" buttonVisible="true" />
</row> </row>