bug #7102
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@53433 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
2783e63a5b
commit
c1dafa9182
|
@ -79,6 +79,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
|||
|
||||
Totalbus totalbus = new Totalbus(dataSource.getConnection());
|
||||
|
||||
log.debug("gerando arquivo...");
|
||||
Arquivo.GravaArquivo(file.getAbsolutePath(), totalbus.getDespesasReceitas(
|
||||
cmbPuntoVenta.getSelectedItem() == null ? null : ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId(),
|
||||
cmbEmpresa.getSelectedItem() == null ? null : ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId(),
|
||||
|
@ -95,6 +96,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
|||
compactarArquivos(files, fileZip);
|
||||
File filez = new File(fileZip);
|
||||
if (filez.exists()) {
|
||||
log.debug("download dos arquivos");
|
||||
inputStream = new FileInputStream(filez);
|
||||
Filedownload.save(inputStream, new MimetypesFileTypeMap().getContentType(filez), filez.getName());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue