diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoBGMController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoBGMController.java index 09c9becb6..bf3c32f79 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoBGMController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoBGMController.java @@ -88,9 +88,18 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer { Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId(); Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId(); Connection con = dataSource.getConnection(); - String fileZip = BGMApplication.getInstance().executaExportacao(datInicial.getValue(), datFinal.getValue(), - System.getProperty("jboss.server.log.dir") , empresaId, puntoVentaId, con,this.getPathExternoGravacaoArquivo(), - ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()),false,ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao())); + + String fileZip = BGMApplication.getInstance().executaExportacao( + datInicial.getValue(), + datFinal.getValue(), + System.getProperty("jboss.server.log.dir"), + empresaId, + puntoVentaId, + con, + this.getPathExternoGravacaoArquivo(), + ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()), + false, + ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao())); if(this.getPathExternoGravacaoArquivo() != null){ Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"), diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoReceitasDespesasDivController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoReceitasDespesasDivController.java index 14e05ca11..fed0f953c 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoReceitasDespesasDivController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoReceitasDespesasDivController.java @@ -125,9 +125,18 @@ public class RelatorioArquivoReceitasDespesasDivController extends MyGenericForw Connection con = dataSource.getConnection(); String fileZip = ""; try{ - fileZip = BGMApplication.getInstance().executaExportacao(datInicial.getValue(), datFinal.getValue(), - System.getProperty("jboss.server.log.dir") , empresaId, puntoVentaId, con,this.getPathExternoGravacaoArquivo(), - ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()), ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_RECEITA_DESPESAS_COMPORTE.getDescricao())); + + + fileZip = BGMApplication.getInstance().executaExportacao( + datInicial.getValue(), + datFinal.getValue(), + System.getProperty("jboss.server.log.dir"), + empresaId, + puntoVentaId, + con, + this.getPathExternoGravacaoArquivo(), + ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()), + ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_RECEITA_DESPESAS_COMPORTE.getDescricao())); long size = 0; ZipFile compactado = new ZipFile(new File(fileZip)); diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoRemessaCNABController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoRemessaCNABController.java index 897fa1cdd..8bf55ff11 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoRemessaCNABController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/relatorios/RelatorioArquivoRemessaCNABController.java @@ -52,9 +52,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo @Override public void doAfterCompose(Component comp) throws Exception { - this.lsFechamentoBoletos = this.arquivoRemessaCNAB.obtenerTodosParaRemessa(null, null, null); this.lsEmpresas = this.arquivoRemessaCNAB.getEmpresas(); - super.doAfterCompose(comp); @@ -65,10 +63,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo } this.boletoFechamentoList.setItemRenderer(new RenderFechamentoBoleto()); - this.boletoFechamentoList.setData(this.lsFechamentoBoletos); - this.chkReenviarGerados.setChecked(Boolean.FALSE); - } public void onClick$btnPesquisar(Event ev) throws Exception { @@ -80,7 +75,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue(); - this.lsFechamentoBoletos = arquivoRemessaCNAB.obtenerTodosParaRemessa(empresa, this.fecBoletoIni.getValue(), this.fecBoletoFin.getValue()); + this.lsFechamentoBoletos = arquivoRemessaCNAB.obtenerTodosParaRemessa(empresa, this.fecBoletoIni.getValue(), this.fecBoletoFin.getValue(), chkReenviarGerados.isChecked()); this.boletoFechamentoList.setData(this.lsFechamentoBoletos); valida(); @@ -124,6 +119,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo } + public Empresa getEmpresa() { return empresa; } diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderFechamentoBoleto.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderFechamentoBoleto.java index 8c74f8af2..004590886 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderFechamentoBoleto.java +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderFechamentoBoleto.java @@ -1,6 +1,5 @@ package com.rjconsultores.ventaboletos.web.utilerias.render; -import java.text.DecimalFormat; import java.text.NumberFormat; import java.text.SimpleDateFormat; import java.util.Locale; @@ -43,6 +42,10 @@ public class RenderFechamentoBoleto implements ListitemRenderer { String id = (fechamentoBoleto.getRemessaId() != null) ? "Sim" : "Não"; lc = new Listcell(id); lc.setParent(lstm); + + String status = (fechamentoBoleto.getStatus() != null && fechamentoBoleto.getStatus().equals("I") ) ? "Impresso" : "Não Impresso"; + lc = new Listcell(status); + lc.setParent(lstm); lstm.setAttribute("data", fechamentoBoleto); diff --git a/web/gui/relatorios/filtroRelatorioRemessaCNAB.zul b/web/gui/relatorios/filtroRelatorioRemessaCNAB.zul index e032886fa..37431315f 100644 --- a/web/gui/relatorios/filtroRelatorioRemessaCNAB.zul +++ b/web/gui/relatorios/filtroRelatorioRemessaCNAB.zul @@ -74,13 +74,14 @@ use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false" height="90%"> - - + + - + +