fix bug #0009449 criado o relatorio de cancelamento automatico de ECF

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@72588 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno.neves 2017-08-11 23:23:11 +00:00
parent 5b3eb4ca56
commit c1a9f921b3
12 changed files with 1140 additions and 0 deletions

View File

@ -0,0 +1,152 @@
/**
*
*/
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.Relatorio;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
/**
* @author Bruno Neves
*
*/
public class RelatorioCancelamentoAutomaticoECF extends Relatorio {
public RelatorioCancelamentoAutomaticoECF(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 c.CORRIDA_ID AS Servico , ");
sql.append(" c.RUTA_ID AS Linhas, ");
sql.append(" c.PUNTOVENTA_ID AS agencia , ");
sql.append(" pOrigem.DESCPARADA AS origem, ");
sql.append(" pDestino.DESCPARADA AS destino, ");
sql.append(" c.NUMASIENTO AS poltronas, ");
sql.append(" c.NUMFOLIOSISTEMA AS passagem, ");
sql.append(" cs.DESCCLASE AS classe, ");
sql.append(" c.USUARIO_ID AS bilheteiro, ");
sql.append(" c.FECHORVENTA AS dataVenda, ");
sql.append(" c.PRECIOPAGADO AS tarifa, ");
sql.append(" c.IMPORTETAXAEMBARQUE AS taxa, ");
sql.append(" c.IMPORTEPEDAGIO AS pedagio, ");
sql.append(" c.IMPORTESEGURO AS seguro, ");
sql.append(" c.FECHORVIAJE AS dataEmbarque, ");
sql.append(" c.NUMFOLIOPREIMPRESO AS preImpresso, ");
sql.append(" fr4.NUMSERIE20 AS impressora, ");
sql.append(" e.NOMBEMPRESA AS empresa, ");
sql.append(" fp.DESCPAGO AS formaPagamento, ");
sql.append(" ROUND((100 * cfp.importe) / (coalesce(c.preciopagado,0)+coalesce(c.importetaxaembarque,0)+coalesce(c.importeseguro,0)+coalesce(c.importepedagio,0)+coalesce(c.importeoutros,0)),2) as porcentagem , ");
sql.append(" ct.NSU AS nsu, ");
sql.append(" ct.NUMAUTORIZACION AS autorizacao ");
sql.append(" FROM FISCAL_R4 fr4 ");
sql.append(" INNER JOIN caja c ");
sql.append(" ON c.CAJA_ID = fr4.CAJA_ID ");
sql.append(" INNER JOIN parada pOrigem ");
sql.append(" ON pOrigem.PARADA_ID = c.ORIGEN_ID ");
sql.append(" INNER JOIN parada pDestino ");
sql.append(" ON pDestino.PARADA_ID = c.DESTINO_ID ");
sql.append(" INNER JOIN CLASE_SERVICIO cs ");
sql.append(" ON cs.CLASESERVICIO_ID = c.CLASESERVICIO_ID ");
sql.append(" INNER JOIN EMPRESA e ");
sql.append(" ON e.EMPRESA_ID = c.EMPRESACORRIDA_ID ");
sql.append(" INNER JOIN CAJA_FORMAPAGO cfp ");
sql.append(" ON cfp.CAJA_ID = c.CAJA_ID ");
sql.append(" INNER JOIN FORMA_PAGO fp ");
sql.append(" ON fp.FORMAPAGO_ID = cfp.FORMAPAGO_ID ");
sql.append(" INNER JOIN CAJA_DET_PAGO cdp ");
sql.append(" ON cdp.CAJAFORMAPAGO_ID = cfp.CAJAFORMAPAGO_ID ");
sql.append(" INNER JOIN CAJA_TARJETA ct ");
sql.append(" ON ct.CAJADETPAGO_ID = cdp.CAJADETPAGO_ID ");
sql.append(" WHERE fr4.INDCANCELAMENTO = 'S' ");
//sql.append(" and to_date(fr4.DATAMOV,'yyyyMMdd') between to_date(:DATA_INICIAL,'dd/MM/yyyy') and to_date(:DATA_FINAL,'dd/MM/yyyy')");
sql.append(" and to_date(fr4.DATAMOV,'yyyyMMdd') >= :DATA_INICIAL ");
sql.append(" and to_date(fr4.DATAMOV,'yyyyMMdd') <= :DATA_FINAL ");
if(parametros.get("EMPRESA_ID") != null){
sql.append(" and c.EMPRESAPUNTOVENTA_ID = :EMPRESA_ID");
}
if (parametros.get("NUMPUNTOVENTA") != null) {
sql.append(" and c.puntoventa_id IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
}
sql.append(" order by fr4.CAJA_ID, cfp.CAJAFORMAPAGO_ID ");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
if(parametros.get("EMPRESA_ID") != null){
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()));
if(parametros.get("TIPOPUNTOVENTA_ID") != null && !parametros.get("TIPOPUNTOVENTA_ID").toString().equals("-1") ){
stmt.setInt("TIPOPUNTOVENTA_ID", Integer.valueOf(parametros.get("TIPOPUNTOVENTA_ID").toString()));
}
ResultSet rset = stmt.executeQuery();
while (rset.next()) {
Map<String, Object> dataResult = new HashMap<String, Object>();
dataResult.put("servico", rset.getString("servico"));
dataResult.put("linhas", rset.getString("linhas"));
dataResult.put("agencia", rset.getString("agencia"));
dataResult.put("origem", rset.getString("origem"));
dataResult.put("destino", rset.getString("destino"));
dataResult.put("poltronas", rset.getString("poltronas"));
dataResult.put("passagem", rset.getString("passagem"));
dataResult.put("classe", rset.getString("classe"));
dataResult.put("bilheteiro", rset.getString("bilheteiro"));
dataResult.put("dataVenda", rset.getString("dataVenda"));
dataResult.put("tarifa", rset.getString("tarifa"));
dataResult.put("taxa", rset.getString("taxa"));
dataResult.put("pedagio", rset.getString("pedagio"));
dataResult.put("seguro", rset.getString("seguro"));
dataResult.put("dataEmbarque", rset.getString("dataEmbarque"));
dataResult.put("preImpresso", rset.getString("preImpresso"));
dataResult.put("impressora", rset.getString("impressora"));
dataResult.put("empresa", rset.getString("empresa"));
dataResult.put("formaPagamento", rset.getString("formaPagamento"));
dataResult.put("porcentagem", rset.getString("porcentagem"));
dataResult.put("nsu", rset.getString("nsu"));
dataResult.put("autorizacao", rset.getString("autorizacao"));
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,24 @@
#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:
#Labels header
label.aidf=AIDF
label.empresa=Empresa
label.agencia=Agência
label.serie=Série
label.bilhete=Bilhetes
label.numeracao=Numeração
label.subserie=Subserie
label.formInicio=F. Inicio
label.formFim=F. Fim

View File

@ -0,0 +1,24 @@
#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:
#Labels header
label.aidf=AIDF
label.empresa=Empresa
label.agencia=Agência
label.serie=Série
label.bilhete=Bilhetes
label.numeracao=Numeração
label.subserie=Subserie
label.formInicio=F. Inicio
label.formFim=F. Fim

View File

@ -0,0 +1,438 @@
<?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="RelatorioAidfDetalhado" pageWidth="1561" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1521" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="671"/>
<property name="ireport.y" value="20"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="DATA_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" class="java.util.Date"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="servico" class="java.lang.String"/>
<field name="linhas" class="java.lang.String"/>
<field name="agencia" class="java.lang.String"/>
<field name="origem" class="java.lang.String"/>
<field name="destino" class="java.lang.String"/>
<field name="poltronas" class="java.lang.String"/>
<field name="passagem" class="java.lang.String"/>
<field name="classe" class="java.lang.String"/>
<field name="bilheteiro" class="java.lang.String"/>
<field name="dataVenda" class="java.lang.String"/>
<field name="tarifa" class="java.lang.String"/>
<field name="taxa" class="java.lang.String"/>
<field name="pedagio" class="java.lang.String"/>
<field name="seguro" class="java.lang.String"/>
<field name="dataEmbarque" class="java.lang.String"/>
<field name="preImpresso" class="java.lang.String"/>
<field name="impressora" class="java.lang.String"/>
<field name="empresa" class="java.lang.String"/>
<field name="formaPagamento" class="java.lang.String"/>
<field name="porcentagem" class="java.lang.String"/>
<field name="nsu" class="java.lang.String"/>
<field name="autorizacao" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="82" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="0" y="0" width="457" height="35" forecolor="#000000" backcolor="#FFFFFF" uuid="136a5066-d141-4362-af36-0780f0d16542"/>
<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>
<reportElement x="1347" y="0" width="100" height="25" uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1447" y="0" width="73" height="25" forecolor="#000000" backcolor="#FFFFFF" uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9"/>
<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[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement x="0" y="57" width="1520" height="1" uuid="bbf33a72-515f-42fc-8c79-e859aebca31d"/>
</line>
<textField pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1387" y="26" width="112" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4"/>
<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 evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement mode="Transparent" x="1500" y="26" width="20" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="314e312c-8f24-42de-8354-3c1f7241a985"/>
<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 mode="Transparent" x="1417" y="42" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF" uuid="4e030613-9cee-443e-9eaa-b19fa3090976"/>
<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>
<line>
<reportElement x="0" y="77" width="1520" height="1" uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf"/>
</line>
<textField>
<reportElement x="0" y="59" width="1520" height="14" uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="35" splitType="Stretch">
<line>
<reportElement x="1" y="34" width="1519" height="1" uuid="a11636cc-5ee1-44cc-8cd1-cbe2ebc47abb"/>
</line>
<staticText>
<reportElement x="1" y="0" width="45" height="35" uuid="7c1acbc7-3b7f-49c7-ada8-cda4a75ac37d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Servico]]></text>
</staticText>
<staticText>
<reportElement x="46" y="0" width="33" height="35" uuid="a3ef27a8-3444-42e0-8f5e-b834002befa1"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Linhas]]></text>
</staticText>
<staticText>
<reportElement x="79" y="0" width="39" height="35" uuid="3096084b-a597-477f-90e0-329da5bd9efb"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Agência]]></text>
</staticText>
<staticText>
<reportElement x="118" y="0" width="130" height="35" uuid="a2b668bf-0bcd-4b8e-a218-42717b42f1ec"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Origem]]></text>
</staticText>
<staticText>
<reportElement x="248" y="0" width="128" height="35" uuid="1f84b934-0ba1-4592-8909-8061388e1f95"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Destino]]></text>
</staticText>
<staticText>
<reportElement x="375" y="0" width="49" height="35" uuid="29e0a912-415b-4511-9411-ebc36fde6bc5"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Poltrona]]></text>
</staticText>
<staticText>
<reportElement x="424" y="0" width="56" height="35" uuid="701ffe40-a948-4804-ba98-90a5992c820e"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Passagem]]></text>
</staticText>
<staticText>
<reportElement x="480" y="0" width="80" height="35" uuid="b94c93bd-2f06-4623-8b34-346d85b998ae"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Classe]]></text>
</staticText>
<staticText>
<reportElement x="560" y="0" width="46" height="35" uuid="e7640c25-3012-4667-8a74-6ef106618def"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Bilheteiro]]></text>
</staticText>
<staticText>
<reportElement x="606" y="0" width="111" height="35" uuid="d58f54c6-a1e1-4a8d-8890-6dca3e0029d7"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Dt. Venda]]></text>
</staticText>
<staticText>
<reportElement x="717" y="0" width="67" height="35" uuid="2e7ed8b5-ee4f-4461-a8d3-37336a77e8e3"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Tarifa]]></text>
</staticText>
<staticText>
<reportElement x="784" y="0" width="67" height="35" uuid="e884d780-9b7b-46d1-baf7-c152db61def5"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Taxa]]></text>
</staticText>
<staticText>
<reportElement x="851" y="0" width="67" height="35" uuid="39f32b8b-5ba5-429a-9d3e-36b8539eecb1"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Pedágio]]></text>
</staticText>
<staticText>
<reportElement x="918" y="0" width="46" height="35" uuid="33f63118-aede-4a0e-b5ae-20bac1f98423"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Seguro]]></text>
</staticText>
<staticText>
<reportElement x="964" y="0" width="65" height="35" uuid="860c4a78-faf6-4275-8616-2f9be43e87bc"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Dt. Embarque]]></text>
</staticText>
<staticText>
<reportElement x="1029" y="0" width="49" height="35" uuid="7272a0c3-db5d-405d-bf93-340ab13016ab"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Pre Impresso]]></text>
</staticText>
<staticText>
<reportElement x="1078" y="0" width="108" height="35" uuid="204caf07-ad87-487f-a618-2b6e78cb0963"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Impressora]]></text>
</staticText>
<staticText>
<reportElement x="1186" y="0" width="67" height="35" uuid="e40409a9-95db-4870-9d2c-c3dcd79e4f9f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Empresa]]></text>
</staticText>
<staticText>
<reportElement x="1253" y="0" width="67" height="35" uuid="5c4f4887-b68b-4dad-9c0d-9435c3104a58"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Forma Pagamento]]></text>
</staticText>
<staticText>
<reportElement x="1320" y="0" width="67" height="35" uuid="f85ecd03-9130-4dda-9be2-6958c95bee5c"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Porcentagem]]></text>
</staticText>
<staticText>
<reportElement x="1387" y="0" width="67" height="35" uuid="3e2c12ab-727e-47ee-8bc2-41cb49ca3b7f"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[NSU]]></text>
</staticText>
<staticText>
<reportElement x="1454" y="0" width="67" height="35" uuid="95b74177-e47f-45d4-8a88-1a892dd93c7a"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Autorização]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="22" splitType="Stretch">
<textField>
<reportElement x="0" y="0" width="46" height="22" uuid="24619512-d697-48d8-9106-50b0875ab36c"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="46" y="0" width="33" height="22" uuid="46b2bcb4-118f-4e0d-af04-8b7ed68f7d36"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{linhas}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="79" y="0" width="39" height="22" uuid="cae2eea8-65ad-4830-b135-eac2a9bd41eb"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="118" y="0" width="130" height="22" uuid="a899bfe9-a3fa-486c-82d5-9d0158420648"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="248" y="0" width="127" height="22" uuid="ff3626a5-8482-4ffe-9a7b-718e3206f5cc"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="376" y="0" width="48" height="22" uuid="2e3bd0b0-c2d6-4857-8a25-f0d68f3a635d"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{poltronas}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="424" y="0" width="56" height="22" uuid="cdad132b-e66a-4114-9711-8ccd0a2bf3e4"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{passagem}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="480" y="0" width="80" height="22" uuid="d1bbe85e-8dd6-4673-963e-9ebb42351466"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{classe}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="560" y="0" width="46" height="22" uuid="162c901f-d978-4fc7-88db-5b1b136c0211"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{bilheteiro}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="606" y="0" width="111" height="22" uuid="74ccc5f1-8284-4c2f-9b73-786940634abd"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataVenda}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="717" y="0" width="67" height="22" uuid="9b5f6d1e-874a-44ce-beee-ea99e762f23b"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="784" y="0" width="67" height="22" uuid="94e4a203-4418-4028-af42-a20b7fe1fa44"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{taxa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="851" y="0" width="67" height="22" uuid="7122e0aa-6ba6-4ff8-b3fb-94028d2b50ab"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="918" y="0" width="46" height="22" uuid="e9053f79-e307-4bdb-84be-7780b2f4da78"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="964" y="0" width="65" height="22" uuid="43d44851-66ae-4242-a53d-dede219e7854"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{dataEmbarque}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1029" y="0" width="49" height="22" uuid="51c8b951-90ae-48ae-a61c-ac50a321ae87"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{preImpresso}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1078" y="0" width="108" height="22" uuid="763a0f90-d2f8-4c93-a4dc-50eba56039d0"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{impressora}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1186" y="0" width="67" height="22" uuid="75346010-3cbf-4937-9c28-349888700da5"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1253" y="0" width="67" height="22" uuid="f26ad349-b04e-43ac-a64e-39193d300ea3"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{formaPagamento}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1320" y="0" width="67" height="22" uuid="e3e2c533-da6f-4364-af5f-7272fc50ec52"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{porcentagem}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1387" y="0" width="67" height="22" uuid="d34c6a84-04ea-4bb3-ba97-17f3c178e5d5"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{nsu}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="1454" y="0" width="67" height="22" uuid="40a31a0a-7d77-4dce-a726-08718787cd8e"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{autorizacao}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band height="77" splitType="Stretch"/>
</summary>
<noData>
<band height="50">
<textField>
<reportElement x="46" y="24" width="530" height="26" uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,241 @@
/**
*
*/
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.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.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioCancelamentoAutomaticoECF;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioCancelamentoAutomaticoECF;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioCancelamentoAutomaticoECFSelecionados;
/**
* @author Bruno Neves
*
*/
@Controller("relatorioCancelamentoAutomaticoECFController")
@Scope("prototype")
public class RelatorioCancelamentoAutomaticoECFController extends MyGenericForwardComposer {
/**
*
*/
private static final long serialVersionUID = 1L;
private static Logger log = Logger.getLogger(RelatorioCancelamentoAutomaticoECFController.class);
@Autowired
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
@Autowired
private TipoPuntoVentaService tipoPuntoVentaService;
private Datebox datInicial;
private Datebox datFinal;
private MyComboboxEstandar cmbEmpresa;
private List<Empresa> lsEmpresa;
private MyComboboxEstandar cmbTipoPuntoVenta;
private List<TipoPuntoVenta> lsTipoPuntoVenta;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
private MyTextbox txtNombrePuntoVenta;
private Bandbox bbPesquisaPuntoVenta;
private MyListbox puntoVentaList;
private MyListbox puntoVentaSelList;
private Paging pagingPuntoVenta;
private MyTextbox txtBilheteiro;
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
super.doAfterCompose(comp);
puntoVentaList.setItemRenderer(new RenderRelatorioCancelamentoAutomaticoECF());
puntoVentaSelList.setItemRenderer(new RenderRelatorioCancelamentoAutomaticoECFSelecionados());
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
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("relatorioCancelamentoAutomaticoECFController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
}
public void onClick$btnPesquisa(Event ev) {
executarPesquisa();
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaSelList.getSelected();
puntoVentaSelList.removeItem(puntoVenta);
}
public void onDoubleClick$puntoVentaList(Event ev) {
PuntoVenta puntoVenta = (PuntoVenta) puntoVentaList.getSelected();
puntoVentaSelList.addItemNovo(puntoVenta);
}
public void onClick$btnLimpar(Event ev) {
puntoVentaList.setData(new ArrayList<PuntoVenta>());
bbPesquisaPuntoVenta.setText("");
}
public 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("relatorioCancelamentoAutomaticoECFController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
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;");
}
filtro.append(" Canal Vendas: ");
// Comboitem itemTipoPuntoVenda = cmbTipoPuntoVenta.getSelectedItem();
// if (itemTipoPuntoVenda != null) {
// TipoPuntoVenta tpv = (TipoPuntoVenta) itemTipoPuntoVenda.getValue();
// parametros.put("TIPOPUNTOVENTA_ID", tpv.getTipoptovtaId());
// parametros.put("TIPOPUNTOVENTA", tpv.getDesctipo());
// filtro.append(tpv.getDesctipo() + ";");
// } else {
// filtro.append(" Todos;");
// }
parametros.put("FILTROS", filtro.toString());
relatorio = new RelatorioCancelamentoAutomaticoECF(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioCancelamentoAutomaticoECFController.window.title"), args, MODAL);
}
public MyListbox getPuntoVentaSelList() {
return puntoVentaSelList;
}
public void setPuntoVentaSelList(MyListbox puntoVentaSelList) {
this.puntoVentaSelList = puntoVentaSelList;
}
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
return lsTipoPuntoVenta;
}
public void setLsTipoPuntoVenta(List<TipoPuntoVenta> lsTipoPuntoVenta) {
this.lsTipoPuntoVenta = lsTipoPuntoVenta;
}
}

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 ItemMenuRelatorioCancelamentoAutomaticoECF extends DefaultItemMenuSistema {
public ItemMenuRelatorioCancelamentoAutomaticoECF() {
super("indexController.mniRelatorioCancelamentoAutomaticoECF.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOCANCELAMENTOAUTOMATICOECF";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioCancelamentoAUtomaticoECF.zul",
Labels.getLabel("relatorioAidfDetalhadoController.window.title"), getArgs(), desktop);
}
}

View File

@ -126,6 +126,7 @@ analitico=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.MenuA
analitico.item=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.ItemMenuAnalitico
analitico.gerenciais=com.rjconsultores.ventaboletos.web.utilerias.menu.item.analitico.gerenciais.SubMenuGerenciais
analitico.gerenciais.aidfDetalhado=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioAidfDetalhado
analitico.gerenciais.cancelamentoAutomaticoECF=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioCancelamentoAutomaticoECF
analitico.gerenciais.confFormulario=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioConferenciaFormularioFisico
analitico.gerenciais.difTransf=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioDiferencasTransferencias
analitico.gerenciais.empresaCorrida=com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios.ItemMenuRelatorioEmpresaCorrida

View File

@ -0,0 +1,40 @@
/**
*
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
/**
* @author Bruno Neves
*
*/
public class RenderRelatorioCancelamentoAutomaticoECF implements ListitemRenderer {
@Override
public void render(Listitem lstm, Object o) throws Exception {
PuntoVenta puntoVenta = (PuntoVenta) o;
Listcell lc = new Listcell(puntoVenta.getNombpuntoventa());
lc.setParent(lstm);
Empresa empresa = puntoVenta.getEmpresa();
if (empresa != null) {
lc = new Listcell(empresa.getNombempresa());
} else {
lc = new Listcell("");
}
lc.setParent(lstm);
lc = new Listcell(puntoVenta.getNumPuntoVenta());
lc.setParent(lstm);
lstm.setAttribute("data", puntoVenta);
}
}

View File

@ -0,0 +1,61 @@
/**
*
*/
package com.rjconsultores.ventaboletos.web.utilerias.render;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zul.Button;
import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
/**
* @author Bruno Neves
*
*/
public class RenderRelatorioCancelamentoAutomaticoECFSelecionados implements ListitemRenderer {
public void render(Listitem lstm, Object o) throws Exception {
PuntoVenta puntoVenta = (PuntoVenta) o;
Listcell lc = new Listcell(puntoVenta.getNombpuntoventa());
lc.setParent(lstm);
Empresa empresa = puntoVenta.getEmpresa();
if (empresa != null) {
lc = new Listcell(empresa.getNombempresa());
} else {
lc = new Listcell("");
}
lc.setParent(lstm);
lc = new Listcell(puntoVenta.getNumPuntoVenta());
lc.setParent(lstm);
Button btn = new Button();
lc = new Listcell();
lc.setParent(lstm);
btn.setWidth("16");
btn.setHeight("16");
btn.setImage("/gui/img/remove.png");
btn.addEventListener("onClick", new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
MyListbox listBox = (MyListbox) event.getTarget().getParent().getParent().getParent();
Listitem listItem = (Listitem) event.getTarget().getParent().getParent();
listBox.removeItem((PuntoVenta) listItem.getAttribute("data"));
}
});
lc.appendChild(btn);
lstm.setAttribute("data", puntoVenta);
}
}

View File

@ -272,6 +272,7 @@ indexController.mniRelatorioGratuidade.label = Gratuidades
indexController.mniRelatorioGratuidadeIdosoDeficiente.label = Gratuidades Idoso/Deficiente
indexController.mniRelatorioVendasBilheteiro.label = Vendas por Bilheteiro
indexController.mniRelatorioVendasBilheteiroSintetico.label = Vendas por Bilheteiro Sintético
indexController.mniRelatorioCancelamentoAutomaticoECF.label = Relatório de Cancelamento Automatico ECF
indexController.mniRelatorioAgenciasNaoImportadas.label = Relatório de Agências não Importadas
indexController.mniRelatorioCheckin.label = Checkin's
indexController.mniFechamentoParamgeral.label = Configuração de Boleto
@ -694,6 +695,18 @@ relatorioVendasBilheteiroSinteticoController.lbNumero.value = Número Agência
relatorioVendasBilheteiroSinteticoController.lbBilheteiro.value = Bilheteiro
relatorioVendasBilheteiroSinteticoController.lbCanalVendas.value = Canal Vendas
#relatório de cancelamento automático ECF
relatorioCancelamentoAutomaticoECFController.window.title = Relatório de Cancelamento Automatico ECF
relatorioCancelamentoAutomaticoECFController.lbDatInicial.value = Data inicial
relatorioCancelamentoAutomaticoECFController.lbDatFinal.value = Data final
relatorioCancelamentoAutomaticoECFController.lbPuntoVenta.value = Agência
relatorioCancelamentoAutomaticoECFController.lbEmpresa.value = Empresa
relatorioCancelamentoAutomaticoECFController.btnPesquisa.label = Buscar
relatorioCancelamentoAutomaticoECFController.btnLimpar.label = Limpar
relatorioCancelamentoAutomaticoECFController.lbNumero.value = Número Agência
relatorioCancelamentoAutomaticoECFController.lbBilheteiro.value = Bilheteiro
relatorioCancelamentoAutomaticoECFController.lbCanalVendas.value = Canal Vendas
#Relatório de Demandas
relatorioDemandasController.window.title = Relatório de Demandas
relatorioDemandasController.lbDatInicial.value = Data Inicial

View File

@ -0,0 +1,121 @@
<?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="winFiltroRelatorioCancelamentoAutomaticoECF"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioCancelamentoAutomaticoECF"
apply="${relatorioCancelamentoAutomaticoECFController}"
contentStyle="overflow:auto" height="320px" width="600px"
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('relatorioCancelamentoAutomaticoECFController.lbDatInicial.value')}" />
<datebox id="datInicial" width="90%"
format="dd/MM/yyyy" constraint="no empty"
maxlength="10" />
<label
value="${c:l('relatorioCancelamentoAutomaticoECFController.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('relatorioCancelamentoAutomaticoECFController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioCancelamentoAutomaticoECF$composer.lsEmpresa}"
width="98%" />
</row>
<!-- row spans="1,1,2">
<label
value="${c:l('relatorioCancelamentoAutomaticoECFController.lbCanalVendas.value')}" />
<combobox id="cmbTipoPuntoVenta"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioCancelamentoAutomaticoECF$composer.lsTipoPuntoVenta}"
width="98%" />
</row-->
<row spans="1,3">
<label
value="Agencia" />
<bandbox id="bbPesquisaPuntoVenta" width="98%"
mold="rounded" readonly="true">
<bandpopup>
<vbox>
<hbox>
<label
value="${c:l('relatorioCancelamentoAutomaticoECFController.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="530px">
<listhead>
<listheader
label="${c:l('relatorioCancelamentoAutomaticoECFController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioCancelamentoAutomaticoECFController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioCancelamentoAutomaticoECFController.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="98%">
<listhead>
<listheader
label="${c:l('relatorioCancelamentoAutomaticoECFController.lbPuntoVenta.value')}" />
<listheader width="35%"
label="${c:l('relatorioCancelamentoAutomaticoECFController.lbEmpresa.value')}" />
<listheader width="20%"
label="${c:l('relatorioCancelamentoAutomaticoECFController.lbNumero.value')}" />
<listheader width="5%" />
</listhead>
</listbox>
<paging id="pagingSelPuntoVenta" pageSize="10" />
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>