fixes bug#14108

dev:lucas

qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@92946 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2019-05-07 19:14:49 +00:00
parent 7f88149df2
commit 93f5b8bfba
1 changed files with 10 additions and 0 deletions

View File

@ -11,6 +11,8 @@ import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Comboitem;
@ -77,6 +79,14 @@ public class BusquedaBpeExportacaoController extends MyGenericForwardComposer {
String nomeArquivo = getNomeArquivoExportacaoECF(datInicial.getValue(), estado, "BPE");
File arquivo = bpeService.buscarArquivoExportacaoBPE(datInicial.getValue(), datFinal.getValue(), empresa, estado, nomeArquivo);
if (arquivo == null) {
Messagebox.show(
Labels.getLabel("relatorio.parametro.msgNoData"),
Labels.getLabel("indexController.mnSubMenuBpeFiscal.exportacao.label"),
Messagebox.OK, Messagebox.INFORMATION);
return;
}
try {
downloadArquivo(arquivo, nomeArquivo);