alexandre.lima 2017-08-23 19:07:26 +00:00
parent 9b3927ae19
commit e76f0569ea
8 changed files with 1005 additions and 0 deletions

View File

@ -0,0 +1,151 @@
/**
*
*/
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.sql.Connection;
import java.sql.ResultSet;
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.IndStatusBoleto;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
/**
* @author Thiago
*
*/
public class RelatorioBilhetesVendidos extends Relatorio {
public RelatorioBilhetesVendidos(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();
sql.append(" select ");
sql.append(" B.NUMFOLIOSISTEMA NUMERO_PASSAGEM, ");
sql.append(" B.NUMSERIEPREIMPRESA SERIE, ");
sql.append(" B.NUMSERIEPREIMPRESA SUB_SERIE, ");
sql.append(" B.NUMFOLIOPREIMPRESO PRE_IMPRESSO, ");
sql.append(" p_origen.DESCPARADA ORIGEM, ");
sql.append(" p_destino.DESCPARADA DESTINO, ");
sql.append(" pv.NOMBPUNTOVENTA NOME_AGENCIA, ");
sql.append(" B.FECMODIF DATA, ");
sql.append(" B.FECCORRIDA DATA_VIAGEM, ");
sql.append(" B.CORRIDA_ID SERVICO, ");
sql.append(" to_char(B.FECCORRIDA, 'hh:mm:ss') HORA, ");
sql.append(" B.NUMASIENTO NUMASIENTO, ");
sql.append(" ct.DESCCATEGORIA CATEGORIA, ");
sql.append(" R.INDSENTIDOIDA SENTIDO, ");
sql.append(" R.DESCRUTA DESC_LINHA, ");
sql.append(" B.INDSTATUSBOLETO STATUS_PASSAGEM, ");
sql.append(" B.PRECIOPAGADO TARIFA, ");
sql.append(" B.IMPORTETAXAEMBARQUE TX_EMBARQUE, ");
sql.append(" B.IMPORTEPEDAGIO PEDAGIO, ");
sql.append(" B.IMPORTESEGURO SEGURO ");
sql.append(" FROM BOLETO B ");
sql.append(" JOIN RUTA R ON R.RUTA_ID = B.RUTA_ID ");
sql.append(" JOIN PUNTO_VENTA pv on B.PUNTOVENTA_ID = pv.PUNTOVENTA_ID ");
sql.append(" JOIN USUARIO u on u.USUARIO_ID = B.USUARIO_ID ");
sql.append(" JOIN PARADA p_origen on p_origen.PARADA_ID = B.ORIGEN_ID ");
sql.append(" JOIN PARADA p_destino on p_destino.PARADA_ID = B.DESTINO_ID ");
sql.append(" JOIN CATEGORIA ct on ct.CATEGORIA_ID = B.CATEGORIA_ID ");
sql.append(" JOIN CLASE_SERVICIO cs on cs.CLASESERVICIO_ID = B.CLASESERVICIO_ID ");
sql.append(" JOIN MARCA m on m.marca_id = B.marca_id ");
sql.append(" WHERE ");
sql.append(" m.EMPRESA_ID = :EMPRESA_ID ");
sql.append(" and B.FECHORVENTA >= :DATA_INICIAL ");
sql.append(" and B.FECHORVENTA <= :DATA_FINAL ");
if (parametros.get("NUMPUNTOVENTA") != null) {
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
}
if (parametros.get("STATUS") != null) {
sql.append(" and b.INDSTATUSBOLETO in (" + parametros.get("STATUS") + ") ");
}
sql.append(" order by u.CVEUSUARIO, ");
sql.append(" u.NOMBUSUARIO, ");
sql.append(" pv.NUMPUNTOVENTA, ");
sql.append(" pv.NOMBPUNTOVENTA, ");
sql.append(" B.NUMFOLIOSISTEMA, ");
sql.append(" p_origen.DESCPARADA, ");
sql.append(" p_destino.DESCPARADA, ");
sql.append(" ct.DESCCATEGORIA, ");
sql.append(" B.INDSTATUSBOLETO, ");
sql.append(" B.FECCORRIDA, ");
sql.append(" B.CORRIDA_ID ");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.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()));
ResultSet rset = stmt.executeQuery();
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
dataResult.put("NUMERO_PASSAGEM", rset.getString("NUMERO_PASSAGEM"));
if (rset.getString("SERIE") != null) {
if (rset.getString("SERIE").split("-").length == 1) {
dataResult.put("SERIE", rset.getString("SERIE"));
} else {
dataResult.put("SERIE", rset.getString("SERIE").split("-")[0]);
dataResult.put("SUB_SERIE", rset.getString("SERIE").split("-")[1]);
}
}
dataResult.put("PRE_IMPRESSO", rset.getString("PRE_IMPRESSO"));
dataResult.put("ORIGEM", rset.getString("ORIGEM"));
dataResult.put("DESTINO", rset.getString("DESTINO"));
dataResult.put("NOME_AGENCIA", rset.getString("NOME_AGENCIA"));
dataResult.put("DATA", rset.getString("DATA"));
dataResult.put("DATA_VIAGEM", rset.getString("DATA_VIAGEM"));
dataResult.put("SERVICO", rset.getString("SERVICO"));
dataResult.put("HORA", rset.getString("HORA"));
dataResult.put("NUMASIENTO", rset.getString("NUMASIENTO"));
dataResult.put("CATEGORIA", rset.getString("CATEGORIA"));
dataResult.put("SENTIDO", rset.getString("SENTIDO"));
dataResult.put("DESC_LINHA", rset.getString("DESC_LINHA"));
if (rset.getString("STATUS_PASSAGEM") != null) {
dataResult.put("STATUS_PASSAGEM", IndStatusBoleto.valueOf(rset.getString("STATUS_PASSAGEM")).getValue());
}
dataResult.put("TARIFA", rset.getString("TARIFA"));
dataResult.put("TX_EMBARQUE", rset.getString("TX_EMBARQUE"));
dataResult.put("PEDAGIO", rset.getString("PEDAGIO"));
dataResult.put("SEGURO", rset.getString("SEGURO"));
this.dados.add(dataResult);
}
this.resultSet = rset;
}
});
}
/*
* (non-Javadoc)
*
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
*/
@Override
protected void processaParametros() throws Exception {
}
}

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,433 @@
<?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="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="2.9230756500000092"/>
<property name="ireport.x" value="1371"/>
<property name="ireport.y" value="214"/>
<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="NUMERO_PASSAGEM" class="java.lang.String"/>
<field name="SERIE" class="java.lang.String"/>
<field name="SUB_SERIE" class="java.lang.String"/>
<field name="PRE_IMPRESSO" class="java.lang.String"/>
<field name="ORIGEM" class="java.lang.String"/>
<field name="DESTINO" class="java.lang.String"/>
<field name="NOME_AGENCIA" class="java.lang.String"/>
<field name="DATA" class="java.lang.String"/>
<field name="DATA_VIAGEM" class="java.lang.String"/>
<field name="SERVICO" class="java.lang.String"/>
<field name="HORA" class="java.lang.String"/>
<field name="DESC_LINHA" class="java.lang.String"/>
<field name="STATUS_PASSAGEM" class="java.lang.String"/>
<field name="TARIFA" class="java.lang.String"/>
<field name="TX_EMBARQUE" class="java.lang.String"/>
<field name="PEDAGIO" class="java.lang.String"/>
<field name="SEGURO" class="java.lang.String"/>
<field name="NUMASIENTO" class="java.lang.String"/>
<field name="CATEGORIA" class="java.lang.String"/>
<field name="SENTIDO" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="59" splitType="Stretch">
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="42796e20-405c-441f-9fd9-b26238bc7cdb" mode="Transparent" x="43" y="15" width="58" 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="257" 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="111" y="15" width="88" 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="43" 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>
<line>
<reportElement uuid="a179c478-4014-4b4a-abf0-4655e7588bf7" x="0" y="43" width="802" height="1"/>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="9630a784-5f92-4abe-805c-fd175e4f8241" mode="Transparent" x="44" y="45" width="57" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<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="722" y="0" width="80" 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="637" y="31" width="165" 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="774" y="15" width="28" 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="637" y="15" width="137" 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="637" y="0" width="85" 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="101" 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>
<textField>
<reportElement uuid="c486add3-94d7-419f-9f37-04f6a6da879e" x="101" y="45" width="701" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="24" splitType="Stretch">
<staticText>
<reportElement uuid="9fc7e58e-8625-41c4-a8ee-6454f6382d46" x="101" y="0" width="47" height="24"/>
<textElement textAlignment="Left">
<font size="7"/>
</textElement>
<text><![CDATA[Sub]]></text>
</staticText>
<staticText>
<reportElement uuid="3766fa33-6281-4576-a9d1-3b984e1976d3" x="0" y="0" width="44" height="24"/>
<textElement textAlignment="Left">
<font size="7"/>
</textElement>
<text><![CDATA[Bilhete]]></text>
</staticText>
<staticText>
<reportElement uuid="7e1f6b82-8a1f-4719-b942-41f0d7027aa8" x="148" y="0" width="37" height="24"/>
<textElement textAlignment="Left">
<font size="7"/>
</textElement>
<text><![CDATA[Pré-Impresso]]></text>
</staticText>
<staticText>
<reportElement uuid="6adaca80-9b5a-4a03-a80b-5eeed4894d7f" mode="Transparent" x="185" y="0" width="56" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Origem]]></text>
</staticText>
<staticText>
<reportElement uuid="95367884-2b52-4bbd-b716-852ff13290e9" mode="Transparent" x="445" y="0" width="32" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Serviço]]></text>
</staticText>
<staticText>
<reportElement uuid="a39ab8f3-becb-44e3-b4f5-b7c43889508c" mode="Transparent" x="300" y="0" width="57" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Agência]]></text>
</staticText>
<staticText>
<reportElement uuid="170230ea-2a12-4444-9f13-c706d557ae8d" mode="Transparent" x="477" y="0" width="31" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Hr Viagem]]></text>
</staticText>
<staticText>
<reportElement uuid="8a5e97db-9b05-4fa5-9663-7795869b6b90" x="44" y="0" width="57" height="24"/>
<textElement textAlignment="Left">
<font size="7"/>
</textElement>
<text><![CDATA[Série]]></text>
</staticText>
<staticText>
<reportElement uuid="c0542d93-dde4-448d-932c-453d6a4a6882" mode="Transparent" x="241" y="0" width="59" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Destino]]></text>
</staticText>
<staticText>
<reportElement uuid="9c65b631-065c-49af-ab2c-3bcea583eaea" mode="Transparent" x="403" y="0" width="42" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Dt. Viagem]]></text>
</staticText>
<staticText>
<reportElement uuid="a7f96097-c8fd-4ba0-bea7-7b40a0fc81f7" mode="Transparent" x="357" y="0" width="46" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Data]]></text>
</staticText>
<staticText>
<reportElement uuid="0452264c-0f27-46d6-84ad-0fba6e5abdfa" mode="Transparent" x="508" y="0" width="30" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Polt]]></text>
</staticText>
<staticText>
<reportElement uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f" mode="Transparent" x="538" y="0" width="45" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Categoria]]></text>
</staticText>
<staticText>
<reportElement uuid="73e29f93-98a9-4411-8f89-220426f2cb6d" mode="Transparent" x="583" y="0" width="31" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Sentido]]></text>
</staticText>
<staticText>
<reportElement uuid="f00ced65-e4ea-4332-87d4-0674493f0f87" mode="Transparent" x="643" y="0" width="53" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Status]]></text>
</staticText>
<staticText>
<reportElement uuid="235c8f23-9c13-48cd-ab7a-e74363424caf" x="614" y="0" width="29" height="24"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Desc Linha]]></text>
</staticText>
<staticText>
<reportElement uuid="5de9c4ee-7a93-4086-9106-c7d2ad35497e" mode="Transparent" x="696" y="0" width="26" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Tar]]></text>
</staticText>
<staticText>
<reportElement uuid="ed37427e-5811-4fd0-b5ea-627d9a56448d" mode="Transparent" x="722" y="0" width="26" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Tax]]></text>
</staticText>
<staticText>
<reportElement uuid="8a929bec-8a30-4e9f-a2f2-32bd629776df" mode="Transparent" x="748" y="0" width="26" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Ped]]></text>
</staticText>
<staticText>
<reportElement uuid="6c2a21a8-3afa-4fc6-89b3-10f1887233c8" mode="Transparent" x="774" y="0" width="26" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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>
<text><![CDATA[Seg]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="15" splitType="Stretch">
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="0" width="44" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{NUMERO_PASSAGEM}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="e3a43e5d-2326-47c4-9d47-8c4d69d18d99" x="44" y="0" width="57" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{SERIE}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="101" y="0" width="47" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{SUB_SERIE}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb" x="148" y="0" width="37" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{PRE_IMPRESSO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="4cd8a33f-6aaa-47cb-949e-38c6b74d3d39" x="185" y="0" width="56" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="17011486-0d4c-4e22-b534-48e0bb025673" x="241" y="0" width="59" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423" x="300" y="0" width="57" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{NOME_AGENCIA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="7be97f5f-b36b-4679-befb-e5f2b4532963" x="357" y="0" width="46" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c" x="403" y="0" width="42" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{DATA_VIAGEM}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="7c0246f5-739b-440c-a242-915117bd9fd1" x="445" y="0" width="32" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="477" y="0" width="31" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{HORA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="4dafd61b-ce2b-4690-b029-2a1382113099" x="508" y="0" width="30" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{NUMASIENTO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="538" y="0" width="45" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{CATEGORIA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="b0200cfc-1b6b-4636-9f4b-5fe5d87c2687" x="583" y="0" width="31" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{SENTIDO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="27ec5d64-d949-4b02-a4a7-d6c5db93b3bd" x="643" y="0" width="53" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{STATUS_PASSAGEM}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="f5f01da5-4ea3-41ba-8b58-b1f7e8e70601" x="614" y="0" width="29" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{DESC_LINHA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="5c87326c-e72c-47fb-95d0-0cb47c42d16f" x="696" y="0" width="26" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="1ffff7a9-956e-489d-bdd4-61e0f8ce6a13" x="722" y="0" width="26" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{TX_EMBARQUE}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="4ee7ead3-26af-4d0d-b3aa-cf07e24b0594" x="748" y="0" width="26" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{PEDAGIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="07367eac-338d-4ba8-b718-fa416fa3f012" x="774" y="0" width="26" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{SEGURO}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="50">
<textField>
<reportElement uuid="995c4c61-6291-4e5f-8d92-b75502a10466" x="0" y="15" width="800" height="20"/>
<textElement textAlignment="Center" markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,242 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
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.Checkbox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Paging;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.enums.IndStatusBoleto;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioBilhetesVendidos;
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.RenderRelatorioVendasBilheteiro;
@Controller("relatorioBilhetesVendidosController")
@Scope("prototype")
public class RelatorioBilhetesVendidosController extends MyGenericForwardComposer {
/**
*
*/
private static final long serialVersionUID = 1L;
private static Logger log = Logger.getLogger(RelatorioVendasBilheteiroController.class);
@Autowired
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
private Datebox datInicial;
private Datebox datFinal;
private MyComboboxEstandar cmbEmpresa;
private List<Empresa> lsEmpresa;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
private MyTextbox txtNombrePuntoVenta;
private Bandbox bbPesquisaPuntoVenta;
private MyListbox puntoVentaList;
private MyListbox puntoVentaSelList;
private Paging pagingPuntoVenta;
private Checkbox chkVendido;
private Checkbox chkCancelado;
// private Checkbox chkTransferido;
// private Checkbox chkEntregue;
// private Checkbox chkReservado;
// private Checkbox chkExtraviado;
// private Checkbox chkReimpresso;
// private Checkbox chkMarcado;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
super.doAfterCompose(comp);
chkVendido.setChecked(true);
chkCancelado.setChecked(true);
// chkTransferido.setChecked(true);
// chkEntregue.setChecked(true);
// chkReservado.setChecked(true);
// chkExtraviado.setChecked(true);
// chkReimpresso.setChecked(true);
// chkMarcado.setChecked(true);
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
private void executarPesquisaAgencia() {
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class, pagingPuntoVenta.getPageSize());
puntoVentaBusqueda.addFilterILike("nombpuntoventa", "%" + txtNombrePuntoVenta.getValue() + "%");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
if (puntoVentaList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioVendasBilheteiroController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
}
public void onClick$btnPesquisa(Event ev) {
executarPesquisaAgencia();
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
puntoVentaSelList.removeItem(puntoVenta);
}
public void onDoubleClick$puntoVentaList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
puntoVentaSelList.addItemNovo(puntoVenta);
}
public void onClick$btnLimpar(Event ev) {
puntoVentaList.setData(new ArrayList<PuntoVenta>());
bbPesquisaPuntoVenta.setText("");
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
/**
* @throws Exception
*
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private void executarRelatorio() throws Exception {
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
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(";");
parametros.put("DATA_INICIAL", (java.util.Date) this.datInicial.getValue());
parametros.put("DATA_FINAL", (java.util.Date) this.datFinal.getValue());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioVendasBilheteiroController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
String status = "";
if (chkCancelado.isChecked()) {
status += "'" + IndStatusBoleto.C + "',";
}
// if (chkEntregue.isChecked()) {
// status += "'" + IndStatusBoleto.E + "',";
// }
// if (chkExtraviado.isChecked()) {
// status += "'" + IndStatusBoleto.X + "',";
// }
// if (chkMarcado.isChecked()) {
// status += "'" + IndStatusBoleto.M + "',";
// }
// if (chkReimpresso.isChecked()) {
// status += "'" + IndStatusBoleto.R + "',";
// }
// if (chkReservado.isChecked()) {
// status += "'" + IndStatusBoleto.S + "',";
// }
// if (chkTransferido.isChecked()) {
// status += "'" + IndStatusBoleto.T + "',";
// }
if (chkVendido.isChecked()) {
status += "'" + IndStatusBoleto.V + "',";
}
if (status.length() > 0) {
status = status.substring(0, status.length()-1);
} else {
status = null;
}
parametros.put("STATUS", status);
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;");
}
parametros.put("FILTROS", filtro.toString());
relatorio = new RelatorioBilhetesVendidos(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul", Labels.getLabel("relatorioVendasBilheteiroController.window.title"), args, MODAL);
}
}

View File

@ -0,0 +1,25 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioBilhetesVendidos extends DefaultItemMenuSistema {
public ItemMenuRelatorioBilhetesVendidos() {
super("indexController.mniRelatorioBilhetesVendidos.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOBILHTESVENDIDOS";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioBilhetesVendidos.zul",
Labels.getLabel("relatorioBilhetesVendidosController.window.title"), getArgs() ,desktop);
}
}

View File

@ -0,0 +1,128 @@
<?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="winFiltroRelatorioBilhetesVendidos"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioBilhetesVendidos"
apply="${relatorioBilhetesVendidosController}"
contentStyle="overflow:auto" height="450px" 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('relatorioBilhetesVendidosController.lbDatInicial.value')}" />
<datebox id="datInicial" width="90%"
format="dd/MM/yyyy" constraint="no empty"
maxlength="10" />
<label
value="${c:l('relatorioBilhetesVendidosController.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('relatorioBilhetesVendidosController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa"
buttonVisible="true" constraint="no empty"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioBilhetesVendidos$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('relatorioBilhetesVendidosController.lbPuntoVenta.value')}" />
<textbox id="txtNombrePuntoVenta"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
width="300px" mold="rounded" />
<button id="btnPesquisa"
image="/gui/img/find.png"
label="${c:l('relatorioLinhaOperacionalController.btnPesquisa.label')}" />
<button id="btnLimpar"
image="/gui/img/eraser.png"
label="${c:l('relatorioLinhaOperacionalController.btnLimpar.label')}" />
</hbox>
<paging id="pagingPuntoVenta"
pageSize="10" />
<listbox id="puntoVentaList"
mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" height="100%" width="700px">
<listhead>
<listheader
label="${c:l('relatorioBilhetesVendidosController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioBilhetesVendidosController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioBilhetesVendidosController.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('relatorioBilhetesVendidosController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioBilhetesVendidosController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioBilhetesVendidosController.lbNumero.value')}" />
<listheader width="5%" />
</listhead>
</listbox>
<paging id="pagingSelPuntoVenta" pageSize="10" />
</row>
</rows>
</grid>
<grid fixedLayout="true">
<columns>
<column width="40%"/>
<column width="40%"/>
</columns>
<rows>
<row>
<label value="${c:l('relatorioBilhetesVendidosController.lbStatus.value')}" />
<label value="" />
</row>
<row>
<checkbox id="chkVendido" label="${c:l('relatorioBilhetesVendidosController.vendido.label')}" />
<checkbox id="chkCancelado" label="${c:l('relatorioBilhetesVendidosController.cancelado.label')}" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>