0017509: [BPe] GLPI 16571 - Aliquota por UF de destino
bug#0017509 dev:Valdevir qua:Debora git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@100024 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
24a199b965
commit
f8eb080360
|
@ -5,6 +5,8 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.catalogos;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -14,13 +16,24 @@ import org.zkoss.util.resource.Labels;
|
|||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zkplus.databind.BindingListModel;
|
||||
import org.zkoss.zkplus.databind.BindingListModelList;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Messagebox;
|
||||
import org.zkoss.zul.Radio;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AliquotaEstadoDestino;
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaImposto;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.service.AliquotaEstadoDestinoService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaImpostoService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderAliquotaEstadoDestino;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -40,10 +53,25 @@ public class EditarEmpresaImpostoController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private EmpresaImpostoService empresaImpostoService;
|
||||
|
||||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
|
||||
@Autowired
|
||||
private AliquotaEstadoDestinoService aliquotaEstaDestinoService;
|
||||
|
||||
private MyListbox empresaImpostoList;
|
||||
|
||||
private Radio radTribEmissao;
|
||||
private Radio radTribViagem;
|
||||
private Textbox txtAliquotaEstadoDestino;
|
||||
private Button btnAdicionarAliquotaEstadoDest;
|
||||
private Button btnRemoverAliquotaEstadoDest;
|
||||
private Checkbox chkIndAliquotaBPeUfDestino;
|
||||
private BigDecimal aliquotaDest;
|
||||
private Combobox cmbEstadoAliquotaEstadoDestino;
|
||||
private List<Estado> lsEstadosAliquotaEstadoDestino;
|
||||
private Estado selectedEstadoAliquotaEstadoDestino;
|
||||
private MyListbox aliquotaEstadoDestinoList;
|
||||
private List<AliquotaEstadoDestino> lsAliquotaEstadoDestino;
|
||||
|
||||
|
||||
/**
|
||||
* @return the empresaImposto
|
||||
|
@ -65,19 +93,29 @@ public class EditarEmpresaImpostoController extends MyGenericForwardComposer {
|
|||
EmpresaImposto empresaImposto = (EmpresaImposto) Executions.getCurrent().getArg().get("empresaImposto");
|
||||
this.empresaImpostoList = (MyListbox) Executions.getCurrent().getArg().get("empresaImpostoList");
|
||||
this.empresaImposto = empresaImpostoService.obtenerID(empresaImposto.getEmpresaImpostoId());
|
||||
|
||||
this.lsEstadosAliquotaEstadoDestino = estadoService.obtenerTodos();
|
||||
lsEstadosAliquotaEstadoDestino.remove(empresaImposto.getEstado());
|
||||
super.doAfterCompose(comp);
|
||||
aliquotaEstadoDestinoList.setItemRenderer(new RenderAliquotaEstadoDestino());
|
||||
empresaImposto.setLsAliquotaEstadoDestino(aliquotaEstaDestinoService.getChildrens(empresaImposto));
|
||||
lsAliquotaEstadoDestino = empresaImposto.getLsAliquotaEstadoDestino();
|
||||
aliquotaEstadoDestinoList.setData(lsAliquotaEstadoDestino);
|
||||
boolean isChecked=empresaImposto.getIndAliquotaBPeUfDestino() != null ? empresaImposto.getIndAliquotaBPeUfDestino() : false ;
|
||||
chkIndAliquotaBPeUfDestino.setChecked(isChecked);
|
||||
cmbEstadoAliquotaEstadoDestino.setDisabled(!isChecked);
|
||||
txtAliquotaEstadoDestino.setDisabled(!isChecked);
|
||||
btnAdicionarAliquotaEstadoDest.setDisabled(!isChecked);
|
||||
btnRemoverAliquotaEstadoDest.setDisabled(!isChecked);
|
||||
|
||||
|
||||
|
||||
|
||||
radTribEmissao.setChecked(empresaImposto.getIndTribEmissao() != null ? empresaImposto.getIndTribEmissao() : false);
|
||||
radTribViagem.setChecked(empresaImposto.getIndTribViagem() != null ? empresaImposto.getIndTribViagem() : false);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnEmpresaImpostoSalvar(Event ev) throws InterruptedException {
|
||||
try {
|
||||
|
||||
empresaImposto.setIndTribEmissao(radTribEmissao.isChecked());
|
||||
empresaImposto.setIndTribViagem(radTribViagem.isChecked());
|
||||
|
||||
if(empresaImposto.getPorctributo() == null) {
|
||||
Messagebox.show(
|
||||
|
@ -89,6 +127,8 @@ public class EditarEmpresaImpostoController extends MyGenericForwardComposer {
|
|||
|
||||
setarValoreZero();
|
||||
|
||||
empresaImposto.setLsAliquotaEstadoDestino(lsAliquotaEstadoDestino);
|
||||
|
||||
empresaImpostoService.actualizacion(this.empresaImposto);
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarEmpresaImpostoController.window.sucessoSalvar"),
|
||||
|
@ -107,15 +147,42 @@ public class EditarEmpresaImpostoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
private void setarValoreZero() {
|
||||
if(empresaImposto.getPorCredMunicipal() == null) {
|
||||
empresaImposto.setPorCredMunicipal(BigDecimal.ZERO);
|
||||
public void onCheck$chkIndAliquotaBPeUfDestino(Event ev) throws InterruptedException {
|
||||
cmbEstadoAliquotaEstadoDestino.setDisabled(!chkIndAliquotaBPeUfDestino.isChecked());
|
||||
txtAliquotaEstadoDestino.setDisabled(!chkIndAliquotaBPeUfDestino.isChecked());
|
||||
btnAdicionarAliquotaEstadoDest.setDisabled(!chkIndAliquotaBPeUfDestino.isChecked());
|
||||
btnRemoverAliquotaEstadoDest.setDisabled(!chkIndAliquotaBPeUfDestino.isChecked());
|
||||
}
|
||||
|
||||
if(empresaImposto.getPorCredEstadual() == null) {
|
||||
empresaImposto.setPorCredEstadual(BigDecimal.ZERO);
|
||||
public void onClick$btnAdicionarAliquotaEstadoDest(Event ev) throws InterruptedException {
|
||||
|
||||
if(aliquotaDest == null || selectedEstadoAliquotaEstadoDestino == null) return ;
|
||||
|
||||
AliquotaEstadoDestino a = new AliquotaEstadoDestino();
|
||||
a.setEstado(selectedEstadoAliquotaEstadoDestino);
|
||||
lsEstadosAliquotaEstadoDestino.remove(selectedEstadoAliquotaEstadoDestino);
|
||||
BindingListModel listAliquotaEstado = new BindingListModelList(lsEstadosAliquotaEstadoDestino, true);
|
||||
cmbEstadoAliquotaEstadoDestino.setModel(listAliquotaEstado);
|
||||
a.setAliquota(aliquotaDest);
|
||||
a.setEmpresaImposto(empresaImposto);
|
||||
a.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
a.setActivo(Boolean.TRUE);
|
||||
a.setFecmodif(Calendar.getInstance().getTime());
|
||||
lsAliquotaEstadoDestino.add(a);
|
||||
aliquotaEstadoDestinoList.setData(lsAliquotaEstadoDestino);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverAliquotaEstadoDest(Event ev) throws InterruptedException {
|
||||
if(lsAliquotaEstadoDestino != null && lsAliquotaEstadoDestino.size() == 0) {return;}
|
||||
int index = aliquotaEstadoDestinoList.getSelectedItem().getIndex();
|
||||
lsEstadosAliquotaEstadoDestino.add(lsAliquotaEstadoDestino.remove(index).getEstado());
|
||||
aliquotaEstadoDestinoList.setData(lsAliquotaEstadoDestino);
|
||||
}
|
||||
|
||||
|
||||
private void setarValoreZero() {
|
||||
|
||||
if(empresaImposto.getPorCredBaseIcms() == null) {
|
||||
empresaImposto.setPorCredBaseIcms(BigDecimal.ZERO);
|
||||
}
|
||||
|
@ -173,4 +240,36 @@ public class EditarEmpresaImpostoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public List<Estado> getLsEstadosAliquotaEstadoDestino() {
|
||||
return lsEstadosAliquotaEstadoDestino;
|
||||
}
|
||||
|
||||
public void setLsEstadosAliquotaEstadoDestino(List<Estado> lsEstadosAliquotaEstadoDestino) {
|
||||
this.lsEstadosAliquotaEstadoDestino = lsEstadosAliquotaEstadoDestino;
|
||||
}
|
||||
|
||||
public BigDecimal getAliquotaDest() {
|
||||
return aliquotaDest;
|
||||
}
|
||||
|
||||
public void setAliquotaDest(BigDecimal aliquotaDest) {
|
||||
this.aliquotaDest = aliquotaDest;
|
||||
}
|
||||
|
||||
public Estado getSelectedEstadoAliquotaEstadoDestino() {
|
||||
return selectedEstadoAliquotaEstadoDestino;
|
||||
}
|
||||
|
||||
public void setSelectedEstadoAliquotaEstadoDestino(Estado selectedEstadoAliquotaEstadoDestino) {
|
||||
this.selectedEstadoAliquotaEstadoDestino = selectedEstadoAliquotaEstadoDestino;
|
||||
}
|
||||
|
||||
public Checkbox getChkIndAliquotaBPeUfDestino() {
|
||||
return chkIndAliquotaBPeUfDestino;
|
||||
}
|
||||
|
||||
public void setChkIndAliquotaBPeUfDestino(Checkbox chkIndAliquotaBPeUfDestino) {
|
||||
this.chkIndAliquotaBPeUfDestino = chkIndAliquotaBPeUfDestino;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.AliquotaEstadoDestino;
|
||||
|
||||
public class RenderAliquotaEstadoDestino implements ListitemRenderer {
|
||||
|
||||
@Override
|
||||
public void render(Listitem listItem, Object selectedAliquotaEstadoDest) throws Exception {
|
||||
|
||||
Listcell lc = new Listcell();
|
||||
|
||||
if(selectedAliquotaEstadoDest != null) {
|
||||
|
||||
AliquotaEstadoDestino aliquotaEstadoDestino = (AliquotaEstadoDestino) selectedAliquotaEstadoDest;
|
||||
lc = new Listcell(aliquotaEstadoDestino.getEstado() != null ? aliquotaEstadoDestino.getEstado().getNombestado() : "");
|
||||
lc.setParent(listItem);
|
||||
lc = new Listcell(aliquotaEstadoDestino.getAliquota() != null ? ""+aliquotaEstadoDestino.getAliquota() : "");
|
||||
lc.setParent(listItem);
|
||||
listItem.setAttribute("data", aliquotaEstadoDestino);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -494,6 +494,7 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.TarifaEmbarcada</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaEmbarcadaHist</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Cotacao</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AliquotaEstadoDestino</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -1450,6 +1450,10 @@ editarEmpresaImpostoController.labelRedMunicial.value = Reductor ICMS Intermunic
|
|||
editarEmpresaImpostoController.labelRedEstadual.value = Reductor ICMS Interestadual
|
||||
editarEmpresaImpostoController.labelRedIcms.value = Reductor base de cálculo ICMS Interestadual
|
||||
editarEmpresaImpostoController.labelRedIcmsIM.value = Reductor base de cálculo ICMS Intermunicipal
|
||||
editarEmpresaImpostoController.labelIndAliquotaBPeUfDestino.value = Habilitar alíquota por UF destino
|
||||
editarEmpresaImpostoController.labelAliquota.value = Alíquota
|
||||
editarEmpresaController.labelEstadoUFDestino.value = Alíquota ICMS por UF de destino
|
||||
editarEmpresaController.labelEstadoUFDestino.value = Estado
|
||||
editarEmpresaImpostoController.labelPorctributo.value = % Impuesto
|
||||
editarEmpresaImpostoController.labelTributacaoImportacao.value = Tributacion Importacion BPe
|
||||
editarEmpresaImpostoController.codEstabelecimento.value = Codigo Estabelecimiento
|
||||
|
|
|
@ -1571,9 +1571,13 @@ editarEmpresaImpostoController.labelRedMunicial.value = Redutor ICMS Intermunici
|
|||
editarEmpresaImpostoController.labelRedEstadual.value = Redutor ICMS Interestadual
|
||||
editarEmpresaImpostoController.labelRedIcms.value = Redutor Base de Cálculo ICMS Interestadual
|
||||
editarEmpresaImpostoController.labelRedIcmsIM.value = Redutor Base de Cálculo ICMS Intermunicipal
|
||||
editarEmpresaImpostoController.labelIndAliquotaBPeUfDestino.value = Habilitar alíquota por UF destino
|
||||
editarEmpresaImpostoController.labelAliquota.value = Alíquota
|
||||
editarEmpresaController.labelEstadoUFDestino.value = Alíquota ICMS por UF de destino
|
||||
editarEmpresaController.labelEstado.value = Estado
|
||||
editarEmpresaImpostoController.labelPorctributo.value = Demais Tributos %
|
||||
editarEmpresaImpostoController.labelPorcFECP.value= FECP %
|
||||
editarEmpresaImpostoController.labelTributacaoImportacao.value = Tributação Importação BPe
|
||||
editarEmpresaImpostoController.labelTributacaoImportacao.value =Alíquota BPe
|
||||
editarEmpresaImpostoController.codEstabelecimento.value = Código Estabelecimento
|
||||
editarEmpresaImpostoController.codigoContabilMunicipal.value = Código Contabil Municipal
|
||||
editarEmpresaImpostoController.codigoContabilEstadual.value = Código Contabil Estadual
|
||||
|
@ -1595,7 +1599,7 @@ editarEmpresaImpostoController.lblTarifa.value = Tarifa
|
|||
editarEmpresaImpostoController.lblSeguro.value = Seguro
|
||||
editarEmpresaImpostoController.lblValidaAliquotaECF.value = Valida Aliquota ECF
|
||||
editarEmpresaImpostoController.lblPossuiRedBaseCalculo.value = Possui Redutor de Base de Cálculo
|
||||
editarEmpresaImpostoController.lblTxEmbarque.value = Taxa de embarque
|
||||
editarEmpresaImpostoController.lblTxEmbarque.value = Taxa de emb
|
||||
editarEmpresaImpostoController.lblPedagio.value = Pedagio
|
||||
editarEmpresaImpostoController.lblAltaTemporada.value = Alta Temporada
|
||||
editarEmpresaImpostoController.lblJaneiro.value = Janeiro
|
||||
|
|
|
@ -45,13 +45,20 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaImpostoController.lblValidaAliquotaECF.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelIcms.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelIndIcms.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelIcmsMunicipal.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelIndIcmsMunicipal.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelIcmsMunicipalMatricial.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelIcmsEstadualMatricial.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblValidaAliquotaECF.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIcms.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIndIcms.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIcmsMunicipal.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIndIcmsMunicipal.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIcmsMunicipalMatricial.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIcmsEstadualMatricial.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<checkbox id="chkIndValidaECF" width="50px"
|
||||
|
@ -62,42 +69,48 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
constraint="no empty"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.icms,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
<intbox id="txtIndIcms" width="50px" maxlength="2" value="@{winEditarEmpresaImposto$composer.empresaImposto.indiceICMSecf}" />
|
||||
<textbox id="txtIcmsIntermunicipal" width="50px" precision="7"
|
||||
scale="2"
|
||||
<intbox id="txtIndIcms" width="50px"
|
||||
maxlength="2"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.indiceICMSecf}" />
|
||||
<textbox id="txtIcmsIntermunicipal" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
constraint="no empty"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.icmsIntermunicipal,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
|
||||
<intbox id="txtIndIcmsIntermunicipal" maxlength="2" width="50px" value="@{winEditarEmpresaImposto$composer.empresaImposto.indiceICMSIntermunicipal}" />
|
||||
<textbox id="txtIcmsIntermunicipalMatricial" width="50px" precision="7"
|
||||
scale="2"
|
||||
<intbox id="txtIndIcmsIntermunicipal"
|
||||
maxlength="2" width="50px"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.indiceICMSIntermunicipal}" />
|
||||
<textbox id="txtIcmsIntermunicipalMatricial"
|
||||
width="50px" precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.icmsIntermunicipalMatricial,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
|
||||
<textbox id="txtIcmsInterestadualMatricial" width="50px" precision="7"
|
||||
scale="2"
|
||||
<textbox id="txtIcmsInterestadualMatricial"
|
||||
width="50px" precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.icmsMatricial,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarEmpresaImpostoController.lblPossuiRedBaseCalculo.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelRedMunicial.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelRedEstadual.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelRedIcms.value')}" />
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelRedIcmsIM.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblPossuiRedBaseCalculo.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelRedIcms.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelRedIcmsIM.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblOutrosIsento.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblOutrasUFBloqueadas.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.bpe.value')}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelIndAliquotaBPeUfDestino.value')}" />
|
||||
</row>
|
||||
<row>
|
||||
<checkbox id="chkIndRedutorBaseIcmsBPe" width="50px"
|
||||
<checkbox id="chkIndRedutorBaseIcmsBPe"
|
||||
width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indRedutorBaseIcmsBPe}" />
|
||||
<textbox id="txtPorCredMunicipal" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porCredMunicipal,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
<textbox id="txtPorCredEstadual" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porCredEstadual,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
<textbox id="txtPorCredBaseIcms" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
|
@ -106,42 +119,28 @@
|
|||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porcRedBaseIcmsIM,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
<checkbox id="chkIndOutrosIsento" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indOutrosIsento}" />
|
||||
<checkbox id="chkIndOutrasUF" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indOutrasUFBloqueadas}" />
|
||||
<checkbox id="chkBPe" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.isBPe}" />
|
||||
<checkbox id="chkIndAliquotaBPeUfDestino"
|
||||
width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indAliquotaBPeUfDestino}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
|
||||
<groupbox width="97%">
|
||||
<caption sclass="block">
|
||||
<div sclass="folder">
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.infComplementar.value')}" />
|
||||
</div>
|
||||
</caption>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column />
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hlayout spacing="2%" style="margin-left: 5%;">
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelPorctributo.value')}" />
|
||||
<textbox id="txtTributo" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porctributo,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelPorcFECP.value')}" />
|
||||
<textbox id="txtFECP" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porcFECP,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
</hlayout>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
|
||||
<groupbox width="97%">
|
||||
<caption sclass="block">
|
||||
<div sclass="folder">
|
||||
|
@ -151,28 +150,34 @@
|
|||
</caption>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
<column width="30%" />
|
||||
<column width="30%" />
|
||||
<column width="33%" />
|
||||
<column width="33%" />
|
||||
<column width="34%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<cell>
|
||||
<label value="${c:l('editarEmpresaImpostoController.codEstabelecimento.value')}" />
|
||||
<textbox id="txtCodEstabelecimento" width="100px" maxlength="4"
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.codEstabelecimento.value')}" />
|
||||
<textbox
|
||||
id="txtCodEstabelecimento" width="100px" maxlength="4"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.codEstabelecimento}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</cell>
|
||||
<cell>
|
||||
<label value="${c:l('editarEmpresaImpostoController.codigoContabilMunicipal.value')}" />
|
||||
<textbox id="txtCodigoContabilMunicipal" width="120px" maxlength="15"
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.codigoContabilMunicipal.value')}" />
|
||||
<textbox
|
||||
id="txtCodigoContabilMunicipal" width="120px" maxlength="15"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.codigoContabilMunicipal}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
|
||||
</cell>
|
||||
<cell>
|
||||
<label value="${c:l('editarEmpresaImpostoController.codigoContabilEstadual.value')}" />
|
||||
<textbox id="txtCodigoContabilEstadual" width="120px" maxlength="15"
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.codigoContabilEstadual.value')}" />
|
||||
<textbox
|
||||
id="txtCodigoContabilEstadual" width="120px" maxlength="15"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.codigoContabilEstadual}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</cell>
|
||||
|
@ -180,7 +185,69 @@
|
|||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
<groupbox width="97%">
|
||||
<caption sclass="block">
|
||||
<div sclass="folder">
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.infComplementar.value')}" />
|
||||
</div>
|
||||
</caption>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row spans="2">
|
||||
<!-- <hlayout spacing="2%" style="margin-left: 5%;"> -->
|
||||
<cell>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<cell>
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelPorctributo.value')}" />
|
||||
<textbox
|
||||
id="txtTributo" width="50px" precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porctributo,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelPorcFECP.value')}" />
|
||||
<textbox
|
||||
id="txtFECP" width="50px" precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.porcFECP,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
<!-- </hlayout> -->
|
||||
</cell>
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</cell>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="50%" />
|
||||
<column width="50%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<groupbox width="97%">
|
||||
<caption sclass="block">
|
||||
<div sclass="folder">
|
||||
|
@ -200,37 +267,39 @@
|
|||
<rows>
|
||||
<row>
|
||||
<cell>
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelTributacaoImportacao.value')}" />
|
||||
<textbox id="txtTributacaoImportacaoIM" width="50px"
|
||||
precision="5" scale="2"
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelTributacaoImportacao.value')}" />
|
||||
<textbox
|
||||
id="txtTributacaoImportacaoIM" width="50px" precision="5"
|
||||
scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.tributacaoImportacaoIM,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndTarifaMunicipal"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndTarifaMunicipal" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indTarifaMunicipal}" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblTarifa.value')}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndSeguroMunicipal"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndSeguroMunicipal" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indSeguroMunicipal}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblSeguro.value')}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndTxEmbarqueMunicipal"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndTxEmbarqueMunicipal" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indTxEmbarqueMunicipal}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblTxEmbarque.value')}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndPedagioMunicipal"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndPedagioMunicipal" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indPedagioMunicipal}" />
|
||||
|
||||
<label
|
||||
|
@ -260,36 +329,38 @@
|
|||
<rows>
|
||||
<row>
|
||||
<cell>
|
||||
<label value="${c:l('editarEmpresaImpostoController.labelTributacaoImportacao.value')}" />
|
||||
<textbox id="txtTributacaoImportacaoIE" width="50px"
|
||||
precision="5" scale="2"
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.labelTributacaoImportacao.value')}" />
|
||||
<textbox
|
||||
id="txtTributacaoImportacaoIE" width="50px" precision="5"
|
||||
scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
value="@{winEditarEmpresaImposto$composer.empresaImposto.tributacaoImportacao,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndTarifaEstadual"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndTarifaEstadual" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indTarifaEstadual}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblTarifa.value')}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndSeguroEstadual"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndSeguroEstadual" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indSeguroEstadual}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblSeguro.value')}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndTxEmbarqueEstadual"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndTxEmbarqueEstadual" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indTxEmbarqueEstadual}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblTxEmbarque.value')}" />
|
||||
</cell>
|
||||
<cell>
|
||||
<checkbox id="chkIndPedadioEstdual"
|
||||
width="50px"
|
||||
<checkbox
|
||||
id="chkIndPedadioEstdual" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indPedadioEstdual}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblPedagio.value')}" />
|
||||
|
@ -298,6 +369,71 @@
|
|||
</rows>
|
||||
</grid>
|
||||
</groupbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="100%" />
|
||||
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('editarEmpresaController.labelEstadoUFDestino.value')}" />
|
||||
|
||||
<combobox id="cmbEstadoAliquotaEstadoDestino"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true"
|
||||
width="70%" model="@{winEditarEmpresaImposto$composer.lsEstadosAliquotaEstadoDestino}"
|
||||
selectedItem="@{winEditarEmpresaImposto$composer.selectedEstadoAliquotaEstadoDestino}" />
|
||||
<!-- constraint="no empty" -->
|
||||
|
||||
<textbox id="txtAliquotaEstadoDestino" width="50px"
|
||||
precision="7" scale="2"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
constraint="no empty"
|
||||
value="@{winEditarEmpresaImposto$composer.aliquotaDest,converter=com.rjconsultores.ventaboletos.web.utilerias.StringPercentToDecimalConverter}" />
|
||||
|
||||
<label value="%"/>
|
||||
|
||||
<button
|
||||
id="btnAdicionarAliquotaEstadoDest" height="20"
|
||||
image="/gui/img/add.png" width="35px"/>
|
||||
<button
|
||||
id="btnRemoverAliquotaEstadoDest" height="20"
|
||||
image="/gui/img/remove.png" width="35px"/>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="100%" />
|
||||
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<hbox>
|
||||
<listbox id="aliquotaEstadoDestinoList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarEmpresaController.labelEstado.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarEmpresaImpostoController.labelAliquota.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
|
||||
<groupbox width="97%">
|
||||
<caption sclass="block">
|
||||
|
@ -399,31 +535,5 @@
|
|||
|
||||
</grid>
|
||||
</groupbox>
|
||||
|
||||
|
||||
<checkbox id="chkIndOutrosIsento" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indOutrosIsento}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblOutrosIsento.value')}" />
|
||||
|
||||
<checkbox id="chkIndOutrasUF" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.indOutrasUFBloqueadas}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.lblOutrasUFBloqueadas.value')}" />
|
||||
|
||||
<checkbox id="chkBPe" width="50px"
|
||||
checked="@{winEditarEmpresaImposto$composer.empresaImposto.isBPe}" />
|
||||
<label
|
||||
value="${c:l('editarEmpresaImpostoController.bpe.value')}" />
|
||||
|
||||
<radiogroup Id="indTipoTributo">
|
||||
<radio id="radTribEmissao"
|
||||
label="${c:l('editarEmpresaImpostoController.tributoEmissao.value')}"/>
|
||||
|
||||
<radio id="radTribViagem"
|
||||
label="${c:l('editarEmpresaImpostoController.tributoViagem.value')}"/>
|
||||
|
||||
</radiogroup>
|
||||
|
||||
</window>
|
||||
</zk>
|
||||
|
|
Loading…
Reference in New Issue