wilian 2016-01-20 19:05:57 +00:00
parent 375d6999db
commit 31008c6649
4 changed files with 33 additions and 2 deletions

View File

@ -111,6 +111,23 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
}
}
public void onClick$btnExeImportacionNaoFiscal(Event ev) throws InterruptedException {
try {
Empresa empresa = null;
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
empresa = (Empresa) itemEmpresa.getValue();
}
File arquivo = fiscalService.importacionNaoFiscal(datInicial.getValue(), datFinal.getValue(), empresa);
InputStream is = new FileInputStream(arquivo);
Filedownload.save(is, "application/notepad", "nao_fiscal_" + DateUtil.getStringDate(Calendar.getInstance().getTime(), "yyyyMMddhhmm") + ".txt");
arquivo.delete();
} catch (FileNotFoundException e) {
log.error(e.getMessage(), e);
}
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;

View File

@ -5842,6 +5842,15 @@ editarPacoteConvenioController.MSG.suscribirOK = Pacote Convenio Registrado exit
editarPacoteConvenioController.MSG.borrarPergunta = Eliminar Pacote Convenio?
editarPacoteConvenioController.MSG.borrarOK = Pacote Convênio Excluido Exitosamente.
# BusquedaImportacionFiscalController
busquedaImportacionFiscalController.window.title=Impressão Fiscal :: Importação Fiscal
busquedaImportacionFiscalController.btnPesquisa.label=Pesquisar
busquedaImportacionFiscalController.lbDataIni.value = Data Inicio
busquedaImportacionFiscalController.lbDataFin.value = Data Final
busquedaImportacionFiscalController.btnExe.label = Importação Fiscal ECF
busquedaImportacionFiscalController.btnExeManual.label = Importação Fiscal Manual
busquedaImportacionFiscalController.btnExeNaoFiscal.label = Importação Não Fiscal
busquedaImportacionFiscalController.btnExeImportacionReducaoZ.label = Importação Fiscal Redução Z
#corridaServiceImpl
corridaServiceImpl.geracaoCorrida.dataMenorQueAtual=El periodo informado es invalido

View File

@ -5838,12 +5838,14 @@ busquedaRelgerencialEmpresaController.indice.label=Indice
busquedaRelgerencialEmpresaController.descricao.label=Descrição
busquedaRelgerencialEmpresaController.btnPesquisa.label=Pesquisar
# BusquedaImportacionFiscalController
busquedaImportacionFiscalController.window.title=Impressão Fiscal :: Importação Fiscal
busquedaImportacionFiscalController.btnPesquisa.label=Pesquisar
busquedaImportacionFiscalController.lbDataIni.value = Data Inicio
busquedaImportacionFiscalController.lbDataFin.value = Data Final
busquedaImportacionFiscalController.btnExe.label = Importação Fiscal ECF
busquedaImportacionFiscalController.btnExeManual.label = Importação Fiscal Manual
busquedaImportacionFiscalController.btnExeNaoFiscal.label = Importação Não Fiscal
busquedaImportacionFiscalController.btnExeImportacionReducaoZ.label = Importação Fiscal Redução Z
editarRelgerencialEmpresaController.MSG.suscribirOK=Relatorio Gerencial gravado com sucesso!

View File

@ -8,7 +8,7 @@
<window id="winBusquedaImportacionFiscal"
title="${c:l('busquedaImportacionFiscalController.window.title')}"
apply="${busquedaImportacionFiscalController}"
contentStyle="overflow:auto" width="540px" border="normal">
contentStyle="overflow:auto" width="660px" border="normal">
<grid fixedLayout="true">
<columns>
<column width="20%" />
@ -37,7 +37,8 @@
<combobox id="cmbEmpresa" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winBusquedaImportacionFiscal$composer.lsEmpresa}" />
model="@{winBusquedaImportacionFiscal$composer.lsEmpresa}"
constraint="no empty" />
</row>
</rows>
@ -50,6 +51,8 @@
label="${c:l('busquedaImportacionFiscalController.btnExeImportacionReducaoZ.label')}" />
<button id="btnExeImportacionManual"
label="${c:l('busquedaImportacionFiscalController.btnExeManual.label')}" />
<button id="btnExeImportacionNaoFiscal"
label="${c:l('busquedaImportacionFiscalController.btnExeNaoFiscal.label')}" />
</toolbar>
</window>