bug #6817
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@54695 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
47a96ed2b8
commit
7ab41d78af
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue