Cadastro de convenio transportadora feat bug#AL-4346
parent
ce9cdce4a6
commit
95d145cfc4
6
pom.xml
6
pom.xml
|
@ -4,12 +4,12 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.11.0</version>
|
<version>1.12.0</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<modelWeb.version>1.84.0</modelWeb.version>
|
<modelWeb.version>1.85.0</modelWeb.version>
|
||||||
<flyway.version>1.71.0</flyway.version>
|
<flyway.version>1.72.0</flyway.version>
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
|
|
@ -87,16 +87,14 @@ public class EditarTransportadoraController extends MyGenericForwardComposer {
|
||||||
btnSalvar.setVisible(transportadora.isActivo());
|
btnSalvar.setVisible(transportadora.isActivo());
|
||||||
convenio = convenioService.buscarPelaTransportadoraId(transportadora.getTransportadoraId());
|
convenio = convenioService.buscarPelaTransportadoraId(transportadora.getTransportadoraId());
|
||||||
if(convenio == null) {
|
if(convenio == null) {
|
||||||
convenio = new ConvenioTransportadora(transportadora.getTransportadoraId());
|
convenio = new ConvenioTransportadora();
|
||||||
}
|
}
|
||||||
|
|
||||||
lsTarifaConvenio = convenio.getTarifasConvenio();
|
if( convenio.getTarifasConvenio() != null ) {
|
||||||
if( lsTarifaConvenio != null ) {
|
lsTarifaConvenio = convenio.getTarifasConvenio();
|
||||||
tarifaConvenioList.setData(lsTarifaConvenio);
|
tarifaConvenioList.setData(lsTarifaConvenio);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
preencheCombo();
|
|
||||||
preencheRadios();
|
preencheRadios();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -121,13 +119,15 @@ public class EditarTransportadoraController extends MyGenericForwardComposer {
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
transportadoraService.suscribir(transportadora);
|
transportadora = transportadoraService.suscribir(transportadora);
|
||||||
transportadoraList.addItemNovo(transportadora);
|
transportadoraList.addItemNovo(transportadora);
|
||||||
} else {
|
} else {
|
||||||
transportadoraService.actualizacion(transportadora);
|
transportadora = transportadoraService.actualizacion(transportadora);
|
||||||
transportadoraList.updateItem(transportadora);
|
transportadoraList.updateItem(transportadora);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
convenio.setTransportadora(transportadora);
|
||||||
|
convenio = convenioService.suscribirActualizar(convenio);
|
||||||
gravarTarifasConvenio();
|
gravarTarifasConvenio();
|
||||||
|
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
@ -194,13 +194,6 @@ public class EditarTransportadoraController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void preencheCombo() {
|
|
||||||
/*
|
|
||||||
ConvenioTransportadora grupo = formaPagoService.obtenerID(transportadora.getConvenioTransportadoraId());
|
|
||||||
selecionaCombo(grupo, cmbConvenio);
|
|
||||||
*/
|
|
||||||
}
|
|
||||||
|
|
||||||
private void preencheRadios() {
|
private void preencheRadios() {
|
||||||
selecionaRadio(transportadora.getClassePagamento(), rdgClassePagamento);
|
selecionaRadio(transportadora.getClassePagamento(), rdgClassePagamento);
|
||||||
selecionaRadio(convenio.getTipoConvenio(), rdgTipoConvenio);
|
selecionaRadio(convenio.getTipoConvenio(), rdgTipoConvenio);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -7,7 +7,7 @@
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
<window id="winBusquedaTransportadora" border="normal"
|
<window id="winBusquedaTransportadora" border="normal"
|
||||||
apply="${busquedaTransportadoraController}"
|
apply="${busquedaTransportadoraController}"
|
||||||
height="300px" width="400px" contentStyle="overflow:auto"
|
height="350px" width="500px" contentStyle="overflow:auto"
|
||||||
title="${c:l('editarTransportadoraController.window.title')}" >
|
title="${c:l('editarTransportadoraController.window.title')}" >
|
||||||
|
|
||||||
<toolbar>
|
<toolbar>
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
multiple="false">
|
multiple="false">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader id="lhNit" image="/gui/img/create_doc.gif"
|
<listheader id="lhNit" image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('label.nit')}"
|
label="${c:l('label.nit')}" width="20%"
|
||||||
sort="auto(nit)" />
|
sort="auto(nit)" />
|
||||||
<listheader id="lhNome" image="/gui/img/create_doc.gif"
|
<listheader id="lhNome" image="/gui/img/create_doc.gif"
|
||||||
label="${c:l('label.razaoSocial')}"
|
label="${c:l('label.razaoSocial')}"
|
||||||
|
|
|
@ -125,63 +125,7 @@
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
|
||||||
<!-- Adicao
|
|
||||||
<tabpanel id="tbAdicao" >
|
|
||||||
<grid fixedLayout="true">
|
|
||||||
<columns>
|
|
||||||
<column width="25%" />
|
|
||||||
<column width="75%" />
|
|
||||||
</columns>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label id="lbValorAdicao" value="${c:l('label.valorAdicao')}" />
|
|
||||||
<decimalbox id="txtValorAdicao" maxlength="15" format="0.00"
|
|
||||||
constraint="no negative, no zero" width="100px" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<label value="${c:l('label.descricao')}" />
|
|
||||||
<textbox id="txtDescAdicao" maxlength="255" width="95%"
|
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
|
||||||
</row>
|
|
||||||
<row id="rowIncluirAdicao" spans="2" align="middle">
|
|
||||||
<hbox >
|
|
||||||
<button id="btnAdicionar"
|
|
||||||
height="20" image="/gui/img/add.png" width="35px"
|
|
||||||
tooltiptext="${c:l('tooltiptext.btnIncluir')}" />
|
|
||||||
|
|
||||||
<button id="btnRemoverAdicao"
|
|
||||||
height="20" image="/gui/img/remove.png" width="35px"
|
|
||||||
tooltiptext="${c:l('tooltiptext.btnRemover')}" />
|
|
||||||
</hbox>
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
<grid>
|
|
||||||
<rows>
|
|
||||||
<row>
|
|
||||||
<label id="lbTotConvenio" value="${c:l('label.valor')}" />
|
|
||||||
<label id="lbTotCredito" value="${c:l('label.credito')}" />
|
|
||||||
<label id="lbTotDebito" value="${c:l('label.debito')}" />
|
|
||||||
<label id="lbTotSaldo" value="${c:l('label.saldo')}" />
|
|
||||||
</row>
|
|
||||||
<row>
|
|
||||||
<decimalbox id="txtTotConvenio" maxlength="15" format="0.00"
|
|
||||||
constraint="no negative, no zero" width="100px" />
|
|
||||||
|
|
||||||
<decimalbox id="txtTotCredito" maxlength="15" format="0.00"
|
|
||||||
constraint="no negative, no zero" width="100px" />
|
|
||||||
|
|
||||||
<decimalbox id="txtTotDebito" maxlength="15" format="0.00"
|
|
||||||
constraint="no negative, no zero" width="100px" />
|
|
||||||
|
|
||||||
<decimalbox id="txtTotSaldo" maxlength="15" format="0.00"
|
|
||||||
constraint="no negative, no zero" width="100px" />
|
|
||||||
</row>
|
|
||||||
</rows>
|
|
||||||
</grid>
|
|
||||||
</tabpanel>
|
|
||||||
-->
|
|
||||||
<!-- Tarifa -->
|
<!-- Tarifa -->
|
||||||
<tabpanel id="tbTarifa" >
|
<tabpanel id="tbTarifa" >
|
||||||
<grid fixedLayout="true">
|
<grid fixedLayout="true">
|
||||||
|
|
Loading…
Reference in New Issue