fixed bug #0006962 desenvolvimento Relatório Cancelamento Transação
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@51973 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
53116b72da
commit
15fa0a8d23
|
@ -0,0 +1,139 @@
|
|||
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;
|
||||
|
||||
public class RelatorioCancelamentoTransacao extends Relatorio {
|
||||
|
||||
public RelatorioCancelamentoTransacao(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
this.setCustomDataSource(new ArrayDataSource(this) {
|
||||
|
||||
public void initDados() throws Exception {
|
||||
Connection conexao = this.relatorio.getConexao();
|
||||
Map<String, Object> parametros = this.relatorio.getParametros();
|
||||
NamedParameterStatement stmt = new NamedParameterStatement(conexao, getSql());
|
||||
|
||||
stmt.setTimestamp("dataInicial", new Timestamp(DateUtil.inicioFecha((Date) parametros.get("DATA_INICIAL")).getTime()));
|
||||
stmt.setTimestamp("dataFinal", 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("empresa", rset.getString("empresa"));
|
||||
dataResult.put("dataSolicitacaoCliente", rset.getDate("dataSolicitacaoCliente"));
|
||||
dataResult.put("nomePassageiro", rset.getString("nomePassageiro"));
|
||||
dataResult.put("dataCompra", rset.getDate("dataCompra"));
|
||||
dataResult.put("numeroPassagem", rset.getString("numeroPassagem"));
|
||||
dataResult.put("localizador", rset.getString("localizador"));
|
||||
dataResult.put("dataViagem", rset.getTimestamp("dataViagem"));
|
||||
dataResult.put("servico", rset.getString("servico"));
|
||||
dataResult.put("assento", rset.getString("assento"));
|
||||
dataResult.put("valorTotalCompra", rset.getBigDecimal("valorTotalCompra"));
|
||||
dataResult.put("valorCompra", rset.getBigDecimal("valorCompra"));
|
||||
dataResult.put("valorASerRestituido", rset.getBigDecimal("valorASerRestituido"));
|
||||
|
||||
this.dados.add(dataResult);
|
||||
}
|
||||
|
||||
this.resultSet = rset;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {
|
||||
}
|
||||
|
||||
private String getSql() {
|
||||
StringBuilder sql = new StringBuilder();
|
||||
|
||||
sql.append("WITH OCD_TEMP AS( ");
|
||||
sql.append("SELECT ocd.FECINC as dataSolicitacaoCliente, ");
|
||||
sql.append(" VALOR_TARJETA as valorASerRestituido, ");
|
||||
sql.append(" e.NOMBEMPRESA as empresa, ");
|
||||
sql.append(" b.NOMBPASAJERO as nomePassageiro, ");
|
||||
sql.append(" c.fechorventa as dataCompra, ");
|
||||
sql.append("b.numfoliosistema as numeroPassagem, ");
|
||||
sql.append(" b.numoperacion as localizador, ");
|
||||
sql.append(" b.FECHORVIAJE as dataViagem, ");
|
||||
sql.append(" b.CORRIDA_ID as servico, ");
|
||||
sql.append(" b.NUMASIENTO as assento, ");
|
||||
sql.append(" c.CAJA_ID as caja_id, ");
|
||||
sql.append(" b.boletooriginal_id, ");
|
||||
sql.append(" b.boleto_id, ");
|
||||
sql.append("(COALESCE(c.preciopagado,0) + COALESCE(c.importeoutros,0) + COALESCE(c.importepedagio,0) + COALESCE(c.importeseguro,0) + COALESCE(c.importetaxaembarque,0)) AS valorCompra ");
|
||||
sql.append("FROM CAJA c ");
|
||||
sql.append("INNER JOIN BOLETO b ON c.numoperacion = b.numoperacion ");
|
||||
sql.append(" AND b.numfoliosistema = c.numfoliosistema ");
|
||||
sql.append("INNER JOIN OCD ocd ON ocd.BOLETO_ID = b.BOLETO_ID ");
|
||||
sql.append("INNER JOIN MARCA m ON m.marca_id = b.marca_id ");
|
||||
sql.append("INNER JOIN EMPRESA e ON e.empresa_id = m.empresa_id ");
|
||||
sql.append("WHERE ocd.FECINC BETWEEN :dataInicial AND :dataFinal ");
|
||||
|
||||
if (parametros.get("EMPRESA_ID") != null) {
|
||||
sql.append(" AND e.empresa_id = " + parametros.get("EMPRESA_ID"));
|
||||
}
|
||||
if (parametros.get("NUMPUNTOVENTA") != null) {
|
||||
sql.append(" AND ocd.puntoventa_id IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
|
||||
}
|
||||
|
||||
sql.append("),");
|
||||
sql.append("ocds_total_compra AS ");
|
||||
sql.append("(SELECT c.numoperacion AS numoperacion_cc, ");
|
||||
sql.append("(SUM(COALESCE(c.preciopagado,0) ");
|
||||
sql.append("+ COALESCE(c.importeoutros,0) ");
|
||||
sql.append("+ COALESCE(c.importepedagio,0) ");
|
||||
sql.append("+ COALESCE(c.importeseguro,0) ");
|
||||
sql.append("+ COALESCE(c.importetaxaembarque,0) ");
|
||||
sql.append("+ COALESCE(e.impingreso,0))) ");
|
||||
sql.append("+ ");
|
||||
sql.append("COALESCE((SELECT ");
|
||||
sql.append("SUM(COALESCE(c2.preciopagado,0) ");
|
||||
sql.append("+ COALESCE(c2.importeoutros,0) ");
|
||||
sql.append("+ COALESCE(c2.importepedagio,0) ");
|
||||
sql.append("+ COALESCE(c2.importeseguro,0) ");
|
||||
sql.append("+ COALESCE(c2.importetaxaembarque,0) ");
|
||||
sql.append("+ COALESCE(e2.impingreso,0)) ");
|
||||
sql.append("FROM CAJA c2 ");
|
||||
sql.append("INNER JOIN BOLETO b ON c2.numoperacion = b.numoperacion ");
|
||||
sql.append(" AND b.numfoliosistema = c2.numfoliosistema ");
|
||||
sql.append("LEFT JOIN evento_extra e2 ON e2.boleto_id = b.boleto_id ");
|
||||
sql.append(" AND e2.impingreso > 0 ");
|
||||
sql.append("LEFT JOIN OCD ocd ON ocd.BOLETO_ID = b.BOLETO_ID ");
|
||||
sql.append(" WHERE c2.numoperacion = c.numoperacion ");
|
||||
sql.append(" AND ocd.OCD_ID is null),0) ");
|
||||
sql.append("AS valorTotalCompra ");
|
||||
sql.append("FROM CAJA c ");
|
||||
sql.append("INNER JOIN OCD_TEMP o ON c.caja_id = o.caja_id ");
|
||||
sql.append("LEFT JOIN evento_extra e ON e.boleto_id = ");
|
||||
sql.append("( ");
|
||||
sql.append("CASE ");
|
||||
sql.append("WHEN o.boletooriginal_id IS NULL ");
|
||||
sql.append("THEN o.boleto_id ");
|
||||
sql.append("ELSE o.boletooriginal_id ");
|
||||
sql.append(" END) ");
|
||||
sql.append("AND e.impingreso > 0 ");
|
||||
sql.append("GROUP BY c.numoperacion ");
|
||||
sql.append(") ");
|
||||
|
||||
sql.append("SELECT * FROM OCD_TEMP ocd_temp ");
|
||||
sql.append("INNER JOIN ocds_total_compra ocdst ");
|
||||
sql.append("ON ocd_temp.localizador = ocdst.numoperacion_cc ");
|
||||
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
#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.empresa=Empresa
|
||||
label.dataSolicitacaoCliente=Data Solcitação Cliente
|
||||
label.nomePassageiro=Nome do Passageiro
|
||||
label.dataCompra=Data da Compra
|
||||
label.numeroPassagem=Nº Passagem
|
||||
label.localizador=Localizador
|
||||
label.dataViagem=Data da Viagem
|
||||
label.horarioViagem=Horário da Viagem
|
||||
label.servico=Serviço
|
||||
label.assento=Assento
|
||||
label.valorCompra = Valor da Compra
|
||||
label.valorTotalCompra=Valor Total da Compra
|
||||
label.valorASerRestituido=Valor a ser Restituído
|
|
@ -0,0 +1,27 @@
|
|||
#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.empresa=Empresa
|
||||
label.dataSolicitacaoCliente=Data Solcitação Cliente
|
||||
label.nomePassageiro=Nome do Passageiro
|
||||
label.dataCompra=Data da Compra
|
||||
label.numeroPassagem=Nº Passagem
|
||||
label.localizador=Localizador
|
||||
label.dataViagem=Data da Viagem
|
||||
label.horarioViagem=Horário da Viagem
|
||||
label.servico=Serviço
|
||||
label.assento=Assento
|
||||
label.valorCompra = Valor da Compra
|
||||
label.valorTotalCompra=Valor Total da Compra
|
||||
label.valorASerRestituido=Valor a ser Restituído
|
Binary file not shown.
|
@ -0,0 +1,372 @@
|
|||
<?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="RelatorioCancelamentoTransacao" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
|
||||
<property name="ireport.zoom" value="1.2100000000000046"/>
|
||||
<property name="ireport.x" value="47"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<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="empresa" class="java.lang.String"/>
|
||||
<field name="dataSolicitacaoCliente" class="java.util.Date"/>
|
||||
<field name="nomePassageiro" class="java.lang.String"/>
|
||||
<field name="dataCompra" class="java.util.Date"/>
|
||||
<field name="numeroPassagem" class="java.lang.String"/>
|
||||
<field name="localizador" class="java.lang.String"/>
|
||||
<field name="dataViagem" class="java.util.Date"/>
|
||||
<field name="servico" class="java.lang.String"/>
|
||||
<field name="assento" class="java.lang.String"/>
|
||||
<field name="valorTotalCompra" class="java.math.BigDecimal"/>
|
||||
<field name="valorASerRestituido" class="java.math.BigDecimal"/>
|
||||
<field name="valorCompra" class="java.math.BigDecimal"/>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<pageHeader>
|
||||
<band height="76" splitType="Stretch">
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="0" y="0" width="457" height="35" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="12" 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="" isBlankWhenNull="false">
|
||||
<reportElement uuid="3dca1764-758d-4e1c-80c0-85cc02e47813" mode="Transparent" x="0" y="42" width="46" 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[$R{cabecalho.periodo}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="8948c0fc-e878-45e2-8505-7934add98ab9" mode="Transparent" x="116" y="42" width="10" 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[$R{cabecalho.periodoA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement uuid="7f1b9715-baaf-4e20-9a9d-a7ec4c696587" mode="Transparent" x="46" y="42" width="62" 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{DATA_INICIAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
|
||||
<reportElement uuid="64632058-9466-479c-ae28-0a11c9ed2c7f" mode="Transparent" x="132" y="42" width="62" 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{DATA_FINAL}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="615" y="0" width="100" height="25"/>
|
||||
<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 uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="715" y="0" width="86" height="25" 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[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="668" y="26" width="112" 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 evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="781" y="26" width="20" 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="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="701" y="42" width="100" height="15" 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>
|
||||
<reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="801" height="14"/>
|
||||
<box>
|
||||
<topPen lineWidth="1.0"/>
|
||||
<leftPen lineWidth="1.0"/>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
<rightPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</pageHeader>
|
||||
<columnHeader>
|
||||
<band height="21" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="337f441e-ca7f-402c-8407-f3406ec2b4b0" x="2" y="0" width="66" height="18" isPrintWhenDetailOverflows="true"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="0ddedacd-7ebc-4aa7-9535-2f5695ee9c8c" x="523" y="0" width="34" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.servico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="8506ac47-d72f-4ef5-b53a-da3970fb7edc" x="453" y="0" width="70" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.horarioViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="859d4892-377e-4313-8a88-6454a88ce936" x="392" y="0" width="61" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="d9a2225c-8883-4a35-9c16-8af9bcfe6577" x="233" y="0" width="61" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataCompra}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="0583701e-920a-473b-b1e4-6137f8d022df" mode="Transparent" x="126" y="0" width="107" height="18" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nomePassageiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="82e75550-fae7-4cea-acf9-f9f56f083400" x="557" y="0" width="33" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.assento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="f9ea7239-48e1-4207-b957-dc4aadcaa590" mode="Transparent" x="68" y="0" width="58" height="18" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataSolicitacaoCliente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="80e816ef-5cd3-40f5-a4a3-889987dd4809" x="635" y="0" width="86" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.valorTotalCompra}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="c6bbe161-315b-43a3-bc6d-bd1ebad05d0a" x="721" y="0" width="81" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.valorASerRestituido}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="876fa163-5ff5-4eef-b32c-0f5b6b40672c" x="294" y="0" width="50" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.numeroPassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="77a2f088-9771-472c-bffe-cd1345050e51" x="344" y="0" width="48" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.localizador}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="2daa8450-9151-4464-abd8-29d744df1e26" x="590" y="0" width="45" height="18"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="1.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.valorCompra}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnHeader>
|
||||
<detail>
|
||||
<band height="10" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="bfb9d635-bbc1-4e92-890a-df8299bc8daa" x="2" y="0" width="66" height="10" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top">
|
||||
<font size="7" isBold="false" isItalic="false"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="df235806-d3f2-4ff7-bd90-9876dea444d7" x="68" y="0" width="58" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataSolicitacaoCliente}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="7f877f7d-2ddb-4f0d-81ef-80d86ae5bdad" x="126" y="0" width="107" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nomePassageiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="e09a8ac7-2a94-4703-9149-b1f867ebbbc8" x="233" y="0" width="61" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataCompra}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="303a18c8-a019-4a40-bbf0-8c96967ed2d3" x="294" y="0" width="50" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{numeroPassagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="4fba79a9-5f29-44d3-a018-26e006559f84" x="344" y="0" width="48" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{localizador}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="62488c65-3c3b-4e4a-a1d1-f695670378fe" x="392" y="0" width="61" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="HH:mm" isBlankWhenNull="true">
|
||||
<reportElement uuid="5d727711-4ac3-48c0-8bba-ad89e805819a" x="453" y="0" width="70" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="783c8dd9-8948-410a-ac5a-838c00414a49" x="523" y="0" width="34" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{servico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="53a504d9-ee88-4c3f-8046-4263a85f9698" x="557" y="0" width="33" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{assento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d66fd8fb-02b5-4dca-8d9b-bd1bd4f6eb60" x="635" y="0" width="86" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorTotalCompra}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="¤ #,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="771ee060-8d92-4c58-9a46-20d65fe7a1ea" x="721" y="0" width="81" height="10"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorASerRestituido}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="¤ #,##0.00">
|
||||
<reportElement uuid="a6c5fd31-a6fa-4c8a-98de-27ab2c6014be" x="590" y="0" width="45" height="10"/>
|
||||
<textElement>
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{valorCompra}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<summary>
|
||||
<band splitType="Stretch"/>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="26">
|
||||
<textField>
|
||||
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="0" y="0" width="802" height="26"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="11" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -0,0 +1,231 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
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.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.relatorios.impl.RelatorioCancelamentoTransacao;
|
||||
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;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderRelatorioVendasBilheteiroSelecionados;
|
||||
|
||||
@Controller("relatorioCancelamentoTransacaoController")
|
||||
@Scope("prototype")
|
||||
public class RelatorioCancelamentoTransacaoController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Datebox datInicial;
|
||||
private Datebox datFinal;
|
||||
private MyComboboxEstandar cmbEmpresa;
|
||||
private List<Empresa> lsEmpresa;
|
||||
private Paging pagingPuntoVenta;
|
||||
private MyTextbox txtNombrePuntoVenta;
|
||||
private MyListbox puntoVentaList;
|
||||
private MyListbox puntoVentaSelList;
|
||||
|
||||
@Autowired
|
||||
private EmpresaService empresaService;
|
||||
@Autowired
|
||||
private DataSource dataSourceRead;
|
||||
@Autowired
|
||||
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
lsEmpresa = empresaService.obtenerTodos();
|
||||
super.doAfterCompose(comp);
|
||||
puntoVentaList.setItemRenderer(new RenderRelatorioVendasBilheteiro());
|
||||
puntoVentaSelList.setItemRenderer(new RenderRelatorioVendasBilheteiroSelecionados());
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws Exception
|
||||
*
|
||||
*/
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
private void executarRelatorio() throws Exception {
|
||||
{
|
||||
if (datInicial != null && datFinal != null && datFinal.getValue().compareTo(datInicial.getValue()) < 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("relatorioCancelamentoTransacaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
} else
|
||||
{
|
||||
Relatorio relatorio;
|
||||
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
|
||||
StringBuilder filtro = new StringBuilder();
|
||||
|
||||
filtro.append("Início período: ");
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(datInicial.getValue());
|
||||
filtro.append(cal.get(Calendar.DATE) + "/");
|
||||
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
|
||||
filtro.append(cal.get(Calendar.YEAR) + "; ");
|
||||
|
||||
filtro.append("Fim período: ");
|
||||
cal.setTime(datFinal.getValue());
|
||||
filtro.append(cal.get(Calendar.DATE) + "/");
|
||||
filtro.append((cal.get(Calendar.MONTH) + 1) + "/");
|
||||
filtro.append(cal.get(Calendar.YEAR) + "; ");
|
||||
|
||||
parametros.put("DATA_INICIAL", (java.util.Date) datInicial.getValue());
|
||||
parametros.put("DATA_FINAL", (java.util.Date) datFinal.getValue());
|
||||
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioCancelamentoTransacaoController.window.title"));
|
||||
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
|
||||
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
|
||||
|
||||
filtro.append("Empresa: ");
|
||||
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
|
||||
if (itemEmpresa != null) {
|
||||
Empresa empresa = (Empresa) itemEmpresa.getValue();
|
||||
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
|
||||
filtro.append(empresa.getNombempresa() + ";");
|
||||
} else {
|
||||
filtro.append(" Todas;");
|
||||
}
|
||||
|
||||
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("FILTROS", filtro.toString());
|
||||
|
||||
relatorio = new RelatorioCancelamentoTransacao(parametros, dataSourceRead.getConnection());
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
openWindow("/component/reportView.zul",
|
||||
Labels.getLabel("relatorioCancelamentoTransacaoController.window.title"), args, MODAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception{
|
||||
executarRelatorio();
|
||||
}
|
||||
|
||||
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("relatorioCancelamentoTransacaoController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btnPesquisa(Event ev) {
|
||||
executarPesquisa();
|
||||
}
|
||||
|
||||
public void onClick$btnLimpar(Event ev) {
|
||||
puntoVentaList.setData(new ArrayList<PuntoVenta>());
|
||||
txtNombrePuntoVenta.setText("");
|
||||
}
|
||||
|
||||
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 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 List<Empresa> getLsEmpresa() {
|
||||
return lsEmpresa;
|
||||
}
|
||||
|
||||
public void setLsEmpresa(List<Empresa> lsEmpresa) {
|
||||
this.lsEmpresa = lsEmpresa;
|
||||
}
|
||||
|
||||
public MyComboboxEstandar getCmbEmpresa() {
|
||||
return cmbEmpresa;
|
||||
}
|
||||
|
||||
public void setCmbEmpresa(MyComboboxEstandar cmbEmpresa) {
|
||||
this.cmbEmpresa = cmbEmpresa;
|
||||
}
|
||||
}
|
|
@ -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 ItemMenuRelatorioCancelamentoTransacao extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuRelatorioCancelamentoTransacao() {
|
||||
super("indexController.mniRelatorioCancelamentoTransacao.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CANCELAMENTO.TRANSACAO";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioCancelamentoTransacao.zul",
|
||||
Labels.getLabel("relatorioCancelamentoTransacaoController.window.title"), getArgs(), desktop);
|
||||
|
||||
}
|
||||
}
|
|
@ -249,6 +249,7 @@ indexController.mniRelatorioCorridas.label = Reporte de Corridas
|
|||
indexController.mniRelatorioDemandas.label = Reporte de Demandas
|
||||
indexController.mniRelatorioReceitaServico.label = Reporte de Ingreso por Servicio
|
||||
indexController.mniRelatorioCancelamentoVendaCartao.label = Reporte Cancelación de Venta con Tarjeta
|
||||
indexController.mniRelatorioCancelamentoTransacao.label = Relatório de Solicitações de Cancelamento de Transação
|
||||
indexController.mniRelatorioAIDF.label = Reporte AIDF
|
||||
indexController.mniPrecoApanhe.label = Preço Apanhe
|
||||
indexController.mniRelatorioVendasPacotesResumido.label = Ventas de Paquetes - Resumido
|
||||
|
@ -4130,6 +4131,17 @@ busquedamotivocancelacionEquivalenciaController.cmbComissionestaExterno.value =
|
|||
busquedamotivocancelacionEquivalenciaController.cmbMotivoCancelacion.value = Motivo de cancelación
|
||||
busquedamotivocancelacionEquivalenciaController.lbEquivalencia.value = Equivalencia
|
||||
|
||||
#Relatorio de Cancelamento de Transacao
|
||||
relatorioCancelamentoTransacaoController.window.title = Relatório de Solicitações de Cancelamento de Transação
|
||||
relatorioCancelamentoTransacaoController.datainicial.value = Data Inicial
|
||||
relatorioCancelamentoTransacaoController.dataFinal.value = Data Final
|
||||
relatorioCancelamentoTransacaoController.lbPuntoVenta.value = Agência
|
||||
relatorioCancelamentoTransacaoController.lbEmpresa.value = Empresa
|
||||
relatorioCancelamentoTransacaoController.btnPesquisa.label = Buscar
|
||||
relatorioCancelamentoTransacaoController.btnLimpar.label = Limpar
|
||||
relatorioCancelamentoTransacaoController.lbNumero.value = Número Agência
|
||||
relatorioCancelamentoTransacaoController.lbBilheteiro.value = Bilheteiro
|
||||
|
||||
# Editar Motivo cancelación equivalencia
|
||||
editarMotivoCancelacionEquivalenciaController.window.title = Equivalencia motivo de cancelación
|
||||
editarMotivoCancelacionEquivalenciaController.btnApagar.tooltiptext = Eliminar
|
||||
|
|
|
@ -254,6 +254,7 @@ indexController.mniRelatorioCorridas.label = Relatório de Serviços
|
|||
indexController.mniRelatorioDemandas.label = Relatório de Demandas
|
||||
indexController.mniRelatorioReceitaServico.label = Relatório de Receita por Serviço
|
||||
indexController.mniRelatorioCancelamentoVendaCartao.label = Relatório Cancelamento de Venda de Cartão
|
||||
indexController.mniRelatorioCancelamentoTransacao.label = Relatório de Solicitações de Cancelamento de Transação
|
||||
indexController.mniRelatorioAIDF.label = Relatório AIDF
|
||||
indexController.mniPrecoApanhe.label = Preço Apanhe
|
||||
indexController.mniRelatorioVendasPacotesResumido.label = Vendas de Pacotes - Resumido
|
||||
|
@ -4195,6 +4196,18 @@ busquedamotivocancelacionEquivalenciaController.cmbComissionestaExterno.value =
|
|||
busquedamotivocancelacionEquivalenciaController.cmbMotivoCancelacion.value = Motivo de Cancelamento
|
||||
busquedamotivocancelacionEquivalenciaController.lbEquivalencia.value = Equivalencia
|
||||
|
||||
#Relatorio de Cancelamento de Transacao
|
||||
relatorioCancelamentoTransacaoController.window.title = Relatório de Solicitações de Cancelamento de Transação
|
||||
relatorioCancelamentoTransacaoController.datainicial.value = Data Inicial
|
||||
relatorioCancelamentoTransacaoController.dataFinal.value = Data Final
|
||||
relatorioCancelamentoTransacaoController.lbPuntoVenta.value = Agência
|
||||
relatorioCancelamentoTransacaoController.lbEmpresa.value = Empresa
|
||||
relatorioCancelamentoTransacaoController.btnPesquisa.label = Buscar
|
||||
relatorioCancelamentoTransacaoController.btnLimpar.label = Limpar
|
||||
relatorioCancelamentoTransacaoController.lbNumero.value = Número Agência
|
||||
relatorioCancelamentoTransacaoController.lbBilheteiro.value = Bilheteiro
|
||||
|
||||
|
||||
# Editar Motivo cancelamento equivalencia
|
||||
editarMotivoCancelacionEquivalenciaController.window.title = Equivalencia Motivo de Cancelamento
|
||||
editarMotivoCancelacionEquivalenciaController.btnApagar.tooltiptext = Eliminar
|
||||
|
|
|
@ -0,0 +1,103 @@
|
|||
<?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="winFiltroRelatorioCancelamentoTransacao"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioCancelamentoTransacao"
|
||||
apply="${relatorioCancelamentoTransacaoController}" contentStyle="overflow:auto"
|
||||
height="285px" width="550px" border="normal">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="25%" />
|
||||
<column width="30%" />
|
||||
<column width="15%" />
|
||||
<column width="30%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('relatorioCancelamentoTransacaoController.datainicial.value')}" />
|
||||
<datebox id="datInicial" format="dd/MM/yyyy"
|
||||
width="90%" lenient="true" constraint="no empty"
|
||||
maxlength="10" />
|
||||
|
||||
<label
|
||||
value="${c:l('relatorioCancelamentoTransacaoController.dataFinal.value')}" />
|
||||
<datebox id="datFinal" format="dd/MM/yyyy"
|
||||
width="90%" lenient="true" constraint="no empty"
|
||||
maxlength="10" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('relatorioCancelamentoTransacaoController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winFiltroRelatorioCancelamentoTransacao$composer.lsEmpresa}"
|
||||
width="100%" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('relatorioCancelamentoTransacaoController.lbPuntoVenta.value')}"/>
|
||||
<bandbox id="bbPesquisaPuntoVenta" width="100%"
|
||||
mold="rounded" readonly="true">
|
||||
<bandpopup>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<label
|
||||
value="${c:l('relatorioCancelamentoTransacaoController.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('relatorioCancelamentoTransacaoController.btnPesquisa.label')}" />
|
||||
<button id="btnLimpar"
|
||||
image="/gui/img/eraser.png"
|
||||
label="${c:l('relatorioCancelamentoTransacaoController.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('relatorioCancelamentoTransacaoController.lbPuntoVenta.value')}" />
|
||||
<listheader width="35%"
|
||||
label="${c:l('relatorioCancelamentoTransacaoController.lbEmpresa.value')}" />
|
||||
<listheader width="20%"
|
||||
label="${c:l('relatorioCancelamentoTransacaoController.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('relatorioCancelamentoTransacaoController.lbPuntoVenta.value')}" />
|
||||
<listheader width="35%"
|
||||
label="${c:l('relatorioCancelamentoVendaCartaoController.lbEmpresa.value')}" />
|
||||
<listheader width="20%"
|
||||
label="${c:l('relatorioCancelamentoVendaCartaoController.lbNumero.value')}" />
|
||||
<listheader width="8%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
<paging id="pagingSelPuntoVenta" pageSize="10" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||
</toolbar>
|
||||
</window>
|
||||
</zk>
|
||||
|
Loading…
Reference in New Issue