Fixes bug #9448
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@73580 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
345d0a4d50
commit
3bcdaf96f8
|
@ -0,0 +1,180 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.RelatorioVendasParcelamentoBean;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||||
|
|
||||||
|
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||||
|
|
||||||
|
public class RelatorioVendasParcelamento extends Relatorio {
|
||||||
|
|
||||||
|
private static Logger log = org.slf4j.LoggerFactory.getLogger(RelatorioVendasParcelamento.class);
|
||||||
|
|
||||||
|
private List<RelatorioVendasParcelamentoBean> lsDadosRelatorio;
|
||||||
|
|
||||||
|
public RelatorioVendasParcelamento(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||||
|
super(parametros, conexao);
|
||||||
|
|
||||||
|
this.setCustomDataSource(new DataSource(this) {
|
||||||
|
@Override
|
||||||
|
public void initDados() throws Exception {
|
||||||
|
|
||||||
|
Connection conexao = this.relatorio.getConexao();
|
||||||
|
|
||||||
|
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||||
|
|
||||||
|
String fecInicio = parametros.get("fecInicio").toString() + " 00:00:00";
|
||||||
|
String fecFinal = parametros.get("fecFinal").toString() + " 23:59:59";
|
||||||
|
String parcInicio = parametros.get("parInicial").toString();
|
||||||
|
String parcFinal = parametros.get("parFinal").toString();
|
||||||
|
String empresa = parametros.get("empresa") != null ? parametros.get("empresa").toString() : "-1";
|
||||||
|
String empresaNome = parametros.get("empresaNome") != null ? parametros.get("empresaNome").toString() : "";
|
||||||
|
String puntoVenta = parametros.get("NUMPUNTOVENTA") != null ? parametros.get("NUMPUNTOVENTA").toString() : null;
|
||||||
|
|
||||||
|
lsDadosRelatorio = new ArrayList<RelatorioVendasParcelamentoBean>();
|
||||||
|
|
||||||
|
String sql = carregarVendasComParcelamento(puntoVenta, empresa);
|
||||||
|
|
||||||
|
log.debug(sql);
|
||||||
|
|
||||||
|
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
|
||||||
|
ResultSet rset1 = null;
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss");
|
||||||
|
|
||||||
|
stmt.setTimestamp("de", new java.sql.Timestamp(sdf.parse(fecInicio).getTime()));
|
||||||
|
stmt.setTimestamp("ate", new java.sql.Timestamp(sdf.parse(fecFinal).getTime()));
|
||||||
|
|
||||||
|
stmt.setInt("parcIni", Integer.parseInt(parcInicio));
|
||||||
|
stmt.setInt("parcFim", Integer.parseInt(parcFinal));
|
||||||
|
|
||||||
|
if (empresa != null && !empresa.equals("-1")) {
|
||||||
|
stmt.setInt("empresaId", Integer.parseInt(empresa));
|
||||||
|
}
|
||||||
|
|
||||||
|
rset1= stmt.executeQuery();
|
||||||
|
|
||||||
|
while (rset1.next()) {
|
||||||
|
|
||||||
|
RelatorioVendasParcelamentoBean vendasParcelamento = new RelatorioVendasParcelamentoBean();
|
||||||
|
BigDecimal percentual = BigDecimal.ZERO;
|
||||||
|
|
||||||
|
vendasParcelamento.setEmpresaNome(empresaNome);
|
||||||
|
vendasParcelamento.setEmpresa(rset1.getString("empresa"));
|
||||||
|
vendasParcelamento.setAgencia(rset1.getString("agencia"));
|
||||||
|
vendasParcelamento.setBilheteiro(rset1.getString("bilheteiro"));
|
||||||
|
vendasParcelamento.setDataVenda((Date)rset1.getObject("dataVenda"));
|
||||||
|
vendasParcelamento.setDataServico((Date) rset1.getObject("dataServico"));
|
||||||
|
vendasParcelamento.setLinha(rset1.getString("linha"));
|
||||||
|
vendasParcelamento.setServico(rset1.getString("servico"));
|
||||||
|
vendasParcelamento.setOrigem(rset1.getString("origem"));
|
||||||
|
vendasParcelamento.setDestino(rset1.getString("destino"));
|
||||||
|
vendasParcelamento.setBilhete(rset1.getString("bilhete"));
|
||||||
|
vendasParcelamento.setPreImpresso(rset1.getString("preImpresso"));
|
||||||
|
vendasParcelamento.setPoltrona(rset1.getString("poltrona"));
|
||||||
|
vendasParcelamento.setTarifa(rset1.getBigDecimal("tarifa"));
|
||||||
|
vendasParcelamento.setSeguro(rset1.getBigDecimal("seguro"));
|
||||||
|
vendasParcelamento.setPedagio(rset1.getBigDecimal("pedagio"));
|
||||||
|
vendasParcelamento.setTaxa(rset1.getBigDecimal("taxa"));
|
||||||
|
vendasParcelamento.setOutros(rset1.getBigDecimal("outros"));
|
||||||
|
vendasParcelamento.setTotal(rset1.getBigDecimal("total"));
|
||||||
|
vendasParcelamento.setFormaPagamento(rset1.getString("formaPagamento"));
|
||||||
|
vendasParcelamento.setAutorizacao(rset1.getString("autorizacao"));
|
||||||
|
vendasParcelamento.setNsu(rset1.getString("nsu"));
|
||||||
|
vendasParcelamento.setParcelas(rset1.getString("parcelas"));
|
||||||
|
vendasParcelamento.setValor(rset1.getBigDecimal("valor"));
|
||||||
|
|
||||||
|
percentual = (vendasParcelamento.getValor().multiply( new BigDecimal("100") ));
|
||||||
|
percentual = (percentual.divide(vendasParcelamento.getTotal(), BigDecimal.ROUND_HALF_UP));
|
||||||
|
vendasParcelamento.setPercentual(percentual.setScale(2));
|
||||||
|
|
||||||
|
lsDadosRelatorio.add(vendasParcelamento);
|
||||||
|
}
|
||||||
|
|
||||||
|
rset1.close();
|
||||||
|
|
||||||
|
if (lsDadosRelatorio.size() > 0) {
|
||||||
|
setLsDadosRelatorio(lsDadosRelatorio);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsDadosRelatorio(List<RelatorioVendasParcelamentoBean> lsDadosRelatorio) {
|
||||||
|
this.setCollectionDataSource(new JRBeanCollectionDataSource(lsDadosRelatorio));
|
||||||
|
this.lsDadosRelatorio = lsDadosRelatorio;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void processaParametros() throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
private String carregarVendasComParcelamento(String puntoVenta, String empresa) {
|
||||||
|
|
||||||
|
StringBuilder sql = new StringBuilder();
|
||||||
|
sql.append(" SELECT m.DESCMARCA AS empresa, ");
|
||||||
|
sql.append(" pv.PUNTOVENTA_ID AS agencia, ");
|
||||||
|
sql.append(" u.CVEUSUARIO AS bilheteiro, ");
|
||||||
|
sql.append(" c.FECHORVENTA AS dataVenda, ");
|
||||||
|
sql.append(" co.FECCORRIDA AS dataServico, ");
|
||||||
|
sql.append(" r.NUMRUTA AS linha, ");
|
||||||
|
sql.append(" co.corrida_id AS servico, ");
|
||||||
|
sql.append(" orig.DESCPARADA AS origem, ");
|
||||||
|
sql.append(" dest.DESCPARADA AS destino, ");
|
||||||
|
sql.append(" c.NUMFOLIOSISTEMA AS bilhete, ");
|
||||||
|
sql.append(" c.NUMFOLIOPREIMPRESO AS preImpresso, ");
|
||||||
|
sql.append(" c.NUMASIENTO AS poltrona, ");
|
||||||
|
sql.append(" COALESCE(c.PRECIOPAGADO,0) AS tarifa, ");
|
||||||
|
sql.append(" COALESCE(c.IMPORTESEGURO,0) AS seguro, ");
|
||||||
|
sql.append(" COALESCE(c.IMPORTEPEDAGIO,0) AS pedagio, ");
|
||||||
|
sql.append(" COALESCE(c.IMPORTETAXAEMBARQUE,0) AS taxa, ");
|
||||||
|
sql.append(" COALESCE(c.IMPORTEOUTROS,0) AS outros, ");
|
||||||
|
sql.append(" ( COALESCE(c.IMPORTESEGURO,0)+ COALESCE(c.IMPORTEOUTROS,0) + COALESCE(c.IMPORTEPEDAGIO,0) +COALESCE(IMPORTETAXAEMBARQUE ,0)+COALESCE(c.PRECIOPAGADO,0)) AS total, ");
|
||||||
|
sql.append(" ct.tipotarjeta AS formaPagamento, ");
|
||||||
|
sql.append(" ct.numautorizacion AS autorizacao, ");
|
||||||
|
sql.append(" ct.NSU AS nsu, ");
|
||||||
|
sql.append(" ct.cantparcelas AS parcelas, ");
|
||||||
|
sql.append(" ct.importe AS valor ");
|
||||||
|
sql.append(" FROM caja c ");
|
||||||
|
sql.append(" INNER JOIN PUNTO_VENTA pv ON c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
|
||||||
|
sql.append(" INNER JOIN marca m ON m.marca_id = c.marca_id ");
|
||||||
|
sql.append(" INNER JOIN usuario u ON c.USUARIO_ID = u.USUARIO_ID ");
|
||||||
|
sql.append(" INNER JOIN ruta r ON c.RUTA_ID = r.RUTA_ID ");
|
||||||
|
sql.append(" INNER JOIN corrida co ON co.corrida_id = c.corrida_id AND co.feccorrida = c.feccorrida ");
|
||||||
|
sql.append(" INNER JOIN parada orig ON orig.PARADA_ID = co.ORIGEN_ID ");
|
||||||
|
sql.append(" INNER JOIN parada dest ON dest.PARADA_ID = co.DESTINO_ID ");
|
||||||
|
sql.append(" INNER JOIN caja_formapago cfp ON cfp.caja_id = c.caja_id ");
|
||||||
|
sql.append(" INNER JOIN caja_det_pago cdp ON cdp.cajaformapago_id = cfp.cajaformapago_id ");
|
||||||
|
sql.append(" INNER JOIN caja_tarjeta ct ON ct.cajadetpago_id = cdp.cajadetpago_id ");
|
||||||
|
sql.append(" WHERE ");
|
||||||
|
sql.append(" fechorventa BETWEEN :de AND :ate ");
|
||||||
|
sql.append(" AND ct.CANTPARCELAS BETWEEN :parcIni AND :parcFim ");
|
||||||
|
if (puntoVenta != null && !puntoVenta.equals("-1")) {
|
||||||
|
sql.append(" AND c.PUNTOVENTA_ID in (" + puntoVenta + ") ");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empresa != null && !empresa.equals("-1")) {
|
||||||
|
sql.append(" AND m.empresa_id = :empresaId ");
|
||||||
|
}
|
||||||
|
sql.append(" AND c.motivocancelacion_id IS NULL ");
|
||||||
|
sql.append(" ORDER BY m.DESCMARCA, ");
|
||||||
|
sql.append(" pv.PUNTOVENTA_ID, ");
|
||||||
|
sql.append(" c.fechorventa ASC ");
|
||||||
|
|
||||||
|
return sql.toString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||||
|
#geral
|
||||||
|
|
||||||
|
detail.agencia = AG\u00CANCIA
|
||||||
|
detail.autorizacao = Autorizaci\u00F3n
|
||||||
|
detail.bilhete = Billete
|
||||||
|
detail.bilheteiro = Billetero
|
||||||
|
detail.dataservico = Fecha Servicio
|
||||||
|
detail.datavenda = Fecha Venta
|
||||||
|
detail.destino = Destino
|
||||||
|
detail.empresa = Empresa
|
||||||
|
detail.formapagamento = Forma pgto.
|
||||||
|
detail.linha = L\u00EDnea
|
||||||
|
detail.nsu = Nsu
|
||||||
|
detail.origem = Origem
|
||||||
|
detail.outros = Otros
|
||||||
|
detail.parcelas = Parcelas
|
||||||
|
detail.pedagio = Peaje
|
||||||
|
detail.percentual = Porcentaje
|
||||||
|
detail.poltrona = Sill\u00F3n
|
||||||
|
detail.preimpresso = Pre-Impreso
|
||||||
|
detail.seguro = Seguro
|
||||||
|
detail.servico = Servicio
|
||||||
|
detail.tarifa = Tarifa
|
||||||
|
detail.taxa = Tasa
|
||||||
|
detail.total = Total
|
||||||
|
detail.valor = Valor
|
||||||
|
|
||||||
|
#Labels header
|
||||||
|
header.data = Data :
|
||||||
|
header.data.hora = Fecha / Hora:
|
||||||
|
header.descricao = Descri\u00E7\u00E3o
|
||||||
|
header.empresa = Empresa :
|
||||||
|
header.pagina = P\u00E1gina
|
||||||
|
|
||||||
|
linhas = Linhas
|
||||||
|
|
||||||
|
msg.a = a
|
||||||
|
msg.noData = No se pudo obtener datos con los par\u00E1metros reportados.
|
|
@ -0,0 +1,39 @@
|
||||||
|
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
|
||||||
|
#geral
|
||||||
|
|
||||||
|
detail.agencia = Ag\u00EAncia
|
||||||
|
detail.autorizacao = Autoriza\u00E7\u00E3o
|
||||||
|
detail.bilhete = Bilhete
|
||||||
|
detail.bilheteiro = Bilheteiro
|
||||||
|
detail.dataservico = Data Servi\u00E7o
|
||||||
|
detail.datavenda = Data Venda
|
||||||
|
detail.destino = Destino
|
||||||
|
detail.empresa = Empresa
|
||||||
|
detail.formapagamento = Forma pgto.
|
||||||
|
detail.linha = Linha
|
||||||
|
detail.nsu = Nsu
|
||||||
|
detail.origem = Origem
|
||||||
|
detail.outros = Outros
|
||||||
|
detail.parcelas = Parcelas
|
||||||
|
detail.pedagio = Ped\u00E1gio
|
||||||
|
detail.percentual = Percentual
|
||||||
|
detail.poltrona = Poltrona
|
||||||
|
detail.preimpresso = Pr\u00E9 Impresso
|
||||||
|
detail.seguro = Seguro
|
||||||
|
detail.servico = Servi\u00E7o
|
||||||
|
detail.tarifa = Tarifa
|
||||||
|
detail.taxa = Taxa
|
||||||
|
detail.total = Total
|
||||||
|
detail.valor = Valor
|
||||||
|
|
||||||
|
#Labels header
|
||||||
|
header.data = Data :
|
||||||
|
header.data.hora = Data/Hora:
|
||||||
|
header.descricao = Descri\u00E7\u00E3o
|
||||||
|
header.empresa = Empresa :
|
||||||
|
header.pagina = P\u00E1gina
|
||||||
|
|
||||||
|
linhas = Linhas
|
||||||
|
|
||||||
|
msg.a = a
|
||||||
|
msg.noData = No se pudo obtener datos con los par\u00E1metros reportados.
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,461 @@
|
||||||
|
<?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="RelatorioAgenciaFechamento" pageWidth="1515" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1475" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioAgenciaFechamento" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
|
||||||
|
<property name="ireport.zoom" value="1.1269722013523682"/>
|
||||||
|
<property name="ireport.x" value="0"/>
|
||||||
|
<property name="ireport.y" value="0"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
|
||||||
|
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
|
||||||
|
<property name="collapseRowSpan" value="true"/>
|
||||||
|
<parameter name="fecInicio" class="java.lang.String">
|
||||||
|
<defaultValueExpression><![CDATA[]]></defaultValueExpression>
|
||||||
|
</parameter>
|
||||||
|
<parameter name="fecFinal" class="java.lang.String"/>
|
||||||
|
<parameter name="TITULO" class="java.lang.String"/>
|
||||||
|
<parameter name="empresaNome" class="java.lang.String"/>
|
||||||
|
<queryString>
|
||||||
|
<![CDATA[]]>
|
||||||
|
</queryString>
|
||||||
|
<field name="empresa" class="java.lang.String"/>
|
||||||
|
<field name="agencia" class="java.lang.String"/>
|
||||||
|
<field name="bilheteiro" class="java.lang.String"/>
|
||||||
|
<field name="dataVenda" class="java.util.Date"/>
|
||||||
|
<field name="dataServico" class="java.util.Date"/>
|
||||||
|
<field name="linha" class="java.lang.String"/>
|
||||||
|
<field name="servico" class="java.lang.String"/>
|
||||||
|
<field name="origem" class="java.lang.String"/>
|
||||||
|
<field name="destino" class="java.lang.String"/>
|
||||||
|
<field name="bilhete" class="java.lang.String"/>
|
||||||
|
<field name="preImpresso" class="java.lang.String"/>
|
||||||
|
<field name="poltrona" class="java.lang.String"/>
|
||||||
|
<field name="tarifa" class="java.math.BigDecimal"/>
|
||||||
|
<field name="seguro" class="java.math.BigDecimal"/>
|
||||||
|
<field name="pedagio" class="java.math.BigDecimal"/>
|
||||||
|
<field name="taxa" class="java.math.BigDecimal"/>
|
||||||
|
<field name="outros" class="java.math.BigDecimal"/>
|
||||||
|
<field name="total" class="java.math.BigDecimal"/>
|
||||||
|
<field name="percentual" class="java.math.BigDecimal"/>
|
||||||
|
<field name="formaPagamento" class="java.lang.String"/>
|
||||||
|
<field name="autorizacao" class="java.lang.String"/>
|
||||||
|
<field name="nsu" class="java.lang.String"/>
|
||||||
|
<field name="parcelas" class="java.lang.String"/>
|
||||||
|
<field name="valor" class="java.math.BigDecimal"/>
|
||||||
|
<background>
|
||||||
|
<band splitType="Stretch"/>
|
||||||
|
</background>
|
||||||
|
<pageHeader>
|
||||||
|
<band height="40" splitType="Stretch">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="1155" y="19" width="49" height="20" uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="1321" y="-1" width="56" height="20" uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField evaluationTime="Report">
|
||||||
|
<reportElement x="1453" y="19" width="22" height="20" uuid="8ca68351-fc00-4f19-b94f-f2fd1f41964f"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="1387" y="19" width="42" height="20" uuid="be1692e9-f130-4d08-9173-6ca3e4699030"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{header.pagina}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="1204" y="19" width="182" height="20" uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="231" height="20" uuid="652312bd-292a-424d-a234-5f157e3699c6"/>
|
||||||
|
<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField pattern="dd/MM/yyyy HH:mm">
|
||||||
|
<reportElement x="1377" y="-1" width="98" height="20" uuid="6f671365-868e-41a6-81ee-a308d1d91e1d"/>
|
||||||
|
<textElement textAlignment="Left"/>
|
||||||
|
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField>
|
||||||
|
<reportElement x="1429" y="19" width="24" height="20" uuid="7548d623-fb6c-48d4-b8b7-504f5437a79a"/>
|
||||||
|
<textElement textAlignment="Right"/>
|
||||||
|
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement x="0" y="19" width="49" height="20" uuid="08817d2b-5f71-4c7a-9880-51c1a791ad04"/>
|
||||||
|
<textElement>
|
||||||
|
<font isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{empresaNome}.equals("") ?"":$R{header.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isBlankWhenNull="true">
|
||||||
|
<reportElement x="49" y="19" width="182" height="19" isPrintWhenDetailOverflows="true" uuid="64d97814-2298-4fd7-bb29-dc868f21c951"/>
|
||||||
|
<textElement textAlignment="Right" markup="none">
|
||||||
|
<font size="10"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$P{empresaNome}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<line>
|
||||||
|
<reportElement x="0" y="39" width="1475" height="1" uuid="ee05e1fa-6963-4ff9-b3c8-c6cd1bb54e94"/>
|
||||||
|
</line>
|
||||||
|
</band>
|
||||||
|
</pageHeader>
|
||||||
|
<columnHeader>
|
||||||
|
<band height="38" splitType="Stretch">
|
||||||
|
<line>
|
||||||
|
<reportElement mode="Transparent" x="0" y="37" width="1475" height="1" uuid="ae94e51c-f84c-405c-a9c3-d8fd0c48f03a"/>
|
||||||
|
</line>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="0" y="0" width="69" height="36" isPrintWhenDetailOverflows="true" uuid="2cbc8ddc-38e5-4914-8189-5761ddeb2ce9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="69" y="0" width="49" height="36" isPrintWhenDetailOverflows="true" uuid="7965e761-2e24-4f17-84eb-9431c98ce72c"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.agencia}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" x="118" y="0" width="78" height="36" isPrintWhenDetailOverflows="true" uuid="bbaa5f53-76e0-491e-9145-e522122709e5"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.bilheteiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="196" y="0" width="60" height="36" isPrintWhenDetailOverflows="true" uuid="2b25ca5a-2c25-4c7d-87d1-5bfd205177a9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.datavenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="256" y="0" width="60" height="36" isPrintWhenDetailOverflows="true" uuid="ab6b6770-67e8-4224-9304-8de30d3c1384"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.dataservico}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="316" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="e3f4df4e-24a9-45b3-8ac3-f8b66d46a15f"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="357" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="79775d53-3de4-4c0c-8ec7-3be13738dc14"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.servico}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="398" y="0" width="139" height="36" isPrintWhenDetailOverflows="true" uuid="746627ad-15b0-4435-93ce-6d370b75e594"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="537" y="0" width="139" height="36" isPrintWhenDetailOverflows="true" uuid="0844b500-feab-477d-ade1-2d943491de32"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="678" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="3647e647-81bb-4098-afce-52d942daa341"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.bilhete}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="719" y="0" width="53" height="36" isPrintWhenDetailOverflows="true" uuid="328a6678-fc02-4845-98e6-a3d3bfaa2c73"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.preimpresso}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="813" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="959d61e9-4311-4fab-8ead-da9c65f00be3"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.tarifa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="772" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="2cca17d2-47ba-4dba-a8c3-96e4f6d7deff"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.poltrona}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="854" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="eb34f98d-93fe-4dc9-8852-31c12270ae3d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.seguro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="895" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="a7c28fc6-e4fc-431b-b5ba-b001a36dcb54"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.pedagio}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1305" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="8f882b0b-dd40-4400-944f-37f6d665523b"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.nsu}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1362" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="5bdd18ab-722e-43b4-8ab7-375ae263cf83"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.parcelas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1059" y="0" width="84" height="36" isPrintWhenDetailOverflows="true" uuid="27429a4a-76c4-4143-b87f-2a6fcf215adb"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.percentual}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="977" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="42be58af-39dd-4775-b4c1-01224a8e25e2"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.outros}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1419" y="0" width="57" height="36" isPrintWhenDetailOverflows="true" uuid="2f54df78-5136-4876-a2c6-18bf63cea761"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.valor}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1018" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="d68004a8-bdfa-4ce3-adfe-5683a288ac95"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.total}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1143" y="0" width="103" height="36" isPrintWhenDetailOverflows="true" uuid="d4b53c4b-a381-4dcf-974f-25e5ce06a382"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.formapagamento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="936" y="0" width="41" height="36" isPrintWhenDetailOverflows="true" uuid="ea367e75-d1e1-4f88-b4d4-2e88cf90c3bd"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.taxa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement positionType="FixRelativeToBottom" stretchType="RelativeToTallestObject" mode="Transparent" x="1246" y="0" width="59" height="36" isPrintWhenDetailOverflows="true" uuid="8dca13fb-4d0e-460c-96df-2572dbcd9e11"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
|
||||||
|
<font size="11" isBold="true"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$R{detail.autorizacao}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</columnHeader>
|
||||||
|
<detail>
|
||||||
|
<band height="17" splitType="Stretch">
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="537" y="0" width="139" height="17" isPrintWhenDetailOverflows="true" uuid="784343f8-f7aa-4997-82e7-312878bd9a27"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="69" y="0" width="49" height="17" isPrintWhenDetailOverflows="true" uuid="ad46494b-0240-46d1-a775-f91f0035d7f8"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="316" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="0ed9578b-73d5-4f51-b21c-07d9419bbc08"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="813" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="617806c3-5059-4e8b-9cb3-5b2bd10e4705"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="118" y="0" width="78" height="17" isPrintWhenDetailOverflows="true" uuid="1ed844e5-7aa4-49ee-8024-765e5ae49f74"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{bilheteiro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="357" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="92017408-1781-4e17-90b7-5ff86457cf6d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="678" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="b7842ed3-aa20-4fe9-996a-c8397aa66c40"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{bilhete}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="398" y="0" width="139" height="17" isPrintWhenDetailOverflows="true" uuid="36f5d507-0340-4c7e-b44b-5057c1e8bee6"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="719" y="0" width="53" height="17" isPrintWhenDetailOverflows="true" uuid="c24531bc-66b7-459b-9c60-07bea18e98d9"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{preImpresso}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="772" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="e2ad1400-e2c6-48b0-98c8-812d3c8f008d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{poltrona}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="256" y="0" width="60" height="17" isPrintWhenDetailOverflows="true" uuid="7f08e540-2cf9-4da3-b40a-fb7d5275751f"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataServico}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="196" y="0" width="60" height="17" isPrintWhenDetailOverflows="true" uuid="16c5bcd4-ac1c-4c49-b065-5794fb9c2e32"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="854" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="6562d46b-27f9-4bef-a471-8eff982378c5"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="69" height="17" isPrintWhenDetailOverflows="true" uuid="16f536ed-9001-4b34-85f4-a01198390b7d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="895" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="33d170a8-cd4c-4148-85b7-48a078e68f7d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1305" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="c41691a6-ca0a-44c8-9a25-6811b247c3ad"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{nsu}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1143" y="0" width="103" height="17" isPrintWhenDetailOverflows="true" uuid="3d717851-0c25-4152-9b7a-8bbe475e892d"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{formaPagamento}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1018" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="aaa7f318-7af9-4632-9a69-c0fab46df65a"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1059" y="0" width="84" height="17" isPrintWhenDetailOverflows="true" uuid="c5e075d0-975e-4a63-b88b-bb53f8eeb5eb"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{percentual}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1419" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="70d6a240-31b6-4d97-b003-9704f91b099e"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1246" y="0" width="59" height="17" isPrintWhenDetailOverflows="true" uuid="32b588df-4bfe-4da9-967b-e461053515b8"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{autorizacao}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="936" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="0460787f-c432-4901-86a2-d1746bf8d817"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{taxa}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="1362" y="0" width="57" height="17" isPrintWhenDetailOverflows="true" uuid="8fb01e5a-8b64-46e0-ba29-a05a2f64d95e"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{parcelas}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||||
|
<reportElement stretchType="RelativeToTallestObject" mode="Transparent" x="977" y="0" width="41" height="17" isPrintWhenDetailOverflows="true" uuid="43993425-498e-4f05-b8b1-324d063c0bb1"/>
|
||||||
|
<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
|
||||||
|
<font size="11" isBold="false"/>
|
||||||
|
</textElement>
|
||||||
|
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</detail>
|
||||||
|
<noData>
|
||||||
|
<band height="20">
|
||||||
|
<textField>
|
||||||
|
<reportElement x="0" y="0" width="857" height="20" uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620"/>
|
||||||
|
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||||
|
</textField>
|
||||||
|
</band>
|
||||||
|
</noData>
|
||||||
|
</jasperReport>
|
|
@ -0,0 +1,234 @@
|
||||||
|
package com.rjconsultores.ventaboletos.relatorios.utilitarios;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class RelatorioVendasParcelamentoBean {
|
||||||
|
private String empresaNome;
|
||||||
|
private String empresa;
|
||||||
|
private String agencia;
|
||||||
|
private String bilheteiro;
|
||||||
|
private Date dataVenda;
|
||||||
|
private Date dataServico;
|
||||||
|
private String linha;
|
||||||
|
private String servico;
|
||||||
|
private String origem;
|
||||||
|
private String destino;
|
||||||
|
private String bilhete;
|
||||||
|
private String preImpresso;
|
||||||
|
private String poltrona;
|
||||||
|
private BigDecimal tarifa;
|
||||||
|
private BigDecimal seguro;
|
||||||
|
private BigDecimal pedagio;
|
||||||
|
private BigDecimal taxa;
|
||||||
|
private BigDecimal outros;
|
||||||
|
private BigDecimal total;
|
||||||
|
private BigDecimal percentual;
|
||||||
|
private String formaPagamento;
|
||||||
|
private String autorizacao;
|
||||||
|
private String nsu;
|
||||||
|
private String parcelas;
|
||||||
|
private BigDecimal valor;
|
||||||
|
|
||||||
|
public String getEmpresaNome() {
|
||||||
|
return empresaNome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresaNome(String empresaNome) {
|
||||||
|
this.empresaNome = empresaNome;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(String empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAgencia() {
|
||||||
|
return agencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAgencia(String agencia) {
|
||||||
|
this.agencia = agencia;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBilheteiro() {
|
||||||
|
return bilheteiro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBilheteiro(String bilheteiro) {
|
||||||
|
this.bilheteiro = bilheteiro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataVenda() {
|
||||||
|
return dataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataVenda(Date dataVenda) {
|
||||||
|
this.dataVenda = dataVenda;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getDataServico() {
|
||||||
|
return dataServico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataServico(Date dataServico) {
|
||||||
|
this.dataServico = dataServico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLinha() {
|
||||||
|
return linha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLinha(String linha) {
|
||||||
|
this.linha = linha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getServico() {
|
||||||
|
return servico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setServico(String servico) {
|
||||||
|
this.servico = servico;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getOrigem() {
|
||||||
|
return origem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrigem(String origem) {
|
||||||
|
this.origem = origem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDestino() {
|
||||||
|
return destino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDestino(String destino) {
|
||||||
|
this.destino = destino;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBilhete() {
|
||||||
|
return bilhete;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBilhete(String bilhete) {
|
||||||
|
this.bilhete = bilhete;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPreImpresso() {
|
||||||
|
return preImpresso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPreImpresso(String preImpresso) {
|
||||||
|
this.preImpresso = preImpresso;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPoltrona() {
|
||||||
|
return poltrona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPoltrona(String poltrona) {
|
||||||
|
this.poltrona = poltrona;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getTarifa() {
|
||||||
|
return tarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTarifa(BigDecimal tarifa) {
|
||||||
|
this.tarifa = tarifa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSeguro() {
|
||||||
|
return seguro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSeguro(BigDecimal seguro) {
|
||||||
|
this.seguro = seguro;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPedagio() {
|
||||||
|
return pedagio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPedagio(BigDecimal pedagio) {
|
||||||
|
this.pedagio = pedagio;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getTaxa() {
|
||||||
|
return taxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTaxa(BigDecimal taxa) {
|
||||||
|
this.taxa = taxa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getOutros() {
|
||||||
|
return outros;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOutros(BigDecimal outros) {
|
||||||
|
this.outros = outros;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getTotal() {
|
||||||
|
return total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTotal(BigDecimal total) {
|
||||||
|
this.total = total;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getPercentual() {
|
||||||
|
return percentual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPercentual(BigDecimal percentual) {
|
||||||
|
this.percentual = percentual;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFormaPagamento() {
|
||||||
|
return formaPagamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setFormaPagamento(String formaPagamento) {
|
||||||
|
this.formaPagamento = formaPagamento;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAutorizacao() {
|
||||||
|
return autorizacao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAutorizacao(String autorizacao) {
|
||||||
|
this.autorizacao = autorizacao;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNsu() {
|
||||||
|
return nsu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNsu(String nsu) {
|
||||||
|
this.nsu = nsu;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getParcelas() {
|
||||||
|
return parcelas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setParcelas(String parcelas) {
|
||||||
|
this.parcelas = parcelas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getValor() {
|
||||||
|
return valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValor(BigDecimal valor) {
|
||||||
|
this.valor = valor;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,190 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
|
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.Bandbox;
|
||||||
|
import org.zkoss.zul.Datebox;
|
||||||
|
import org.zkoss.zul.Intbox;
|
||||||
|
import org.zkoss.zul.Paging;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
|
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendasParcelamento;
|
||||||
|
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||||
|
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||||
|
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.MyTextbox;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
|
||||||
|
|
||||||
|
@Controller("relatorioVendasParcelamentoController")
|
||||||
|
@Scope("prototype")
|
||||||
|
public class RelatorioVendasParcelamentoController extends MyGenericForwardComposer {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static Logger log = Logger.getLogger(RelatorioVendasParcelamentoController.class);
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private DataSource dataSourceRead;
|
||||||
|
@Autowired
|
||||||
|
private EmpresaService empresaService;
|
||||||
|
|
||||||
|
private Datebox datInicial;
|
||||||
|
private Datebox datFinal;
|
||||||
|
private Intbox parInicial;
|
||||||
|
private Intbox parFinal;
|
||||||
|
private MyComboboxEstandar cmbEmpresa;
|
||||||
|
private Bandbox bbPesquisaPuntoVenta;
|
||||||
|
@Autowired
|
||||||
|
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||||
|
private MyTextbox txtNombrePuntoVenta;
|
||||||
|
private MyListbox puntoVentaList;
|
||||||
|
private MyListbox puntoVentaSelList;
|
||||||
|
private Paging pagingPuntoVenta;
|
||||||
|
|
||||||
|
private List<Empresa> lsEmpresas;
|
||||||
|
|
||||||
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
||||||
|
private void executarRelatorio() throws Exception {
|
||||||
|
try {
|
||||||
|
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||||
|
|
||||||
|
Empresa empresa = cmbEmpresa.getSelectedItem() != null ? (Empresa)cmbEmpresa.getSelectedItem().getValue() : null;
|
||||||
|
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||||
|
parametros.put("fecInicio", sdf.format(this.datInicial.getValue()));
|
||||||
|
parametros.put("fecFinal", sdf.format(this.datFinal.getValue()));
|
||||||
|
parametros.put("parInicial", this.parInicial.getValue());
|
||||||
|
parametros.put("parFinal", this.parFinal.getValue());
|
||||||
|
if (empresa != null){
|
||||||
|
parametros.put("empresa", empresa.getEmpresaId());
|
||||||
|
parametros.put("empresaNome", empresa.getNombempresa());
|
||||||
|
}
|
||||||
|
parametros.put("TITULO", Labels.getLabel("indexController.mniRelatorioVendasParcelamento.label"));
|
||||||
|
|
||||||
|
String puntoVentaIds = "";
|
||||||
|
String puntoVentas = "";
|
||||||
|
List<PuntoVenta> lsPuntoVentaSelecionados = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
|
||||||
|
if (lsPuntoVentaSelecionados.isEmpty()) {
|
||||||
|
puntoVentas = "Todas";
|
||||||
|
} else {
|
||||||
|
for (int i = 0; i < lsPuntoVentaSelecionados.size(); i++) {
|
||||||
|
PuntoVenta puntoVenta = lsPuntoVentaSelecionados.get(i);
|
||||||
|
puntoVentas = puntoVentas + puntoVenta.getNombpuntoventa() + ",";
|
||||||
|
|
||||||
|
puntoVentaIds = puntoVentaIds + puntoVenta.getPuntoventaId() + ",";
|
||||||
|
}
|
||||||
|
|
||||||
|
// removendo ultima virgula
|
||||||
|
puntoVentaIds = puntoVentaIds.substring(0, puntoVentaIds.length() - 1);
|
||||||
|
puntoVentas = puntoVentas.substring(0, puntoVentas.length() - 1);
|
||||||
|
parametros.put("NUMPUNTOVENTA", puntoVentaIds);
|
||||||
|
}
|
||||||
|
|
||||||
|
Relatorio relatorio = new RelatorioVendasParcelamento(parametros, dataSourceRead.getConnection());
|
||||||
|
|
||||||
|
Map<String, Object> args = new HashMap<String, Object>();
|
||||||
|
args.put("relatorio", relatorio);
|
||||||
|
|
||||||
|
openWindow("/component/reportView.zul",
|
||||||
|
Labels.getLabel("indexController.mniRelatorioVendasParcelamento.label"), args, MODAL);
|
||||||
|
}catch (Exception e) {
|
||||||
|
log.error(e);
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||||
|
executarRelatorio();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void doAfterCompose(Component comp) throws Exception {
|
||||||
|
lsEmpresas = empresaService.obtenerTodos();
|
||||||
|
super.doAfterCompose(comp);
|
||||||
|
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||||
|
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void executarPesquisa() {
|
||||||
|
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
|
||||||
|
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
|
||||||
|
|
||||||
|
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
|
||||||
|
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||||
|
|
||||||
|
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("relatorioVendasBilheteiroController.window.title"),
|
||||||
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
} catch (InterruptedException ex) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnPesquisa(Event ev) {
|
||||||
|
executarPesquisa();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$puntoVentaSelList(Event ev) {
|
||||||
|
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
|
||||||
|
puntoVentaSelList.removeItem(puntoVenta);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onDoubleClick$puntoVentaList(Event ev) {
|
||||||
|
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
|
||||||
|
puntoVentaSelList.addItemNovo(puntoVenta);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onClick$btnLimpar(Event ev) {
|
||||||
|
puntoVentaList.setData(new ArrayList<PuntoVenta>());
|
||||||
|
|
||||||
|
bbPesquisaPuntoVenta.setText("");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public MyComboboxEstandar getCmbEmpresa() {
|
||||||
|
return cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||||
|
this.cmbEmpresa = cmbEmpresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<Empresa> getLsEmpresas() {
|
||||||
|
return lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLsEmpresas(List<Empresa> lsEmpresas) {
|
||||||
|
this.lsEmpresas = lsEmpresas;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,25 @@
|
||||||
|
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||||
|
|
||||||
|
public class ItemMenuRelatorioVendasParcelamento extends DefaultItemMenuSistema {
|
||||||
|
|
||||||
|
public ItemMenuRelatorioVendasParcelamento() {
|
||||||
|
super("indexController.mniRelatorioVendasParcelamento.label");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getClaveMenu() {
|
||||||
|
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDASPARCELAMENTO";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void ejecutar() {
|
||||||
|
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioVendasParcelamento.zul",
|
||||||
|
Labels.getLabel("relatorioVendasParcelamentoController.window.title"), getArgs() ,desktop);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -181,6 +181,7 @@ analitico.gerenciais.financeiro.relatorioPosicaoCaixaAnalitico=com.rjconsultores
|
||||||
analitico.gerenciais.financeiro.relatorioFormaPagamentoAgencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFormaPagamentoAgencia
|
analitico.gerenciais.financeiro.relatorioFormaPagamentoAgencia=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFormaPagamentoAgencia
|
||||||
analitico.gerenciais.financeiro.relatorioFinanceiroGrupoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroGrupoLinhas
|
analitico.gerenciais.financeiro.relatorioFinanceiroGrupoLinhas=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioFinanceiroGrupoLinhas
|
||||||
analitico.gerenciais.financeiro.relatorioVendasPTA=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPTA
|
analitico.gerenciais.financeiro.relatorioVendasPTA=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPTA
|
||||||
|
analitico.gerenciais.financeiro.relatorioVendasParcelamento=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasParcelamento
|
||||||
analitico.gerenciais.financeiro.relatorioServicoBloqueadoVendaInternet=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioServicoBloqueadoVendaInternet
|
analitico.gerenciais.financeiro.relatorioServicoBloqueadoVendaInternet=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioServicoBloqueadoVendaInternet
|
||||||
analitico.gerenciais.financeiro.relatorioDocumentosFiscais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDocumentosFiscais
|
analitico.gerenciais.financeiro.relatorioDocumentosFiscais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDocumentosFiscais
|
||||||
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
|
analitico.gerenciais.pacote=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.pacote.SubMenuRelatorioPacote
|
||||||
|
|
|
@ -288,6 +288,7 @@ indexController.mniRecebimentoMalote.label = Recibimiento Maleta
|
||||||
indexController.mniRelatorioObservacaoConferenciaMovimento.label = Observación conferencia movimientos
|
indexController.mniRelatorioObservacaoConferenciaMovimento.label = Observación conferencia movimientos
|
||||||
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar errores BGM
|
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar errores BGM
|
||||||
indexController.mniRelatorioVendasPTAController.label = Ventas PTA
|
indexController.mniRelatorioVendasPTAController.label = Ventas PTA
|
||||||
|
indexController.mniRelatorioVendasParcelamento.label=Ventas con Parcelamiento
|
||||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Corrida bloqueada en venta internet
|
||||||
indexController.mniRelatorioDocumentosFiscais.label = Report Documentos Fiscais
|
indexController.mniRelatorioDocumentosFiscais.label = Report Documentos Fiscais
|
||||||
|
|
||||||
|
@ -7125,4 +7126,15 @@ relatorioFinanceiroReceitasDespesasController.lb.detalhado = Detalhado
|
||||||
relatorioFinanceiroReceitasDespesasController.lb.sintetico = Sintético
|
relatorioFinanceiroReceitasDespesasController.lb.sintetico = Sintético
|
||||||
relatorioFinanceiroReceitasDespesasController.lb.agencia = Por Agência
|
relatorioFinanceiroReceitasDespesasController.lb.agencia = Por Agência
|
||||||
relatorioFinanceiroReceitasDespesasController.lb.evento = Por Evento
|
relatorioFinanceiroReceitasDespesasController.lb.evento = Por Evento
|
||||||
relatorioFinanceiroReceitasDespesasController.lbEventoExtra.value = Evento
|
relatorioFinanceiroReceitasDespesasController.lbEventoExtra.value = Evento
|
||||||
|
|
||||||
|
# Relatório Vendas com Parcelamento
|
||||||
|
relatorioVendasParcelamentoController.window.title = Ventas con Parcelamiento
|
||||||
|
relatorioVendasParcelamentoController.lbDataFin.value = Fecha Final
|
||||||
|
relatorioVendasParcelamentoController.lbDataIni.value = Fecha Inicio
|
||||||
|
relatorioVendasParcelamentoController.lbParcelas.value = Parcelas
|
||||||
|
relatorioVendasParcelamentoController.lbate.value = Hasta
|
||||||
|
relatorioVendasParcelamentoController.lbEmpresa.value = Empresa
|
||||||
|
relatorioVendasParcelamentoController.lbOnibus.value = Autobus
|
||||||
|
relatorioVendasParcelamentoController.lbPuntoVenta.value = Agência
|
||||||
|
relatorioVendasParcelamentoController.lbResumo.value = Resumo
|
|
@ -305,6 +305,7 @@ indexController.mniRecebimentoMalote.label = Recebimento Malote
|
||||||
indexController.mniRelatorioObservacaoConferenciaMovimento.label = Movimentos com Observação
|
indexController.mniRelatorioObservacaoConferenciaMovimento.label = Movimentos com Observação
|
||||||
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar Erros BGM
|
indexController.mniRelatorioErrosIntegracaoBGMController.label = Listar Erros BGM
|
||||||
indexController.mniRelatorioVendasPTA.label = Vendas PTA
|
indexController.mniRelatorioVendasPTA.label = Vendas PTA
|
||||||
|
indexController.mniRelatorioVendasParcelamento.label=Vendas com Parcelamento
|
||||||
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
indexController.mniRelatorioServicoBloqueadoVendaInternet.label = Serviço Bloqueado na Venda Internet
|
||||||
indexController.mniRelatorioDocumentosFiscais.label = Relatório Documentos Fiscais
|
indexController.mniRelatorioDocumentosFiscais.label = Relatório Documentos Fiscais
|
||||||
|
|
||||||
|
@ -7619,4 +7620,16 @@ indexController.mniRelatorioBaixasVendasInternet.label=Baixas Vendas Internet
|
||||||
relatorioBaixasVendasInternetController.window.title=Relatório de Baixas Vendas Internet
|
relatorioBaixasVendasInternetController.window.title=Relatório de Baixas Vendas Internet
|
||||||
relatorioBaixasVendasInternetController.lbFecInicio.value=Data Início
|
relatorioBaixasVendasInternetController.lbFecInicio.value=Data Início
|
||||||
relatorioBaixasVendasInternetController.lbFecFinal.value=Data Fim
|
relatorioBaixasVendasInternetController.lbFecFinal.value=Data Fim
|
||||||
relatorioBaixasVendasInternetController.lbPuntoVenta.value=Ponto de Venda
|
relatorioBaixasVendasInternetController.lbPuntoVenta.value=Ponto de Venda
|
||||||
|
|
||||||
|
# Relatório Vendas com Parcelamento
|
||||||
|
|
||||||
|
relatorioVendasParcelamentoController.window.title = Vendas com Parcelamento
|
||||||
|
relatorioVendasParcelamentoController.lbDataFin.value = Data Final
|
||||||
|
relatorioVendasParcelamentoController.lbDataIni.value = Data Inicial
|
||||||
|
relatorioVendasParcelamentoController.lbParcelas.value = Parcelas
|
||||||
|
relatorioVendasParcelamentoController.lbate.value = até
|
||||||
|
relatorioVendasParcelamentoController.lbEmpresa.value = Empresa
|
||||||
|
relatorioVendasParcelamentoController.lbOnibus.value = Ônibus
|
||||||
|
relatorioVendasParcelamentoController.lbPuntoVenta.value = Agência
|
||||||
|
relatorioVendasParcelamentoController.lbResumo.value = Resumo
|
|
@ -0,0 +1,109 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?page contentType="text/html;charset=UTF-8"?>
|
||||||
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winRelatorioVendasParcelamento"?>
|
||||||
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
|
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||||
|
<window id="winRelatorioVendasParcelamento"
|
||||||
|
apply="${relatorioVendasParcelamentoController}"
|
||||||
|
contentStyle="overflow:auto" height="288px" width="560px"
|
||||||
|
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('relatorioVendasParcelamentoController.lbDataIni.value')}" />
|
||||||
|
<datebox id="datInicial" width="90%"
|
||||||
|
format="dd/MM/yyyy" constraint="no empty"
|
||||||
|
maxlength="10" />
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioVendasParcelamentoController.lbDataFin.value')}" />
|
||||||
|
<datebox id="datFinal" width="90%"
|
||||||
|
format="dd/MM/yyyy" constraint="no empty"
|
||||||
|
maxlength="10" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioVendasParcelamentoController.lbParcelas.value')}" />
|
||||||
|
<intbox id="parInicial" width="90%" constraint="no empty" />
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioVendasParcelamentoController.lbate.value')}" />
|
||||||
|
<intbox id="parFinal" width="90%" constraint="no empty" />
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioVendasParcelamentoController.lbEmpresa.value')}" />
|
||||||
|
<combobox id="cmbEmpresa"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true"
|
||||||
|
width="70%" model="@{winRelatorioVendasParcelamento$composer.lsEmpresas}" />
|
||||||
|
<label
|
||||||
|
value="Agencia" />
|
||||||
|
<bandbox id="bbPesquisaPuntoVenta" width="100%"
|
||||||
|
mold="rounded" readonly="true">
|
||||||
|
<bandpopup>
|
||||||
|
<vbox>
|
||||||
|
<hbox>
|
||||||
|
<label
|
||||||
|
value="${c:l('relatorioVendasParcelamentoController.lbPuntoVenta.value')}" />
|
||||||
|
<textbox id="txtNombrePuntoVenta"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||||
|
width="300px" mold="rounded" />
|
||||||
|
<button id="btnPesquisa"
|
||||||
|
image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
|
||||||
|
<button id="btnLimpar"
|
||||||
|
image="/gui/img/eraser.png"
|
||||||
|
label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
|
||||||
|
</hbox>
|
||||||
|
<paging id="pagingPuntoVenta"
|
||||||
|
pageSize="10" />
|
||||||
|
<listbox id="puntoVentaList"
|
||||||
|
mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100%" width="700px">
|
||||||
|
<listhead>
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||||
|
<listheader width="35%"
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
|
||||||
|
<listheader width="20%"
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
</vbox>
|
||||||
|
</bandpopup>
|
||||||
|
</bandbox>
|
||||||
|
</row>
|
||||||
|
<row spans="4">
|
||||||
|
<listbox id="puntoVentaSelList" mold="paging"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
vflex="true" height="100px" width="100%">
|
||||||
|
<listhead>
|
||||||
|
<listheader
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbPuntoVenta.value')}" />
|
||||||
|
<listheader width="35%"
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbEmpresa.value')}" />
|
||||||
|
<listheader width="20%"
|
||||||
|
label="${c:l('relatorioVendasBilheteiroController.lbNumero.value')}" />
|
||||||
|
<listheader width="5%" />
|
||||||
|
</listhead>
|
||||||
|
</listbox>
|
||||||
|
<paging id="pagingSelPuntoVenta" pageSize="10" />
|
||||||
|
</row>
|
||||||
|
</rows>
|
||||||
|
</grid>
|
||||||
|
<toolbar>
|
||||||
|
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||||
|
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||||
|
</toolbar>
|
||||||
|
</window>
|
||||||
|
</zk>
|
Loading…
Reference in New Issue