correção de erros cadastro de agencia
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@23831 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1ea8c224c2
commit
2e3822c6b7
|
@ -257,6 +257,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
popularCombobox(cmbForm, this.getForm());
|
||||
popularCombobox(cmbLote, this.getLote());
|
||||
popularCombobox(cmbReceita, this.getTipoConta());
|
||||
popularCombobox(cmbPosicao, this.getPosicao());
|
||||
|
||||
lsEmpresas = UsuarioLogado.getUsuarioLogado().getEmpresa();
|
||||
|
||||
|
@ -298,9 +299,48 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
if (puntoVenta.getPuntoventaId() != null) {
|
||||
if (puntoVenta.getComissaoId()!= null) {
|
||||
if(puntoVenta.getComissaoId().getReceita() != null){
|
||||
cmbReceita.setText(puntoVenta.getComissaoId().getReceita());
|
||||
|
||||
|
||||
if(puntoVenta.getComissaoId().getExcessoAlta() != null){
|
||||
txtExcessoAlta.setText(puntoVenta.getComissaoId().getExcessoAlta().toString());
|
||||
|
||||
}
|
||||
if(puntoVenta.getComissaoId().getExcessoBaixa() != null){
|
||||
txtExcessoBaixa.setText(puntoVenta.getComissaoId().getExcessoBaixa().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getPassagemBaixa() != null){
|
||||
txtPassagemBaixa.setText(puntoVenta.getComissaoId().getPassagemBaixa().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getPassagemAlta()!= null){
|
||||
txtPassagemAlta.setText(puntoVenta.getComissaoId().getPassagemAlta().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getSeguroBaixa()!= null){
|
||||
txtSeguroBaixa.setText(puntoVenta.getComissaoId().getSeguroBaixa().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getSeguroAlta()!= null){
|
||||
txtSeguroAlta.setText(puntoVenta.getComissaoId().getSeguroAlta().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getOutrosBaixa()!= null){
|
||||
txtOutrosBaixa.setText(puntoVenta.getComissaoId().getOutrosBaixa().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getOutrosAlta()!= null){
|
||||
txtOutrosAlta.setText(puntoVenta.getComissaoId().getOutrosAlta().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getIssretido()!= null){
|
||||
txtIss.setText(puntoVenta.getComissaoId().getIssretido().toString());
|
||||
}
|
||||
|
||||
if(puntoVenta.getComissaoId().getRoyalties()!= null){
|
||||
txtRoyaties.setText(puntoVenta.getComissaoId().getRoyalties().toString());
|
||||
}
|
||||
|
||||
|
||||
if(puntoVenta.getComissaoId().getTarifaDev()!= null){
|
||||
if(puntoVenta.getComissaoId().getTarifaDev()){
|
||||
|
@ -352,6 +392,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(puntoVenta.getComissaoId().getPedagioReceita() != null){
|
||||
if(puntoVenta.getComissaoId().getPedagioReceita()){
|
||||
checkPedagioReceita.setChecked(true);
|
||||
|
@ -380,9 +422,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
txtNomeBanco.setText(puntoVenta.getAgenciaId().getInstiFinanceiraId().getNome());
|
||||
}
|
||||
|
||||
if(puntoVenta.getAgenciaId().getPessoa() != null){
|
||||
cmbPessoa.setText(puntoVenta.getAgenciaId().getPessoa());
|
||||
}
|
||||
// if(puntoVenta.getAgenciaId().getPessoa() != null){
|
||||
// cmbPessoa.setText(puntoVenta.getAgenciaId().getPessoa());
|
||||
// }
|
||||
|
||||
if(puntoVenta.getAgenciaId().getTipo() != null){
|
||||
cmbTipoConta.setText(puntoVenta.getAgenciaId().getTipo());
|
||||
|
@ -411,6 +453,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
// if(puntoVenta.getDiversosId().getPosicao()!= null){
|
||||
// cmbPosicao.setText(puntoVenta.getDiversosId().getPosicao());
|
||||
// }
|
||||
|
||||
if(puntoVenta.getDiversosId().getVendaInternet()!= null){
|
||||
if(puntoVenta.getDiversosId().getVendaInternet()){
|
||||
checkVendaInternet.setChecked(true);
|
||||
|
@ -722,7 +768,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
puntoVenta.setPtovtaEstoqueList(lsEstoque);
|
||||
|
||||
|
||||
|
||||
if(cmbBanco.getSelectedItem()== null){
|
||||
puntoVenta.setAgenciaId(null);
|
||||
}else{
|
||||
|
@ -761,6 +806,19 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
puntoVenta.getComissaoId().setTaxaDev(checkTaxaDev.isChecked());
|
||||
puntoVenta.getComissaoId().setSeguroDev(checkSeguroDev.isChecked());
|
||||
puntoVenta.getComissaoId().setPegagioDev(checkPedagioDev.isChecked());
|
||||
puntoVenta.getComissaoId().setExcessoAlta(txtExcessoAlta.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setExcessoBaixa(txtExcessoBaixa.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setPassagemBaixa(txtPassagemBaixa.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setPassagemAlta(txtPassagemAlta.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setSeguroBaixa(txtSeguroBaixa.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setSeguroAlta(txtSeguroAlta.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setOutrosBaixa(txtOutrosBaixa.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setOutrosAlta(txtOutrosAlta.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setIssretido(txtIss.getValueDecimal());
|
||||
puntoVenta.getComissaoId().setRoyalties(txtRoyaties.getValueDecimal());
|
||||
// if(cmbReceita.getSelectedItem().getValue() != null){
|
||||
// puntoVenta.getComissaoId().setReceita((String) cmbReceita.getSelectedItem().getValue());
|
||||
// }
|
||||
puntoVenta.getComissaoId().setActivo(Boolean.TRUE);
|
||||
puntoVenta.getComissaoId().setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
puntoVenta.getComissaoId().setFecmodif(Calendar.getInstance().getTime());
|
||||
|
@ -778,6 +836,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
puntoVenta.getDiversosId().setOfpsPropria(checkOfpsPropria.isChecked());
|
||||
puntoVenta.getDiversosId().setOfpsTerceiros(checkOfpsTerceiros.isChecked());
|
||||
puntoVenta.getDiversosId().setActivo(Boolean.TRUE);
|
||||
// if (cmbPosicao.getSelectedItem() != null){
|
||||
// puntoVenta.getDiversosId().setPosicao((String) cmbPosicao.getSelectedItem().getValue());
|
||||
// }
|
||||
puntoVenta.getDiversosId().setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
puntoVenta.getDiversosId().setFecmodif(Calendar.getInstance().getTime());
|
||||
}
|
||||
|
@ -1312,6 +1373,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
return PtovtaComissao.getReceitaList();
|
||||
}
|
||||
|
||||
public List<String> getPosicao(){
|
||||
return PtovtaDiversos.getPosicaoList();
|
||||
}
|
||||
|
||||
public List<String> getPessoa() {
|
||||
return PtovtaAgencia.getPessoaList();
|
||||
}
|
||||
|
|
|
@ -307,8 +307,8 @@
|
|||
<hlayout>
|
||||
<label value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtPassagemBaixa" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.passagemBaixa}"
|
||||
<textbox id="txtPassagemBaixa" width="100px" maxlength="5" value="0.00"
|
||||
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
|
||||
|
||||
|
@ -320,7 +320,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtPassagemAlta" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.passagemAlta}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
</h:td>
|
||||
|
||||
|
@ -342,7 +342,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtExcessoBaixa" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.excessoBaixa}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
|
||||
</h:td>
|
||||
|
@ -355,7 +355,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtExcessoAlta" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.excessoAlta}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
</h:td>
|
||||
|
||||
|
@ -376,7 +376,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtSeguroBaixa" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.seguroBaixa}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
|
||||
</h:td>
|
||||
|
@ -389,7 +389,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtSeguroAlta" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.seguroAlta}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
</h:td>
|
||||
|
||||
|
@ -411,7 +411,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbBaixa.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtOutrosBaixa" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.outrosBaixa}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
</h:td>
|
||||
<h:td>
|
||||
|
@ -421,7 +421,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbAlta.value')}" />
|
||||
</hlayout>
|
||||
<textbox id="txtOutrosAlta" width="100px" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.outrosAlta}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
</h:td>
|
||||
|
||||
|
@ -433,7 +433,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbISS.value')}" />
|
||||
<hbox>
|
||||
<textbox id="txtIss" width="70%" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.issretido}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
|
||||
<label value="${c:l('editarConfiguracionComissaoController.lbPercISS.value')}" />
|
||||
</hbox>
|
||||
|
@ -444,7 +444,7 @@
|
|||
<label value="${c:l('editarConfiguracionComissaoController.lbRoyaties.value')}" />
|
||||
<hbox>
|
||||
<textbox id="txtRoyaties" width="70%" maxlength="5"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.royalties}"
|
||||
value="0.00"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"/>
|
||||
<label value="${c:l('editarConfiguracionComissaoController.lbPerc.value')}" />
|
||||
</hbox>
|
||||
|
@ -465,8 +465,9 @@
|
|||
|
||||
<row>
|
||||
<label value="${c:l('editarConfiguracionComissaoController.lbReceita.value')}" />
|
||||
<combobox id="cmbReceita" width="70%" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
<combobox id="cmbReceita" width="70%" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.comissaoId.receita}" />
|
||||
|
||||
</row>
|
||||
<row>
|
||||
|
@ -588,6 +589,7 @@
|
|||
<row>
|
||||
<label value="${c:l('editarConfiguracionAgenciaBancariaController.lbPessoa.value')}" />
|
||||
<combobox id="cmbPessoa"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.pessoa}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="70%" mold="rounded" buttonVisible="true"/>
|
||||
|
||||
|
@ -686,6 +688,7 @@
|
|||
<row>
|
||||
<label value="${c:l('editarConfiguracionDiversosController.lbPosicao.value')}" />
|
||||
<combobox id="cmbPosicao" width="70%" mold="rounded" buttonVisible="true"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.diversosId.posicao}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
|
||||
</row>
|
||||
|
|
Loading…
Reference in New Issue