julio 2016-04-06 19:27:48 +00:00
parent 47a96ed2b8
commit 7ab41d78af
1 changed files with 3 additions and 6 deletions

View File

@ -149,7 +149,7 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
}
try {
File arquivo = fiscalService.importacionFiscalECFCancelados(datInicial.getValue(), datFinal.getValue(), empresa, dataSourceRead.getConnection());
File arquivo = fiscalService.importacionFiscalECFCancelados(datInicial.getValue(), datFinal.getValue(), empresa);
InputStream is = new FileInputStream(arquivo);
Filedownload.save(is, "application/notepad", "fiscal_cancel_" + DateUtil.getStringDate(Calendar.getInstance().getTime(), "yyyyMMddhhmm") + ".txt");
arquivo.delete();
@ -157,8 +157,6 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
log.error("", e);
} catch (WrongValueException e) {
log.error("", e);
} catch (SQLException e) {
log.error("", e);
}
}
@ -171,7 +169,7 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
}
try {
File arquivo = fiscalService.importacionFiscalECF(datInicial.getValue(), datFinal.getValue(), empresa, dataSourceRead.getConnection());
File arquivo = fiscalService.importacionFiscalECF(datInicial.getValue(), datFinal.getValue(), empresa);
InputStream is = new FileInputStream(arquivo);
Filedownload.save(is, "application/notepad", "fiscal_" + DateUtil.getStringDate(Calendar.getInstance().getTime(), "yyyyMMddhhmm") + ".txt");
arquivo.delete();
@ -179,9 +177,8 @@ public class BusquedaImportacionFiscalController extends MyGenericForwardCompose
log.error("", e);
} catch (WrongValueException e) {
log.error("", e);
} catch (SQLException e) {
log.error("", e);
}
}
public void onClick$btnExeImportacionReducaoZ(Event ev) throws InterruptedException {