fixes bug #8807
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@67983 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2e9163b57c
commit
1ab99e34f3
|
@ -87,7 +87,6 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
|
||||||
private Button btnExeRelatorioPendenciaReducaoZ;
|
private Button btnExeRelatorioPendenciaReducaoZ;
|
||||||
private Button btnExeRelatorioVoucherCancelados;
|
private Button btnExeRelatorioVoucherCancelados;
|
||||||
|
|
||||||
private Boolean isExibirFiltroEstado;
|
|
||||||
private Boolean isExibirTipoGeracaoArquivo;
|
private Boolean isExibirTipoGeracaoArquivo;
|
||||||
private Boolean isExibirCompetencia;
|
private Boolean isExibirCompetencia;
|
||||||
private boolean isExibirDatas;
|
private boolean isExibirDatas;
|
||||||
|
@ -103,8 +102,6 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
|
||||||
|
|
||||||
super.doAfterCompose(comp);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
isExibirFiltroEstado = true;
|
|
||||||
|
|
||||||
defineImportacao();
|
defineImportacao();
|
||||||
aplicarMascara();
|
aplicarMascara();
|
||||||
}
|
}
|
||||||
|
@ -148,7 +145,6 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
|
||||||
|
|
||||||
boolean isNaoFiscal = Executions.getCurrent().getArg().get("NAO_FISCAL") == null ? Boolean.FALSE : (Boolean) Executions.getCurrent().getArg().get("NAO_FISCAL");
|
boolean isNaoFiscal = Executions.getCurrent().getArg().get("NAO_FISCAL") == null ? Boolean.FALSE : (Boolean) Executions.getCurrent().getArg().get("NAO_FISCAL");
|
||||||
if (isNaoFiscal) {
|
if (isNaoFiscal) {
|
||||||
isExibirFiltroEstado = false;
|
|
||||||
btnExeImportacionNaoFiscal.setVisible(true);
|
btnExeImportacionNaoFiscal.setVisible(true);
|
||||||
} else {
|
} else {
|
||||||
btnExeImportacionNaoFiscal.setVisible(false);
|
btnExeImportacionNaoFiscal.setVisible(false);
|
||||||
|
@ -474,7 +470,13 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
|
||||||
empresa = (Empresa) itemEmpresa.getValue();
|
empresa = (Empresa) itemEmpresa.getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
File arquivoTxt = fiscalService.importacionNaoFiscal(datInicial.getValue(), datFinal.getValue(), empresa);
|
Estado estado = null;
|
||||||
|
Comboitem itemEstado = cmbEstado.getSelectedItem();
|
||||||
|
if (itemEstado != null) {
|
||||||
|
estado = (Estado) itemEstado.getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
File arquivoTxt = fiscalService.importacionNaoFiscal(datInicial.getValue(), datFinal.getValue(), empresa, estado);
|
||||||
File arquivoXls = null;
|
File arquivoXls = null;
|
||||||
if (chkArquivoXls.isChecked()) {
|
if (chkArquivoXls.isChecked()) {
|
||||||
arquivoXls = fiscalService.importacionNaoFiscalXls(empresa, arquivoTxt);
|
arquivoXls = fiscalService.importacionNaoFiscalXls(empresa, arquivoTxt);
|
||||||
|
@ -621,10 +623,6 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
|
||||||
this.chkArquivoXls = chkArquivoXls;
|
this.chkArquivoXls = chkArquivoXls;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean isExibirFiltroEstado() {
|
|
||||||
return isExibirFiltroEstado;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Boolean isExibirTipoGeracaoArquivo() {
|
public Boolean isExibirTipoGeracaoArquivo() {
|
||||||
return isExibirTipoGeracaoArquivo;
|
return isExibirTipoGeracaoArquivo;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
constraint="no empty" />
|
constraint="no empty" />
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
<row spans="1, 3" visible="@{winBusquedaImportacionFiscal$composer.exibirFiltroEstado}">
|
<row spans="1, 3">
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaCiudadController.estado.label')}" />
|
value="${c:l('busquedaCiudadController.estado.label')}" />
|
||||||
<combobox id="cmbEstado"
|
<combobox id="cmbEstado"
|
||||||
|
|
Loading…
Reference in New Issue