fixes bug#AL-2859

master
Aristides 2023-09-21 17:21:23 -03:00
parent 5d542afb85
commit 9c8e5bd67a
18 changed files with 2105 additions and 2 deletions

View File

@ -4,12 +4,12 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId> <artifactId>ventaboletosadm</artifactId>
<version>1.21.2</version> <version>1.22.0</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>
<modelWeb.version>1.15.0</modelWeb.version> <modelWeb.version>1.15.0</modelWeb.version>
<flyway.version>1.11.0</flyway.version> <flyway.version>1.12.0</flyway.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties> </properties>

View File

@ -0,0 +1,133 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioVendaBilhetePorEmpresaAutorizadora extends Relatorio {
public RelatorioVendaBilhetePorEmpresaAutorizadora(Map<String, Object> parametros, Connection conexao)
throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new ArrayDataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
StringBuilder sql = new StringBuilder();
NamedParameterStatement stmt = getSql(conexao, parametros, sql);
setarParmetrosObrigatorios(parametros, stmt);
ResultSet rset = stmt.executeQuery();
rset.setFetchSize(1000);
getResultSet(rset);
this.resultSet = rset;
}
private void getResultSet(ResultSet rset) throws SQLException {
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
carregarDataResult(rset, dataResult);
this.dados.add(dataResult);
}
}
private void carregarDataResult(ResultSet rset, Map<String, Object> dataResult) throws SQLException {
dataResult.put("NUMPUNTOVENTA", rset.getString("NUMPUNTOVENTA"));
dataResult.put("CVEUSUARIO", rset.getString("CVEUSUARIO"));
dataResult.put("NOMBUSUARIO", rset.getString("NOMBUSUARIO"));
dataResult.put("QTDVENDAS", rset.getInt("QTDVENDAS"));
dataResult.put("VLRVENDAS", rset.getBigDecimal("VLRVENDAS"));
dataResult.put("QTDCANCELADOS", rset.getInt("QTDCANCELADOS"));
dataResult.put("VLRCANCELADOS", rset.getBigDecimal("VLRCANCELADOS"));
dataResult.put("DESCTIPO", rset.getString("DESCTIPO"));
}
private void setarParmetrosObrigatorios(Map<String, Object> parametros, NamedParameterStatement stmt)
throws SQLException {
if (parametros.get("EMPRESA_ID") != null) {
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
}
java.sql.Date d = new java.sql.Date(((Date) parametros.get("DATA_INICIAL")).getTime());
stmt.setDate("DATA_INICIAL", d);
stmt.setTimestamp("DATA_FINAL",
new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
}
private NamedParameterStatement getSql(Connection conexao, Map<String, Object> parametros,
StringBuilder sql) throws SQLException {
sql.append("select ");
sql.append(" pv.NUMPUNTOVENTA, us.cveusuario , tpv.DESCTIPO, ");
sql.append(" us.NOMBUSUARIO, ");
sql.append(" sum (case when ca.motivocancelacion_id is null then 1 else 0 end) qtdVendas, ");
sql.append(" sum (case when ca.motivocancelacion_id is null then ");
sql.append(" (");
sql.append(" coalesce(ca.preciopagado,0) ");
sql.append(" + coalesce(ca.importepedagio,0) ");
sql.append(" + coalesce(ca.importetaxaembarque,0) ");
sql.append(" + coalesce(ca.importeseguro,0) ");
sql.append(" ) else 0 end ) vlrVendas, ");
sql.append(" (");
sql.append(
" sum (case when ca.motivocancelacion_id is not null then 1 else 0 end)) qtdCancelados, ");
sql.append(" sum (case when ca.motivocancelacion_id is not null then (");
sql.append(" coalesce(ca.preciopagado,0) ");
sql.append(" + coalesce(ca.importepedagio,0) ");
sql.append(" + coalesce(ca.importetaxaembarque,0) ");
sql.append(" + coalesce(ca.importeseguro,0) ");
sql.append(" ) else 0 end ) vlrCancelados ");
sql.append("from ");
sql.append(" caja ca ");
sql.append(" inner join usuario us on us.usuario_id = ca.usuario_id ");
sql.append(" inner join punto_venta pv on pv.puntoventa_id = ca.puntoventa_id ");
sql.append(" INNER JOIN TIPO_PTOVTA tpv ON tpv.TIPOPTOVTA_ID = pv.TIPOPTOVTA_ID ");
sql.append(" INNER JOIN ruta_empresa re on re.ruta_id=ca.ruta_id ");
sql.append(" join MARCA m on m.marca_id = ca.marca_id ");
sql.append("where ");
sql.append(" ca.activo = 1 ");
sql.append(" and ca.indreimpresion = 0 ");
sql.append(" and CA.FECHORVENTA >= :DATA_INICIAL AND CA.FECHORVENTA <= :DATA_FINAL ");
sql.append(" and re.empresa_autorizadora_id=:EMPRESAAUTORIZADORA_ID ");
if (parametros.get("EMPRESA_ID") != null) {
sql.append(" and m.EMPRESA_ID = :EMPRESA_ID");
}
if (parametros.get("NUMPUNTOVENTA") != null
&& !parametros.get("NUMPUNTOVENTA").toString().contains("-1")) {
sql.append(" and ca.puntoventa_id IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
}
if (parametros.get("USUARIOIDS") != null && !parametros.get("USUARIOIDS").toString().contains("-1")) {
sql.append(" and ca.usuario_id IN (" + parametros.get("USUARIOIDS").toString() + ")");
}
sql.append(" group by pv.NUMPUNTOVENTA, us.cveusuario, tpv.DESCTIPO, ");
sql.append(" us.NOMBUSUARIO ");
sql.append(" order by pv.NUMPUNTOVENTA, ");
sql.append(" us.NOMBUSUARIO ");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
stmt.setInt("EMPRESAAUTORIZADORA_ID",
Integer.valueOf(parametros.get("EMPRESAAUTORIZADORA_ID").toString()));
return stmt;
}
});
}
@Override
protected void processaParametros() throws Exception {
// TODO Auto-generated method stub
}
}

View File

@ -0,0 +1,232 @@
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.IndStatusBoleto;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
public class RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico extends Relatorio {
public RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico(Map<String, Object> parametros, Connection conexao)
throws Exception {
super(parametros, conexao);
this.setCustomDataSource(new ArrayDataSource(this) {
@Override
public void initDados() throws Exception {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
StringBuilder sql = new StringBuilder();
getSQL(parametros, sql);
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
setarParmetrosObrigatorios(parametros, stmt);
ResultSet rset = stmt.executeQuery();
getResultSet(rset);
this.resultSet = rset;
}
private void getResultSet(ResultSet rset) throws SQLException {
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
carregarDataResult(rset, dataResult);
this.dados.add(dataResult);
}
}
private void carregarDataResult(ResultSet rset, Map<String, Object> dataResult) throws SQLException {
dataResult.put("CODIGO_AGENCIA", rset.getString("CODIGO_AGENCIA"));
dataResult.put("NOME_AGENCIA", rset.getString("NOME_AGENCIA"));
dataResult.put("CODIGO_BILHETEIRO", rset.getString("CODIGO_BILHETEIRO"));
dataResult.put("NOME_BILHETEIRO", rset.getString("NOME_BILHETEIRO"));
dataResult.put("NUMERO_PASSAGEM", rset.getBigDecimal("NUMERO_PASSAGEM"));
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
dataResult.put("DESTINO", rset.getString("DESTINO"));
dataResult.put("TIPO_BILHETE", rset.getString("TIPO_BILHETE"));
dataResult.put("TX_EMBARQUE", rset.getBigDecimal("TX_EMBARQUE"));
dataResult.put("PEDAGIO", rset.getBigDecimal("PEDAGIO"));
dataResult.put("TARIFA", rset.getBigDecimal("TARIFA"));
dataResult.put("TOTAL_BILHETE", rset.getBigDecimal("TOTAL_BILHETE"));
dataResult.put("STATUS_PASSAGEM",
IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue());
dataResult.put("SERVICO", rset.getBigDecimal("SERVICO"));
dataResult.put("DATA_VIAGEM", rset.getDate("DATA_VIAGEM"));
dataResult.put("CLASSE", rset.getString("CLASSE"));
String formasPagamento = rset.getString("descpago");
setarAsFormasDePagamento(dataResult, formasPagamento);
setarOsValoresDasFormasDePagamento(dataResult, formasPagamento);
}
private void setarOsValoresDasFormasDePagamento(Map<String, Object> dataResult, String formasPagamento) {
if (!StringUtils.isBlank(formasPagamento)) {
final String[] formaPagamento = formasPagamento.split("\\;");
if (formaPagamento.length > 1) {
int contador = 0;
while (contador < formaPagamento.length) {
String valorformapago = "VALORFORMAPAGO" + contador+1;
dataResult.put(valorformapago, formatarValorFormaDePagamento(formaPagamento[contador]));
contador ++;
}
} else {
dataResult.put("VALORFORMAPAGO1", formatarValorFormaDePagamento(formaPagamento[0]));
}
}
}
private void setarAsFormasDePagamento(Map<String, Object> dataResult, String formasPagamento) {
if (!StringUtils.isBlank(formasPagamento)) {
final String[] formaPagamento = formasPagamento.split("\\;");
if (formaPagamento.length > 1) {
int contador = 0;
while (contador < formaPagamento.length) {
String formaPago = "FORMAPAGO" + contador+1;
dataResult.put(formaPago, formatarFormaDePagamento(formaPagamento[contador]));
contador ++;
}
} else {
dataResult.put("FORMAPAGO1", formatarFormaDePagamento(formaPagamento[0]));
}
}
}
private void setarParmetrosObrigatorios(Map<String, Object> parametros, NamedParameterStatement stmt)
throws SQLException {
stmt.setInt("EMPRESAAUTORIZADORA_ID",
Integer.valueOf(parametros.get("EMPRESAAUTORIZADORA_ID").toString()));
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
stmt.setTimestamp("DATA_INICIAL",
new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
stmt.setTimestamp("DATA_FINAL",
new Timestamp(DateUtil.fimFecha((Date) parametros.get("DATA_FINAL")).getTime()));
}
private void getSQL(Map<String, Object> parametros, StringBuilder sql) {
sql.append(" select pv.NUMPUNTOVENTA CODIGO_AGENCIA, ");
sql.append(" pv.NOMBPUNTOVENTA NOME_AGENCIA, ");
sql.append(" u.CVEUSUARIO CODIGO_BILHETEIRO, ");
sql.append(" u.NOMBUSUARIO NOME_BILHETEIRO, ");
sql.append(" c.NUMFOLIOSISTEMA NUMERO_PASSAGEM, ");
sql.append(" p_origen.DESCPARADA ORIGEM, ");
sql.append(" p_destino.DESCPARADA DESTINO, ");
sql.append(" ct.DESCCATEGORIA TIPO_BILHETE, ");
sql.append(" case when (c.INDREIMPRESION = 1 and c.MOTIVOREIMPRESION_ID = 99) then ");
sql.append(" 'R' else c.INDSTATUSBOLETO end STATUS_PASSAGEM,");
sql.append(" c.FECCORRIDA DATA_VIAGEM, ");
sql.append(" c.CORRIDA_ID SERVICO, ");
sql.append(" c.IMPORTEPEDAGIO PEDAGIO,");
sql.append(" c.IMPORTETAXAEMBARQUE TX_EMBARQUE,");
sql.append(" c.PRECIOPAGADO TARIFA,");
sql.append(
" (NVL(c.PRECIOPAGADO,0)+(NVL(c.IMPORTEPEDAGIO,0)+ NVL(c.IMPORTETAXAEMBARQUE,0)+ NVL(c.IMPORTESEGURO,0))) TOTAL_BILHETE, ");
sql.append(" cs.DESCCLASE CLASSE, ");
sql.append(
" LISTAGG(fp.cvepago||' /'||CAST(cf.IMPORTE AS VARCHAR(10)),';') WITHIN GROUP( ORDER BY 1 DESC ) AS descpago");
sql.append(" from caja c ");
sql.append(" join PUNTO_VENTA pv on c.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
sql.append(" join USUARIO u on u.USUARIO_ID = c.USUARIO_ID ");
sql.append(" join PARADA p_origen on p_origen.PARADA_ID = c.ORIGEN_ID ");
sql.append(" join PARADA p_destino on p_destino.PARADA_ID = c.DESTINO_ID ");
sql.append(" join CATEGORIA ct on ct.CATEGORIA_ID = c.CATEGORIA_ID ");
sql.append(" join CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = c.CLASESERVICIO_ID ");
sql.append(" join MARCA m on m.marca_id = c.marca_id ");
sql.append(" join RUTA_EMPRESA re on re.ruta_id = c.ruta_id ");
sql.append(" join CAJA_FORMAPAGO cf on cf.caja_id=c.caja_id ");
sql.append(" join FORMA_PAGO fp on fp.formapago_id=cf.formapago_id ");
sql.append(" where ");
sql.append(" m.EMPRESA_ID = :EMPRESA_ID ");
sql.append(" and re.empresa_autorizadora_id = :EMPRESAAUTORIZADORA_ID ");
sql.append(" and c.FECHORVENTA >= :DATA_INICIAL ");
sql.append(" and c.FECHORVENTA <= :DATA_FINAL ");
sql.append(" and ((c.indreimpresion = 1 ");
sql.append(
" AND (c.motivoreimpresion_id = 99 or c.motivocancelacion_id in (27) )) or c.indreimpresion = 0) ");
if (parametros.get("NUMPUNTOVENTA") != null && !possuiFiltroTodos("NUMPUNTOVENTA")) {
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
}
if (parametros.get("BILHETEIRO") != null && !parametros.get("BILHETEIRO").equals("")) {
sql.append(" and u.NOMBUSUARIO like '" + parametros.get("BILHETEIRO") + "%'");
}
sql.append(" GROUP BY ");
sql.append(" pv.numpuntoventa, ");
sql.append(" pv.nombpuntoventa, ");
sql.append(" u.cveusuario, ");
sql.append(" u.nombusuario, ");
sql.append(" c.numfoliosistema, ");
sql.append(" p_origen.descparada, ");
sql.append(" p_destino.descparada, ");
sql.append(" ct.desccategoria , ");
sql.append(" CASE ");
sql.append(" WHEN ( c.indreimpresion = 1 ");
sql.append(" AND c.motivoreimpresion_id = 99 ) THEN ");
sql.append(" 'R' ");
sql.append(" ELSE ");
sql.append(" c.indstatusboleto ");
sql.append(" END, ");
sql.append(" c.feccorrida, ");
sql.append(" c.corrida_id, ");
sql.append(" c.importepedagio, ");
sql.append(" c.importetaxaembarque, ");
sql.append(" c.preciopagado, ");
sql.append(
" (NVL(c.PRECIOPAGADO,0)+(NVL(c.IMPORTEPEDAGIO,0)+ NVL(c.IMPORTETAXAEMBARQUE,0)+ NVL(c.IMPORTESEGURO,0))), ");
sql.append(" cs.descclase ");
sql.append(" ORDER BY u.CVEUSUARIO, ");
sql.append(" u.NOMBUSUARIO, ");
sql.append(" pv.NUMPUNTOVENTA, ");
sql.append(" pv.NOMBPUNTOVENTA, ");
sql.append(" c.NUMFOLIOSISTEMA, ");
sql.append(" p_origen.DESCPARADA, ");
sql.append(" p_destino.DESCPARADA, ");
sql.append(" ct.DESCCATEGORIA, ");
sql.append(" c.FECCORRIDA, ");
sql.append(" c.CORRIDA_ID ");
}
});
}
@Override
protected void processaParametros() throws Exception {
// TODO Auto-generated method stub
}
private String formatarFormaDePagamento(String formaDePagamento) {
if (formaDePagamento != null) {
final String[] formaPagamentoAuxilar = formaDePagamento.split("\\/");
return formaPagamentoAuxilar[0];
}
return null;
}
private BigDecimal formatarValorFormaDePagamento(String formaDePagamento){
if(formaDePagamento!=null){
final String[] formaPagamentoAuxilar = formaDePagamento.split("\\/") ;
return formaPagamentoAuxilar.length>1? new BigDecimal(formaPagamentoAuxilar[1].replace(",", ".").trim()):new BigDecimal("0.0");
}
return null;
}
}

View File

@ -0,0 +1,13 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,13 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,13 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,13 @@
#geral
msg.noData=Não foi possivel obter dados com os parâmetros informados.
#Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período:
cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,404 @@
<?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="RelatorioVendasBilheteiro" pageWidth="800" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="760" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="1.239669421487604"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="NUMPUNTOVENTA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<field name="NUMPUNTOVENTA" class="java.lang.String"/>
<field name="CVEUSUARIO" class="java.lang.String"/>
<field name="NOMBUSUARIO" class="java.lang.String"/>
<field name="QTDVENDAS" class="java.lang.Integer"/>
<field name="VLRVENDAS" class="java.math.BigDecimal"/>
<field name="QTDCANCELADOS" class="java.lang.Integer"/>
<field name="VLRCANCELADOS" class="java.math.BigDecimal"/>
<field name="DESCTIPO" class="java.lang.String"/>
<field name="NUMPUNTOVENTAFEC" class="java.lang.String"/>
<field name="USUARIOFEC" class="java.lang.String"/>
<variable name="vlrVendaTotal" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{VLRVENDAS}]]></variableExpression>
</variable>
<variable name="vlrCanceladosTotal" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$F{VLRCANCELADOS}]]></variableExpression>
</variable>
<variable name="qtdCanceladosTotal" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{QTDCANCELADOS}]]></variableExpression>
</variable>
<variable name="qtdVendasTotal" class="java.lang.Integer" calculation="Sum">
<variableExpression><![CDATA[$F{QTDVENDAS}]]></variableExpression>
</variable>
<variable name="vlrTotal" class="java.math.BigDecimal" incrementType="Column">
<variableExpression><![CDATA[$F{VLRVENDAS}.subtract($F{VLRCANCELADOS})]]></variableExpression>
</variable>
<variable name="vlrTotalCompleto" class="java.math.BigDecimal" calculation="Sum">
<variableExpression><![CDATA[$V{vlrTotal}]]></variableExpression>
</variable>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="53" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="c486add3-94d7-419f-9f37-04f6a6da879e" x="44" y="39" width="716" height="14"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="42796e20-405c-441f-9fd9-b26238bc7cdb" mode="Transparent" x="43" y="14" width="69" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="d2973779-79dc-4cc8-937a-e9167c42bab0" mode="Transparent" x="0" y="0" width="550" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="8730e85b-d436-42cd-beb6-1a881bad2478" mode="Transparent" x="122" y="14" width="168" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL} ]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="26bbd310-5e59-4975-a47f-b0048e80b1b6" mode="Transparent" x="0" y="14" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="9630a784-5f92-4abe-805c-fd175e4f8241" mode="Transparent" x="0" y="39" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="91cded42-c53d-469a-abc7-6eb0d59f69af" mode="Transparent" x="669" y="0" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="62f6ba6e-1aaf-4449-aef6-2e9d6e541856" mode="Transparent" x="550" y="28" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="985f839c-258a-47eb-b72b-bec819b7bdbb" mode="Transparent" x="743" y="14" width="15" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ba831a24-59f4-4f8f-888f-fd69711018e9" mode="Transparent" x="550" y="14" width="186" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5cbb57ef-bd5e-4d1b-a077-d0ff398df801" x="550" y="0" width="119" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6d6ab075-006c-4796-98d5-f047ae963876" mode="Transparent" x="112" y="14" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="15" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="dddf51af-453b-4840-b6cf-7c9a612e9d1f" stretchType="RelativeToTallestObject" x="101" y="0" width="137" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Bilheteiro"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="8886dc03-69cd-4fc5-94b5-b8ff18d4a0c0" stretchType="RelativeToTallestObject" x="0" y="0" width="57" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Num. Agência"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="55197ae8-5dab-4548-a3b8-3adfb5beb93a" stretchType="RelativeToTallestObject" x="301" y="0" width="54" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["QTD. Vendas"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="84e3c491-4384-43d5-9a2c-3ec0e65ecda5" stretchType="RelativeToTallestObject" mode="Transparent" x="355" y="0" width="65" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["VLR. Vendas"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="c1c8f17d-849d-4ba1-9c2b-c0dc2eb446f9" stretchType="RelativeToTallestObject" mode="Transparent" x="485" y="0" width="65" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["VLR. Cancelados"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="bdb8c19b-67d9-4175-9d87-62d468c535b8" stretchType="RelativeToTallestObject" x="57" y="0" width="44" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Login"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="083ed504-c257-4a90-9f63-b20e828cc97f" stretchType="RelativeToTallestObject" mode="Transparent" x="420" y="0" width="65" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["QTD. Cancelados"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="53544418-723e-4443-941d-c9be7bd13270" stretchType="RelativeToTallestObject" x="238" y="0" width="63" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Canal Venda"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="76fd3558-b58d-4eee-9d01-b65e1fb72a67" stretchType="RelativeToTallestObject" mode="Transparent" x="550" y="0" width="65" height="14" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
<box rightPadding="0">
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["VLR. Total"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="4c08c112-9e3f-40d9-b8fb-7e743146259e" stretchType="RelativeToTallestObject" x="690" y="0" width="70" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Usuário Fec."]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="8f054822-af2d-4286-bfd8-ea2c0c398fc0" stretchType="RelativeToTallestObject" x="615" y="0" width="75" height="14" isPrintWhenDetailOverflows="true"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
<font size="7" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Agência Fec."]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="15" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="01ee8c0d-6a68-45ea-a4e1-165a48cc89d4" stretchType="RelativeToTallestObject" x="0" y="0" width="57" height="15"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{NUMPUNTOVENTA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="152742f7-1799-4416-a180-3f55ebd20eb0" stretchType="RelativeToTallestObject" x="57" y="0" width="44" height="15"/>
<textElement/>
<textFieldExpression><![CDATA[$F{CVEUSUARIO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="7456c2e1-eb6f-48ba-8097-3ebc40c96bcd" stretchType="RelativeToTallestObject" x="101" y="0" width="137" height="15"/>
<textElement>
<paragraph leftIndent="2"/>
</textElement>
<textFieldExpression><![CDATA[$F{NOMBUSUARIO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="0debe4a0-072f-46ed-957b-635c73d4c92c" stretchType="RelativeToTallestObject" x="301" y="0" width="54" height="15"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{QTDVENDAS}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern=" #,##0.00" isBlankWhenNull="true">
<reportElement uuid="de74b2a9-67c4-415c-abca-fa3549d9b0a7" stretchType="RelativeToTallestObject" x="485" y="0" width="65" height="15" isPrintWhenDetailOverflows="true"/>
<box rightPadding="2"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{VLRCANCELADOS}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern=" #,##0.00" isBlankWhenNull="true">
<reportElement uuid="da9cc79b-499f-4b9f-b1fd-7de995071fea" stretchType="RelativeToTallestObject" x="355" y="0" width="65" height="15" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{VLRVENDAS}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="49206373-b1d1-4c3e-8475-705c707b8286" stretchType="RelativeToTallestObject" x="238" y="0" width="63" height="15"/>
<textElement/>
<textFieldExpression><![CDATA[$F{DESCTIPO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern=" #,##0.00" isBlankWhenNull="true">
<reportElement uuid="c338d2a3-b762-47b8-9d83-99f3ecb20e15" stretchType="RelativeToTallestObject" x="550" y="0" width="65" height="15" isPrintWhenDetailOverflows="true"/>
<box rightPadding="2"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{vlrTotal}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="cb0241c1-c8ed-446d-accf-36af4a4ab540" stretchType="RelativeToTallestObject" x="420" y="0" width="65" height="15" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{QTDCANCELADOS}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="25ed46d6-6d9c-4708-beb4-246400076ba7" stretchType="RelativeToTallestObject" x="690" y="0" width="70" height="15" isPrintWhenDetailOverflows="true"/>
<textElement/>
<textFieldExpression><![CDATA[$F{USUARIOFEC}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="c7aac4e8-e722-4cb8-b787-2e7ded7b0654" stretchType="RelativeToTallestObject" x="615" y="0" width="75" height="15" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$F{NUMPUNTOVENTAFEC}]]></textFieldExpression>
</textField>
</band>
</detail>
<lastPageFooter>
<band height="20">
<textField pattern=" #,##0.00">
<reportElement uuid="4fe96ddc-d868-49b8-8da6-819532f96884" x="355" y="0" width="65" height="20"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{vlrVendaTotal}]]></textFieldExpression>
</textField>
<textField pattern=" #,##0.00">
<reportElement uuid="04a540b3-e38f-47ca-85fe-3501dbc6c6a3" x="485" y="0" width="65" height="20"/>
<box rightPadding="2"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{vlrCanceladosTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1d047de8-99d1-4293-924e-68e503c9e3bb" x="420" y="0" width="65" height="20"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$V{qtdCanceladosTotal}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="8635b7a5-3642-4e3c-83d0-61f00680f2e1" x="290" y="0" width="65" height="20"/>
<textElement textAlignment="Center"/>
<textFieldExpression><![CDATA[$V{qtdVendasTotal}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="4b21c6f2-7b3a-4ff4-b3d3-714ece376255" x="0" y="0" width="290" height="20"/>
<textElement textAlignment="Right"/>
<text><![CDATA[Totais:]]></text>
</staticText>
<textField pattern=" #,##0.00">
<reportElement uuid="ee93037d-feb2-42ec-96f7-af8d2d61f13d" x="550" y="0" width="65" height="20"/>
<box rightPadding="2"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{vlrTotalCompleto}]]></textFieldExpression>
</textField>
</band>
</lastPageFooter>
<noData>
<band height="50"/>
</noData>
</jasperReport>

View File

@ -0,0 +1,474 @@
<?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="RelatorioVendasBilheteiro" pageWidth="1900" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1860" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="1.610510000000003"/>
<property name="ireport.x" value="1661"/>
<property name="ireport.y" value="42"/>
<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"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="NUMPUNTOVENTA" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<field name="CODIGO_AGENCIA" class="java.lang.String"/>
<field name="NOME_AGENCIA" class="java.lang.String"/>
<field name="CODIGO_BILHETEIRO" class="java.lang.String"/>
<field name="NOME_BILHETEIRO" class="java.lang.String"/>
<field name="NUMERO_PASSAGEM" class="java.math.BigDecimal"/>
<field name="ORIGEM" class="java.lang.String"/>
<field name="DESTINO" class="java.lang.String"/>
<field name="TIPO_BILHETE" class="java.lang.String"/>
<field name="STATUS_PASSAGEM" class="java.lang.String"/>
<field name="DATA_VIAGEM" class="java.util.Date"/>
<field name="SERVICO" class="java.math.BigDecimal"/>
<field name="PEDAGIO" class="java.math.BigDecimal"/>
<field name="TX_EMBARQUE" class="java.math.BigDecimal"/>
<field name="TARIFA" class="java.math.BigDecimal"/>
<field name="TOTAL_BILHETE" class="java.math.BigDecimal"/>
<field name="CLASSE" class="java.lang.String"/>
<field name="FORMAPAGO1" class="java.lang.String"/>
<field name="VALORFORMAPAGO1" class="java.math.BigDecimal"/>
<field name="FORMAPAGO2" class="java.lang.String"/>
<field name="VALORFORMAPAGO2" class="java.math.BigDecimal"/>
<field name="FORMAPAGO3" class="java.lang.String"/>
<field name="VALORFORMAPAGO3" class="java.math.BigDecimal"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="57" splitType="Stretch">
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="42796e20-405c-441f-9fd9-b26238bc7cdb" mode="Transparent" x="44" y="15" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
<reportElement uuid="d2973779-79dc-4cc8-937a-e9167c42bab0" stretchType="RelativeToTallestObject" mode="Transparent" x="0" y="0" width="632" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="8730e85b-d436-42cd-beb6-1a881bad2478" mode="Transparent" x="105" y="15" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="26bbd310-5e59-4975-a47f-b0048e80b1b6" mode="Transparent" x="0" y="15" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c486add3-94d7-419f-9f37-04f6a6da879e" x="43" y="43" width="1117" height="14"/>
<textElement verticalAlignment="Middle">
<font size="6"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="a179c478-4014-4b4a-abf0-4655e7588bf7" x="0" y="42" width="1860" height="1"/>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="9630a784-5f92-4abe-805c-fd175e4f8241" mode="Transparent" x="0" y="43" width="43" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="91cded42-c53d-469a-abc7-6eb0d59f69af" mode="Transparent" x="1766" y="0" width="90" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="62f6ba6e-1aaf-4449-aef6-2e9d6e541856" mode="Transparent" x="1686" y="30" width="170" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ba831a24-59f4-4f8f-888f-fd69711018e9" mode="Transparent" x="1686" y="15" width="170" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5cbb57ef-bd5e-4d1b-a077-d0ff398df801" x="1686" y="0" width="80" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6d6ab075-006c-4796-98d5-f047ae963876" mode="Transparent" x="95" y="15" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="19" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="175c2491-a0c4-47bb-bfb1-f8cbdfff876a" x="234" y="0" width="92" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Cód. Bilheteiro "]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="cf67c704-990d-476b-b216-6c6fc14f5016" x="0" y="0" width="84" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Cód. Agência"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="1469ff85-4d82-4fa7-9746-6adc51b556e5" x="324" y="0" width="140" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Nome Bilheteiro"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="6aff357a-a730-44d1-88cb-80544d6fba00" mode="Transparent" x="466" y="0" width="80" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Num. Passagem"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="e3bbc634-b28e-4fcb-a82b-988d8e080bb1" mode="Transparent" x="1046" y="0" width="50" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Pedágio"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="11dfc2fe-48d3-4288-a074-7eb075924340" mode="Transparent" x="696" y="0" width="150" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Destino"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="2809e7dc-46e7-4243-b0fa-166a2222c9f1" mode="Transparent" x="1096" y="0" width="50" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Tarifa"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="4e544fca-dc45-44b3-a40e-1f6b2982961f" x="84" y="0" width="150" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[" Descrição Agência"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="a9b82414-611c-4d1c-a369-e536f98ff6e4" mode="Transparent" x="546" y="0" width="150" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Origem"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="2b4c3898-232a-484b-8efc-fc7850cb5b25" mode="Transparent" x="996" y="0" width="50" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["T. Embarque"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="20a4a2ff-4ea0-4848-b708-f15afca68418" mode="Transparent" x="846" y="0" width="150" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Tipo do Bilhete"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="1c8e9abf-14c7-494d-a603-f747ac66ea29" mode="Transparent" x="1146" y="0" width="70" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Total Bilhetes"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="39b5610a-db3e-4f94-87bd-3d002a8cfef3" mode="Transparent" x="1517" y="0" width="104" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Status da Passagem"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="b3604fc8-3408-438f-81bb-8b45d3dc32eb" mode="Transparent" x="1621" y="0" width="45" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Serviço"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="052730da-5255-43f0-98f6-d684f498f3ab" mode="Transparent" x="1780" y="0" width="78" height="19" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Data Viagem"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="3e522921-6a78-489f-b7c8-9ca97f56e6f1" x="1666" y="0" width="114" height="19"/>
<textElement markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Classe"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="55c20906-46ae-4431-81e5-07699fd6be50" x="1216" y="0" width="50" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["F. Pago1"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="48f23f9e-e535-4f9a-9cc8-2e2d94141ec3" x="1316" y="0" width="50" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["F. Pago2"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="4db63b6e-adf6-422d-a2f6-211502b60a08" x="1366" y="0" width="50" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Vlr. Pago2"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="6d900e09-0534-427c-a24d-c84f80e577f7" x="1416" y="0" width="50" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["F. Pago3"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="4a275045-5b3c-4e88-8e6f-0195934f7a7e" x="1466" y="0" width="50" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Vlr. Pago3"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="bb0765c8-5d83-4086-a854-ea5fa43dbf05" x="1266" y="0" width="50" height="19"/>
<textElement textAlignment="Left" markup="none">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Vlr. Pago1"]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="20" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="0" width="84" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CODIGO_AGENCIA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="84" y="0" width="150" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{NOME_AGENCIA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="234" y="0" width="92" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CODIGO_BILHETEIRO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb" x="324" y="0" width="140" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{NOME_BILHETEIRO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="4cd8a33f-6aaa-47cb-949e-38c6b74d3d39" x="466" y="0" width="80" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{NUMERO_PASSAGEM}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="17011486-0d4c-4e22-b534-48e0bb025673" x="546" y="0" width="150" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423" x="696" y="0" width="150" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="7be97f5f-b36b-4679-befb-e5f2b4532963" x="846" y="0" width="150" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{TIPO_BILHETE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c" x="996" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{TX_EMBARQUE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="7c0246f5-739b-440c-a242-915117bd9fd1" x="1046" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="1096" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" x="1780" y="0" width="78" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{DATA_VIAGEM}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="1666" y="0" width="114" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CLASSE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="false">
<reportElement uuid="4dafd61b-ce2b-4690-b029-2a1382113099" x="1146" y="0" width="70" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{TOTAL_BILHETE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="1517" y="0" width="104" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{STATUS_PASSAGEM}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="false">
<reportElement uuid="b0200cfc-1b6b-4636-9f4b-5fe5d87c2687" x="1621" y="0" width="45" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="1216" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{FORMAPAGO1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="1266" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VALORFORMAPAGO1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="1316" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{FORMAPAGO2}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="1366" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VALORFORMAPAGO2}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="1416" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{FORMAPAGO3}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="1466" y="0" width="50" height="20"/>
<textElement textAlignment="Left">
<font fontName="SansSerif" size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{VALORFORMAPAGO3}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="20">
<textField>
<reportElement uuid="995c4c61-6291-4e5f-8d92-b75502a10466" x="103" y="0" width="530" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,515 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.sql.SQLException;
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.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Radio;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.Usuario;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendaBilhetePorEmpresaAutorizadora;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
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.MyTextbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioCheckinUsuario;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioCheckinUsuariosSelecionados;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiro;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
@Controller("relatorioVendaBilhetePorEmpresaAutorizadoraController")
@Scope("prototype")
public class RelatorioVendaBilhetePorEmpresaAutorizadoraController extends MyGenericForwardComposer {
/**
*
*/
private static final long serialVersionUID = 1L;
private static Logger log = Logger.getLogger(RelatorioVendaBilhetePorEmpresaAutorizadoraController.class);
@Autowired
private EmpresaService empresaService;
@Autowired
private DataSource dataSourceRead;
private Datebox datInicial;
private Datebox datFinal;
private MyComboboxEstandar cmbEmpresa;
private MyComboboxEstandar cmbEmpresaAutorizadora;
private List<Empresa> lsEmpresa;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
@Autowired
private transient PagedListWrapper<Usuario> plwUsuario;
private MyTextbox txtNombrePuntoVenta;
private Bandbox bbPesquisaPuntoVenta;
private MyListbox puntoVentaList;
private MyListbox puntoVentaSelList;
private Paging pagingPuntoVenta;
private MyListbox usuarioList;
private MyListbox usuarioSelList;
private Paging pagingUsuario;
private Textbox txtPalavraPesquisa;
private Bandbox bbPesquisaBilhetero;
private List<Empresa> lsEmpresaAutorizadora;
private MyTextbox txtBilheteiro;
private Radio radioSintetico;
private Radio radioAnalitico;
private static final Short EMPRESA_OPERADORA = 4;
@Override
public void doAfterCompose(Component comp) throws Exception {
super.doAfterCompose(comp);
lsEmpresaAutorizadora = buscarEmpresaDiferenteDeOperadora();
lsEmpresa = buscarEmpresaOperadora();
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
usuarioList.setItemRenderer(new RenderRelatorioCheckinUsuario());
usuarioSelList.setItemRenderer(new RenderRelatorioCheckinUsuariosSelecionados());
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public List<Empresa> getLsEmpresaAutorizadora() {
return lsEmpresaAutorizadora;
}
public void setLsEmpresaAutorizadora(List<Empresa> lsEmpresaAutorizadora) {
this.lsEmpresaAutorizadora = lsEmpresaAutorizadora;
}
public EmpresaService getEmpresaService() {
return empresaService;
}
public void setEmpresaService(EmpresaService empresaService) {
this.empresaService = empresaService;
}
public DataSource getDataSourceRead() {
return dataSourceRead;
}
public void setDataSourceRead(DataSource dataSourceRead) {
this.dataSourceRead = dataSourceRead;
}
public Datebox getDatInicial() {
return datInicial;
}
public void setDatInicial(Datebox datInicial) {
this.datInicial = datInicial;
}
public Datebox getDatFinal() {
return datFinal;
}
public void setDatFinal(Datebox datFinal) {
this.datFinal = datFinal;
}
public MyComboboxEstandar getCmbEmpresa() {
return cmbEmpresa;
}
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
this.cmbEmpresa = cmbEmpresa;
}
public MyComboboxEstandar getCmbEmpresaAutorizadora() {
return cmbEmpresaAutorizadora;
}
public void setCmbEmpresaAutorizadora(MyComboboxEstandar cmbEmpresaAutorizadora) {
this.cmbEmpresaAutorizadora = cmbEmpresaAutorizadora;
}
public PagedListWrapper<PuntoVenta> getPlwPuntoVenta() {
return plwPuntoVenta;
}
public void setPlwPuntoVenta(PagedListWrapper<PuntoVenta> plwPuntoVenta) {
this.plwPuntoVenta = plwPuntoVenta;
}
public PagedListWrapper<Usuario> getPlwUsuario() {
return plwUsuario;
}
public void setPlwUsuario(PagedListWrapper<Usuario> plwUsuario) {
this.plwUsuario = plwUsuario;
}
public MyTextbox getTxtNombrePuntoVenta() {
return txtNombrePuntoVenta;
}
public void setTxtNombrePuntoVenta(MyTextbox txtNombrePuntoVenta) {
this.txtNombrePuntoVenta = txtNombrePuntoVenta;
}
public Bandbox getBbPesquisaPuntoVenta() {
return bbPesquisaPuntoVenta;
}
public void setBbPesquisaPuntoVenta(Bandbox bbPesquisaPuntoVenta) {
this.bbPesquisaPuntoVenta = bbPesquisaPuntoVenta;
}
public MyListbox getPuntoVentaList() {
return puntoVentaList;
}
public void setPuntoVentaList(MyListbox puntoVentaList) {
this.puntoVentaList = puntoVentaList;
}
public MyListbox getPuntoVentaSelList() {
return puntoVentaSelList;
}
public void setPuntoVentaSelList(MyListbox puntoVentaSelList) {
this.puntoVentaSelList = puntoVentaSelList;
}
public Paging getPagingPuntoVenta() {
return pagingPuntoVenta;
}
public void setPagingPuntoVenta(Paging pagingPuntoVenta) {
this.pagingPuntoVenta = pagingPuntoVenta;
}
public MyListbox getUsuarioList() {
return usuarioList;
}
public void setUsuarioList(MyListbox usuarioList) {
this.usuarioList = usuarioList;
}
public MyListbox getUsuarioSelList() {
return usuarioSelList;
}
public void setUsuarioSelList(MyListbox usuarioSelList) {
this.usuarioSelList = usuarioSelList;
}
public Paging getPagingUsuario() {
return pagingUsuario;
}
public void setPagingUsuario(Paging pagingUsuario) {
this.pagingUsuario = pagingUsuario;
}
public Textbox getTxtPalavraPesquisa() {
return txtPalavraPesquisa;
}
public void setTxtPalavraPesquisa(Textbox txtPalavraPesquisa) {
this.txtPalavraPesquisa = txtPalavraPesquisa;
}
public Bandbox getBbPesquisaBilhetero() {
return bbPesquisaBilhetero;
}
public void setBbPesquisaBilhetero(Bandbox bbPesquisaBilhetero) {
this.bbPesquisaBilhetero = bbPesquisaBilhetero;
}
public MyTextbox getTxtBilheteiro() {
return txtBilheteiro;
}
public void setTxtBilheteiro(MyTextbox txtBilheteiro) {
this.txtBilheteiro = txtBilheteiro;
}
public static Short getEmpresaOperadora() {
return EMPRESA_OPERADORA;
}
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("");
}
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("relatorioVendasBilheteiroSinteticoController.window.title"), Messagebox.OK,
Messagebox.INFORMATION);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
}
public void onClick$btnLimparUsu(Event ev) {
usuarioList.setData(new ArrayList<Usuario>());
bbPesquisaBilhetero.setText("");
}
public void onClick$btnPesquisaUsu(Event ev) {
executarPesquisaUsu();
}
public void onDoubleClick$usuarioList(Event ev) {
Usuario usuario = (Usuario) usuarioList.getSelected();
usuarioSelList.addItemNovo(usuario);
}
private void executarPesquisaUsu() {
HibernateSearchObject<Usuario> usuarioBusqueda = new HibernateSearchObject<Usuario>(Usuario.class,
pagingUsuario.getPageSize());
usuarioBusqueda.addFilterLike("nombusuario", "%" + txtPalavraPesquisa.getValue() + "%");
usuarioBusqueda.addSortAsc("nombusuario");
usuarioBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwUsuario.init(usuarioBusqueda, usuarioList, pagingUsuario);
if (usuarioList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("indexController.mniRelatorioCheckin.label"), Messagebox.OK,
Messagebox.INFORMATION);
} catch (InterruptedException ex) {
log.error(ex);
}
}
}
private List<Empresa> buscarEmpresaDiferenteDeOperadora() {
List<Empresa> todasAsEmpresas = empresaService.obtenerTodos();
List<Empresa> empOperadoras = new ArrayList<Empresa>();
for (Empresa emp : todasAsEmpresas) {
if (emp.getIndTipo() != EMPRESA_OPERADORA) {
empOperadoras.add(emp);
}
}
return empOperadoras;
}
private List<Empresa> buscarEmpresaOperadora() {
List<Empresa> todasAsEmpresas = empresaService.obtenerTodos();
List<Empresa> empOperadoras = new ArrayList<Empresa>();
for (Empresa emp : todasAsEmpresas) {
if (emp.getIndTipo() == EMPRESA_OPERADORA) {
empOperadoras.add(emp);
}
}
return empOperadoras;
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
private void executarRelatorio() throws Exception {
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
carregaValoresEmpresaAutorizadora(parametros, filtro);
carregaValoresEmpresa(parametros, filtro);
carregaValoresAgencia(parametros, filtro);
carregaValoresBilheteiro(parametros, filtro);
carregaDataInicial(parametros);
carregaDataFinal(parametros);
carregarUsuarioLogado(parametros);
carregarUsuarioLogado(parametros);
carregarOFiltro(parametros, filtro);
if (radioAnalitico.isChecked()) {
excutarRelatorioAnalitico(parametros);
} else {
executarRelatorioSintetico(parametros);
}
}
private void executarRelatorioSintetico(Map<String, Object> parametros) throws Exception, SQLException {
Relatorio relatorio;
parametros.put("NOME_RELATORIO",
Labels.getLabel("relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioSintetico.value"));
relatorio = new RelatorioVendaBilhetePorEmpresaAutorizadora(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioSintetico.value"), args, MODAL);
}
private void excutarRelatorioAnalitico(Map<String, Object> parametros) throws Exception, SQLException {
Relatorio relatorio;
parametros.put("NOME_RELATORIO",
Labels.getLabel("relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioAnalitico.value"));
relatorio = new RelatorioVendaBilhetePorEmpresaAutorizadoraAnalitico(parametros,
dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioAnalitico.value"), args, MODAL);
}
private void carregarOFiltro(Map<String, Object> parametros, StringBuilder filtro) {
parametros.put("FILTROS", filtro.toString());
}
private void carregarUsuarioLogado(Map<String, Object> parametros) {
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
}
private void carregaDataFinal(Map<String, Object> parametros) {
parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue());
}
private void carregaDataInicial(Map<String, Object> parametros) {
parametros.put("DATA_INICIAL", (java.util.Date) this.datInicial.getValue());
}
private void carregaValoresBilheteiro(Map<String, Object> parametros, StringBuilder filtro) {
filtro.append("Usuarios: ");
String usuarioIds = "";
String usuarios = "";
List<Usuario> lsUsuarioSelecionados = new ArrayList(Arrays.asList(usuarioSelList.getData()));
if (lsUsuarioSelecionados.isEmpty()) {
usuarios = "Todos";
} else {
for (int i = 0; i < lsUsuarioSelecionados.size(); i++) {
Usuario usuario = lsUsuarioSelecionados.get(i);
usuarios = usuarios + usuario.getClaveUsuario() + ",";
usuarioIds = usuarioIds + usuario.getUsuarioId() + ",";
}
// removendo ultima virgula
usuarioIds = usuarioIds.substring(0, usuarioIds.length() - 1);
usuarios = usuarios.substring(0, usuarios.length() - 1);
parametros.put("USUARIOIDS", usuarioIds);
}
filtro.append(usuarios).append(";");
}
private void carregaValoresAgencia(Map<String, Object> parametros, StringBuilder filtro) {
filtro.append(" Agência: ");
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);
}
filtro.append(puntoVentas).append(";");
}
private void carregaValoresEmpresa(Map<String, Object> parametros, StringBuilder filtro) {
filtro.append(" Empresa: ");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA", empresa.getNombempresa());
filtro.append(empresa.getNombempresa() + ";");
} else {
filtro.append(" Todas;");
}
}
private void carregaValoresEmpresaAutorizadora(Map<String, Object> parametros, StringBuilder filtro) {
filtro.append(" Empresa Autorizadora: ");
Comboitem itemEmpresaAutorizadora = cmbEmpresaAutorizadora.getSelectedItem();
if (itemEmpresaAutorizadora != null) {
Empresa empresa = (Empresa) itemEmpresaAutorizadora.getValue();
parametros.put("EMPRESAAUTORIZADORA_ID", empresa.getEmpresaId());
parametros.put("EMPRESAAUTORIZADORA", empresa.getNombempresa());
filtro.append(empresa.getNombempresa() + ";");
} else {
filtro.append(" Todas;");
}
}
}

View File

@ -0,0 +1,27 @@
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 ItemMenuVendaBilhetePorEmpresaAutorizadora extends DefaultItemMenuSistema {
public ItemMenuVendaBilhetePorEmpresaAutorizadora() {
super("indexController.mniRelatorioVendaPorEmpresaAutorizadora.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOVENDABILHETEPOREMPRESAAUTORIZADO";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioVendaBilhetePorEmpresaAutorizadora.zul",
Labels.getLabel("indexController.mniRelatorioVendaPorEmpresaAutorizadora.label"), getArgs() ,desktop);
}
}

View File

@ -250,6 +250,7 @@ analitico.gerenciais.financeiro.aproveitamentoFinanceiro=com.rjconsultores.venta
analitico.gerenciais.financeiro.relatorioOperacionalFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCaixaOrgaoConcedente analitico.gerenciais.financeiro.relatorioOperacionalFinanceiro=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCaixaOrgaoConcedente
analitico.gerenciais.financeiro.relatorioResumoVendaOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoVendaOrgaoConcedente analitico.gerenciais.financeiro.relatorioResumoVendaOrgaoConcedente=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioResumoVendaOrgaoConcedente
analitico.gerenciais.financeiro.relatorioVendasConexaoRuta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasConexaoRuta analitico.gerenciais.financeiro.relatorioVendasConexaoRuta=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasConexaoRuta
analitico.gerenciais.financeiro.relatorioVendaBilhetePorEmpresaAutorizadora=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuVendaBilhetePorEmpresaAutorizadora
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
analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos analitico.gerenciais.pacote.boletos=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesBoletos
analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado analitico.gerenciais.pacote.detalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioVendasPacotesDetalhado

View File

@ -416,6 +416,7 @@ indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Ó
indexController.mniRelatorioPrecosPraticados.label = Relatório de Preços Praticados indexController.mniRelatorioPrecosPraticados.label = Relatório de Preços Praticados
indexController.mniRelatorioW2I.label = Relatório Seguro W2I indexController.mniRelatorioW2I.label = Relatório Seguro W2I
indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I
indexController.mniRelatorioVendaPorEmpresaAutorizadora.label= Relatório de venda Por Empresa Autorizadora
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal
@ -1340,6 +1341,27 @@ relatorioPosicaoVendaBilheteIdosoController.TpRelatorio.value = Tipo de Relatór
relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label = Trecho relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label = Trecho
relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label = Passageiro relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label = Passageiro
#Relatório de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.window.title = Relatório de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatInicial.value = Data inicial
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatFinal.value = Data final
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbPuntoVenta.value = Agência
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresaAutorizadora.value = Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresa.value = Empresa
relatorioVendaBilhetePorEmpresaAutorizadoraController.btnPesquisa.label = Buscar
relatorioVendaBilhetePorEmpresaAutorizadoraController.btnLimpar.label = Limpar
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbNumero.value = Número Agência
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbBilheteiro.value = Bilheteiro
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayout.value = Layout
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutNovo.value = Novo
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutAntigo.value = Antigo
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutDiario.value = Diário
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutResumo.value = Resumo
relatorioVendaBilhetePorEmpresaAutorizadoraController.analitico.value = Analitico
relatorioVendaBilhetePorEmpresaAutorizadoraController.sintetico.value = Sintetico
relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioAnalitico.value = Relatório analitico de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioSintetico.value = Relatório sintetico de venda Por Empresa Autorizadora
# Pantalla Editar Classe # Pantalla Editar Classe
editarClaseServicioController.window.title = Tipo de Classe editarClaseServicioController.window.title = Tipo de Classe
editarClaseServicioController.btnApagar.tooltiptext = Eliminar editarClaseServicioController.btnApagar.tooltiptext = Eliminar

View File

@ -392,6 +392,7 @@ indexController.mniRelatorioVendaConexaoLinha.label = Relatório Vendas de Cone
indexController.mniRelatorioPrecosPraticados.label = Relatório de Preços Praticados indexController.mniRelatorioPrecosPraticados.label = Relatório de Preços Praticados
indexController.mniRelatorioW2I.label = Relatório Seguro W2I indexController.mniRelatorioW2I.label = Relatório Seguro W2I
indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I
indexController.mniRelatorioVendaPorEmpresaAutorizadora.label= Relatório de venda Por Empresa Autorizadora
indexController.mnSubMenuImpressaoFiscal.label=Impresión fiscal indexController.mnSubMenuImpressaoFiscal.label=Impresión fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importación fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importación fiscal
@ -1130,6 +1131,28 @@ relatorioPosicaoVendaBilheteIdosoController.TpRelatorio.value = Tipo de Relatór
relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label = Trecho relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label = Trecho
relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label = Passageiro relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label = Passageiro
#Relatório de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.window.title = Relatório de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatInicial.value = Data inicial
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatFinal.value = Data final
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbPuntoVenta.value = Agência
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresaAutorizadora.value = Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresa.value = Empresa
relatorioVendaBilhetePorEmpresaAutorizadoraController.btnPesquisa.label = Buscar
relatorioVendaBilhetePorEmpresaAutorizadoraController.btnLimpar.label = Limpar
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbNumero.value = Número Agência
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbBilheteiro.value = Bilheteiro
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayout.value = Layout
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutNovo.value = Novo
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutAntigo.value = Antigo
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutDiario.value = Diário
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutResumo.value = Resumo
relatorioVendaBilhetePorEmpresaAutorizadoraController.analitico.value = Analitico
relatorioVendaBilhetePorEmpresaAutorizadoraController.sintetico.value = Sintetico
relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioAnalitico.value = Relatório analitico de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioSintetico.value = Relatório sintetico de venda Por Empresa Autorizadora
#Relatório Documentos Fiscais #Relatório Documentos Fiscais
relatorioDocumentosFiscaisController.window.title = Reporte Documentos Fiscais relatorioDocumentosFiscaisController.window.title = Reporte Documentos Fiscais
relatorioDocumentosFiscaisController.lbDatInicial.value = Fecha Inicial relatorioDocumentosFiscaisController.lbDatInicial.value = Fecha Inicial

View File

@ -417,6 +417,7 @@ indexController.mniRelatorioVendaEmbarcada.label = Venda Embarcada
indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente indexController.mniRelatorioCaixaOrgaoConcedente.label = Relatório Caixa por Órgão Concedente
indexController.mniRelatorioW2I.label = Relatório Seguro W2I indexController.mniRelatorioW2I.label = Relatório Seguro W2I
indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I indexController.mniRelatorioTxEmbW2I.label = Relatório Taxa Embarque W2I
indexController.mniRelatorioVendaPorEmpresaAutorizadora.label= Relatório de venda Por Empresa Autorizadora
indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal indexController.mnSubMenuImpressaoFiscal.label=Impressão Fiscal
indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal indexController.mnSubMenuRelatorioImpressaoFiscal.label=Importação Fiscal
@ -1343,6 +1344,27 @@ relatorioPosicaoVendaBilheteIdosoController.TpRelatorio.value = Tipo de Relatór
relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label = Trecho relatorioPosicaoVendaBilheteIdosoController.tpTrecho.label = Trecho
relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label = Passageiro relatorioPosicaoVendaBilheteIdosoController.tpPassageiro.label = Passageiro
#Relatório de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.window.title = Relatório de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatInicial.value = Data inicial
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatFinal.value = Data final
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbPuntoVenta.value = Agência
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresaAutorizadora.value = Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresa.value = Empresa
relatorioVendaBilhetePorEmpresaAutorizadoraController.btnPesquisa.label = Buscar
relatorioVendaBilhetePorEmpresaAutorizadoraController.btnLimpar.label = Limpar
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbNumero.value = Número Agência
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbBilheteiro.value = Bilheteiro
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayout.value = Layout
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutNovo.value = Novo
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutAntigo.value = Antigo
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutDiario.value = Diário
relatorioVendaBilhetePorEmpresaAutorizadoraController.lbLayoutResumo.value = Resumo
relatorioVendaBilhetePorEmpresaAutorizadoraController.analitico.value = Analitico
relatorioVendaBilhetePorEmpresaAutorizadoraController.sintetico.value = Sintetico
relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioAnalitico.value = Relatório analitico de venda Por Empresa Autorizadora
relatorioVendaBilhetePorEmpresaAutorizadoraController.nomeRelatorioSintetico.value = Relatório sintetico de venda Por Empresa Autorizadora
# Pantalla Editar Classe # Pantalla Editar Classe
editarClaseServicioController.window.title = Tipo de Classe editarClaseServicioController.window.title = Tipo de Classe
editarClaseServicioController.btnApagar.tooltiptext = Eliminar editarClaseServicioController.btnApagar.tooltiptext = Eliminar

View File

@ -0,0 +1,198 @@
<?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="winFiltroRelatorioVendaBilhetePorEmpresaAutorizadora"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioVendaBilhetePorEmpresaAutorizadora"
apply="${relatorioVendaBilhetePorEmpresaAutorizadoraController}"
contentStyle="overflow:auto" height="325px" width="550px"
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('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatInicial.value')}" />
<datebox id="datInicial" width="90%"
format="dd/MM/yyyy" constraint="no empty"
maxlength="10" />
<label
value="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbDatFinal.value')}" />
<datebox id="datFinal" width="90%"
format="dd/MM/yyyy" constraint="no empty"
maxlength="10" />
</row>
</rows>
</grid>
<grid fixedLayout="true">
<columns>
<column width="20%"/>
<column width="80%"/>
</columns>
<rows>
<row spans="1,1,2">
<label
value="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresaAutorizadora.value')}" />
<combobox id="cmbEmpresaAutorizadora"
buttonVisible="true" constraint="no empty"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioVendaBilhetePorEmpresaAutorizadora$composer.lsEmpresaAutorizadora}"
width="95%" />
</row>
<row spans="1,1,2">
<label
value="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa"
buttonVisible="true" constraint="no empty"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioVendaBilhetePorEmpresaAutorizadora$composer.lsEmpresa}"
width="95%" />
</row>
<row spans="1,3">
<label
value="Agencia" />
<bandbox id="bbPesquisaPuntoVenta" width="100%"
mold="rounded" readonly="true">
<bandpopup>
<vbox>
<hbox>
<label
value="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.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('relatorioVendaBilhetePorEmpresaAutorizadoraController.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('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.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('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.lbNumero.value')}" />
<listheader width="7%" />
</listhead>
</listbox>
<paging id="pagingSelPuntoVenta" pageSize="10" />
</row>
</rows>
</grid>
<grid fixedLayout="true">
<columns>
<column width="20%"/>
<column width="80%"/>
</columns>
<rows>
<row spans="1,3">
<label value="Usuario" />
<bandbox id="bbPesquisaBilhetero" width="98%" mold="rounded" readonly="true">
<bandpopup>
<vbox>
<hbox>
<label
value="${c:l('relatorioCheckinController.lbBilheteiro.label')}" />
<textbox id="txtPalavraPesquisa"
width="250px"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
<button id="btnPesquisaUsu"
image="/gui/img/find.png"
label="${c:l('relatorioCheckinController.btnPesquisa.label')}" />
<button id="btnLimparUsu"
image="/gui/img/eraser.png"
label="${c:l('relatorioCheckinController.btnLimpar.label')}" />
</hbox>
<paging id="pagingUsuario" pageSize="20" />
<listbox id="usuarioList" mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100%" width="500px">
<listhead>
<listheader label="${c:l('lb.id')}" width="30%" />
<listheader label="${c:l('relatorioCheckinController.usuarioCVE.label')}" width="30%" />
<listheader label="${c:l('relatorioCheckinController.usuarioNome.label')}" width="60%" />
</listhead>
</listbox>
</vbox>
</bandpopup>
</bandbox>
</row>
<row spans="4">
<listbox id="usuarioSelList" mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100px" width="100%">
<listhead>
<listheader label="${c:l('relatorioCheckinController.usuarioCVE.label')}"
width="30%" />
<listheader label="${c:l('relatorioCheckinController.usuarioNome.label')}"
width="60%" />
<listheader width="10%" />
</listhead>
</listbox>
<paging id="pagingSelUsuario" pageSize="10" />
</row>
</rows>
</grid>
<grid fixedLayout="true">
<columns>
<column width="20%"/>
<column width="80%"/>
</columns>
<rows>
<row spans="3">
<radiogroup >
<label
value="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.analitico.value')}" />
<radio id="radioAnalitico" checked="true" />
<label
value="${c:l('relatorioVendaBilhetePorEmpresaAutorizadoraController.sintetico.value')}" />
<radio id="radioSintetico" />
</radiogroup>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>