bug #9389 - Relatorio Finaceiro Sintetico
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@72779 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1ec222b8c0
commit
b782d1cf00
|
@ -0,0 +1,283 @@
|
|||
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.FinanceiroSintetico;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
public class RelatorioFinanceiroSintetico extends Relatorio {
|
||||
|
||||
private static Logger log = Logger.getLogger(RelatorioFolioRmd.class);
|
||||
List<FinanceiroSintetico> listdata = null;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public RelatorioFinanceiroSintetico(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<FinanceiroSintetico>();
|
||||
ResultSet rset = stmt.executeQuery();
|
||||
while (rset.next()) {
|
||||
FinanceiroSintetico fs = new FinanceiroSintetico();
|
||||
fs.setUf(rset.getString("uf"));
|
||||
fs.setCodigoAgencia(rset.getString("codigo"));
|
||||
|
||||
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()).add(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(" 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(" 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 = c.origen_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(" 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(" order by e.empresa_id, eo.estado_id) cd ");
|
||||
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 ) agrc ");
|
||||
sql.append("left join ( ");
|
||||
sql.append(" select ed.puntoventaId, ed.estadoId, ed.empresaId, ");
|
||||
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, pv.puntoventa_id as puntoventaId, eo.estado_id as estadoId, ee.empresa_id as empresaId ");
|
||||
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 ");
|
||||
sql.append(" ) eed on agrc.empresaId = eed.empresaId and agrc.puntoventaId = eed.puntoventaId and agrc.estadoId = eed.estadoId ");
|
||||
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(" 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 ");
|
||||
sql.append(" ) depd on agrc.empresaId = depd.empresaId and agrc.puntoventaId = depd.puntoventaId and agrc.estadoId = depd.estadoId ");
|
||||
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(" 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 ");
|
||||
sql.append(" ) bold on agrc.empresaId = bold.empresaId and agrc.puntoventaId = bold.puntoventaId and agrc.estadoId = bold.estadoId ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
}
|
|
@ -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.
|
@ -0,0 +1,834 @@
|
|||
<?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">
|
||||
<property name="ireport.zoom" value="1.771561000000001"/>
|
||||
<property name="ireport.x" value="779"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="nombempresa" class="java.lang.String"/>
|
||||
<parameter name="inicio" class="java.util.Date"/>
|
||||
<parameter name="fim" class="java.util.Date"/>
|
||||
<parameter name="usuario" class="java.lang.String"/>
|
||||
<field name="uf" class="java.lang.String"/>
|
||||
<field name="codigoAgencia" class="java.lang.String"/>
|
||||
<field name="receitaBPR" class="java.math.BigDecimal"/>
|
||||
<field name="gapVenda" class="java.math.BigDecimal"/>
|
||||
<field name="gapImpressa" class="java.math.BigDecimal"/>
|
||||
<field name="totalVendaPassagens" class="java.math.BigDecimal"/>
|
||||
<field name="receitaEb" class="java.math.BigDecimal"/>
|
||||
<field name="multaComp" class="java.math.BigDecimal"/>
|
||||
<field name="difTrocaOCD" class="java.math.BigDecimal"/>
|
||||
<field name="difTarifaMaior" class="java.math.BigDecimal"/>
|
||||
<field name="totalOutrasReceitas" class="java.math.BigDecimal"/>
|
||||
<field name="txEmb" class="java.math.BigDecimal"/>
|
||||
<field name="pedagio" class="java.math.BigDecimal"/>
|
||||
<field name="segFacult" class="java.math.BigDecimal"/>
|
||||
<field name="totalTerceiros" class="java.math.BigDecimal"/>
|
||||
<field name="receitaBruta" class="java.math.BigDecimal"/>
|
||||
<field name="devolBPR" class="java.math.BigDecimal"/>
|
||||
<field name="devolGAP" class="java.math.BigDecimal"/>
|
||||
<field name="receitaLiquida" class="java.math.BigDecimal"/>
|
||||
<field name="despesas" class="java.math.BigDecimal"/>
|
||||
<field name="pgOCD" class="java.math.BigDecimal"/>
|
||||
<field name="difTarifaMenor" class="java.math.BigDecimal"/>
|
||||
<field name="cartaoCredito" class="java.math.BigDecimal"/>
|
||||
<field name="cartaoDebito" class="java.math.BigDecimal"/>
|
||||
<field name="boletoBancario" class="java.math.BigDecimal"/>
|
||||
<field name="deposito" class="java.math.BigDecimal"/>
|
||||
<field name="totalDetalhamento" class="java.math.BigDecimal"/>
|
||||
<field name="saldo" class="java.math.BigDecimal"/>
|
||||
<variable name="somaReceitaBPR" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaBPR}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaGapVenda" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{gapVenda}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaGapImpressa" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{gapImpressa}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaTotalVendaPassagens" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalVendaPassagens}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaReceitaEb" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaEb}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaMultaComp" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{multaComp}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDifTrocaOCD" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{difTrocaOCD}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDifTarifaMaior" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{difTarifaMaior}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaTotalOutrasReceitas" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalOutrasReceitas}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaTxEmb" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{txEmb}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaPedagio" class="java.math.BigDecimal" incrementType="Column">
|
||||
<variableExpression><![CDATA[$F{pedagio}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaSegFacult" class="java.math.BigDecimal" incrementType="Column">
|
||||
<variableExpression><![CDATA[$F{segFacult}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaTotalTerceiros" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalTerceiros}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="sumReceitaBruta" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaBruta}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDevolBPR" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{devolBPR}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDevolGAP" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{devolGAP}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaReceitaLiquida" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{receitaLiquida}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDespesas" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{despesas}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaPgOCD" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{pgOCD}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDifTarifaMenor" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{difTarifaMenor}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaCartaoCredito" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{cartaoCredito}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaCartaoDebito" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{cartaoDebito}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaBoletoBancario" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{boletoBancario}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaDeposito" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{deposito}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaTotalDetalhamento" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{totalDetalhamento}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="somaSaldo" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{saldo}]]></variableExpression>
|
||||
</variable>
|
||||
<pageHeader>
|
||||
<band height="105" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="251" height="22" uuid="ebd40d02-7a37-4edb-a630-695202044646"/>
|
||||
<textElement>
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{nombempresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="22" width="251" height="20" uuid="c6fa12a7-995b-481a-819c-151057881053"/>
|
||||
<textFieldExpression><![CDATA["Resumo de Venda"]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="0" y="42" width="40" height="20" uuid="5b805144-a6b5-4480-8e52-0d524d2bca5f"/>
|
||||
<textFieldExpression><![CDATA["Período: "]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="40" y="42" width="49" height="20" uuid="c6df39dd-dd20-47cd-9daf-0e5e121d9b08"/>
|
||||
<textFieldExpression><![CDATA[$P{inicio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy">
|
||||
<reportElement x="102" y="42" width="56" height="20" uuid="01624a82-6a65-4ae8-9932-5b5cad17eb04"/>
|
||||
<textFieldExpression><![CDATA[$P{fim}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="89" y="42" width="13" height="20" uuid="e035a947-ddce-4ec8-8e4f-d8de68534f65"/>
|
||||
<textFieldExpression><![CDATA["a"]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement x="0" y="62" width="1280" 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"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[UF]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="12" y="84" width="47" height="20" backcolor="#FFFF00" uuid="7fb16f00-1b5b-42ee-94f0-1842a81738cf"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Código]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="59" y="84" width="46" height="20" backcolor="#FFFF00" uuid="01214ed3-1b19-4d5b-be46-be05072cf712"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita BPR
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="105" y="84" width="46" height="20" backcolor="#FFFF00" uuid="a5781e57-ec30-404f-a482-a8b0914f00a5"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Venda
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="151" y="84" width="46" height="20" backcolor="#FFFF00" uuid="6df1d590-9692-435a-b63d-5811b3153a04"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[GAP Impresa
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="197" y="84" width="54" height="20" backcolor="#FFFF00" uuid="7b25d10f-1407-46da-ad45-3aa6ee15ad25"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Tot.Venda Passagem
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="251" y="84" width="46" height="20" backcolor="#FFFF00" uuid="ab1324c7-adfb-460a-a1d6-c10942c571a4"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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>
|
||||
</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>
|
||||
</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>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="435" y="84" width="54" height="20" backcolor="#FFFF00" uuid="7947c12b-9696-4e11-bc63-bd56d2f2cbf3"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total de outras receitas
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="489" y="84" width="46" height="20" backcolor="#FFFF00" uuid="5d9768a6-4ea9-423f-b046-2eb8eb197aeb"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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>
|
||||
</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>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="627" y="84" width="46" height="20" backcolor="#FFFF00" uuid="3e435ff4-4513-4c1e-b610-74cdacac2325"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total Terceiros
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="673" y="84" width="54" height="20" backcolor="#FF3333" uuid="f776816e-75f3-485a-829f-524123670ff1"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita Bruta
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="727" y="84" width="46" height="20" backcolor="#FFFF00" uuid="07c3d641-67e3-4baa-9230-198ff4e691c4"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="819" y="84" width="54" height="20" backcolor="#FFFF00" uuid="3121c2b4-97bc-4ec9-89e0-fbad16f45c57"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita Liquida
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="873" y="84" width="46" height="20" backcolor="#FFFF00" uuid="5ba3caa2-b392-403f-afec-2b237eb3f43a"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</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>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1195" y="84" width="54" height="20" backcolor="#FFFF00" uuid="739ef6bb-1bc6-4da1-b470-628c8c018018"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Total Detalhamento
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement mode="Opaque" x="1249" y="84" width="31" height="20" backcolor="#FFFF00" uuid="f066c0a1-dbd9-45d2-bc8d-c5d3e932e63d"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Saldo
|
||||
]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="59" y="83" width="1190" height="1" uuid="57ddce9d-dfe3-4593-a406-788532820987"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<staticText>
|
||||
<reportElement x="59" y="63" width="192" height="20" uuid="75726801-8433-4d31-8712-1cd6364e6c68"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receitas BPR]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="251" y="63" width="238" height="20" uuid="13b344e7-9eab-4f7c-a391-b7c303d46380"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Outras receitas
|
||||
]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="489" y="63" width="184" height="20" uuid="75371ada-e71f-4345-86ab-05feb01f06a5"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita Bruta]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="727" y="63" width="92" height="20" uuid="ab4ce332-f86d-4a62-9c84-cecd2aae502d"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8" isBold="false"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Devoluções]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="819" y="63" width="54" height="20" uuid="05c949bb-dc08-432f-8144-32bd89a12a9f"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Receita Liquida]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement x="873" y="63" width="376" height="20" uuid="fd4acb36-3047-4fbf-b292-4cd5048ddbad"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Detalhamento]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement x="0" y="104" width="1280" height="1" uuid="abf24fee-c57d-4f83-aaa0-0487eea4bd32"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<detail>
|
||||
<band height="15" splitType="Stretch">
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="12" height="15" uuid="570e4073-642b-4e2c-b851-b5e4fc7196d1"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{uf}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement x="12" y="0" width="47" 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"/>
|
||||
<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">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{gapImpressa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="197" y="0" width="54" height="15" backcolor="#FFFF00" uuid="831594cd-b7d3-4a74-8f50-dd2b23886b65"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{totalVendaPassagens}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="251" y="0" width="46" height="15" uuid="93466d98-b5c0-420f-ac3b-0d7db828a725"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaEb}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="297" y="0" width="46" height="15" uuid="400a96ea-07c5-4758-b2e3-f0688be71d1d"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{multaComp}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="343" y="0" width="46" height="15" uuid="8844d9af-78ca-4e20-8e84-9b9b1b1ec8b0"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{difTrocaOCD}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="389" y="0" width="46" height="15" uuid="9e50f90e-ca03-4e8c-95ab-22d616f45615"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{totalOutrasReceitas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="489" y="0" width="46" height="15" uuid="0f052d2d-5844-4998-add9-e3304688209a"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{txEmb}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="535" y="0" width="46" height="15" uuid="3246d9dd-8024-46be-b46c-34200f1e0ec1"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="581" y="0" width="46" height="15" uuid="c75eb131-785a-4a2e-97f8-0ba9a39b6991"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{segFacult}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="627" y="0" width="46" height="15" backcolor="#FFFF00" uuid="1f364902-b455-4082-891f-d90271cb7d79"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaBruta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="727" y="0" width="46" height="15" uuid="e9a2e27f-ea1c-44d5-8476-726df0cacce5"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{devolBPR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="773" y="0" width="46" height="15" uuid="d6df43c5-0b3e-46a5-bae2-9c718ed6a95b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{receitaLiquida}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="873" y="0" width="46" height="15" uuid="6af29431-bbae-4bfe-89d6-df54b17adc47"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{despesas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="919" y="0" width="46" height="15" uuid="590fc622-ada2-4950-aba6-253d9176a69a"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pgOCD}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="965" y="0" width="46" height="15" uuid="925cc56f-7c1b-42ff-bada-4c1d96107f11"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{difTarifaMenor}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1011" y="0" width="46" height="15" uuid="255bc8ed-c770-4ceb-9f29-7d0157a0819b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cartaoCredito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1057" y="0" width="46" height="15" uuid="1f6695fb-3354-48cd-8194-67ebba651015"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{cartaoDebito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1103" y="0" width="46" height="15" uuid="4b5fc7bc-a2bc-47ae-8baa-3f5a1e4f45f2"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{boletoBancario}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1149" y="0" width="46" height="15" uuid="7817640d-d4cf-49ac-ade5-a6a77b1d0cde"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{saldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band height="15" splitType="Stretch">
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1103" y="0" width="46" height="15" uuid="3bb307d1-503a-41b4-96a6-9185c16534fb"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaBoletoBancario}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="581" y="0" width="46" height="15" uuid="df7f5926-0229-4c31-ba27-a9036295daee"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaSegFacult}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="297" y="0" width="46" height="15" uuid="78051f51-c549-461d-882c-e0f3ab3c6fb8"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaMultaComp}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1057" y="0" width="46" height="15" uuid="34af58b3-3aa9-48e3-ac46-1db92477c5bf"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaCartaoDebito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="627" y="0" width="46" height="15" backcolor="#FFFF00" uuid="0509388f-d69e-4260-a23b-746d42668a9d"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaTotalTerceiros}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="343" y="0" width="46" height="15" uuid="8977a2ff-3e52-4552-a93a-10d72a7b2cb7"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaDifTrocaOCD}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="919" y="0" width="46" height="15" uuid="a3b2c994-cc3f-45b1-b130-5d5ee11a345b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaPgOCD}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="727" y="0" width="46" height="15" uuid="565e4f58-d35e-4e3e-aef8-687e06caab65"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaDevolBPR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="965" y="0" width="46" height="15" uuid="4acffe71-3e19-4bd4-b08a-0d083d06703e"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaSaldo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1011" y="0" width="46" height="15" uuid="8ff21686-9678-4d8d-a5a1-83fdb9d7371d"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaCartaoCredito}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="489" y="0" width="46" height="15" uuid="75c080e7-cb5e-490b-a4ec-976e922f3f05"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaReceitaBPR}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="535" y="0" width="46" height="15" uuid="c8408169-8514-478a-a2ee-74228a287c1b"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaPedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="773" y="0" width="46" height="15" uuid="73e641ea-d232-414c-a154-ae699c8320d9"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaDevolGAP}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="251" y="0" width="46" height="15" uuid="0b968319-2cab-4d6e-8a84-fab85cfeec6c"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaReceitaEb}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement mode="Opaque" x="197" y="0" width="54" height="15" backcolor="#FFFF00" uuid="b0da6ae7-d21d-4abf-929b-107c1eea8f72"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaTotalVendaPassagens}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="105" y="0" width="46" height="15" uuid="512223c6-1cc0-416c-a54d-67dcc673f33f"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaTotalOutrasReceitas}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="389" y="0" width="46" height="15" uuid="b4609c03-9811-4d17-b9d7-3e99f0ae34ec"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaDifTarifaMaior}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="151" y="0" width="46" height="15" uuid="e4e3afe9-e83b-4e56-99aa-7af91ae2548d"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{somaGapImpressa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement x="1149" y="0" width="46" height="15" uuid="684daa7c-ba34-4923-8143-6241e2d242b2"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<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"/>
|
||||
<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"/>
|
||||
<graphicElement>
|
||||
<pen lineStyle="Dotted"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField>
|
||||
<reportElement x="0" y="0" width="59" height="15" uuid="6c012fbc-91dd-4c84-b153-8a9fbdf85312"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA["Total geral"
|
||||
]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnFooter>
|
||||
</jasperReport>
|
|
@ -0,0 +1,203 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.impressaofiscal;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
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.Combobox;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
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.RelatorioFinanceiroSintetico;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.EstadoService;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoUf;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVentaSimple;
|
||||
import com.trg.search.Filter;
|
||||
|
||||
@Controller("busquedaRelatorioFinanceiroController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaRelatorioFinanceiroController extends MyGenericForwardComposer {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static Logger log = Logger.getLogger(BusquedaRelatorioFinanceiroController.class);
|
||||
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
|
||||
@Autowired
|
||||
private EstadoService estadoService;
|
||||
|
||||
@Autowired
|
||||
private TipoPuntoVentaService tipoPuntoVentaService;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
|
||||
private List<Empresa> lsEmpresa;
|
||||
private List<Estado> lsEstado;
|
||||
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
|
||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||
private Combobox cmbTipoPuntoVenta;
|
||||
|
||||
private MyListbox estadoList;
|
||||
private MyListbox puntoVentaList;
|
||||
|
||||
private Textbox txtPalavraPesquisa;
|
||||
private MyListbox puntoVentaSelList;
|
||||
private Paging pagingPuntoVenta;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
lsEstado = estadoService.obtenerTodos();
|
||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
estadoList.setItemRenderer(new RenderEstadoUf());
|
||||
estadoList.setData(lsEstado);
|
||||
puntoVentaList.setItemRenderer(new RenderPuntoVentaSimple());
|
||||
puntoVentaSelList.setItemRenderer(new RenderPuntoVentaSimple());
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executar() throws InterruptedException {
|
||||
|
||||
try {
|
||||
Empresa empresa = cmbEmpresa == null ? null : (cmbEmpresa.getSelectedItem() == null ? null : (Empresa) cmbEmpresa.getSelectedItem().getValue());
|
||||
TipoPuntoVenta tipoPuntoVenta = cmbTipoPuntoVenta == null ? null : (cmbTipoPuntoVenta.getSelectedItem() == null ? null : (TipoPuntoVenta) cmbTipoPuntoVenta.getSelectedItem().getValue());
|
||||
List<PuntoVenta> agencias = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||
|
||||
List<Estado> estados = new ArrayList<Estado>();
|
||||
for (Object ob : estadoList.getSelectedItemsByIndex()) {
|
||||
estados.add((Estado) ob);
|
||||
}
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("empresa", empresa);
|
||||
parametros.put("nombempresa", empresa.getNombempresa());
|
||||
parametros.put("tipoPuntoVenta", tipoPuntoVenta);
|
||||
parametros.put("agencias", agencias);
|
||||
parametros.put("estados", estados);
|
||||
parametros.put("inicio", datInicial.getValue());
|
||||
parametros.put("fim", datFinal.getValue());
|
||||
parametros.put("usuario", UsuarioLogado.getUsuarioLogado().getClaveUsuario());
|
||||
|
||||
Relatorio relatorio = new RelatorioFinanceiroSintetico(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("indexController.mnRelatorioRDI.label"), args, MODAL);
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("", e);
|
||||
Messagebox.show(e.getMessage(),
|
||||
Labels.getLabel("indexController.mnImpressaoRMD.label"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
}
|
||||
|
||||
private void executarPesquisa() {
|
||||
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda = new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
|
||||
pagingPuntoVenta.getPageSize());
|
||||
|
||||
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
|
||||
|
||||
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
|
||||
|
||||
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
|
||||
|
||||
if (puntoVentaList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnLimparPtv(Event ev) {
|
||||
limparPesquisaAgencia();
|
||||
}
|
||||
|
||||
private void limparPesquisaAgencia() {
|
||||
puntoVentaSelList.setData(new ArrayList<Object>());
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisaPtv(Event ev) {
|
||||
executarPesquisa();
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaList(Event ev) {
|
||||
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaList.getSelected();
|
||||
puntoVentaSelList.addItemNovo(puntoVentaSel);
|
||||
}
|
||||
|
||||
public void onDoubleClick$puntoVentaSelList(Event ev) {
|
||||
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaSelList.getSelected();
|
||||
puntoVentaSelList.removeItem(puntoVentaSel);
|
||||
}
|
||||
|
||||
public void onClick$btnSintetico(Event ev) throws InterruptedException {
|
||||
executar();
|
||||
}
|
||||
|
||||
// public void onClick$btnAnalitico(Event ev) throws InterruptedException {
|
||||
// executar();
|
||||
// }
|
||||
|
||||
public List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public List<Estado> getLsEstado() {
|
||||
return lsEstado;
|
||||
}
|
||||
|
||||
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
|
||||
return lsTipoPuntoVenta;
|
||||
}
|
||||
|
||||
public MyListbox getPuntoVentaSelList() {
|
||||
return puntoVentaSelList;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.impressaofiscal;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuRelatorioFinanceiro extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioFinanceiro() {
|
||||
super("indexController.mnRelatoriosFinanceiros.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.RELATORIOSFINANCEIROS";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/impressaofiscal/busquedaRelatorioFinanceiro.zul",
|
||||
Labels.getLabel("indexController.mnRelatoriosFinanceiros.label"), getArgs(), desktop);
|
||||
}
|
||||
}
|
|
@ -310,6 +310,11 @@ indexController.mnSubMenuExportacaoFiscal.label=Exportación Fiscal
|
|||
indexController.mniExportacaoFiscalECF.label=ECF
|
||||
indexController.mniExportacaoFiscalRMD.label=RMD
|
||||
|
||||
indexController.mnImpressaoRMD.label=Impressão RMD
|
||||
indexController.mnRelatorioRDI.label=Relatório RDI
|
||||
|
||||
indexController.mnRelatoriosFinanceiros.label=Relatórios Financeiros
|
||||
|
||||
indexController.mniSubMenuClientePacote.label=Paquete
|
||||
indexController.mniManutencaoPacote.label=Mantenimiento Paquete
|
||||
|
||||
|
@ -6506,6 +6511,20 @@ busquedaImportacionFiscalController.lbArquivoXls.value = Consolidado Excel
|
|||
busquedaImportacionFiscalController.lbCompetencia.label = Competencia
|
||||
busquedaImportacionFiscalController.btnExe.label = Ejecutar Importación
|
||||
|
||||
busquedaRelatorioFinanceiroController.lbDataIni.value = Data Inicio
|
||||
busquedaRelatorioFinanceiroController.lbDataFin.value = Data Final
|
||||
busquedaRelatorioFinanceiroController.lbEmpresa.value = Empresa
|
||||
busquedaRelatorioFinanceiroController.estado.label = Estado
|
||||
busquedaRelatorioFinanceiroController.lbTpoPtoVta.value = Canal de Venda
|
||||
busquedaRelatorioFinanceiroController.btnSintetico.label = Relatório Sintético
|
||||
busquedaRelatorioFinanceiroController.btnAnalitico.label = Relatório Analítico
|
||||
busquedaRelatorioFinanceiroController.lbPuntoVenta.value = Agência
|
||||
busquedaRelatorioFinanceiroController.puntoVentaSelList.codigo = Código
|
||||
busquedaRelatorioFinanceiroController.puntoVentaSelList.nome = Nome
|
||||
busquedaRelatorioFinanceiroController.btnPesquisa.label = Pesquisar
|
||||
busquedaRelatorioFinanceiroController.btnLimpar.label = Limpar
|
||||
busquedaRelatorioFinanceiroController.lbPuntoVentaSel.value = Agências Selecionadas
|
||||
|
||||
#busquedaImportacionFiscalController.btnExe.label = Importación Fiscal ECF
|
||||
#busquedaImportacionFiscalController.btnExeManual.label = Importación Fiscal Manual
|
||||
#busquedaImportacionFiscalController.btnExeNaoFiscal.label = Importación No Fiscal
|
||||
|
|
|
@ -330,6 +330,8 @@ indexController.mniExportacaoFiscalRMD.label=RMD
|
|||
indexController.mnImpressaoRMD.label=Impressão RMD
|
||||
indexController.mnRelatorioRDI.label=Relatório RDI
|
||||
|
||||
indexController.mnRelatoriosFinanceiros.label=Relatórios Financeiros
|
||||
|
||||
indexController.mniSubMenuClientePacote.label=Pacote
|
||||
indexController.mniManutencaoPacote.label=Manutenção Pacote
|
||||
|
||||
|
@ -6757,6 +6759,20 @@ busquedaImportacionFiscalController.lbArquivoXls.value = Consolidado Excel
|
|||
busquedaImportacionFiscalController.lbCompetencia.label = Competência
|
||||
busquedaImportacionFiscalController.btnExe.label = Executar Importação
|
||||
|
||||
busquedaRelatorioFinanceiroController.lbDataIni.value = Data Inicio
|
||||
busquedaRelatorioFinanceiroController.lbDataFin.value = Data Final
|
||||
busquedaRelatorioFinanceiroController.lbEmpresa.value = Empresa
|
||||
busquedaRelatorioFinanceiroController.estado.label = Estado
|
||||
busquedaRelatorioFinanceiroController.lbTpoPtoVta.value = Canal de Venda
|
||||
busquedaRelatorioFinanceiroController.btnSintetico.label = Relatório Sintético
|
||||
busquedaRelatorioFinanceiroController.btnAnalitico.label = Relatório Analítico
|
||||
busquedaRelatorioFinanceiroController.lbPuntoVenta.value = Agência
|
||||
busquedaRelatorioFinanceiroController.puntoVentaSelList.codigo = Código
|
||||
busquedaRelatorioFinanceiroController.puntoVentaSelList.nome = Nome
|
||||
busquedaRelatorioFinanceiroController.btnPesquisa.label = Pesquisar
|
||||
busquedaRelatorioFinanceiroController.btnLimpar.label = Limpar
|
||||
busquedaRelatorioFinanceiroController.lbPuntoVentaSel.value = Agências Selecionadas
|
||||
|
||||
#busquedaImportacionFiscalController.btnExe.label = Importação Fiscal ECF
|
||||
#busquedaImportacionFiscalController.btnExeManual.label = Importação Fiscal Manual
|
||||
#busquedaImportacionFiscalController.btnExeNaoFiscal.label = Importação Não Fiscal
|
||||
|
|
|
@ -0,0 +1,122 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page title="RelgerencialEmpresa" contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaRelatorioFinanceiro"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winBusquedaRelatorioFinanceiro"
|
||||
title="${c:l('indexController.mnRelatoriosFinanceiros.label')}"
|
||||
apply="${busquedaRelatorioFinanceiroController}"
|
||||
contentStyle="overflow:auto" width="660px" border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
<column width="20%" />
|
||||
<column width="30%" />
|
||||
</columns>
|
||||
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.lbDataIni.value')}" />
|
||||
<datebox id="datInicial" width="90%"
|
||||
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.lbDataFin.value')}" />
|
||||
<datebox id="datFinal" width="90%"
|
||||
format="dd/MM/yyyy" constraint="no empty" maxlength="10" />
|
||||
</row>
|
||||
|
||||
<row spans="1, 3">
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa" style="width: 483px;"
|
||||
mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winBusquedaRelatorioFinanceiro$composer.lsEmpresa}"
|
||||
constraint="no empty" />
|
||||
</row>
|
||||
|
||||
<row spans="1, 3">
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.estado.label')}" />
|
||||
<listbox id="estadoList" rows="10" vflex="false"
|
||||
width="90%" multiple="true" checkmark="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox">
|
||||
</listbox>
|
||||
</row>
|
||||
|
||||
<row spans="1, 3">
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.lbTpoPtoVta.value')}" />
|
||||
<combobox id="cmbTipoPuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winBusquedaRelatorioFinanceiro$composer.lsTipoPuntoVenta}" />
|
||||
</row>
|
||||
|
||||
<row spans="1, 3">
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.lbPuntoVenta.value')}" />
|
||||
|
||||
<bandbox id="bbPesquisaPuntoVenta" width="90%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup height="150px">
|
||||
<vbox>
|
||||
<hbox>
|
||||
<textbox id="txtPalavraPesquisa" />
|
||||
<button id="btnPesquisaPtv"
|
||||
image="/gui/img/find.png"
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.btnPesquisa.label')}" />
|
||||
<button id="btnLimparPtv"
|
||||
image="/gui/img/eraser.png"
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.btnLimpar.label')}" />
|
||||
</hbox>
|
||||
|
||||
<listbox id="puntoVentaList"
|
||||
mold="paging"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="false" height="100%" width="360px">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.puntoVentaSelList.codigo')}" />
|
||||
<listheader
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.puntoVentaSelList.nome')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingPuntoVenta"
|
||||
pageSize="10" />
|
||||
</vbox>
|
||||
</bandpopup>
|
||||
</bandbox>
|
||||
</row>
|
||||
|
||||
<row spans="1, 3">
|
||||
<label
|
||||
value="${c:l('busquedaRelatorioFinanceiroController.lbPuntoVentaSel.value')}" />
|
||||
|
||||
<listbox id="puntoVentaSelList" mold="paging" width="90%" height="70px"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
vflex="true" multiple="true">
|
||||
<listhead>
|
||||
<listheader
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.puntoVentaSelList.codigo')}" />
|
||||
<listheader
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.puntoVentaSelList.nome')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</row>
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnSintetico" image="/gui/img/enginer.png"
|
||||
label="${c:l('busquedaRelatorioFinanceiroController.btnSintetico.label')}" />
|
||||
</toolbar>
|
||||
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue