bug #9389 - Financeiro Analitico
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73069 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c93a5c18ea
commit
c78349bf4e
|
@ -0,0 +1,291 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.fiscal.vo.FinanceiroAnalitico;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFinanceiroAnalitico extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioFinanceiroAnalitico.class);
|
||||
List<FinanceiroAnalitico> listdata = null;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public RelatorioFinanceiroAnalitico(final Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new DataSource(this) {
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
try {
|
||||
Date inicio = (Date) parametros.get("inicio");
|
||||
Date fim = (Date) parametros.get("fim");
|
||||
Empresa empresa = (Empresa) parametros.get("empresa");
|
||||
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) parametros.get("tipoPuntoVenta");
|
||||
|
||||
List<Estado> estados = (List<Estado>) parametros.get("estados");
|
||||
String ufs = null;
|
||||
for (Estado estado : estados) {
|
||||
if (ufs == null)
|
||||
ufs = estado.getEstadoId().toString();
|
||||
else
|
||||
ufs = ufs + "," + estado.getEstadoId().toString();
|
||||
}
|
||||
|
||||
List<PuntoVenta> agencias = (List<PuntoVenta>) parametros.get("agencias");
|
||||
String pdvs = null;
|
||||
for (PuntoVenta pv : agencias) {
|
||||
if (pdvs == null)
|
||||
pdvs = pv.getPuntoventaId().toString();
|
||||
else
|
||||
pdvs = pdvs + "," + pv.getPuntoventaId().toString();
|
||||
}
|
||||
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(getConexao(), getSql(ufs, pdvs, tipoPuntoVenta == null ? -1 : tipoPuntoVenta.getTipoptovtaId().intValue()));
|
||||
stmt.setInt("EMPRESA_ID", empresa.getEmpresaId());
|
||||
stmt.setTimestamp("DATE_INICIO", new java.sql.Timestamp(DateUtil.inicioFecha(inicio).getTime()));
|
||||
stmt.setTimestamp("DATE_FIM", new java.sql.Timestamp(DateUtil.fimFecha(fim).getTime()));
|
||||
|
||||
listdata = new ArrayList<FinanceiroAnalitico>();
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
while (rset.next()) {
|
||||
FinanceiroAnalitico fs = new FinanceiroAnalitico();
|
||||
fs.setUf(rset.getString("uf"));
|
||||
fs.setCodigoAgencia(rset.getString("codigo"));
|
||||
fs.setFechorVenta(rset.getDate("fechorVenta"));
|
||||
|
||||
fs.setReceitaBPR(getBigDecimal(rset, "receita_bpr"));
|
||||
fs.setGapVenda(getBigDecimal(rset, "receita_gap"));
|
||||
fs.setGapImpressa(getBigDecimal(rset, "entrega_gap"));
|
||||
|
||||
BigDecimal totalVendaPassagens = fs.getReceitaBPR().add(fs.getGapVenda());
|
||||
totalVendaPassagens = totalVendaPassagens.subtract(fs.getGapImpressa());
|
||||
fs.setTotalVendaPassagens(totalVendaPassagens);
|
||||
|
||||
fs.setReceitaEb(getBigDecimal(rset, "receita_eb"));
|
||||
fs.setMultaComp(getBigDecimal(rset, "receita_multa"));
|
||||
fs.setDifTrocaOCD(getBigDecimal(rset, "receita_dif_troca_ocd"));
|
||||
fs.setDifTarifaMaior(getBigDecimal(rset, "receita_dif_dif_tarifa_maior"));
|
||||
|
||||
BigDecimal totalOutrasReceitas = fs.getReceitaEb().add(fs.getMultaComp()).add(fs.getDifTrocaOCD()).add(fs.getDifTarifaMaior());
|
||||
fs.setTotalOutrasReceitas(totalOutrasReceitas);
|
||||
|
||||
fs.setTxEmb(getBigDecimal(rset, "taxaEmbarque"));
|
||||
fs.setPedagio(getBigDecimal(rset, "pedagio"));
|
||||
fs.setSegFacult(getBigDecimal(rset, "seguro"));
|
||||
|
||||
BigDecimal totalTerceiros = fs.getTxEmb().add(fs.getPedagio()).add(fs.getSegFacult());
|
||||
fs.setTotalTerceiros(totalTerceiros);
|
||||
|
||||
BigDecimal receitaBruta = totalVendaPassagens.add(totalOutrasReceitas).add(totalTerceiros);
|
||||
fs.setReceitaBruta(receitaBruta);
|
||||
|
||||
fs.setDevolBPR(getBigDecimal(rset, "receita_devol_bpr"));
|
||||
fs.setDevolGAP(getBigDecimal(rset, "receita_devol_gap"));
|
||||
|
||||
BigDecimal totalDevolucao = fs.getDevolBPR().add(fs.getDevolGAP());
|
||||
BigDecimal receitaLiquida = receitaBruta.subtract(totalDevolucao);
|
||||
fs.setReceitaLiquida(receitaLiquida);
|
||||
|
||||
fs.setDespesas(getBigDecimal(rset, "despesas"));
|
||||
fs.setPgOCD(getBigDecimal(rset, "receita_ocd_deb"));
|
||||
fs.setDifTarifaMenor(getBigDecimal(rset, "receita_dif_dif_tarifa_menor"));
|
||||
fs.setCartaoCredito(getBigDecimal(rset, "cartao_credito"));
|
||||
fs.setCartaoDebito(getBigDecimal(rset, "cartao_debito"));
|
||||
fs.setBoletoBancario(getBigDecimal(rset, "boleto_bnc"));
|
||||
fs.setDeposito(getBigDecimal(rset, "deposito"));
|
||||
|
||||
BigDecimal totalDetalhamento = fs.getDespesas().add(fs.getPgOCD()).add(fs.getDifTarifaMenor())
|
||||
.add(fs.getCartaoCredito()).add(fs.getCartaoDebito()).add(fs.getBoletoBancario())
|
||||
.add(fs.getDeposito());
|
||||
fs.setTotalDetalhamento(totalDetalhamento);
|
||||
|
||||
BigDecimal saldo = totalDetalhamento.subtract(receitaLiquida);
|
||||
fs.setSaldo(saldo);
|
||||
|
||||
listdata.add(fs);
|
||||
}
|
||||
|
||||
if (!getConexao().isClosed())
|
||||
getConexao().close();
|
||||
|
||||
Collections.sort(listdata);
|
||||
|
||||
} catch (SQLException e) {
|
||||
log.error("", e);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
this.setCollectionDataSource(new JRBeanCollectionDataSource(listdata));
|
||||
}
|
||||
|
||||
static public BigDecimal getBigDecimal(ResultSet rs, String strColName) throws SQLException {
|
||||
BigDecimal nValue = rs.getBigDecimal(strColName);
|
||||
return rs.wasNull() ? BigDecimal.ZERO : nValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql(String ufs, String pdvs, Integer tipoptovtaId) {
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("select * from ");
|
||||
sql.append(" ");
|
||||
sql.append("(select ");
|
||||
sql.append(" cd.estadoOrigem as uf, ");
|
||||
sql.append(" cd.estadoId, ");
|
||||
sql.append(" cd.codigo, ");
|
||||
sql.append(" cd.puntoventaId, ");
|
||||
sql.append(" cd.empresaId, ");
|
||||
sql.append(" cd.fechorVenta, ");
|
||||
sql.append(" sum(case when cd.venda = 1 then cd.taxaEmbarque else 0 end) as taxaEmbarque, ");
|
||||
sql.append(" sum(case when cd.venda = 1 then cd.pedagio else 0 end) as pedagio, ");
|
||||
sql.append(" sum(case when cd.venda = 1 then cd.seguro else 0 end) as seguro, ");
|
||||
sql.append(" sum(case when (cd.venda = 1 and cd.bpr = 1) then cd.tarifa else 0 end) as receita_bpr, ");
|
||||
sql.append(" sum(case when (cd.venda = 1 and cd.gap = 1) then cd.valorpago else 0 end) as receita_gap, ");
|
||||
sql.append(" sum(case when (cd.entrega_gap = 1) then cd.valorpago else 0 end) as entrega_gap, ");
|
||||
sql.append(" sum(case when (cd.indcancelacion = 1 and cd.bpr = 1) then cd.valorpago else 0 end) as receita_devol_bpr, ");
|
||||
sql.append(" sum(case when (cd.indcancelacion = 1 and cd.gap = 1) then cd.valorpago else 0 end) as receita_devol_gap, ");
|
||||
sql.append(" sum(case when (cd.venda = 1 and cd.pagamento_credito = 1) then cd.valorpago else 0 end) as cartao_credito, ");
|
||||
sql.append(" sum(case when (cd.venda = 1 and cd.pagamento_debito = 1) then cd.valorpago else 0 end) as cartao_debito, ");
|
||||
sql.append(" sum(case when (cd.indcancelacion = 1 and cd.ocd_deb = 1) then cd.valorpago else 0 end) as receita_ocd_deb, ");
|
||||
sql.append(" sum(case when (cd.ocd_cred = 1) then cd.valorpago else 0 end) as receita_ocd_cred ");
|
||||
sql.append(" ");
|
||||
sql.append("from ( ");
|
||||
sql.append(" select ");
|
||||
sql.append(" c.caja_id as cajaid, ");
|
||||
sql.append(" trunc(c.feccreacion) as fechorVenta, ");
|
||||
sql.append(" e.empresa_id as empresaId, ");
|
||||
sql.append(" pv.puntoventa_id as puntoventaId, ");
|
||||
sql.append(" pv.numpuntoventa as codigo, ");
|
||||
sql.append(" eo.estado_id as estadoId, ");
|
||||
sql.append(" eo.cveestado as estadoOrigem, ");
|
||||
sql.append(" c.indstatusboleto, ");
|
||||
sql.append(" c.indreimpresion, ");
|
||||
sql.append(" c.indcancelacion, ");
|
||||
sql.append(" case when c.indstatusboleto = 'V' and c.indcancelacion = 0 and c.indreimpresion = 0 then 1 else 0 end as venda, ");
|
||||
sql.append(" case when c.tipoventa_id not in (5,12,18,49) then 1 else 0 end as bpr, ");
|
||||
sql.append(" case when c.tipoventa_id in (5,12,18,49) then 1 else 0 end as gap, ");
|
||||
sql.append(" case when c.motivocancelacion_id in (35) then 1 else 0 end as ocd_deb, ");
|
||||
sql.append(" coalesce(cfp.importe, 0) as valorpago, ");
|
||||
sql.append(" coalesce(c.preciobase, 0) as precobase, ");
|
||||
sql.append(" coalesce(c.preciopagado, 0) as tarifa, ");
|
||||
sql.append(" coalesce(c.importetaxaembarque, 0) as taxaEmbarque, ");
|
||||
sql.append(" coalesce(c.importepedagio, 0) as pedagio, ");
|
||||
sql.append(" coalesce(c.importeseguro, 0) as seguro, ");
|
||||
sql.append(" coalesce(c.importeoutros, 0) as outros, ");
|
||||
sql.append(" cfp.formapago_id, ");
|
||||
sql.append(" c.motivocancelacion_id as motivocancelacion_id, ");
|
||||
sql.append(" c.tipoventa_id as tipoventa_id, ");
|
||||
sql.append(" case when (c.tipoventa_id in (5,12,18,49) and indstatusboleto = 'E') then 1 else 0 end as entrega_gap, ");
|
||||
sql.append(" case when c.indreimpresion = 1 and indstatusboleto = 'T' then 1 else 0 end as nao_entra_no_caixa, ");
|
||||
sql.append(" case when cfp.formapago_id = 1 then 1 else 0 end as pagamento_dinheiro, ");
|
||||
sql.append(" case when cfp.formapago_id in (3,26) then 1 else 0 end as pagamento_debito, ");
|
||||
sql.append(" case when cfp.formapago_id in (2,25) then 1 else 0 end as pagamento_credito, ");
|
||||
sql.append(" case when cfp.formapago_id not in (1,2,3,25,26) then 1 else 0 end as pagamento_outro, ");
|
||||
sql.append(" case when c.motivocancelacion_id in (99) then 1 else 0 end as ocd_cred ");
|
||||
sql.append(" from caja c ");
|
||||
sql.append(" inner join caja_formapago cfp on cfp.caja_id = c.caja_id ");
|
||||
sql.append(" inner join punto_venta pv on pv.puntoventa_id = c.puntoventa_id ");
|
||||
sql.append(" inner join forma_pago fp on cfp.formapago_id = fp.formapago_id ");
|
||||
sql.append(" inner join marca m on c.marca_id = m.marca_id ");
|
||||
sql.append(" inner join empresa e on e.empresa_id = m.empresa_id ");
|
||||
sql.append(" inner join parada po on po.parada_id = pv.parada_id ");
|
||||
sql.append(" inner join ciudad co on co.ciudad_id = po.ciudad_id ");
|
||||
sql.append(" inner join estado eo on eo.estado_id = co.estado_id ");
|
||||
sql.append(" where c.feccreacion between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" and e.empresa_id = :EMPRESA_ID ");
|
||||
sql.append(ufs == null ? "" : "and eo.estado_id in ( " + ufs + " ) ");
|
||||
sql.append(pdvs == null ? "" : "and pv.puntoventa_id in ( " + pdvs + " ) ");
|
||||
sql.append(tipoptovtaId == -1 ? "" : "and pv.tipoptovta_id = " + tipoptovtaId);
|
||||
sql.append(" ) cd ");
|
||||
sql.append(" where cd.nao_entra_no_caixa = 0 ");
|
||||
sql.append(" group by cd.estadoOrigem, cd.estadoId, cd.codigo, cd.puntoventaId, cd.empresaId, cd.fechorVenta ) agrc ");
|
||||
sql.append("left join ( ");
|
||||
sql.append(" select ed.puntoventaId, ed.estadoId, ed.empresaId, ");
|
||||
sql.append(" ed.fechorVenta, ");
|
||||
sql.append(" sum(case when tipoeventoextra_id = 82 and indtipo = 1 then impingreso else 0 end) as receita_eb, ");
|
||||
sql.append(" sum(case when tipoeventoextra_id in (102,42) and indtipo = 1 then impingreso else 0 end) as receita_multa, ");
|
||||
sql.append(" sum(case when tipoeventoextra_id in (103,99978,99999) and indtipo = 1 then impingreso else 0 end) as receita_dif_troca_ocd, ");
|
||||
sql.append(" sum(case when tipoeventoextra_id in (43) and indtipo = 1 then impingreso else 0 end) as receita_dif_dif_tarifa_maior, ");
|
||||
sql.append(" sum(case when tipoeventoextra_id in (44) and indtipo = 0 then impingreso else 0 end) as receita_dif_dif_tarifa_menor, ");
|
||||
sql.append(" sum(case when tipoeventoextra_id not in (44) and indtipo = 0 then impingreso else 0 end) as despesas ");
|
||||
sql.append(" from ( ");
|
||||
sql.append(" select ee.tipoeventoextra_id, ee.impingreso, tee.indtipo, ");
|
||||
sql.append(" pv.puntoventa_id as puntoventaId, eo.estado_id as estadoId, ee.empresa_id as empresaId, ");
|
||||
sql.append(" trunc(ee.fechoringreso) as fechorVenta ");
|
||||
sql.append(" from evento_extra ee ");
|
||||
sql.append(" join tipo_evento_extra tee on ee.tipoeventoextra_id = tee.tipoeventoextra_id ");
|
||||
sql.append(" join punto_venta pv on pv.puntoventa_id = ee.puntoventa_id ");
|
||||
sql.append(" join parada po on po.parada_id = pv.parada_id ");
|
||||
sql.append(" join ciudad co on co.ciudad_id = po.ciudad_id ");
|
||||
sql.append(" join estado eo on eo.estado_id = co.estado_id ");
|
||||
sql.append(" where ee.activo = 1 and ee.empresa_id = :EMPRESA_ID ");
|
||||
sql.append(ufs == null ? "" : "and eo.estado_id in ( " + ufs + " ) ");
|
||||
sql.append(pdvs == null ? "" : "and pv.puntoventa_id in ( " + pdvs + " ) ");
|
||||
sql.append(tipoptovtaId == -1 ? "" : "and pv.tipoptovta_id = " + tipoptovtaId);
|
||||
sql.append(" and ee.fechoringreso between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" ) ed ");
|
||||
sql.append(" group by ed.puntoventaId, ed.estadoId, ed.empresaId, ed.fechorVenta ");
|
||||
sql.append(" ) eed on agrc.empresaId = eed.empresaId and agrc.puntoventaId = eed.puntoventaId and agrc.estadoId = eed.estadoId and agrc.fechorVenta = eed.fechorVenta ");
|
||||
sql.append("left join ( ");
|
||||
sql.append(" select coalesce(sum(fd.valor), 0) as deposito, pv.puntoventa_id as puntoventaId, fcc.empresa_id as empresaId, eo.estado_id as estadoId, ");
|
||||
sql.append(" trunc(fd.feccreacion) as fechorVenta ");
|
||||
sql.append(" from fechamento_cntcorrente fcc ");
|
||||
sql.append(" join fechamento_cct_deposito fcd on fcd.fechamentocntcorrente_id = fcc.fechamentocntcorrente_id ");
|
||||
sql.append(" join fechamento_deposito fd on fd.fechamentocntcorrente_id = fcd.fechamentocntcorrente_id ");
|
||||
sql.append(" join punto_venta pv on pv.puntoventa_id = fcc.puntoventa_id ");
|
||||
sql.append(" join parada po on po.parada_id = pv.parada_id ");
|
||||
sql.append(" join ciudad co on co.ciudad_id = po.ciudad_id ");
|
||||
sql.append(" join estado eo on eo.estado_id = co.estado_id ");
|
||||
sql.append(" where fcc.activo = 1 and fcc.empresa_id = :EMPRESA_ID ");
|
||||
sql.append(ufs == null ? "" : "and eo.estado_id in ( " + ufs + " ) ");
|
||||
sql.append(pdvs == null ? "" : "and pv.puntoventa_id in ( " + pdvs + " ) ");
|
||||
sql.append(tipoptovtaId == -1 ? "" : "and pv.tipoptovta_id = " + tipoptovtaId);
|
||||
sql.append(" and fd.feccreacion between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" group by pv.puntoventa_id, fcc.empresa_id, eo.estado_id, trunc(fd.feccreacion) ");
|
||||
sql.append(" ) depd on agrc.empresaId = depd.empresaId and agrc.puntoventaId = depd.puntoventaId and agrc.estadoId = depd.estadoId and agrc.fechorVenta = depd.fechorVenta ");
|
||||
sql.append("left join ( ");
|
||||
sql.append(" select coalesce(sum(fb.valordocumento), 0) as boleto_bnc , pv.puntoventa_id as puntoventaId, fcc.empresa_id as empresaId, eo.estado_id as estadoId, ");
|
||||
sql.append(" trunc(fb.fecmodif) as fechorVenta ");
|
||||
sql.append(" from fechamento_cntcorrente fcc ");
|
||||
sql.append(" join fechamento_boleto fb on fb.fechamentocntcorrente_id = fcc.fechamentocntcorrente_id ");
|
||||
sql.append(" join punto_venta pv on pv.puntoventa_id = fcc.puntoventa_id ");
|
||||
sql.append(" join parada po on po.parada_id = pv.parada_id ");
|
||||
sql.append(" join ciudad co on co.ciudad_id = po.ciudad_id ");
|
||||
sql.append(" join estado eo on eo.estado_id = co.estado_id ");
|
||||
sql.append(" where fcc.activo = 1 and fcc.empresa_id = :EMPRESA_ID ");
|
||||
sql.append(ufs == null ? "" : "and eo.estado_id in ( " + ufs + " ) ");
|
||||
sql.append(pdvs == null ? "" : "and pv.puntoventa_id in ( " + pdvs + " ) ");
|
||||
sql.append(tipoptovtaId == -1 ? "" : "and pv.tipoptovta_id = " + tipoptovtaId);
|
||||
sql.append(" and fb.fecmodif between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" group by pv.puntoventa_id, fcc.empresa_id, eo.estado_id, trunc(fb.fecmodif) ");
|
||||
sql.append(" ) bold on agrc.empresaId = bold.empresaId and agrc.puntoventaId = bold.puntoventaId and agrc.estadoId = bold.estadoId and agrc.fechorVenta = bold.fechorVenta ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
}
|
|
@ -26,7 +26,7 @@ import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
|||
|
||||
public class RelatorioFinanceiroSintetico extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioFolioRmd.class);
|
||||
private static Logger log = Logger.getLogger(RelatorioFinanceiroSintetico.class);
|
||||
List<FinanceiroSintetico> listdata = null;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
@ -76,7 +76,8 @@ public class RelatorioFinanceiroSintetico extends Relatorio {
|
|||
fs.setGapVenda(getBigDecimal(rset, "receita_gap"));
|
||||
fs.setGapImpressa(getBigDecimal(rset, "entrega_gap"));
|
||||
|
||||
BigDecimal totalVendaPassagens = fs.getReceitaBPR().add(fs.getGapVenda()).add(fs.getGapImpressa());
|
||||
BigDecimal totalVendaPassagens = fs.getReceitaBPR().add(fs.getGapVenda());
|
||||
totalVendaPassagens = totalVendaPassagens.subtract(fs.getGapImpressa());
|
||||
fs.setTotalVendaPassagens(totalVendaPassagens);
|
||||
|
||||
fs.setReceitaEb(getBigDecimal(rset, "receita_eb"));
|
||||
|
@ -212,7 +213,7 @@ public class RelatorioFinanceiroSintetico extends Relatorio {
|
|||
sql.append(" inner join parada po on po.parada_id = pv.parada_id ");
|
||||
sql.append(" inner join ciudad co on co.ciudad_id = po.ciudad_id ");
|
||||
sql.append(" inner join estado eo on eo.estado_id = co.estado_id ");
|
||||
sql.append(" where c.fechorventa between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" where c.feccreacion between :DATE_INICIO and :DATE_FIM ");
|
||||
sql.append(" and e.empresa_id = :EMPRESA_ID ");
|
||||
sql.append(ufs == null ? "" : "and eo.estado_id in ( " + ufs + " ) ");
|
||||
sql.append(pdvs == null ? "" : "and pv.puntoventa_id in ( " + pdvs + " ) ");
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
|
@ -0,0 +1,2 @@
|
|||
#geral
|
||||
msg.noData=Não foi possivel obter dados com os parâmetros informados.
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioFinanceiroSintetico" pageWidth="1320" pageHeight="595" orientation="Landscape" columnWidth="1280" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="1a307341-ad36-4306-8e8d-c8b55fb6bcc6">
|
||||
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioFinanceiroSintetico" pageWidth="1295" pageHeight="595" orientation="Landscape" columnWidth="1295" leftMargin="0" rightMargin="0" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="1a307341-ad36-4306-8e8d-c8b55fb6bcc6">
|
||||
<property name="ireport.zoom" value="1.771561000000001"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
|
@ -152,7 +152,7 @@
|
|||
<textFieldExpression><![CDATA["a"]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="62" width="1280" height="1" uuid="dd84e30f-7ba9-4da1-957f-73d3dde213d4"/>
|
||||
<reportElement x="0" y="62" width="1295" height="1" uuid="dd84e30f-7ba9-4da1-957f-73d3dde213d4"/>
|
||||
</line>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="0" y="84" width="12" height="20" backcolor="#FFFF00" uuid="f8420e75-7628-4337-a2da-bbb50c827b47"/>
|
||||
|
@ -173,7 +173,7 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita BPR
|
||||
<text><![CDATA[Receita BPR (+)
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
|
@ -181,7 +181,7 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Venda
|
||||
<text><![CDATA[GAP Venda (+)
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
|
@ -189,7 +189,7 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Impresa
|
||||
<text><![CDATA[GAP Impresa (-)
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
|
@ -205,32 +205,28 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita EB
|
||||
]]></text>
|
||||
<text><![CDATA[Receita EB (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="297" y="84" width="46" height="20" backcolor="#FFFF00" uuid="503354c4-4ea3-43fd-a2a4-1afcda15ea78"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Multa Comp.
|
||||
]]></text>
|
||||
<text><![CDATA[Multa Comp (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="343" y="84" width="46" height="20" backcolor="#FFFF00" uuid="2989d946-283c-4388-88f6-ee64916c7a31"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Dif. Troca OCD
|
||||
]]></text>
|
||||
<text><![CDATA[Dif. Troca OCD (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="389" y="84" width="46" height="20" backcolor="#FFFF00" uuid="765a9a53-d6aa-4ed9-8f5d-a98b1b19e8ea"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Dif.Tarifa maior
|
||||
]]></text>
|
||||
<text><![CDATA[Dif.Tarifa maior (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="435" y="84" width="54" height="20" backcolor="#FFFF00" uuid="7947c12b-9696-4e11-bc63-bd56d2f2cbf3"/>
|
||||
|
@ -245,24 +241,21 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tx. Emb
|
||||
]]></text>
|
||||
<text><![CDATA[Tx. Emb (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="535" y="84" width="46" height="20" backcolor="#FFFF00" uuid="37fd94d1-9092-4b03-b58b-c058d71f0487"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pedágio
|
||||
]]></text>
|
||||
<text><![CDATA[Pedágio (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="581" y="84" width="46" height="20" backcolor="#FFFF00" uuid="30d187d3-bd6f-4c53-8823-6aeaa4f5614e"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Seg.Facult.
|
||||
]]></text>
|
||||
<text><![CDATA[Seg.Facult. (+)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="627" y="84" width="46" height="20" backcolor="#FFFF00" uuid="3e435ff4-4513-4c1e-b610-74cdacac2325"/>
|
||||
|
@ -273,7 +266,7 @@
|
|||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="673" y="84" width="54" height="20" backcolor="#FF3333" uuid="f776816e-75f3-485a-829f-524123670ff1"/>
|
||||
<reportElement mode="Opaque" x="673" y="84" width="54" height="20" backcolor="#FFCCFF" uuid="f776816e-75f3-485a-829f-524123670ff1"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
|
@ -285,16 +278,14 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Devol.BPR
|
||||
]]></text>
|
||||
<text><![CDATA[Devol.BPR (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="773" y="84" width="46" height="20" backcolor="#FFFF00" uuid="eaa0d364-75bb-4dde-a0a4-819eb6794b2c"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Devol. GAP
|
||||
]]></text>
|
||||
<text><![CDATA[Devol. GAP (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="819" y="84" width="54" height="20" backcolor="#FFFF00" uuid="3121c2b4-97bc-4ec9-89e0-fbad16f45c57"/>
|
||||
|
@ -309,56 +300,49 @@
|
|||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Despesas
|
||||
]]></text>
|
||||
<text><![CDATA[Despesas (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="919" y="84" width="46" height="20" backcolor="#FFFF00" uuid="eaf2a4ed-a74b-4def-ac11-46fd29ae2d9b"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Pg. OCD
|
||||
]]></text>
|
||||
<text><![CDATA[Pg. OCD (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="965" y="84" width="46" height="20" backcolor="#FFFF00" uuid="98fbe2ef-6231-4f58-9c40-8721fd8bfc66"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Dif.Tarifa Menor
|
||||
]]></text>
|
||||
<text><![CDATA[Dif.Tarifa Menor (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1011" y="84" width="46" height="20" backcolor="#FFFF00" uuid="7c0a8a80-f25c-4dbb-b0ec-58c5dfb030e0"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Cartão Créd.
|
||||
]]></text>
|
||||
<text><![CDATA[Cartão Créd. (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1057" y="84" width="46" height="20" backcolor="#FFFF00" uuid="fcf10dd8-0477-4a20-8495-638e235292f6"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Cartão Débito
|
||||
]]></text>
|
||||
<text><![CDATA[Cartão Débito (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1103" y="84" width="46" height="20" backcolor="#FFFF00" uuid="f9f0c88a-0d84-492e-95cd-d6ef47988543"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Boleto
|
||||
]]></text>
|
||||
<text><![CDATA[Boleto (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1149" y="84" width="46" height="20" backcolor="#FFFF00" uuid="e406447e-dcdf-4f66-a7cf-9f4ffb96bbab"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Depósito
|
||||
]]></text>
|
||||
<text><![CDATA[Depósito (-)]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1195" y="84" width="54" height="20" backcolor="#FFFF00" uuid="739ef6bb-1bc6-4da1-b470-628c8c018018"/>
|
||||
|
@ -369,7 +353,7 @@
|
|||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1249" y="84" width="31" height="20" backcolor="#FFFF00" uuid="f066c0a1-dbd9-45d2-bc8d-c5d3e932e63d"/>
|
||||
<reportElement mode="Opaque" x="1249" y="84" width="46" height="20" backcolor="#FFFF00" uuid="f066c0a1-dbd9-45d2-bc8d-c5d3e932e63d"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
|
@ -405,7 +389,7 @@
|
|||
<text><![CDATA[Receita de Terceiros]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="673" y="63" width="54" height="20" backcolor="#FF3333" uuid="bce00659-e3f4-42e8-82cf-f596bfa515af"/>
|
||||
<reportElement mode="Opaque" x="673" y="63" width="54" height="20" backcolor="#FFCCFF" uuid="bce00659-e3f4-42e8-82cf-f596bfa515af"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -433,7 +417,103 @@
|
|||
<text><![CDATA[Detalhamento]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="0" y="104" width="1280" height="1" uuid="abf24fee-c57d-4f83-aaa0-0487eea4bd32"/>
|
||||
<reportElement x="0" y="104" width="1295" height="1" uuid="abf24fee-c57d-4f83-aaa0-0487eea4bd32"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="251" y="63" width="1" height="21" uuid="29823af1-c385-4e81-8b22-3b61faeb5953"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="488" y="63" width="1" height="21" uuid="0912b653-dac6-4146-a27f-6fee72411c44"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="873" y="63" width="1" height="21" uuid="65b70979-a60b-4b6c-907e-61947e7dd704"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="726" y="62" width="1" height="21" uuid="4f6bfe1c-a9a1-45ff-9563-a3322b825fb0"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="673" y="62" width="1" height="21" uuid="fb790544-686c-4277-8d97-6917cf645e89"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="819" y="63" width="1" height="21" uuid="a8f1e85f-1753-4822-9369-e36f4954c551"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="1248" y="62" width="1" height="21" uuid="613af26e-03cc-4d34-bf2d-d673286ee77a"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="60" y="63" width="1" height="21" uuid="22596c45-3c90-4e7a-877c-9359d8882a0c"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="1248" y="83" width="1" height="21" uuid="1a6f8860-5155-4cd5-9270-eb2287f2adfc"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="251" y="83" width="1" height="21" uuid="35cc320f-424a-4daa-bda3-ca3a764b2270"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="60" y="84" width="1" height="21" uuid="cdb5b4bf-8bc3-4c24-b843-ca6a4b1927b0"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="488" y="84" width="1" height="21" uuid="1247e01e-1643-445f-bc69-1bdb17aeed4a"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="726" y="83" width="1" height="21" uuid="4d281267-39bc-42b6-afc7-674d5293a552"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="673" y="83" width="1" height="21" uuid="c9a85288-0cb4-4410-99c0-f392a5491483"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="819" y="83" width="1" height="21" uuid="3ad94d78-4e16-4655-9dc9-a825c61c9c2e"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="873" y="83" width="1" height="21" uuid="6482f813-b42b-4454-9094-70402784843a"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
|
@ -442,6 +522,42 @@
|
|||
</pageHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement x="1248" y="1" width="1" height="13" uuid="4fe3812f-0d17-4dcd-9043-7acffb210a3b"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="819" y="2" width="1" height="13" uuid="95f5ce21-0064-48ab-9997-28c0ff3cfb68"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="673" y="1" width="1" height="13" uuid="5461f547-d8e2-4eaf-98db-03775ee3624e"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="488" y="1" width="1" height="13" uuid="37cb7a51-3b0e-4539-b4f4-e8cea30602dc"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="251" y="0" width="1" height="14" uuid="a495a234-e410-4a2c-a0eb-2720836d4f6e"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="60" y="1" width="1" height="14" uuid="e8c64d7e-b990-4ec4-aac8-93dde9e31a81"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="12" height="15" uuid="570e4073-642b-4e2c-b851-b5e4fc7196d1"/>
|
||||
<textElement textAlignment="Right">
|
||||
|
@ -450,26 +566,19 @@
|
|||
<textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="12" y="0" width="47" height="15" uuid="818cda93-4bdf-4049-ac7d-e291322b3b4f"/>
|
||||
<reportElement x="12" y="0" width="48" height="15" uuid="818cda93-4bdf-4049-ac7d-e291322b3b4f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{codigoAgencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="59" y="0" width="46" height="15" uuid="ff462c88-2038-41b7-8058-aaec05c3d47b"/>
|
||||
<reportElement x="61" y="0" width="44" height="15" uuid="ff462c88-2038-41b7-8058-aaec05c3d47b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaBPR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="105" y="0" width="46" height="15" uuid="6bd836cc-534f-4d65-8bff-ffc318adbc2f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{gapVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="151" y="0" width="46" height="15" uuid="41651a0b-2369-4dbe-94e9-3d3204c34b09"/>
|
||||
<textElement textAlignment="Right">
|
||||
|
@ -513,7 +622,7 @@
|
|||
<textFieldExpression><![CDATA[$F{difTarifaMaior}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="435" y="0" width="54" height="15" backcolor="#FFFF00" uuid="e509fbb7-f777-4107-bb5c-43864b752d0b"/>
|
||||
<reportElement mode="Opaque" x="435" y="0" width="53" height="15" backcolor="#FFFF00" uuid="e509fbb7-f777-4107-bb5c-43864b752d0b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
|
@ -548,7 +657,7 @@
|
|||
<textFieldExpression><![CDATA[$F{totalTerceiros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="673" y="0" width="54" height="15" backcolor="#FF3333" uuid="97a10e1d-f51e-42e8-9ce3-7ed6b8e592db"/>
|
||||
<reportElement mode="Opaque" x="674" y="0" width="52" height="15" backcolor="#FFCCFF" uuid="97a10e1d-f51e-42e8-9ce3-7ed6b8e592db"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
|
@ -569,7 +678,7 @@
|
|||
<textFieldExpression><![CDATA[$F{devolGAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="819" y="0" width="54" height="15" backcolor="#FFFF00" uuid="e2e7db09-8606-4d9d-9feb-0987e29b0eb5"/>
|
||||
<reportElement mode="Opaque" x="820" y="0" width="53" height="15" backcolor="#FFFF00" uuid="e2e7db09-8606-4d9d-9feb-0987e29b0eb5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
|
@ -625,23 +734,48 @@
|
|||
<textFieldExpression><![CDATA[$F{deposito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="1195" y="0" width="54" height="15" backcolor="#FFFF00" uuid="cf19637a-d07d-46a4-8510-b4e7fd6b5e23"/>
|
||||
<reportElement mode="Opaque" x="1195" y="0" width="53" height="15" backcolor="#FFFF00" uuid="cf19637a-d07d-46a4-8510-b4e7fd6b5e23"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{totalDetalhamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1249" y="0" width="31" height="15" uuid="51a512ea-0eda-4ecf-964c-28bebabe974f"/>
|
||||
<reportElement x="1249" y="0" width="46" height="15" uuid="51a512ea-0eda-4ecf-964c-28bebabe974f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{saldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="105" y="0" width="46" height="15" uuid="6bd836cc-534f-4d65-8bff-ffc318adbc2f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{gapVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="726" y="1" width="1" height="13" uuid="04f1e600-b5ab-40c4-a46c-47fb0a105230"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="873" y="1" width="1" height="13" uuid="93212ba6-28a4-4f1c-9021-6202710074d8"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="15" splitType="Stretch">
|
||||
<line>
|
||||
<reportElement x="251" y="2" width="1" height="13" uuid="e92c4253-9ea9-4c2c-895b-326f3f16b305"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1103" y="0" width="46" height="15" uuid="3bb307d1-503a-41b4-96a6-9185c16534fb"/>
|
||||
<textElement textAlignment="Right">
|
||||
|
@ -706,14 +840,14 @@
|
|||
<textFieldExpression><![CDATA[$V{somaDifTarifaMenor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="819" y="0" width="54" height="15" backcolor="#FFFF00" uuid="f0fff871-c093-4aa2-8493-fb15dc4fce4c"/>
|
||||
<reportElement mode="Opaque" x="820" y="0" width="53" height="15" backcolor="#FFFF00" uuid="f0fff871-c093-4aa2-8493-fb15dc4fce4c"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaReceitaLiquida}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1249" y="0" width="31" height="15" uuid="471e76a9-5c4b-4b45-9f4d-aea49c4c6dca"/>
|
||||
<reportElement x="1249" y="0" width="46" height="15" uuid="471e76a9-5c4b-4b45-9f4d-aea49c4c6dca"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -734,14 +868,14 @@
|
|||
<textFieldExpression><![CDATA[$V{somaTxEmb}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="873" y="0" width="46" height="15" uuid="bc5a39d9-f669-464d-9af9-1460cc132088"/>
|
||||
<reportElement x="874" y="0" width="45" height="15" uuid="bc5a39d9-f669-464d-9af9-1460cc132088"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaDespesas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="59" y="0" width="46" height="15" uuid="1cd0c607-f6e3-4379-8429-28d4d3ab44f3"/>
|
||||
<reportElement x="61" y="0" width="44" height="15" uuid="1cd0c607-f6e3-4379-8429-28d4d3ab44f3"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -783,14 +917,14 @@
|
|||
<textFieldExpression><![CDATA[$V{somaGapVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="1195" y="0" width="54" height="15" backcolor="#FFFF00" uuid="8e8a8960-6e08-4ebb-a1fc-61af0f98b916"/>
|
||||
<reportElement mode="Opaque" x="1195" y="0" width="53" height="15" backcolor="#FFFF00" uuid="8e8a8960-6e08-4ebb-a1fc-61af0f98b916"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaTotalDetalhamento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="435" y="0" width="54" height="15" backcolor="#FFFF00" uuid="869f51ff-5a72-4ef9-9add-bca1e85b02e4"/>
|
||||
<reportElement mode="Opaque" x="435" y="0" width="53" height="15" backcolor="#FFFF00" uuid="869f51ff-5a72-4ef9-9add-bca1e85b02e4"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -818,14 +952,14 @@
|
|||
<textFieldExpression><![CDATA[$V{somaDeposito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="673" y="0" width="54" height="15" backcolor="#FF3333" uuid="b361c91d-04b9-4e19-90b9-600eb787453f"/>
|
||||
<reportElement mode="Opaque" x="674" y="-1" width="52" height="16" backcolor="#FFCCFF" uuid="b361c91d-04b9-4e19-90b9-600eb787453f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumReceitaBruta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="0" width="1280" height="1" uuid="1b0334f8-0945-45d5-a9d8-b9081605e068"/>
|
||||
<reportElement x="0" y="0" width="1295" height="1" uuid="1b0334f8-0945-45d5-a9d8-b9081605e068"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
|
@ -837,6 +971,48 @@
|
|||
</textElement>
|
||||
<textFieldExpression><![CDATA["Total geral"]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="60" y="2" width="1" height="13" uuid="485b3597-b252-40e3-8ca5-18c79429af7d"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="488" y="2" width="1" height="13" uuid="8a34639a-8a3f-4d04-98e6-29cc3075d511"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="673" y="2" width="1" height="13" uuid="228771a4-5eab-49d3-a2f3-24a9c320414b"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="726" y="2" width="1" height="13" uuid="acfea4cd-98f9-4814-bfa6-607ac1070c47"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="819" y="2" width="1" height="13" uuid="fb8a0048-dea8-453e-ad69-66d7e13180bd"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="873" y="2" width="1" height="13" uuid="64af58a0-68fe-407c-bdff-da2d6413c1d4"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement x="1248" y="2" width="1" height="13" uuid="912c06e4-2af0-4495-a97f-69c528e15c84"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
</band>
|
||||
</columnFooter>
|
||||
</jasperReport>
|
||||
|
|
|
@ -25,6 +25,7 @@ import com.rjconsultores.ventaboletos.entidad.Empresa;
|
|||
import com.rjconsultores.ventaboletos.entidad.Estado;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroAnalitico;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioFinanceiroSintetico;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
|
@ -95,7 +96,7 @@ public class BusquedaRelatorioFinanceiroController extends MyGenericForwardCompo
|
|||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executar() throws InterruptedException {
|
||||
private void executar(boolean isSintetico, boolean isAnalitico) throws InterruptedException {
|
||||
|
||||
try {
|
||||
Empresa empresa = cmbEmpresa == null ? null : (cmbEmpresa.getSelectedItem() == null ? null : (Empresa) cmbEmpresa.getSelectedItem().getValue());
|
||||
|
@ -117,7 +118,11 @@ public class BusquedaRelatorioFinanceiroController extends MyGenericForwardCompo
|
|||
parametros.put("fim", datFinal.getValue());
|
||||
parametros.put("usuario", UsuarioLogado.getUsuarioLogado().getClaveUsuario());
|
||||
|
||||
Relatorio relatorio = new RelatorioFinanceiroSintetico(parametros, dataSourceRead.getConnection());
|
||||
Relatorio relatorio = null;
|
||||
if (isSintetico)
|
||||
relatorio = new RelatorioFinanceiroSintetico(parametros, dataSourceRead.getConnection());
|
||||
else
|
||||
relatorio = new RelatorioFinanceiroAnalitico(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
@ -178,12 +183,12 @@ public class BusquedaRelatorioFinanceiroController extends MyGenericForwardCompo
|
|||
}
|
||||
|
||||
public void onClick$btnSintetico(Event ev) throws InterruptedException {
|
||||
executar();
|
||||
executar(true, false);
|
||||
}
|
||||
|
||||
// public void onClick$btnAnalitico(Event ev) throws InterruptedException {
|
||||
// executar();
|
||||
// }
|
||||
public void onClick$btnAnalitico(Event ev) throws InterruptedException {
|
||||
executar(false, true);
|
||||
}
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
|
|
|
@ -116,6 +116,9 @@
|
|||
<toolbar>
|
||||
<button id="btnSintetico" image="/gui/img/enginer.png"
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.btnSintetico.label')}" />
|
||||
|
||||
<button id="btnAnalitico" image="/gui/img/enginer.png"
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.btnAnalitico.label')}" />
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue