fixes bug #10395
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@77538 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
dee05cc57d
commit
8747f13b9d
|
@ -89,6 +89,11 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
||||||
String fileZip = BGMApplication.getInstance().executaExportacao(datInicial.getValue(), datFinal.getValue(),
|
String fileZip = BGMApplication.getInstance().executaExportacao(datInicial.getValue(), datFinal.getValue(),
|
||||||
System.getProperty("jboss.server.log.dir") , empresaId, puntoVentaId, con,this.getPathExternoGravacaoArquivo());
|
System.getProperty("jboss.server.log.dir") , empresaId, puntoVentaId, con,this.getPathExternoGravacaoArquivo());
|
||||||
|
|
||||||
|
if(this.getPathExternoGravacaoArquivo() != null){
|
||||||
|
Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"),
|
||||||
|
Labels.getLabel("relatorioArquivoBGMController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
}else{
|
||||||
try{
|
try{
|
||||||
FileInputStream inputStream;
|
FileInputStream inputStream;
|
||||||
File filez = new File(fileZip);
|
File filez = new File(fileZip);
|
||||||
|
@ -104,6 +109,7 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
|
||||||
con.close();
|
con.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private String getPathExternoGravacaoArquivo(){
|
private String getPathExternoGravacaoArquivo(){
|
||||||
Constante path = constanteService.buscarPorNomeConstante("LOCALIZACAO_ARQUIVO_BGM");
|
Constante path = constanteService.buscarPorNomeConstante("LOCALIZACAO_ARQUIVO_BGM");
|
||||||
|
|
Loading…
Reference in New Issue