fixes bug#14929

dev: Lucas Silvério
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@95724 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2019-07-12 21:27:04 +00:00
parent 74aa9e9f77
commit c15d0051da
5 changed files with 34 additions and 16 deletions

View File

@ -88,9 +88,18 @@ public class RelatorioArquivoBGMController extends MyGenericForwardComposer {
Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId(); Integer puntoVentaId = ((PuntoVenta)cmbPuntoVenta.getSelectedItem().getValue()).getPuntoventaId();
Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId(); Integer empresaId = ((Empresa)cmbEmpresa.getSelectedItem().getValue()).getEmpresaId();
Connection con = dataSource.getConnection(); Connection con = dataSource.getConnection();
String fileZip = BGMApplication.getInstance().executaExportacao(datInicial.getValue(), datFinal.getValue(),
System.getProperty("jboss.server.log.dir") , empresaId, puntoVentaId, con,this.getPathExternoGravacaoArquivo(), String fileZip = BGMApplication.getInstance().executaExportacao(
ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_INCLUI_TIPO_PAGAMENTO_TURISMO_BGM.getDescricao()),false,ApplicationProperties.getInstance().isCustomHabilitado(CustomEnum.IS_COD_RECEITA_FIXO_BGM.getDescricao())); 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){ if(this.getPathExternoGravacaoArquivo() != null){
Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"), Messagebox.show(Labels.getLabel("relatorioArquivoBGMController.arquivoGeradoNoServidor.value"),

View File

@ -125,9 +125,18 @@ public class RelatorioArquivoReceitasDespesasDivController extends MyGenericForw
Connection con = dataSource.getConnection(); Connection con = dataSource.getConnection();
String fileZip = ""; String fileZip = "";
try{ 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; long size = 0;
ZipFile compactado = new ZipFile(new File(fileZip)); ZipFile compactado = new ZipFile(new File(fileZip));

View File

@ -52,10 +52,8 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo
@Override @Override
public void doAfterCompose(Component comp) throws Exception { public void doAfterCompose(Component comp) throws Exception {
this.lsFechamentoBoletos = this.arquivoRemessaCNAB.obtenerTodosParaRemessa(null, null, null);
this.lsEmpresas = this.arquivoRemessaCNAB.getEmpresas(); this.lsEmpresas = this.arquivoRemessaCNAB.getEmpresas();
super.doAfterCompose(comp); super.doAfterCompose(comp);
for (Empresa e : this.lsEmpresas) { for (Empresa e : this.lsEmpresas) {
@ -65,10 +63,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo
} }
this.boletoFechamentoList.setItemRenderer(new RenderFechamentoBoleto()); this.boletoFechamentoList.setItemRenderer(new RenderFechamentoBoleto());
this.boletoFechamentoList.setData(this.lsFechamentoBoletos);
this.chkReenviarGerados.setChecked(Boolean.FALSE); this.chkReenviarGerados.setChecked(Boolean.FALSE);
} }
public void onClick$btnPesquisar(Event ev) throws Exception { public void onClick$btnPesquisar(Event ev) throws Exception {
@ -80,7 +75,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo
empresa = (Empresa) cmbEmpresa.getSelectedItem().getValue(); 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); this.boletoFechamentoList.setData(this.lsFechamentoBoletos);
valida(); valida();
@ -124,6 +119,7 @@ public class RelatorioArquivoRemessaCNABController extends MyGenericForwardCompo
} }
public Empresa getEmpresa() { public Empresa getEmpresa() {
return empresa; return empresa;
} }

View File

@ -1,6 +1,5 @@
package com.rjconsultores.ventaboletos.web.utilerias.render; package com.rjconsultores.ventaboletos.web.utilerias.render;
import java.text.DecimalFormat;
import java.text.NumberFormat; import java.text.NumberFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Locale; import java.util.Locale;
@ -44,6 +43,10 @@ public class RenderFechamentoBoleto implements ListitemRenderer {
lc = new Listcell(id); lc = new Listcell(id);
lc.setParent(lstm); 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); lstm.setAttribute("data", fechamentoBoleto);
} }

View File

@ -74,13 +74,14 @@
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
multiple="false" height="90%"> multiple="false" height="90%">
<listhead sizable="true"> <listhead sizable="true">
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbEmpresa.value')}" width="23%"/> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbEmpresa.value')}" width="22%"/>
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbEmpresaSacado.value')}" width="23%" /> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbEmpresaSacado.value')}" width="22%" />
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbNossoNumero.value')}" width="14%" /> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbNossoNumero.value')}" width="14%" />
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbDataEmissao.value')}" width="10%" /> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbDataEmissao.value')}" width="10%" />
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbDataVencimento.value')}" width="10%" /> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbDataVencimento.value')}" width="10%" />
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbValor.value')}" width="10%" /> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbValor.value')}" width="10%" />
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbRemessa.value')}" width="10%" /> <listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbRemessa.value')}" width="5%" />
<listheader image="/gui/img/builder.gif" label="${c:l('relatorioRemessaCNAB.lbImpresso.value')}" width="7%" />
</listhead> </listhead>
</listbox> </listbox>