fixes bug#21371

qua:
dev:Fabio

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@105056 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2021-01-18 14:58:59 +00:00
parent a89f01a57c
commit eb68465227
3 changed files with 78 additions and 65 deletions

View File

@ -41,6 +41,8 @@ public class RelatorioAproveitamentoFinanceiro extends Relatorio {
sql.append(" count( c.caja_id) as passageiros, ");
sql.append(" sum( c.PRECIOPAGADO )as valor, ");
sql.append(" to_char( c.FECHORVENTA, 'D') as dia, ");
// Quantidade de dias da semana diferente vendidas
// "WW" Esse parâmetro para o to_char tras o dia da semana da data
sql.append(" coalesce(count(DISTINCT to_char( c.FECHORVENTA, 'WW')), 0) as qtde, ");
sql.append(" r.indsentidoida as sentido, ");
sql.append(" da.cantasientos as assentos, ");
@ -104,7 +106,7 @@ public class RelatorioAproveitamentoFinanceiro extends Relatorio {
dataResult.put("SENTIDO", rset.getString("sentido"));
dataResult.put("SERVICO", rset.getString("servico"));
dataResult.put("HORARIO", rset.getString("horario"));
//Quantidade de assentos do diagrana autobus
BigDecimal assentos = limpaNulo(rset.getBigDecimal("assentos"));
BigDecimal tarifa = limpaNulo(rset.getBigDecimal("tarifa"));
BigDecimal totPassageiros = BigDecimal.ZERO;
@ -169,37 +171,37 @@ public class RelatorioAproveitamentoFinanceiro extends Relatorio {
dataResult.put("SEG_RECEITA_OPE", segReceitaOpe);
dataResult.put("SEG_QTDE", new BigDecimal(segQtde));
dataResult.put("SEG_TOT", segTot);
dataResult.put("SEG_FIN", calculaMedia(segReceitaOpe, tarifa, segQtde, segTot));
dataResult.put("SEG_FIN", calculaMedia(segReceitaOpe, tarifa, segQtde, assentos));
dataResult.put("TER_RECEITA_OPE", terReceitaOpe);
dataResult.put("TER_QTDE", new BigDecimal(terQtde));
dataResult.put("TER_TOT", terTot);
dataResult.put("TER_FIN", calculaMedia(terReceitaOpe, tarifa, terQtde, terTot));
dataResult.put("TER_FIN", calculaMedia(terReceitaOpe, tarifa, terQtde, assentos));
dataResult.put("QUA_RECEITA_OPE", quaReceitaOpe);
dataResult.put("QUA_QTDE", new BigDecimal(quaQtde));
dataResult.put("QUA_TOT", quaTot);
dataResult.put("QUA_FIN", calculaMedia(quaReceitaOpe, tarifa, quaQtde, quaTot));
dataResult.put("QUA_FIN", calculaMedia(quaReceitaOpe, tarifa, quaQtde, assentos));
dataResult.put("QUI_RECEITA_OPE", quiReceitaOpe);
dataResult.put("QUI_QTDE", new BigDecimal(quiQtde));
dataResult.put("QUI_TOT", quiTot);
dataResult.put("QUI_FIN", calculaMedia(quiReceitaOpe, tarifa, quiQtde, quiTot));
dataResult.put("QUI_FIN", calculaMedia(quiReceitaOpe, tarifa, quiQtde, assentos));
dataResult.put("SEX_RECEITA_OPE", sexReceitaOpe);
dataResult.put("SEX_QTDE", new BigDecimal(sexQtde));
dataResult.put("SEX_TOT", sexTot);
dataResult.put("SEX_FIN", calculaMedia(sexReceitaOpe, tarifa, sexQtde, sexTot));
dataResult.put("SEX_FIN", calculaMedia(sexReceitaOpe, tarifa, sexQtde, assentos));
dataResult.put("SAB_RECEITA_OPE", sabReceitaOpe);
dataResult.put("SAB_QTDE", new BigDecimal(sabQtde));
dataResult.put("SAB_TOT", sabTot);
dataResult.put("SAB_FIN", calculaMedia(sabReceitaOpe, tarifa, sabQtde, sabTot));
dataResult.put("SAB_FIN", calculaMedia(sabReceitaOpe, tarifa, sabQtde, assentos));
dataResult.put("DOM_RECEITA_OPE", domReceitaOpe);
dataResult.put("DOM_QTDE", new BigDecimal(domQtde));
dataResult.put("DOM_TOT", domTot);
dataResult.put("DOM_FIN", calculaMedia(domReceitaOpe, tarifa, domQtde, domTot));
dataResult.put("DOM_FIN", calculaMedia(domReceitaOpe, tarifa, domQtde, assentos));
this.dados.add(dataResult);
}
@ -222,9 +224,21 @@ public class RelatorioAproveitamentoFinanceiro extends Relatorio {
}
}
/**
* Faz cálculo da média na seguinte fórmula (Tot. Rceita / (tarifa * qtde * assentos))
* (1427,17 / (108,30*1*42)) * 100
* @param totReceita
* @param tarifa
* @param qtde (Quantidade viagens do dia da semana no periodo.
* Ex 01 a 07, sendo 01 Domingo e 07 Sábado, terá sempre quantidade igual a 7 se o serviço for executado todo dia)
* @param tot
* @return
*/
private BigDecimal calculaMedia(BigDecimal totReceita, BigDecimal tarifa, Integer qtde, BigDecimal tot) {
if( qtde.intValue() != 0 && tot.intValue() !=0 ) {
//Multiplica a tarifa pela quantidade de viagens no dia da semana (Segunda, terça...) no período
BigDecimal dividendo = tarifa.multiply(new BigDecimal(qtde));
//Multiplica o dividendo pelo total de passegeiros
dividendo = dividendo.multiply(tot);
if(dividendo.intValue() == 0 ) {
@ -232,8 +246,7 @@ public class RelatorioAproveitamentoFinanceiro extends Relatorio {
}
BigDecimal fin = totReceita.divide(dividendo, 4, BigDecimal.ROUND_HALF_UP);
fin = fin.multiply(new BigDecimal(new Long(100L)));
fin.setScale(2);
fin = fin.multiply(new BigDecimal(new Long(100L))).setScale(2);
return fin;
}else{
return BigDecimal.ZERO;

View File

@ -2,7 +2,7 @@
<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="RelatorioAproveitamentoFinanceiro" pageWidth="873" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="833" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="1.3636363636363682"/>
<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="pageHeader"/>
<property name="ireport.x" value="0"/>
<property name="ireport.x" value="441"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
@ -423,8 +423,8 @@
$F{ASSENTOS}
)
)
, 2, BigDecimal.ROUND_HALF_UP )
.multiply( new BigDecimal("100") )) : new BigDecimal(0)]]></variableExpression>
, 4, BigDecimal.ROUND_HALF_UP )
.multiply( new BigDecimal(new Integer(100)) )).setScale(2) : new BigDecimal(0)]]></variableExpression>
<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
</variable>
<variable name="finMediaGeral" class="java.math.BigDecimal">
@ -461,7 +461,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement verticalAlignment="Middle">
<font size="8"/>
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{LINHA}]]></textFieldExpression>
</textField>
@ -471,7 +471,7 @@
<topPen lineWidth="1.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Receita unitária objetiva: "]]></textFieldExpression>
@ -482,7 +482,7 @@
<topPen lineWidth="1.25"/>
</box>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA["Lugares p/ Viagem: "+$F{ASSENTOS}.toString()]]></textFieldExpression>
@ -494,7 +494,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$F{TARIFA}]]></textFieldExpression>
@ -526,7 +526,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuaQtdeLinha}+"/"+$V{totQuaTotLinha}]]></textFieldExpression>
@ -539,7 +539,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuaFinLinha}]]></textFieldExpression>
@ -552,7 +552,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totTerFinLinha}]]></textFieldExpression>
@ -564,7 +564,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSexQtdeLinha}+"/"+$V{totSexTotLinha}]]></textFieldExpression>
@ -577,7 +577,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSabFinLinha}]]></textFieldExpression>
@ -589,7 +589,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totTerQtdeLinha}+"/"+$V{totTerTotLinha}]]></textFieldExpression>
@ -602,7 +602,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSegFinLinha}]]></textFieldExpression>
@ -614,7 +614,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuiQtdeLinha}+"/"+$V{totQuiTotLinha}]]></textFieldExpression>
@ -627,7 +627,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuiFinLinha}]]></textFieldExpression>
@ -640,7 +640,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSexFinLinha}]]></textFieldExpression>
@ -652,7 +652,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSabQtdeLinha}+"/"+$V{totSabTotLinha}]]></textFieldExpression>
@ -665,7 +665,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totDomQtdeLinha}+"/"+$V{totDomTotLinha}]]></textFieldExpression>
@ -678,7 +678,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totDomFinLinha}]]></textFieldExpression>
@ -690,7 +690,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSegQtdeLinha}+"/"+$V{totSegTotLinha}]]></textFieldExpression>
@ -703,7 +703,7 @@
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{finMediaLinha}]]></textFieldExpression>
@ -716,7 +716,7 @@
<rightPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totPassageiroLinha}]]></textFieldExpression>
@ -729,7 +729,7 @@
<rightPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totReceitaLinha}]]></textFieldExpression>
@ -743,7 +743,7 @@
<pageHeader>
<band height="54" splitType="Stretch">
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="42796e20-405c-441f-9fd9-b26238bc7cdb" mode="Transparent" x="43" y="14" width="69" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="42796e20-405c-441f-9fd9-b26238bc7cdb" mode="Opaque" x="43" y="14" width="69" height="14" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -751,7 +751,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="d2973779-79dc-4cc8-937a-e9167c42bab0" mode="Transparent" x="0" y="0" width="566" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="d2973779-79dc-4cc8-937a-e9167c42bab0" mode="Opaque" x="0" y="0" width="680" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -759,7 +759,7 @@
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="8730e85b-d436-42cd-beb6-1a881bad2478" mode="Transparent" x="122" y="14" width="168" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="8730e85b-d436-42cd-beb6-1a881bad2478" mode="Opaque" x="122" y="14" width="558" height="14" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -767,7 +767,7 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="26bbd310-5e59-4975-a47f-b0048e80b1b6" mode="Transparent" x="0" y="14" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="26bbd310-5e59-4975-a47f-b0048e80b1b6" mode="Opaque" x="0" y="14" width="44" height="14" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -775,7 +775,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="9630a784-5f92-4abe-805c-fd175e4f8241" mode="Transparent" x="0" y="40" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="9630a784-5f92-4abe-805c-fd175e4f8241" mode="Opaque" x="0" y="40" width="45" height="14" forecolor="#000000" backcolor="#CDCDCD"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
@ -787,7 +787,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="91cded42-c53d-469a-abc7-6eb0d59f69af" mode="Transparent" x="718" y="-1" width="115" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="91cded42-c53d-469a-abc7-6eb0d59f69af" mode="Opaque" x="742" y="-1" width="91" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -795,7 +795,7 @@
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false">
<reportElement uuid="62f6ba6e-1aaf-4449-aef6-2e9d6e541856" stretchType="RelativeToBandHeight" mode="Transparent" x="300" y="27" width="532" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="62f6ba6e-1aaf-4449-aef6-2e9d6e541856" stretchType="RelativeToBandHeight" mode="Opaque" x="0" y="27" width="832" height="12" forecolor="#000000" backcolor="#CDCDCD"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -803,7 +803,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="985f839c-258a-47eb-b72b-bec819b7bdbb" mode="Transparent" x="804" y="13" width="29" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="985f839c-258a-47eb-b72b-bec819b7bdbb" mode="Opaque" x="818" y="13" width="15" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -811,7 +811,7 @@
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ba831a24-59f4-4f8f-888f-fd69711018e9" mode="Transparent" x="566" y="13" width="238" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="ba831a24-59f4-4f8f-888f-fd69711018e9" mode="Opaque" x="680" y="13" width="138" height="15" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -819,14 +819,14 @@
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="5cbb57ef-bd5e-4d1b-a077-d0ff398df801" x="566" y="-1" width="151" height="15"/>
<reportElement uuid="5cbb57ef-bd5e-4d1b-a077-d0ff398df801" mode="Opaque" x="680" y="-1" width="62" height="15" backcolor="#CDCDCD"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6d6ab075-006c-4796-98d5-f047ae963876" mode="Transparent" x="112" y="14" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="6d6ab075-006c-4796-98d5-f047ae963876" mode="Opaque" x="112" y="14" width="10" height="14" forecolor="#000000" backcolor="#CDCDCD"/>
<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"/>
@ -834,7 +834,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement uuid="c486add3-94d7-419f-9f37-04f6a6da879e" x="45" y="40" width="788" height="14"/>
<reportElement uuid="c486add3-94d7-419f-9f37-04f6a6da879e" mode="Opaque" x="45" y="40" width="788" height="14" backcolor="#CDCDCD"/>
<box>
<topPen lineWidth="1.25"/>
<bottomPen lineWidth="1.25"/>
@ -1395,7 +1395,7 @@
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{finMediaLinha}]]></textFieldExpression>
@ -1447,7 +1447,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSexQtdeGeral}+"/"+$V{totSexTotGeral}]]></textFieldExpression>
@ -1460,7 +1460,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totDomFinGeral}]]></textFieldExpression>
@ -1473,7 +1473,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totTerFinGeral}]]></textFieldExpression>
@ -1485,7 +1485,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuiQtdeGeral}+"/"+$V{totQuiTotGeral}]]></textFieldExpression>
@ -1497,7 +1497,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totTerQtdeGeral}+"/"+$V{totTerTotGeral}]]></textFieldExpression>
@ -1510,7 +1510,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuaFinGeral}]]></textFieldExpression>
@ -1523,7 +1523,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSexFinGeral}]]></textFieldExpression>
@ -1536,7 +1536,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSegFinGeral}]]></textFieldExpression>
@ -1548,7 +1548,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSabQtdeGeral}+"/"+$V{totSabTotGeral}]]></textFieldExpression>
@ -1560,7 +1560,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSegQtdeGeral}+"/"+$V{totSegTotGeral}]]></textFieldExpression>
@ -1573,7 +1573,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuiFinGeral}]]></textFieldExpression>
@ -1586,7 +1586,7 @@
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{finMediaGeral}]]></textFieldExpression>
@ -1599,7 +1599,7 @@
<rightPen lineWidth="0.25"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totSabFinGeral}]]></textFieldExpression>
@ -1611,7 +1611,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totQuaQtdeGeral}+"/"+$V{totQuaTotGeral}]]></textFieldExpression>
@ -1635,7 +1635,7 @@
<bottomPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totDomQtdeGeral}+"/"+$V{totDomTotGeral}]]></textFieldExpression>
@ -1648,7 +1648,7 @@
<rightPen lineWidth="0.25"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totPassageiroGeral}]]></textFieldExpression>
@ -1674,7 +1674,7 @@
<rightPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totReceitaGeral}]]></textFieldExpression>
@ -1687,7 +1687,7 @@
<rightPen lineWidth="0.0"/>
</box>
<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"/>
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{totViagemGeral}]]></textFieldExpression>