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-87c2c4800839master
parent
74aa9e9f77
commit
c15d0051da
|
@ -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"),
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -52,10 +52,8 @@ 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);
|
||||
|
||||
for (Empresa e : this.lsEmpresas) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
@ -44,6 +43,10 @@ public class RenderFechamentoBoleto implements ListitemRenderer {
|
|||
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);
|
||||
|
||||
}
|
||||
|
|
|
@ -74,13 +74,14 @@
|
|||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" height="90%">
|
||||
<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.lbEmpresaSacado.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="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.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.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>
|
||||
</listbox>
|
||||
|
||||
|
|
Loading…
Reference in New Issue