FIXES BUG #6826 (commitei tambem a retirada de imports desnecessários da classe EditarExcepcionPeajeController)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@50231 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
88724c27dc
commit
37c434bf7a
|
@ -104,6 +104,14 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
private Textbox txtNumConta;
|
||||
private Textbox txtNumAgencia;
|
||||
private List<EmpresaContaBancaria> lsEmpresaContaBancaria;
|
||||
private Textbox txtInscEstLogradouro;
|
||||
private Textbox txtInscEstNumero;
|
||||
private Textbox txtInscEstComplemento;
|
||||
private Textbox txtInscEstCEP;
|
||||
private Textbox txtInscEstBairro;
|
||||
private Combobox cmbInscEstCidade;
|
||||
private Textbox txtInscEstCNPJ;
|
||||
|
||||
|
||||
public Empresa getEmpresa() {
|
||||
return empresa;
|
||||
|
@ -177,6 +185,19 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
new Listcell(inscricaoEstadual.getEstado().getNombestado()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getNumInscricaoEstadual()).setParent(listItem);
|
||||
if(null != inscricaoEstadual.getCidade() ){
|
||||
new Listcell(inscricaoEstadual.getCidade().getNombciudad()).setParent(listItem);
|
||||
}else{
|
||||
new Listcell("").setParent(listItem);
|
||||
}
|
||||
new Listcell(inscricaoEstadual.getCnpj()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getLogradouro()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getNumero()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getComplemento()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getCep()).setParent(listItem);
|
||||
new Listcell(inscricaoEstadual.getBairro()).setParent(listItem);
|
||||
|
||||
|
||||
|
||||
listItem.setAttribute("data", inscricaoEstadual);
|
||||
}
|
||||
|
@ -306,6 +327,17 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onChange$cmbEstadoInscEstadual(Event ev) {
|
||||
Comboitem cbiEstado = cmbEstadoInscEstadual.getSelectedItem();
|
||||
if (cbiEstado != null) {
|
||||
Estado estado = (Estado) cbiEstado.getValue();
|
||||
|
||||
lsCidades.addAll(ciudadService.buscarPorEstado(estado));
|
||||
BindingListModel listModelCiudad = new BindingListModelList(lsCidades, true);
|
||||
cmbInscEstCidade.setModel(listModelCiudad);
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnAdicionarEstadoImposto(Event ev) throws InterruptedException {
|
||||
if (cmbEstadoImposto.getSelectedItem() == null) {
|
||||
Messagebox.show(
|
||||
|
@ -362,6 +394,14 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
public void onClick$btnAdicionarInscEstadual(Event ev) throws InterruptedException {
|
||||
Estado estado = (Estado) cmbEstadoInscEstadual.getSelectedItem().getValue();
|
||||
String inscEstadual = txtInscEstadual.getValue();
|
||||
String inscEstLogradouro = txtInscEstLogradouro.getValue();
|
||||
String inscEstNumero = txtInscEstNumero.getValue();
|
||||
String inscEstComplemento = txtInscEstComplemento.getValue();
|
||||
String inscEstCEP = txtInscEstCEP.getValue();
|
||||
String inscEstBairro = txtInscEstBairro.getValue();
|
||||
Ciudad ciudad = (Ciudad)cmbInscEstCidade.getSelectedItem().getValue();
|
||||
String inscEstCNPJ = txtInscEstCNPJ.getValue();
|
||||
|
||||
|
||||
for (int i = 0; i < inscEstadualList.getModel().getSize(); i++) {
|
||||
if (((InscricaoEstadual) inscEstadualList.getModel().getElementAt(i)).getEstado().equals(estado)) {
|
||||
|
@ -373,7 +413,8 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
InscricaoEstadual nuevaInscEstadual = new InscricaoEstadual(inscEstadual, empresa, estado, UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
InscricaoEstadual nuevaInscEstadual = new InscricaoEstadual(inscEstadual, empresa, estado, UsuarioLogado.getUsuarioLogado().getUsuarioId(),
|
||||
inscEstLogradouro, inscEstNumero, inscEstComplemento, inscEstCEP, inscEstBairro, ciudad, inscEstCNPJ);
|
||||
empresaService.actualizaInscEstadual(nuevaInscEstadual);
|
||||
empresa.getInscricoesEstaduais().add(nuevaInscEstadual);
|
||||
|
||||
|
@ -381,6 +422,13 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
|
||||
cmbEstadoInscEstadual.setSelectedItem(null);
|
||||
txtInscEstadual.setText(null);
|
||||
txtInscEstLogradouro.setText(null);
|
||||
txtInscEstNumero.setText(null);
|
||||
txtInscEstComplemento.setText(null);
|
||||
txtInscEstCEP.setText(null);
|
||||
txtInscEstBairro.setText(null);
|
||||
cmbInscEstCidade.setSelectedItem(null);
|
||||
txtInscEstCNPJ.setText(null);
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverInscEstadual(Event ev) throws InterruptedException {
|
||||
|
@ -476,6 +524,62 @@ public class EditarEmpresaController extends MyGenericForwardComposer {
|
|||
this.txtNumAgencia = txtNumAgencia;
|
||||
}
|
||||
|
||||
public Combobox getCmbInscEstCidade() {
|
||||
return cmbInscEstCidade;
|
||||
}
|
||||
|
||||
public void setCmbInscEstCidade(Combobox cmbInscEstCidade) {
|
||||
this.cmbInscEstCidade = cmbInscEstCidade;
|
||||
}
|
||||
|
||||
public Textbox getTxtInscEstLogradouro() {
|
||||
return txtInscEstLogradouro;
|
||||
}
|
||||
|
||||
public void setTxtInscEstLogradouro(Textbox txtInscEstLogradouro) {
|
||||
this.txtInscEstLogradouro = txtInscEstLogradouro;
|
||||
}
|
||||
|
||||
public Textbox getTxtInscEstNumero() {
|
||||
return txtInscEstNumero;
|
||||
}
|
||||
|
||||
public void setTxtInscEstNumero(Textbox txtInscEstNumero) {
|
||||
this.txtInscEstNumero = txtInscEstNumero;
|
||||
}
|
||||
|
||||
public Textbox getTxtInscEstComplemento() {
|
||||
return txtInscEstComplemento;
|
||||
}
|
||||
|
||||
public void setTxtInscEstComplemento(Textbox txtInscEstComplemento) {
|
||||
this.txtInscEstComplemento = txtInscEstComplemento;
|
||||
}
|
||||
|
||||
public Textbox getTxtInscEstCEP() {
|
||||
return txtInscEstCEP;
|
||||
}
|
||||
|
||||
public void setTxtInscEstCEP(Textbox txtInscEstCEP) {
|
||||
this.txtInscEstCEP = txtInscEstCEP;
|
||||
}
|
||||
|
||||
public Textbox getTxtInscEstBairro() {
|
||||
return txtInscEstBairro;
|
||||
}
|
||||
|
||||
public void setTxtInscEstBairro(Textbox txtInscEstBairro) {
|
||||
this.txtInscEstBairro = txtInscEstBairro;
|
||||
}
|
||||
|
||||
public Textbox getTxtInscEstCNPJ() {
|
||||
return txtInscEstCNPJ;
|
||||
}
|
||||
|
||||
public void setTxtInscEstCNPJ(Textbox txtInscEstCNPJ) {
|
||||
this.txtInscEstCNPJ = txtInscEstCNPJ;
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverContaBancaria(Event ev) {
|
||||
|
||||
EmpresaContaBancaria empresaToRemove = (EmpresaContaBancaria) empresaContaBancariaList.getSelected();
|
||||
|
|
|
@ -3,8 +3,6 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccome
|
|||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
@ -17,13 +15,11 @@ import org.zkoss.zk.ui.Component;
|
|||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.WrongValueException;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.ComboitemRenderer;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Timebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeaje;
|
||||
|
@ -39,7 +35,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
|
|||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionCorridaTramo;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExcepcionPeajeVigencia;
|
||||
|
||||
@Controller("editarExcepcionPeajeController")
|
||||
|
|
|
@ -809,6 +809,13 @@ editarEmpresaController.MSG.selecioneUmItem = Selecione a Conta Bancária a ser
|
|||
editarEmpresaController.MSG.jaExisteContaComAsMesmasInfoCadastradas = Já existe uma conta com as mesmas informações cadastrada
|
||||
editarEmpresaController.indcarboletosdevolvidosconf.label = Carregar Bilhetes Devolvidos Conferência
|
||||
editarEmpresaController.btnPesquisa.label = Pesquisa
|
||||
editarEmpresaController.inscEstCnpj.label = CNPJ
|
||||
editarEmpresaController.inscEstLogradouro.label = Logradouro
|
||||
editarEmpresaController.inscEstNumero.label = Número
|
||||
editarEmpresaController.inscEstCompl.label = Complemento
|
||||
editarEmpresaController.inscEstCep.label = CEP
|
||||
editarEmpresaController.inscEstBairro.label = Bairro
|
||||
editarEmpresaController.inscEstCiudad.label = Cidade
|
||||
|
||||
#Empresa impuesto
|
||||
editarEmpresaImpostoController.window.title = Configuración de impuesto por empresa/estado
|
||||
|
|
|
@ -845,6 +845,16 @@ editarEmpresaController.MSG.selecioneUmItem = Selecione a Conta Bancária a ser
|
|||
editarEmpresaController.MSG.jaExisteContaComAsMesmasInfoCadastradas = Já existe uma conta com as mesmas informações cadastrada
|
||||
editarEmpresaController.indcarboletosdevolvidosconf.label = Carregar Bilhetes Devolvidos Conferência
|
||||
editarEmpresaController.btnPesquisa.label = Pesquisa
|
||||
editarEmpresaController.inscEstCnpj.label = CNPJ
|
||||
editarEmpresaController.inscEstLogradouro.label = Logradouro
|
||||
editarEmpresaController.inscEstNumero.label = Número
|
||||
editarEmpresaController.inscEstCompl.label = Complemento
|
||||
editarEmpresaController.inscEstCep.label = CEP
|
||||
editarEmpresaController.inscEstBairro.label = Bairro
|
||||
editarEmpresaController.inscEstCiudad.label = Cidade
|
||||
|
||||
|
||||
|
||||
|
||||
#Empresa Imposto
|
||||
editarEmpresaImpostoController.window.title = Configuração de Imposto por Empresa/Estado
|
||||
|
|
|
@ -239,16 +239,83 @@
|
|||
maxlength="20"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.cidade.label')}" />
|
||||
<combobox id="cmbInscEstCidade" width="70%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
selectedItem="@{winEditarPuntoVenta$composer.empresa.cidade}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.cnpj.label')}" />
|
||||
<textbox id="txtInscEstCNPJ" width="100px"
|
||||
maxlength="18"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.logradouro.label')}" />
|
||||
<textbox id="txtInscEstLogradouro" width="98%"
|
||||
maxlength="256"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.numero.label')}" />
|
||||
<textbox id="txtInscEstNumero" width="30%"
|
||||
maxlength="6"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.complemento.label')}" />
|
||||
<textbox id="txtInscEstComplemento" width="30%"
|
||||
maxlength="10"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.cep.label')}" />
|
||||
<textbox id="txtInscEstCEP" width="50%"
|
||||
maxlength="11"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.bairro.label')}" />
|
||||
<textbox id="txtInscEstBairro" width="98%"
|
||||
maxlength="256"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<listbox id="inscEstadualList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="170px" >
|
||||
multiple="false" height="170px">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhUFInscEstadual" image="/gui/img/create_doc.gif"
|
||||
<listheader id="lhUFInscEstadual" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.lhUFInscEstadual.label')}"/>
|
||||
<listheader id="lhInscEstadual" image="/gui/img/create_doc.gif"
|
||||
<listheader id="lhInscEstadual" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscricaoestadual.label')}"/>
|
||||
|
||||
<listheader id="lhInscEstCiudad" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstCiudad.label')}"/>
|
||||
<listheader id="lhInscEstCnpj" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstCnpj.label')}"/>
|
||||
<listheader id="lhInscEstLogradouro" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstLogradouro.label')}"/>
|
||||
<listheader id="lhInscEstNumero" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstNumero.label')}"/>
|
||||
<listheader id="lhInscEstComplemento" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstCompl.label')}"/>
|
||||
<listheader id="lhInscEstCep" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstCep.label')}"/>
|
||||
<listheader id="lhInscEstBairro" image="/gui/img/create_doc.gif" width="114px"
|
||||
label="${c:l('editarEmpresaController.inscEstBairro.label')}"/>
|
||||
|
||||
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
|
Loading…
Reference in New Issue