0023454: Relatório Vendas com Desconto.
bug#23454 dev:valdevir qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@109527 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
616e05ec47
commit
70cbf4f83c
|
@ -35,7 +35,9 @@ public class RelatorioDescontos extends Relatorio {
|
|||
Timestamp fecVentaFinal = new Timestamp((DateUtil.fimFecha((Date) parametros.get("fecVentaFinal"))).getTime());
|
||||
String codconvenio = (String) parametros.get("codconvenio");
|
||||
|
||||
String query = getQuery(idPuntoVenta, codconvenio);
|
||||
Integer tipoPuntoVenta = (Integer) parametros.get("tipoPuntoVenta");
|
||||
|
||||
String query = getQuery(idPuntoVenta, codconvenio, tipoPuntoVenta);
|
||||
System.out.println(query);
|
||||
|
||||
NamedParameterStatement statement = new NamedParameterStatement(coneConnection, query);
|
||||
|
@ -49,6 +51,10 @@ public class RelatorioDescontos extends Relatorio {
|
|||
statement.setString("codconvenio", codconvenio);
|
||||
}
|
||||
|
||||
if (tipoPuntoVenta != null && tipoPuntoVenta != -1) {
|
||||
statement.setInt("tipoPuntoVenta", tipoPuntoVenta);
|
||||
}
|
||||
|
||||
ResultSet resultSet = statement.executeQuery();
|
||||
|
||||
preencherDadosRelatorio(resultSet);
|
||||
|
@ -84,7 +90,7 @@ public class RelatorioDescontos extends Relatorio {
|
|||
}
|
||||
}
|
||||
|
||||
private String getQuery(Integer idPuntoVenta, String codconvenio) {
|
||||
private String getQuery(Integer idPuntoVenta, String codconvenio, Integer tipoPuntoVenta) {
|
||||
|
||||
String query = " SELECT "
|
||||
|
||||
|
@ -127,6 +133,8 @@ public class RelatorioDescontos extends Relatorio {
|
|||
+ " JOIN CONVENIO_DET CONV_D ON CONV_D.CONVENIODET_ID = BOL.CONVENIODET_ID "
|
||||
+ " JOIN CONVENIO CONV ON CONV.CONVENIO_ID = CONV_D.CONVENIO_ID "
|
||||
+ " JOIN PUNTO_VENTA PUNT_V ON PUNT_V.PUNTOVENTA_ID = BOL.PUNTOVENTA_ID "
|
||||
+ " JOIN TIPO_PTOVTA TPVTA ON PUNT_V.TIPOPTOVTA_ID = TPVTA.TIPOPTOVTA_ID "
|
||||
|
||||
+ " JOIN PARADA ORIG ON ORIG.PARADA_ID = BOL.ORIGEN_ID "
|
||||
+ " JOIN PARADA DEST ON DEST.PARADA_ID = BOL.DESTINO_ID "
|
||||
+ " INNER JOIN USUARIO U ON U.USUARIO_ID = BOL.USUARIO_ID "
|
||||
|
@ -146,15 +154,12 @@ public class RelatorioDescontos extends Relatorio {
|
|||
if (codconvenio != null && !codconvenio.isEmpty()) {
|
||||
query += " AND (CONV.CVECONVENIO = :codconvenio)";
|
||||
}
|
||||
//
|
||||
// query += " GROUP BY (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO), BOL.EMPRESACORRIDA_ID, PUNT_V.NOMBPUNTOVENTA, ";
|
||||
// query += " BOL.FECHORVENTA, BOL.FECHORVIAJE, BOL.CORRIDA_ID, ORIG.CVEPARADA, DEST.CVEPARADA, BOL.PRECIOPAGADO, " ;
|
||||
// query += " BOL.IMPORTETAXAEMBARQUE, BOL.IMPORTEPEDAGIO, BOL.NOMBPASAJERO, BOL.NUMIDENTIFICACION, U.CVEUSUARIO " ;
|
||||
query += " ORDER BY BOL.EMPRESACORRIDA_ID, (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO)";
|
||||
// " BOL.EMPRESACORRIDA_ID, PUNT_V.NOMBPUNTOVENTA, ";
|
||||
// query += " BOL.FECHORVENTA, BOL.FECHORVIAJE, BOL.CORRIDA_ID, ORIG.CVEPARADA, DEST.CVEPARADA, BOL.PRECIOPAGADO, " ;
|
||||
// query += " BOL.IMPORTETAXAEMBARQUE, BOL.IMPORTEPEDAGIO, BOL.NOMBPASAJERO, BOL.NUMIDENTIFICACION, U.CVEUSUARIO " ;
|
||||
|
||||
if (tipoPuntoVenta != null && tipoPuntoVenta != -1) {
|
||||
query += " AND (PUNT_V.TIPOPTOVTA_ID = :tipoPuntoVenta)";
|
||||
}
|
||||
|
||||
query += " ORDER BY BOL.EMPRESACORRIDA_ID, (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO)";
|
||||
|
||||
return query;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,177 @@
|
|||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
|
||||
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.DataSource;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
|
||||
|
||||
public class RelatorioDescontosTipo2 extends Relatorio {
|
||||
|
||||
List<HashMap<String, Object>> dadosRelatorio = new ArrayList<HashMap<String, Object>>();
|
||||
|
||||
public RelatorioDescontosTipo2(Map<String, Object> parametros, Connection conexao) throws Exception {
|
||||
super(parametros, conexao);
|
||||
|
||||
setCustomDataSource(new DataSource(this){
|
||||
@Override
|
||||
public void initDados() throws Exception {
|
||||
Connection coneConnection = relatorio.getConexao();
|
||||
Map<String, Object> parametros = relatorio.getParametros();
|
||||
|
||||
Integer idPuntoVenta = (Integer) parametros.get("idPuntoVenta");
|
||||
Timestamp fecVentaInicial = new Timestamp((DateUtil.inicioFecha((Date) parametros.get("fecVentaInicial"))).getTime());
|
||||
Timestamp fecVentaFinal = new Timestamp((DateUtil.fimFecha((Date) parametros.get("fecVentaFinal"))).getTime());
|
||||
String codconvenio = (String) parametros.get("codconvenio");
|
||||
|
||||
Integer tipoPuntoVenta = (Integer) parametros.get("tipoPuntoVenta");
|
||||
|
||||
String query = getQuery(idPuntoVenta, codconvenio, tipoPuntoVenta);
|
||||
System.out.println(query);
|
||||
|
||||
NamedParameterStatement statement = new NamedParameterStatement(coneConnection, query);
|
||||
statement.setTimestamp("fecVentaInicial", fecVentaInicial);
|
||||
statement.setTimestamp("fecVentaFinal", fecVentaFinal);
|
||||
|
||||
if(idPuntoVenta != null && idPuntoVenta != -1) {
|
||||
statement.setInt("idPuntoVenta", idPuntoVenta);
|
||||
}
|
||||
if(codconvenio != null && !codconvenio.isEmpty()) {
|
||||
statement.setString("codconvenio", codconvenio);
|
||||
}
|
||||
|
||||
if (tipoPuntoVenta != null && tipoPuntoVenta != -1) {
|
||||
statement.setInt("tipoPuntoVenta", tipoPuntoVenta);
|
||||
}
|
||||
|
||||
ResultSet resultSet = statement.executeQuery();
|
||||
|
||||
preencherDadosRelatorio(resultSet);
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
private void preencherDadosRelatorio(ResultSet resultSet) throws SQLException {
|
||||
while (resultSet.next()) {
|
||||
HashMap<String, Object> singleData = new HashMap<String, Object>();
|
||||
singleData.put("codConvenio", resultSet.getString("codConvenio"));
|
||||
singleData.put("nomeAgencia", resultSet.getString("nomeAgencia"));
|
||||
singleData.put("dataEmissao", resultSet.getDate("dataEmissao"));
|
||||
singleData.put("dataViagem", resultSet.getTimestamp("dataViagem"));
|
||||
singleData.put("codServico", resultSet.getString("codServico"));
|
||||
singleData.put("codOrigem", resultSet.getString("codOrigem"));
|
||||
singleData.put("codDestino", resultSet.getString("codDestino"));
|
||||
singleData.put("tarifaComDesconto", resultSet.getDouble("tarifaComDesconto"));
|
||||
singleData.put("tut", resultSet.getDouble("tut"));
|
||||
singleData.put("pedagio", resultSet.getDouble("pedagio"));
|
||||
singleData.put("nomepassageiro", resultSet.getString("nomepassageiro"));
|
||||
singleData.put("documento", resultSet.getString("documento"));
|
||||
singleData.put("bilheteiro", resultSet.getString("bilheteiro"));
|
||||
singleData.put("empresacorrida", resultSet.getInt("empresacorrida"));
|
||||
singleData.put("empresa", resultSet.getString("empresa"));
|
||||
singleData.put("CANAL_DE_VENDA", resultSet.getString("CANAL_DE_VENDA"));
|
||||
singleData.put("email", resultSet.getString("email"));
|
||||
singleData.put("telefone", resultSet.getString("telefone"));
|
||||
dadosRelatorio.add(singleData);
|
||||
}
|
||||
|
||||
if(!dadosRelatorio.isEmpty()) {
|
||||
setCollectionDataSource(new JRBeanCollectionDataSource(dadosRelatorio));
|
||||
}
|
||||
}
|
||||
|
||||
private String getQuery(Integer idPuntoVenta, String codconvenio, Integer tipoPuntoVenta) {
|
||||
|
||||
String query = " SELECT "
|
||||
|
||||
+ " (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO) AS codConvenio, "
|
||||
+ " PUNT_V.NOMBPUNTOVENTA AS nomeAgencia, "
|
||||
+ " BOL.FECHORVENTA AS dataEmissao, "
|
||||
+ " BOL.FECHORVIAJE AS dataViagem, "
|
||||
+ " BOL.CORRIDA_ID AS codServico, "
|
||||
+ " ORIG.CVEPARADA AS codOrigem, "
|
||||
+ " DEST.CVEPARADA AS codDestino, "
|
||||
|
||||
+ " (case "
|
||||
+ " when ( bol.indcancelacion = 1 ) "
|
||||
+ " then (-1 *(Abs( BOL.PRECIOPAGADO ) )) "
|
||||
+ " else "
|
||||
+ " BOL.PRECIOPAGADO "
|
||||
+ " END) AS tarifaComDesconto, "
|
||||
|
||||
|
||||
+ " (case "
|
||||
+ " when ( bol.indcancelacion = 1 ) "
|
||||
+ " then (-1 *(Abs( BOL.IMPORTETAXAEMBARQUE ) )) "
|
||||
+ " else "
|
||||
+ " BOL.IMPORTETAXAEMBARQUE "
|
||||
+ " END) AS tut, "
|
||||
|
||||
+ " (case "
|
||||
+ " when ( bol.indcancelacion = 1 ) "
|
||||
+ " then (-1 *(Abs( BOL.IMPORTEPEDAGIO ) )) "
|
||||
+ " else "
|
||||
+ " BOL.IMPORTEPEDAGIO "
|
||||
+ " END) AS pedagio, "
|
||||
|
||||
+ " BOL.NOMBPASAJERO AS nomepassageiro, "
|
||||
+ " BOL.DESCNUMDOC AS documento,"
|
||||
+ " U.CVEUSUARIO AS bilheteiro, "
|
||||
+ " BOL.EMPRESACORRIDA_ID AS empresacorrida, "
|
||||
+ " EMP.NOMBEMPRESA AS empresa, "
|
||||
|
||||
+ " TPVTA.desctipo AS CANAL_DE_VENDA, "
|
||||
+ " BOL.DESCCORREO AS email, "
|
||||
+ " BOL.DESCTELEFONO AS telefone "
|
||||
|
||||
+ " FROM BOLETO BOL "
|
||||
+ " JOIN CONVENIO_DET CONV_D ON CONV_D.CONVENIODET_ID = BOL.CONVENIODET_ID "
|
||||
+ " JOIN CONVENIO CONV ON CONV.CONVENIO_ID = CONV_D.CONVENIO_ID "
|
||||
+ " JOIN PUNTO_VENTA PUNT_V ON PUNT_V.PUNTOVENTA_ID = BOL.PUNTOVENTA_ID "
|
||||
+ " JOIN TIPO_PTOVTA TPVTA ON PUNT_V.TIPOPTOVTA_ID = TPVTA.TIPOPTOVTA_ID "
|
||||
|
||||
+ " JOIN PARADA ORIG ON ORIG.PARADA_ID = BOL.ORIGEN_ID "
|
||||
+ " JOIN PARADA DEST ON DEST.PARADA_ID = BOL.DESTINO_ID "
|
||||
+ " INNER JOIN USUARIO U ON U.USUARIO_ID = BOL.USUARIO_ID "
|
||||
+ " JOIN EMPRESA EMP ON EMP.EMPRESA_ID = BOL.EMPRESACORRIDA_ID "
|
||||
+ " WHERE "
|
||||
+ " BOL.INDSTATUSOPERACION = 'F' "
|
||||
+ " AND BOL.ACTIVO = 1 "
|
||||
+ " AND BOL.FECHORVENTA BETWEEN :fecVentaInicial AND :fecVentaFinal ";
|
||||
|
||||
if(!((String)parametros.get("EMPRESAIDS")).equals("")){
|
||||
query +=" AND BOL.EMPRESACORRIDA_ID IN ( " + (String)parametros.get("EMPRESAIDS") + ")" ;
|
||||
}
|
||||
|
||||
if(idPuntoVenta != null && idPuntoVenta != -1) {
|
||||
query += " AND (BOL.PUNTOVENTA_ID = :idPuntoVenta) ";
|
||||
}
|
||||
if (codconvenio != null && !codconvenio.isEmpty()) {
|
||||
query += " AND (CONV.CVECONVENIO = :codconvenio)";
|
||||
}
|
||||
|
||||
if (tipoPuntoVenta != null && tipoPuntoVenta != -1) {
|
||||
query += " AND (PUNT_V.TIPOPTOVTA_ID = :tipoPuntoVenta)";
|
||||
}
|
||||
|
||||
query += " ORDER BY BOL.EMPRESACORRIDA_ID, (CONV.CVECONVENIO || ' - ' || CONV.DESCCONVENIO)";
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void processaParametros() throws Exception {}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
label.codConvenio = Convênio
|
||||
label.fecVentaInicial = Data da Venda Inicial:
|
||||
label.fecVentaFinal = Data da Venda Final:
|
||||
label.puntoVenta = Agência:
|
||||
cabecalho.dataHora = Data/Hora:
|
||||
cabecalho.impressorPor = Impresso por:
|
||||
cabecalho.pagina = Página
|
||||
cabecalho.de = de
|
||||
label.empresa = Empresa
|
||||
label.codigo = Código:
|
||||
label.nomeAgencia = Agc. Emissora
|
||||
label.dataEmissao = Data Emissão
|
||||
label.dataViagem = Data Viagem
|
||||
label.codServico = Serviço
|
||||
label.codOrigem = Origem
|
||||
label.codDestino = Destino
|
||||
label.tarifaComDesconto = Tarifa c/ des
|
||||
label.tut = TUT
|
||||
label.pedagio = Pedágio
|
||||
label.totalPorConvenio = Total deste Convênio
|
||||
label.totalGeral = Total Geral
|
||||
label.total = Total
|
||||
msg.noData = Não foi possivel obter dados com os parâmetros informados.
|
||||
label.bilheteiro = Bilheteiro
|
||||
label.nomepassageiro = Passageiro
|
||||
label.documentopassageiro = Doc. P.
|
||||
label.canalDeVenda = Canal Venda
|
||||
label.email = e-mail
|
||||
label.telefone = Telefone
|
|
@ -0,0 +1,29 @@
|
|||
label.codConvenio = Convênio
|
||||
label.fecVentaInicial = Data da Venda Inicial:
|
||||
label.fecVentaFinal = Data da Venda Final:
|
||||
label.puntoVenta = Agência:
|
||||
cabecalho.dataHora = Data/Hora:
|
||||
cabecalho.impressorPor = Impresso por:
|
||||
cabecalho.pagina = Página
|
||||
cabecalho.de = de
|
||||
label.empresa = Empresa
|
||||
label.codigo = Código:
|
||||
label.nomeAgencia = Agc. Emissora
|
||||
label.dataEmissao = Data Emissão
|
||||
label.dataViagem = Data Viagem
|
||||
label.codServico = Serviço
|
||||
label.codOrigem = Origem
|
||||
label.codDestino = Destino
|
||||
label.tarifaComDesconto = Tarifa c/ des
|
||||
label.tut = TUT
|
||||
label.pedagio = Pedágio
|
||||
label.totalPorConvenio = Total deste Convênio
|
||||
label.totalGeral = Total Geral
|
||||
label.total = Total
|
||||
msg.noData = Não foi possivel obter dados com os parâmetros informados.
|
||||
label.bilheteiro = Bilheteiro
|
||||
label.nomepassageiro = Passageiro
|
||||
label.documentopassageiro = Doc. P.
|
||||
label.canalDeVenda = Canal Venda
|
||||
label.email = e-mail
|
||||
label.telefone = Telefone
|
Binary file not shown.
|
@ -0,0 +1,617 @@
|
|||
<?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="RelatorioDescontos" pageWidth="1240" pageHeight="842" columnWidth="1200" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="6d46a2d2-555e-4b7f-944f-b25c672e5feb">
|
||||
<property name="ireport.zoom" value="1.5"/>
|
||||
<property name="ireport.x" value="338"/>
|
||||
<property name="ireport.y" value="0"/>
|
||||
<parameter name="fecVentaInicial" class="java.util.Date"/>
|
||||
<parameter name="fecVentaFinal" class="java.util.Date"/>
|
||||
<parameter name="codconvenio" class="java.lang.String"/>
|
||||
<parameter name="usuario" class="java.lang.String"/>
|
||||
<parameter name="nomeRelatorio" class="java.lang.String"/>
|
||||
<parameter name="puntoVenta" class="java.lang.String"/>
|
||||
<field name="codConvenio" class="java.lang.String"/>
|
||||
<field name="nomeAgencia" class="java.lang.String"/>
|
||||
<field name="dataEmissao" class="java.util.Date"/>
|
||||
<field name="dataViagem" class="java.sql.Timestamp"/>
|
||||
<field name="codServico" class="java.lang.String"/>
|
||||
<field name="codOrigem" class="java.lang.String"/>
|
||||
<field name="codDestino" class="java.lang.String"/>
|
||||
<field name="tarifaComDesconto" class="java.lang.Double"/>
|
||||
<field name="tut" class="java.lang.Double"/>
|
||||
<field name="pedagio" class="java.lang.Double"/>
|
||||
<field name="nomepassageiro" class="java.lang.String"/>
|
||||
<field name="documento" class="java.lang.String"/>
|
||||
<field name="bilheteiro" class="java.lang.String"/>
|
||||
<field name="empresacorrida" class="java.lang.Integer"/>
|
||||
<field name="empresa" class="java.lang.String"/>
|
||||
<field name="CANAL_DE_VENDA" class="java.lang.String"/>
|
||||
<field name="email" class="java.lang.String"/>
|
||||
<field name="telefone" class="java.lang.String"/>
|
||||
<variable name="sumTarifaComDesconto" class="java.lang.Double" resetType="Group" resetGroup="ConvenioGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{tarifaComDesconto}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="SumTut" class="java.lang.Double" resetType="Group" resetGroup="ConvenioGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{tut}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="sumPedagio" class="java.lang.Double" resetType="Group" resetGroup="ConvenioGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{pedagio}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="sumTarifaComDescontoGeral" class="java.lang.Double" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{tarifaComDesconto}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="SumTutGeral" class="java.lang.Double" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{tut}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="sumPedagioGeral" class="java.lang.Double" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{pedagio}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="sumRow" class="java.lang.Double" resetType="Group" resetGroup="ConvenioGroup" calculation="Sum">
|
||||
<variableExpression><![CDATA[new Double($F{tarifaComDesconto} + $F{tut} + $F{pedagio})]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="sumAllRows" class="java.lang.Double" calculation="Sum">
|
||||
<variableExpression><![CDATA[new Double($F{tarifaComDesconto} + $F{tut} + $F{pedagio})]]></variableExpression>
|
||||
</variable>
|
||||
<group name="empresa">
|
||||
<groupExpression><![CDATA[$F{empresacorrida}]]></groupExpression>
|
||||
</group>
|
||||
<group name="ConvenioGroup">
|
||||
<groupExpression><![CDATA[$F{codConvenio}]]></groupExpression>
|
||||
<groupHeader>
|
||||
<band height="12">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="c614f11f-5e39-45d5-ba3b-d94dfb313fb5" x="113" y="2" width="100" height="10"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<leftPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nomeAgencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="46d51dbb-8f53-4afa-8e8a-ddba45ddd4b7" x="794" y="2" width="56" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataEmissao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b8b25bb5-75a0-4780-b2a1-8e02c42590bb" x="850" y="2" width="75" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="3a6335ef-979e-4232-ba62-f7113e8b6c89" x="925" y="2" width="30" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.codServico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b3792e14-b26f-47a8-8da2-f35d3fc0f4fb" x="955" y="2" width="30" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.codOrigem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="2122af46-a40b-476a-ac4c-dd9c0a5a3413" x="985" y="2" width="30" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.codDestino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="ad5b6c97-a125-4e41-b08a-1c70642ae66e" x="1015" y="2" width="55" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.tarifaComDesconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="aebfcc06-37c4-4f7f-a8ed-ad8011c55658" x="1070" y="2" width="42" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.tut}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="aa6a57f1-ea6d-4449-90d4-44a753fea7fe" x="1112" y="2" width="42" height="10"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
<rightPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="85672596-8266-4500-bf8d-3f2c757c4226" x="1154" y="2" width="42" height="10"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
<rightPen lineWidth="0.0"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="b29e15c3-facb-4dc0-bac7-66d8068ffc8b" x="213" y="2" width="58" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.bilheteiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="dcfb9cb1-125f-4a27-a071-3245e508827b" x="437" y="2" width="123" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.nomepassageiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="11473a35-c133-4f7d-a313-4bc4c4cffdd1" x="560" y="2" width="62" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.documentopassageiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="c16ba998-6e0f-4e8d-9db2-ff853ad738df" x="0" y="2" width="113" height="10"/>
|
||||
<box>
|
||||
<topPen lineWidth="0.0"/>
|
||||
<leftPen lineWidth="0.0"/>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.codConvenio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="95c7c56f-f23e-41c6-8b6d-021faa39bef7" x="329" y="2" width="108" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="e7305881-85cd-46ce-b068-4403458849a1" x="271" y="2" width="58" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.canalDeVenda}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="2e7f5d3d-2623-443f-999b-b85e0f4800fe" x="622" y="2" width="120" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.email}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="766187ca-103f-4c4f-954f-eb78e6ccdf60" x="742" y="2" width="52" height="10"/>
|
||||
<box>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.telefone}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupHeader>
|
||||
<groupFooter>
|
||||
<band height="18">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="21939498-3964-4b50-b792-c810057ca04b" x="780" y="6" width="235" height="12"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="7" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.totalPorConvenio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="e383a185-7fe9-4b2c-ae23-65db33ee1790" x="1015" y="6" width="55" height="12"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumTarifaComDesconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="7e0997ce-bffa-431c-8d8b-7a4e2d7168c6" x="1070" y="6" width="42" height="12"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{SumTut}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="14a07a9d-75a5-4296-87ac-036461e44d68" x="1112" y="6" width="42" height="12"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumPedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="05728025-9728-4057-a461-799535ef933f" x="780" y="3" width="416" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="6d37f5dd-12a3-44b8-aac7-a430eb53143c" x="1154" y="6" width="42" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumRow}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
</group>
|
||||
<background>
|
||||
<band splitType="Stretch"/>
|
||||
</background>
|
||||
<title>
|
||||
<band height="102" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
|
||||
<reportElement uuid="b8a08223-0a24-43a7-8ebe-17a3db2d83fe" mode="Transparent" x="1124" y="59" width="73" height="24" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="d095c344-00e0-4532-8035-8b93ef192a56" x="1024" y="59" width="100" height="24"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="8" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="eceda28e-b177-4d40-a99f-bce905486f71" mode="Transparent" x="0" y="0" width="1200" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<box>
|
||||
<pen lineWidth="0.5"/>
|
||||
<topPen lineWidth="0.5"/>
|
||||
<leftPen lineWidth="0.5"/>
|
||||
<bottomPen lineWidth="0.5"/>
|
||||
<rightPen lineWidth="0.5"/>
|
||||
</box>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="18" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{nomeRelatorio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" evaluationTime="Report" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="17bc8d21-5221-4757-ade1-9b3d1b4c10ce" mode="Transparent" x="1178" y="46" width="19" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
|
||||
<reportElement uuid="8857ff4c-243b-4073-9466-98722a23eccf" mode="Transparent" x="1024" y="32" width="173" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{cabecalho.pagina} + " " + $V{PAGE_NUMBER} + " " + $R{cabecalho.de}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="65e099b5-ddc7-4f45-a453-38ab8cc4cb7c" mode="Transparent" x="1024" y="84" width="173" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="8" 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 isStretchWithOverflow="true" pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="145289a7-0f0a-4aa0-aab7-2bad8b44292e" x="113" y="49" width="100" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{fecVentaInicial}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy">
|
||||
<reportElement uuid="74a3108b-f2bf-4a05-8a0e-ef3bc6e23e78" x="113" y="61" width="100" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{fecVentaFinal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="4ea6cfd8-2183-4d3a-b7fc-51ece4715dd9" x="113" y="37" width="100" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{codconvenio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="c95a7200-7032-4a56-abca-615be605f781" x="113" y="73" width="100" height="12" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement>
|
||||
<font size="8"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$P{puntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="0fb0788e-1dae-4756-8d2d-076ed62e733c" x="3" y="37" width="110" height="12">
|
||||
<printWhenExpression><![CDATA[new Boolean($P{codconvenio} != null && !$P{codconvenio}.isEmpty())]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement>
|
||||
<font size="8" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.codConvenio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="1ffb28ce-353b-45c6-95a3-ba5c40faa4b5" x="3" y="49" width="110" height="12"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.fecVentaInicial}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="c52ee81b-b6a0-44cd-b0e0-c61177419f22" x="3" y="61" width="110" height="12"/>
|
||||
<textElement>
|
||||
<font size="8" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.fecVentaFinal}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="2c80eede-1c35-4bec-8c97-3ea0ea54ed16" x="3" y="73" width="110" height="12">
|
||||
<printWhenExpression><![CDATA[new Boolean($P{puntoVenta} != null)]]></printWhenExpression>
|
||||
</reportElement>
|
||||
<textElement>
|
||||
<font size="8" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.puntoVenta}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="d6ec8319-dcf8-42f7-bb0f-64235db1f2da" x="40" y="97" width="1157" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
</band>
|
||||
</title>
|
||||
<detail>
|
||||
<band height="13" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="ad1ffaa8-6c48-4316-ba3c-ea68579af300" x="113" y="0" width="100" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nomeAgencia}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
|
||||
<reportElement uuid="cf354725-73cd-4ec9-b10e-4aadc6c27e57" x="794" y="0" width="56" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataEmissao}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy h:mm" isBlankWhenNull="true">
|
||||
<reportElement uuid="8351ad8e-e02b-4f89-8655-091bec145801" x="850" y="0" width="75" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{dataViagem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="0b904fc9-5da8-42df-86e7-0749839574b6" x="925" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{codServico}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="2dd64398-024e-4ce0-a8a8-2c93dec6182d" x="955" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{codOrigem}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="b8655897-1818-4afc-be13-cf15abb85f41" x="985" y="0" width="30" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{codDestino}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="a2f90f64-e8eb-45b8-828b-53c01e7258a0" x="1015" y="0" width="55" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tarifaComDesconto}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="e17967ac-cb7c-4907-98f5-bb3212cec2eb" x="1070" y="0" width="42" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{tut}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="584271a9-2bf3-4c50-a4cf-6615c17bf989" x="1112" y="0" width="42" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="e7415c92-58d7-482c-a830-06708116c9d5" x="1154" y="0" width="42" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[new Double($F{pedagio} + $F{tarifaComDesconto} + $F{tut})]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="546f445d-2263-4cdc-a1d7-681d40f311e4" x="213" y="0" width="58" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{bilheteiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="eba09120-e3ae-4119-af20-8ff20c45d935" x="437" y="0" width="123" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="5"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{nomepassageiro}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="374795a6-5fae-417c-93d9-ae0c9e12829a" x="560" y="0" width="62" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{documento}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
|
||||
<reportElement uuid="3eaad0c7-92ee-4a5b-8ef4-e7cd0144ce77" x="0" y="0" width="113" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{codConvenio}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="798b121d-f1b8-4a42-b443-6ae0d3902978" x="329" y="0" width="108" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="5"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="2374a2da-9a45-4f2f-a519-1c6abda27850" x="271" y="0" width="58" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{CANAL_DE_VENDA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="e0226ac5-b2e2-49d6-8465-8c32909179ce" x="622" y="0" width="120" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="5"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{email}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
|
||||
<reportElement uuid="8af30a36-7bf9-4f0f-bc25-6f34d9bb6e94" x="742" y="0" width="52" height="10" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="6"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{telefone}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
<columnFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</columnFooter>
|
||||
<pageFooter>
|
||||
<band splitType="Stretch"/>
|
||||
</pageFooter>
|
||||
<summary>
|
||||
<band height="26" splitType="Stretch">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="bb9ab283-7cb9-445b-b741-29a6e5c931e9" x="780" y="14" width="235" height="12"/>
|
||||
<textElement verticalAlignment="Middle">
|
||||
<font size="8" isBold="false" pdfFontName="Helvetica-Bold"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{label.totalGeral}]]></textFieldExpression>
|
||||
</textField>
|
||||
<line>
|
||||
<reportElement uuid="eb4f7cb9-51dd-48ed-a924-ed5477b1f35d" x="780" y="13" width="416" height="1"/>
|
||||
<graphicElement>
|
||||
<pen lineWidth="0.5"/>
|
||||
</graphicElement>
|
||||
</line>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d4dac747-8ca0-4b61-9216-ba38d252bc60" x="1015" y="14" width="55" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumTarifaComDescontoGeral}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="d58a5fb0-6276-459b-9b9c-c698a36dcb0d" x="1070" y="14" width="42" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{SumTutGeral}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="29281cf5-8f96-4169-b413-affb15dee8c1" x="1112" y="14" width="42" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumPedagioGeral}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="232a2a0f-d134-418d-8b95-c3425802c153" x="1154" y="14" width="42" height="12" isPrintWhenDetailOverflows="true"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle">
|
||||
<font size="7"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{sumAllRows}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</summary>
|
||||
<noData>
|
||||
<band height="25">
|
||||
<textField isStretchWithOverflow="true">
|
||||
<reportElement uuid="8971a82a-4eed-47d8-a07a-da902b442824" x="0" y="0" width="555" height="25"/>
|
||||
<textElement textAlignment="Center" markup="none">
|
||||
<font size="12" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</noData>
|
||||
</jasperReport>
|
|
@ -15,14 +15,20 @@ 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.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
import org.zkoss.zul.Radiogroup;
|
||||
import org.zkoss.zul.Textbox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDescontos;
|
||||
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioDescontosTipo2;
|
||||
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
|
||||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -42,6 +48,9 @@ public class RelatorioDescontosController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private transient PagedListWrapper<Empresa> plwEmpresa;
|
||||
|
||||
@Autowired
|
||||
private TipoPuntoVentaService tipoPuntoVentaService;
|
||||
|
||||
private MyComboboxPuntoVenta cmbAgencia;
|
||||
private Datebox fecVentaInicial;
|
||||
private Datebox fecVentaFinal;
|
||||
|
@ -51,12 +60,16 @@ public class RelatorioDescontosController extends MyGenericForwardComposer {
|
|||
private Paging pagingEmpresaSel;
|
||||
private MyListbox empresaList;
|
||||
private MyListbox empresaSelList;
|
||||
private Combobox cmbTipoPontoVenta;
|
||||
private List<TipoPuntoVenta> lsTipoPuntoVenta;
|
||||
private Radiogroup rdbGroup;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
empresaList.setItemRenderer(new RenderRelatorioGenericoEmpresasSel());
|
||||
empresaSelList.setItemRenderer(new RenderRelatorioGenericoEmpresasSel());
|
||||
lsTipoPuntoVenta = tipoPuntoVentaService.obtenerTodos();
|
||||
}
|
||||
|
||||
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
|
||||
|
@ -84,6 +97,7 @@ public class RelatorioDescontosController extends MyGenericForwardComposer {
|
|||
executarRelatorio();
|
||||
}
|
||||
|
||||
@SuppressWarnings({ "rawtypes", "unchecked"})
|
||||
private void executarRelatorio() throws Exception {
|
||||
Map<String, Object> parametros = new HashMap<String, Object>();
|
||||
parametros.put("fecVentaInicial", fecVentaInicial.getValue());
|
||||
|
@ -110,7 +124,20 @@ public class RelatorioDescontosController extends MyGenericForwardComposer {
|
|||
}
|
||||
parametros.put("EMPRESAIDS", empresaIds.toString());
|
||||
|
||||
Relatorio relatorio = new RelatorioDescontos(parametros, dataSourceRead.getConnection());
|
||||
Comboitem itemTipoPontoVenta = cmbTipoPontoVenta.getSelectedItem();
|
||||
|
||||
if (itemTipoPontoVenta != null) {
|
||||
TipoPuntoVenta tipoPontoVenta = (TipoPuntoVenta) itemTipoPontoVenta.getValue();
|
||||
parametros.put("tipoPuntoVenta", tipoPontoVenta == null ? null : tipoPontoVenta.getTipoptovtaId().intValue());
|
||||
}
|
||||
|
||||
Relatorio relatorio;
|
||||
if(rdbGroup.getSelectedItem().getValue().equals("1")) {
|
||||
relatorio = new RelatorioDescontos(parametros, dataSourceRead.getConnection());
|
||||
} else {
|
||||
relatorio = new RelatorioDescontosTipo2(parametros, dataSourceRead.getConnection());
|
||||
}
|
||||
|
||||
Map<String, Object> args = new HashMap<String, Object>();
|
||||
args.put("relatorio", relatorio);
|
||||
|
||||
|
@ -239,4 +266,19 @@ public class RelatorioDescontosController extends MyGenericForwardComposer {
|
|||
this.empresaList = empresaList;
|
||||
}
|
||||
|
||||
public Combobox getCmbTipoPontoVenta() {
|
||||
return cmbTipoPontoVenta;
|
||||
}
|
||||
|
||||
public void setCmbTipoPontoVenta(Combobox cmbTipoPontoVenta) {
|
||||
this.cmbTipoPontoVenta = cmbTipoPontoVenta;
|
||||
}
|
||||
|
||||
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
|
||||
return lsTipoPuntoVenta;
|
||||
}
|
||||
|
||||
public void setLsTipoPuntoVenta(List<TipoPuntoVenta> lsTipoPuntoVenta) {
|
||||
this.lsTipoPuntoVenta = lsTipoPuntoVenta;
|
||||
}
|
||||
}
|
|
@ -7449,6 +7449,9 @@ relatorioDescontosController.lbEmpresa.value = Empresa
|
|||
relatorioDescontosController.btnPesquisa.label = Buscar
|
||||
relatorioDescontosController.btnLimpar.label = Limpar
|
||||
relatorioDescontosController.lbIdEmpresa.value = Id
|
||||
relatorioDescontosController.lbTipoRelatorio.value= Tipo Relatório:
|
||||
relatorioDescontosController.lbTipoRelatorioTipo1.value= Tipo 1
|
||||
relatorioDescontosController.lbTipoRelatorioTipo2.value= Tipo 2
|
||||
|
||||
# Filtro Relatorio de Agências Não Importadas
|
||||
filtroRelatorioAgenciasNaoImportadas.lbDataIni.value = Fecha Inicio
|
||||
|
|
|
@ -7989,6 +7989,9 @@ relatorioDescontosController.lbEmpresa.value = Empresa
|
|||
relatorioDescontosController.btnPesquisa.label = Buscar
|
||||
relatorioDescontosController.btnLimpar.label = Limpar
|
||||
relatorioDescontosController.lbIdEmpresa.value = Id
|
||||
relatorioDescontosController.lbTipoRelatorio.value= Tipo Relatório:
|
||||
relatorioDescontosController.lbTipoRelatorioTipo1.value= Tipo 1
|
||||
relatorioDescontosController.lbTipoRelatorioTipo2.value= Tipo 2
|
||||
|
||||
indexController.mniRelatorioAgenciaFechamento.label= Resumo Venda por Agencia
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioDescontos" apply="${relatorioDescontosController}" contentStyle="overflow:auto" height="340px" width="570px" border="normal">
|
||||
<window id="winFiltroRelatorioDescontos" apply="${relatorioDescontosController}" contentStyle="overflow:auto" height="375px" width="570px" border="normal" sizable="true">
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="30%" />
|
||||
|
@ -29,6 +29,14 @@
|
|||
<combobox id="cmbAgencia" width="100%" maxlength="60" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"/>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('editarPuntoVentaController.lbTpoPtoVta.value')}" />
|
||||
<combobox id="cmbTipoPontoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="100%" model="@{winFiltroRelatorioDescontos$composer.lsTipoPuntoVenta}" />
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('relatorioDescontosController.lbEmpresa.value')}"/>
|
||||
<bandbox id="bbPesquisaEmpresa" width="100%" mold="rounded" readonly="true">
|
||||
|
@ -77,6 +85,11 @@
|
|||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<label value="${c:l('relatorioDescontosController.lbTipoRelatorio.value')}" />
|
||||
<radiogroup Id="rdbGroup">
|
||||
<radio id="rdTipo1" value="1" label="${c:l('relatorioDescontosController.lbTipoRelatorioTipo1.value')}" selected="true" />
|
||||
<radio id="rdTipo2" value="2" label="${c:l('relatorioDescontosController.lbTipoRelatorioTipo2.value')}" />
|
||||
</radiogroup>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/find.png" label="${c:l('relatorio.lb.btnExecutarRelatorio')}"/>
|
||||
</toolbar>
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue