Mudança no layout do relatorio de tabela de preços feat #AL-2351

master
Fabio Faria 2023-05-05 16:27:08 -03:00
parent 5754bff8d2
commit f08f19b739
7 changed files with 419 additions and 282 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId>
<version>1.2.2</version>
<version>1.3.0</version>
<packaging>war</packaging>
<properties>

View File

@ -47,24 +47,28 @@ public class RelatorioTabelaPreco extends Relatorio {
series, (Integer) parametros.get(ORGAO_CONCEDENTE)));
}
dataResult.put("cveorigem", rset.getString("cveorigem"));
dataResult.put("cvedestino", rset.getString("cvedestino"));
dataResult.put("origem", rset.getString("origem"));
dataResult.put("destino", rset.getString("destino"));
dataResult.put("aliasorigem", rset.getString("aliasorigem"));
dataResult.put("aliasdestino", rset.getString("aliasdestino"));
dataResult.put("tarifa", rset.getBigDecimal("tarifa"));
dataResult.put("pedagio", rset.getBigDecimal("pedagio"));
dataResult.put("taxaEmbarque", rset.getBigDecimal("taxaEmbarque"));
dataResult.put("outros", rset.getBigDecimal("outros"));
dataResult.put("tipoClasse", rset.getString("tipoClasse"));
dataResult.put("empresa", rset.getString("empresa"));
if (!isLayoutArtesp) {
dataResult.put("seguro", rset.getBigDecimal("seguro"));
dataResult.put("linha", rset.getString("linha"));
dataResult.put("dataVigenciaInicial", rset.getDate("dataVigenciaInicial"));
dataResult.put("dataVigenciaFinal", rset.getDate("dataVigenciaFinal"));
dataResult.put("idLinha", rset.getInt("idLinha"));
dataResult.put("idVigencia", rset.getInt("idVigencia"));
}
dataResult.put("seguro", rset.getBigDecimal("seguro"));
dataResult.put("linha", rset.getString("linha"));
dataResult.put("prefixo", rset.getString("prefixo"));
dataResult.put("dataVigenciaInicial", rset.getDate("dataVigenciaInicial"));
dataResult.put("dataVigenciaFinal", rset.getDate("dataVigenciaFinal"));
dataResult.put("idLinha", rset.getInt("idLinha"));
dataResult.put("idVigencia", rset.getInt("idVigencia"));
dataResult.put("orgao", rset.getString("orgao"));
this.dados.add(dataResult);
}
@ -96,33 +100,48 @@ public class RelatorioTabelaPreco extends Relatorio {
if (isLayoutArtesp) {
sql.append("SELECT DISTINCT origem,destino,tarifa,pedagio,taxaEmbarque,outros,tipoClasse,empresa,kmReal FROM (");
}
sql.append(" SELECT pOrigem.DESCPARADA as origem, ");
sql.append(" pDestino.DESCPARADA as destino, ");
sql.append(" COALESCE(t.precio,0) as tarifa, ");
sql.append(" COALESCE(t.IMPORTEPEDAGIO, 0) as pedagio, ");
sql.append(" COALESCE(t.IMPORTETAXAEMBARQUE, 0) as taxaEmbarque, ");
sql.append(" COALESCE(t.IMPORTESEGURO, 0) as seguro, ");
sql.append(" COALESCE(t.IMPORTEOUTROS, 0) as outros, ");
sql.append(" cs.DESCCLASE as tipoClasse, ");
sql.append(" r.DESCRUTA as linha, ");
sql.append(" e.NOMBEMPRESA as empresa, ");
sql.append(" vt.FECINICIOVIGENCIA as dataVigenciaInicial, ");
sql.append(" vt.FECFINVIGENCIA as dataVigenciaFinal, ");
sql.append(" vt.VIGENCIATARIFA_ID as idVigencia, ");
sql.append(" vt.FECINICIOVIGENCIA as dataVigenciaInicial, ");
sql.append(" r.RUTA_ID as idLinha, ");
sql.append(" tr.CANTKMREAL as kmReal ");
sql.append("FROM TARIFA t ");
sql.append("INNER JOIN PARADA pOrigem ON t.ORIGEN_ID = pOrigem.PARADA_ID ");
sql.append("INNER JOIN PARADA pDestino ON t.DESTINO_ID = pDestino.PARADA_ID ");
sql.append("INNER JOIN CLASE_SERVICIO cs ON cs.CLASESERVICIO_ID = t.CLASESERVICIO_ID ");
sql.append("INNER JOIN RUTA r ON r.RUTA_ID = t.RUTA_ID ");
sql.append("INNER JOIN MARCA m ON m.MARCA_ID = t.MARCA_ID ");
sql.append("INNER JOIN EMPRESA e ON e.EMPRESA_ID = m.EMPRESA_ID ");
sql.append("INNER JOIN VIGENCIA_TARIFA vt ON vt.VIGENCIATARIFA_ID = t.VIGENCIATARIFA_ID ");
sql.append("INNER JOIN RUTA_COMBINACION rc ON rc.RUTA_ID = r.RUTA_ID ");
sql.append("INNER JOIN TRAMO tr ON tr.TRAMO_ID = rc.TRAMO_ID ");
sql.append("INNER JOIN ORGAO_CONCEDENTE o ON o.ORGAOCONCEDENTE_ID = r.ORGAOCONCEDENTE_ID ");
sql.append(" SELECT ");
sql.append(" po.cveparada as cveorigem, ");
sql.append(" pd.cveparada as cvedestino, ");
sql.append(" po.DESCPARADA as origem, ");
sql.append(" pd.DESCPARADA as destino, ");
sql.append(" pos.DESCPARADA as aliasorigem, ");
sql.append(" pds.DESCPARADA as aliasdestino, ");
sql.append(" COALESCE(t.precio,0) as tarifa, ");
sql.append(" COALESCE(t.IMPORTEPEDAGIO, 0) as pedagio, ");
sql.append(" COALESCE(t.IMPORTETAXAEMBARQUE, 0) as taxaEmbarque, ");
sql.append(" COALESCE(t.IMPORTESEGURO, 0) as seguro, ");
sql.append(" COALESCE(t.IMPORTEOUTROS, 0) as outros, ");
sql.append(" cs.DESCCLASE as tipoClasse, ");
sql.append(" r.DESCRUTA as linha, ");
sql.append(" r.prefixo as prefixo, ");
sql.append(" e.NOMBEMPRESA as empresa, ");
sql.append(" vt.FECINICIOVIGENCIA as dataVigenciaInicial, ");
sql.append(" vt.FECFINVIGENCIA as dataVigenciaFinal, ");
sql.append(" vt.VIGENCIATARIFA_ID as idVigencia, ");
sql.append(" vt.FECINICIOVIGENCIA as dataVigenciaInicial, ");
sql.append(" r.RUTA_ID as idLinha, ");
sql.append(" tr.CANTKMREAL as kmReal, ");
sql.append(" o.descorgao as orgao ");
sql.append(" FROM TARIFA t ");
sql.append(" INNER JOIN PARADA po ON t.ORIGEN_ID = po.PARADA_ID ");
sql.append(" INNER JOIN PARADA pd ON t.DESTINO_ID = pd.PARADA_ID ");
sql.append(" INNER JOIN CLASE_SERVICIO cs ON cs.CLASESERVICIO_ID = t.CLASESERVICIO_ID ");
sql.append(" INNER JOIN RUTA r ON r.RUTA_ID = t.RUTA_ID ");
sql.append(" INNER JOIN MARCA m ON m.MARCA_ID = t.MARCA_ID ");
sql.append(" INNER JOIN EMPRESA e ON e.EMPRESA_ID = m.EMPRESA_ID ");
sql.append(" INNER JOIN VIGENCIA_TARIFA vt ON vt.VIGENCIATARIFA_ID = t.VIGENCIATARIFA_ID ");
sql.append(" INNER JOIN RUTA_COMBINACION rc ON rc.RUTA_ID = r.RUTA_ID ");
sql.append(" INNER JOIN TRAMO tr ON tr.TRAMO_ID = rc.TRAMO_ID ");
sql.append(" INNER JOIN ORGAO_CONCEDENTE o ON o.ORGAOCONCEDENTE_ID = r.ORGAOCONCEDENTE_ID ");
sql.append(" LEFT JOIN alias_servico s ON s.ORIGEN_ID = t.ORIGEN_ID ");
sql.append(" AND s.DESTINO_ID = t.DESTINO_ID ");
sql.append(" AND s.RUTA_ID = r.RUTA_ID ");
sql.append(" AND s.activo = 1 ");
sql.append(" LEFT JOIN parada pos ON POS.PARADA_ID = S.ALIASORIGEN_ID ");
sql.append(" LEFT JOIN parada pds ON PDS.PARADA_ID = S.ALIASDESTINO_ID ");
sql.append("WHERE rc.INDVENTA = 1 ");
sql.append("AND rc.ACTIVO = 1 ");
sql.append("AND tr.ACTIVO = 1 ");
@ -131,8 +150,8 @@ public class RelatorioTabelaPreco extends Relatorio {
sql.append(" AND rc.indexibetabela = 1 ");
}
sql.append("AND tr.ORIGEN_ID = t.ORIGEN_ID ");
sql.append("AND tr.DESTINO_ID = t.DESTINO_ID ");
sql.append(" AND tr.ORIGEN_ID = t.ORIGEN_ID ");
sql.append(" AND tr.DESTINO_ID = t.DESTINO_ID ");
sql.append(" AND vt.VIGENCIATARIFA_ID = " + parametros.get("VIGENCIA_ID"));
sql.append(" AND e.empresa_id = " + parametros.get("EMPRESA_ID"));
@ -153,7 +172,7 @@ public class RelatorioTabelaPreco extends Relatorio {
sql.append(" AND tr.DESTINO_ID= " + parametros.get("destinoId"));
}
sql.append(" ORDER BY r.RUTA_ID, vt.FECINICIOVIGENCIA");
sql.append(" ORDER BY r.DESCRUTA, vt.FECINICIOVIGENCIA");
if (isLayoutArtesp) {
sql.append(") ORDER BY origem,destino");

View File

@ -15,14 +15,20 @@ cabecalho.filtros=Filtros:
#Labels header
label.origem=Origem
label.destino=Destino
label.origemalias=Origem Alias
label.destinoalias=Destino Alias
label.tarifa=Tarifa
label.pedagio=Pedágio
label.taxaEmbarque=Taxa
label.seguro=Seguro
label.outros=Outros
label.tipoClasse=Classe
label.linha=Linha(s)
label.empresa=Empresa
label.dataVigencia=Vigência
label.linha=Linha:
label.linhas=Linhas:
label.empresa=Empresa:
label.dataVigencia=Vigência:
label.total=Total
label.orgacaoConcedente=Orgão Concedente
label.totalSeg=Total c/ Seg
label.cve=CVE
label.prefixo=Prefixo:
label.orgacaoConcedente=Orgão Concedente:

View File

@ -15,14 +15,20 @@ cabecalho.filtros=Filtros:
#Labels header
label.origem=Origem
label.destino=Destino
label.origemalias=Origem Alias
label.destinoalias=Destino Alias
label.tarifa=Tarifa
label.pedagio=Pedágio
label.taxaEmbarque=Taxa
label.seguro=Seguro
label.outros=Outros
label.tipoClasse=Classe
label.linha=Linha(s)
label.empresa=Empresa
label.dataVigencia=Vigência
label.linha=Linha:
label.linhas=Linhas:
label.empresa=Empresa:
label.dataVigencia=Vigência:
label.total=Total
label.orgacaoConcedente=Orgão Concedente
label.totalSeg=Total c/ Seg
label.cve=CVE
label.prefixo=Prefixo:
label.orgacaoConcedente=Orgão Concedente:

View File

@ -1,10 +1,13 @@
<?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="RelatorioTabelaPreco" 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.000000000000023"/>
<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="RelatorioTabelaPreco" pageWidth="1300" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="1260" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
<property name="ireport.zoom" value="2.3579476910000587"/>
<property name="ireport.x" value="0"/>
<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"/>
<property name="ireport.y" value="39"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="title"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="pageHeader"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
@ -17,102 +20,210 @@
<parameter name="VIGENCIA_ID" class="java.lang.Integer"/>
<parameter name="ORGAO_CONCEDENTE" class="java.lang.String"/>
<parameter name="ORGAO_CONCEDENTE_ID" class="java.lang.Integer"/>
<parameter name="USUARIO_NOME" class="java.lang.String"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="cveorigem" class="java.lang.String"/>
<field name="cvedestino" class="java.lang.String"/>
<field name="origem" class="java.lang.String"/>
<field name="destino" class="java.lang.String"/>
<field name="aliasorigem" class="java.lang.String"/>
<field name="aliasdestino" class="java.lang.String"/>
<field name="tarifa" class="java.math.BigDecimal"/>
<field name="pedagio" class="java.math.BigDecimal"/>
<field name="taxaEmbarque" class="java.math.BigDecimal"/>
<field name="seguro" class="java.math.BigDecimal"/>
<field name="outros" class="java.math.BigDecimal"/>
<field name="tipoClasse" class="java.lang.String"/>
<field name="linha" class="java.lang.String"/>
<field name="prefixo" class="java.lang.String"/>
<field name="empresa" class="java.lang.String"/>
<field name="dataVigenciaInicial" class="java.util.Date"/>
<field name="dataVigenciaFinal" class="java.util.Date"/>
<field name="taxaEmbarque" class="java.math.BigDecimal"/>
<field name="idVigencia" class="java.lang.Integer"/>
<field name="idLinha" class="java.lang.Integer"/>
<field name="orgao" class="java.lang.String"/>
<variable name="totalbilhete" class="java.math.BigDecimal">
<variableExpression><![CDATA[$F{tarifa}
.add($F{pedagio})
.add($F{taxaEmbarque})
.add($F{outros})]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="totalgeral" class="java.math.BigDecimal">
<variableExpression><![CDATA[$F{tarifa}
.add($F{pedagio})
.add($F{taxaEmbarque})
.add($F{seguro})
.add($F{outros})]]></variableExpression>
</variable>
<group name="ruta">
<groupExpression><![CDATA[$F{linha}]]></groupExpression>
<groupHeader>
<band height="40">
<band height="30">
<textField>
<reportElement uuid="cc799fe5-534d-457f-bd27-6bd4f751e9f1" x="880" y="15" width="83" height="15"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.totalSeg}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ac55c68a-58e3-4b69-a6f0-eba5cfb4e222" x="815" y="15" width="65" height="15"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.seguro}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ddc57a6d-d56b-418a-967d-c0b99ef3c047" x="604" y="15" width="65" height="15"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.taxaEmbarque}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d49e2013-dad9-4eda-9663-d4541c736bb8" x="669" y="15" width="65" height="15"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.outros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5231cff6-33f4-4afb-bdc1-e1bbc5fd27f8" x="380" y="15" width="94" height="15"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.tipoClasse}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="70beacf1-7122-49dc-bcde-524300505ee5" x="539" y="15" width="65" height="15"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="0b205a4d-6128-4dac-bbd9-eb03ec6f3618" mode="Transparent" x="230" y="15" width="150" 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{label.destino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="e3c11bc0-5229-4925-b7fe-6a1e572ce946" x="0" y="0" width="801" height="18"/>
<reportElement uuid="0a9adaf0-539f-4cc5-9948-1b1810cd9f4c" x="815" y="0" width="148" height="15"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{linha}]]></textFieldExpression>
<textFieldExpression><![CDATA[$R{label.orgacaoConcedente}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="9be623fc-6ec6-4d46-99a5-e09c3d9a04bd" x="0" y="0" width="62" height="15"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.prefixo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="ed84000c-a160-43f0-a858-72e94d57c44d" x="963" y="0" width="296" height="15"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{orgao}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="b7c218e0-577f-41f1-9e9c-160eb79b56bd" x="62" y="0" width="62" height="15"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{prefixo}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="6275ec99-32b3-4367-b830-c1bbd825bb91" x="124" y="0" width="66" height="15"/>
<box leftPadding="1">
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.linha}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="f42ebb24-016c-47f0-8f28-2d079e9435ec" x="963" y="15" width="149" height="15" isPrintWhenDetailOverflows="true"/>
<box leftPadding="1"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.origemalias}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="d332e48b-a0ae-4382-96bd-cf5c708b560b" mode="Transparent" x="396" y="22" width="65" height="18" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="eaf0e2f0-44fb-4940-8aab-bd2902d138bc" mode="Transparent" x="1112" y="15" width="149" 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[$R{label.destinoalias}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="16004237-f5ef-4fbc-bd38-ded51d97c405" x="0" y="15" width="40" height="15"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.cve}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="e3c11bc0-5229-4925-b7fe-6a1e572ce946" x="190" y="0" width="625" height="15"/>
<box>
<bottomPen lineWidth="0.5"/>
</box>
<textElement>
<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$F{idLinha}+" - "+ $F{linha}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="d332e48b-a0ae-4382-96bd-cf5c708b560b" mode="Transparent" x="474" y="15" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.tarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="5790b9cc-35da-4f6d-85da-66acc015483b" x="0" y="22" width="151" height="18" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="10" isBold="true"/>
<reportElement uuid="5790b9cc-35da-4f6d-85da-66acc015483b" x="40" y="15" width="150" height="15" isPrintWhenDetailOverflows="true"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="cc799fe5-534d-457f-bd27-6bd4f751e9f1" x="721" y="22" width="81" height="18"/>
<reportElement uuid="02ef0f70-3a78-4322-a914-6a57c1ba7469" x="190" y="15" width="40" height="15"/>
<textElement textAlignment="Left" verticalAlignment="Top">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.cve}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ac0b6878-08b8-4118-9ef1-b7e516c36521" x="734" y="15" width="81" height="15"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="10" isBold="true"/>
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.total}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ac55c68a-58e3-4b69-a6f0-eba5cfb4e222" x="526" y="22" width="65" height="18"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.taxaEmbarque}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="ddc57a6d-d56b-418a-967d-c0b99ef3c047" x="591" y="22" width="65" height="18"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.seguro}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d49e2013-dad9-4eda-9663-d4541c736bb8" x="656" y="22" width="65" height="18"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.outros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5231cff6-33f4-4afb-bdc1-e1bbc5fd27f8" x="302" y="22" width="94" height="18"/>
<textElement textAlignment="Center" verticalAlignment="Top">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.tipoClasse}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="70beacf1-7122-49dc-bcde-524300505ee5" x="461" y="22" width="65" height="18"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="10" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.pedagio}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="0b205a4d-6128-4dac-bbd9-eb03ec6f3618" mode="Transparent" x="151" y="22" width="151" height="18" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
@ -120,215 +231,176 @@
<groupExpression><![CDATA[$F{dataVigenciaInicial}]]></groupExpression>
</group>
<title>
<band height="69">
<band height="67">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="0" y="0" width="563" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="14" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="656" y="0" width="65" height="25"/>
<textElement textAlignment="Right">
<font size="8" 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="721" y="0" width="80" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="711" y="27" width="70" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="0f6ea959-18ce-45fc-be6c-a814a0476c4e" mode="Transparent" x="963" y="15" width="270" height="16" 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="27" width="20" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="038efca4-bebf-4d0e-9486-3bfb9680faf7" mode="Transparent" x="0" y="0" width="963" height="46" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="16" 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="ad4046fb-5ef4-410f-85a5-17cca2f7cf4c" stretchType="RelativeToBandHeight" mode="Transparent" x="963" y="31" width="296" 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.impressorPor}+" "+$P{USUARIO_NOME}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1e11c007-fe9f-4ae1-b7dd-5b3574ef9cee" x="963" y="0" width="214" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="9eee37bf-9dc9-441c-96f7-01562efffce8" x="0" y="46" width="1259" height="21"/>
<box leftPadding="2">
<topPen lineWidth="0.75"/>
<bottomPen lineWidth="0.75"/>
</box>
<textElement verticalAlignment="Middle">
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="d925825f-4cfd-4dd0-8088-20a6810f1a48" mode="Transparent" x="1179" y="0" width="80" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="27212e2f-7312-4bd4-b218-d9aef0e24a14" mode="Transparent" x="1233" y="15" width="26" height="16" 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[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="563" y="0" width="93" height="25" 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.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="64027797-62dc-4e02-8e40-958ac1511e0a" x="0" y="27" width="62" height="13" isPrintWhenDetailOverflows="true"/>
<box>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Justified" verticalAlignment="Top">
<font size="9" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.empresa} + ":"]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="bcd47f18-94dc-4d33-96db-6d89795188d3" x="62" y="27" width="148" height="13"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA_ID} == null ?
"Todas" :
($P{EMPRESA_ID}.toString() + " - " + $P{EMPRESA})]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="049832ef-f634-42f9-95b1-ac2e1fe23b10" x="0" y="40" width="62" height="13" isPrintWhenDetailOverflows="true"/>
<box>
<bottomPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Top">
<font size="9" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.linha} + ":"]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="df6b8946-988c-479c-8eeb-c8d40c94734b" x="62" y="40" width="739" height="13"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{LINHAS}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="2d048310-1ec5-4711-b402-75ef3d3500d4" x="210" y="27" width="75" height="13" isPrintWhenDetailOverflows="true"/>
<box>
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Top">
<font size="9" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.dataVigencia} + ":"]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="40c47b73-ef86-4b76-a4bb-ec284d4e6f59" x="285" y="27" width="70" height="13">
<printWhenExpression><![CDATA[new Boolean($P{VIGENCIA_ID} != null)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{VIGENCIA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="12564f32-d986-46a6-a184-23b23ba50bcb" x="373" y="27" width="70" height="13">
<printWhenExpression><![CDATA[new Boolean($P{VIGENCIA_ID} != null)]]></printWhenExpression>
</reportElement>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{VIGENCIA_FINAL}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="bdfc1a2c-9e77-418f-8169-50c67ad7f116" x="355" y="27" width="18" height="12">
<printWhenExpression><![CDATA[new Boolean($P{VIGENCIA_ID} != null)]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<text><![CDATA[à]]></text>
</staticText>
<staticText>
<reportElement uuid="1bba53bd-7d81-491b-b1de-11a0c570c5c7" x="285" y="27" width="158" height="13">
<printWhenExpression><![CDATA[new Boolean($P{VIGENCIA_ID} == null)]]></printWhenExpression>
</reportElement>
<textElement>
<font size="9"/>
</textElement>
<text><![CDATA[Todas]]></text>
</staticText>
<textField>
<reportElement uuid="0241b100-99d6-4e53-abd1-0154defc75bc" x="537" y="27" width="174" height="13"/>
<textElement>
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$P{ORGAO_CONCEDENTE_ID} == null ?
"Todas" : $P{ORGAO_CONCEDENTE}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="afabe5dc-df90-4120-a42a-af1d3e6df583" x="444" y="27" width="93" height="13" isPrintWhenDetailOverflows="true"/>
<box>
<bottomPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Top">
<font size="9" isBold="true" pdfFontName="Helvetica-Bold"/>
</textElement>
<textFieldExpression><![CDATA[$R{label.orgacaoConcedente} + ":"]]></textFieldExpression>
</textField>
</band>
</title>
<detail>
<band height="32" splitType="Stretch">
<textField isStretchWithOverflow="true">
<reportElement uuid="4a0efda0-b112-4092-8164-292ab7fb1950" x="0" y="2" width="151" height="20"/>
<textElement textAlignment="Center"/>
<band height="17" splitType="Stretch">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="4a0efda0-b112-4092-8164-292ab7fb1950" x="40" y="1" width="150" height="15"/>
<textElement textAlignment="Left">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="f544e769-3f8c-4200-86ed-01f6c4024334" x="151" y="2" width="151" height="20"/>
<textElement textAlignment="Center"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="f544e769-3f8c-4200-86ed-01f6c4024334" x="230" y="1" width="150" height="15"/>
<textElement textAlignment="Left">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="b81fcb18-2337-4514-be27-fe7d3c88acc5" x="396" y="2" width="65" height="20"/>
<textElement textAlignment="Right"/>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="b81fcb18-2337-4514-be27-fe7d3c88acc5" x="474" y="1" width="65" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="8a545d22-875e-46cd-8011-444a8e884bca" x="461" y="2" width="65" height="20"/>
<textElement textAlignment="Right"/>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="8a545d22-875e-46cd-8011-444a8e884bca" x="539" y="1" width="65" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="6f76912d-0eef-439c-9fb8-236181d94033" x="656" y="2" width="65" height="20"/>
<textElement textAlignment="Right"/>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="6f76912d-0eef-439c-9fb8-236181d94033" x="669" y="1" width="65" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="ac958e4e-b8ad-4abc-b58a-1aaca4992db6" x="526" y="2" width="65" height="20"/>
<textElement textAlignment="Right"/>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="ac958e4e-b8ad-4abc-b58a-1aaca4992db6" x="604" y="1" width="65" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{taxaEmbarque}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="72858663-765d-4843-bc51-ec6a80a0b7d0" x="591" y="2" width="65" height="20"/>
<textElement textAlignment="Right"/>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="72858663-765d-4843-bc51-ec6a80a0b7d0" x="815" y="1" width="65" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement uuid="11f32d65-9824-47f6-95f5-482cce626d4b" x="302" y="2" width="94" height="20"/>
<textElement textAlignment="Center"/>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="11f32d65-9824-47f6-95f5-482cce626d4b" x="380" y="1" width="94" height="15"/>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{tipoClasse}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00">
<reportElement uuid="722229cf-1b78-459d-92fc-1a30615054a2" x="721" y="2" width="81" height="20"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{tarifa}.doubleValue() +
$F{pedagio}.doubleValue() +
$F{taxaEmbarque}.doubleValue() +
$F{seguro}.doubleValue() +
$F{outros}.doubleValue()]]></textFieldExpression>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="722229cf-1b78-459d-92fc-1a30615054a2" x="880" y="1" width="83" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalgeral}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="0966b1d4-66b6-4e84-b2a6-644808edae46" x="1112" y="1" width="149" height="15"/>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{aliasdestino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="d2d3da3e-b81c-4812-8bc1-42762136be8d" x="963" y="1" width="149" height="15"/>
<box leftPadding="1"/>
<textElement textAlignment="Center">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{aliasorigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="dd56b90a-ad33-4ea0-ac9f-7cc198841637" x="0" y="1" width="40" height="15"/>
<textElement textAlignment="Left">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{cveorigem}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="909ed476-9b33-47c7-be4d-c72ea5746f99" x="190" y="1" width="40" height="15"/>
<textElement textAlignment="Left">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$F{cvedestino}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="1c762c23-20a3-4164-ba71-96dfbca0e47f" x="734" y="1" width="81" height="15"/>
<textElement textAlignment="Right">
<font size="9"/>
</textElement>
<textFieldExpression><![CDATA[$V{totalbilhete}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="28">
<textField>
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="0" y="2" width="801" height="26"/>
<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="-1" y="0" width="1261" height="28"/>
<textElement textAlignment="Center" markup="none">
<font size="11" isBold="true"/>
<font size="12" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>

View File

@ -1,5 +1,6 @@
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
@ -102,39 +103,67 @@ public class RelatorioTabelaPrecoController extends MyGenericForwardComposer {
private void executarRelatorio() throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("NOME_RELATORIO", Labels.getLabel(TITULO));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("USUARIO_NOME", UsuarioLogado.getUsuarioLogado().getNombusuario());
Comboitem itemVigencia = cmbVigencia.getSelectedItem();
filtro.append("Vigencia: ");
if (itemVigencia != null) {
VigenciaTarifa vigencia = (VigenciaTarifa) itemVigencia.getValue();
parametros.put("VIGENCIA_ID", vigencia.getVigenciatarifaId());
parametros.put("VIGENCIA_INICIAL", vigencia.getFeciniciovigencia());
parametros.put("VIGENCIA_FINAL", vigencia.getFecfinvigencia());
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
filtro.append( sdf.format(vigencia.getFeciniciovigencia()) );
filtro.append( " à " );
filtro.append( sdf.format(vigencia.getFecfinvigencia()) );
}else {
filtro.append(" Todas;");
}
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
filtro.append(" Empresa: ");
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA", empresa.getNombempresa());
parametros.put("MARCA",marcaService.buscarMarcaPorEmpresa(Arrays.asList(empresa)).get(0));
filtro.append(empresa.getNombempresa() + ";");
}else {
filtro.append(" Todas;");
}
filtro.append(" Orgão Concedente: ");
if (cmbOrgaoConcedente.getSelectedItem() != null) {
OrgaoConcedente orgaoConcedente = (OrgaoConcedente) cmbOrgaoConcedente.getSelectedItem().getValue();
parametros.put("ORGAO_CONCEDENTE_ID", orgaoConcedente.getOrgaoConcedenteId());
parametros.put("ORGAO_CONCEDENTE", orgaoConcedente.getDescOrgao());
filtro.append(orgaoConcedente.getDescOrgao() + ";");
}else {
filtro.append(" Todos;");
}
filtro.append(" Origem: ");
if (cmbOrigem.getSelectedItem() != null) {
parametros.put("origemId", cmbOrigem.getSelectedObject().getParadaId());
filtro.append(cmbOrigem.getSelectedObject().getDescparada());
}else {
filtro.append(" Todas;");
}
filtro.append(" Destino: ");
if (cmbDestino.getSelectedItem() != null) {
parametros.put("destinoId", cmbDestino.getSelecteObject(Parada.class).getParadaId());
filtro.append(cmbDestino.getSelecteObject(Parada.class).getDescparada());
}else {
filtro.append(" Todos;");
}
parametros.put("isLayoutArtesp", chkLayoutArtesp.isChecked());
@ -143,8 +172,9 @@ public class RelatorioTabelaPrecoController extends MyGenericForwardComposer {
String rutas = "";
List<Ruta> lsLinhasSelecionadas = convertTypedList(linhaSelList.getData());
filtro.append(" Linhas: ");
if (lsLinhasSelecionadas.isEmpty()) {
rutas = "Todas";
rutas = " Todas;";
} else {
for (int i = 0; i < lsLinhasSelecionadas.size(); i++) {
Ruta ruta = lsLinhasSelecionadas.get(i);
@ -155,9 +185,13 @@ public class RelatorioTabelaPrecoController extends MyGenericForwardComposer {
rutaIds = rutaIds.substring(0, rutaIds.length() - 1);
rutas = rutas.substring(0, rutas.length() - 2);
parametros.put("LINHAS_ID", rutaIds);
}
filtro.append( rutas);
parametros.put("LINHAS", rutas);
parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = new RelatorioTabelaPreco(parametros, dataSourceRead.getConnection(), segVKMService);
Map<String, Object> args = new HashMap<String, Object>();