fixes bug#21487
qua: dev:Valdir git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@105781 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
928ce38901
commit
50b0d138e3
|
@ -3,12 +3,13 @@
|
|||
*/
|
||||
package com.rjconsultores.ventaboletos.relatorios.impl;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -85,6 +86,12 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
}
|
||||
|
||||
}
|
||||
Collections.sort(lsDadosRelatorio, new Comparator<RelatorioResumoLinhasBean>() {
|
||||
@Override
|
||||
public int compare(RelatorioResumoLinhasBean rel1, RelatorioResumoLinhasBean rel2) {
|
||||
return rel1.getDESCRUTA().compareTo(rel2.getDESCRUTA());
|
||||
}
|
||||
});
|
||||
if (lsDadosRelatorio.size() > 0) {
|
||||
setLsDadosRelatorio(lsDadosRelatorio);
|
||||
}else {
|
||||
|
@ -110,6 +117,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
|
||||
/**
|
||||
* Obtém SQL, necessário ordenar por prefixo.
|
||||
* Obs.: Não deve será alterado ordenação pois impactará na lógica de agrupamento por ida/volta
|
||||
*
|
||||
* @param rutaId
|
||||
* @param grupoRutaId
|
||||
|
@ -126,14 +134,15 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
sqlSb.append(" (NVL(SUB.ASSENTOS,0) * NVL(SUB.KM_RODADO,0)) AS PAX_OFERTADO ");
|
||||
sqlSb.append(" FROM ");
|
||||
sqlSb.append(" (SELECT TAB.INDSENTIDOIDA, ");
|
||||
sqlSb.append(" TAB.RUTA_ID, ");
|
||||
sqlSb.append(" TAB.NUMRUTA, ");
|
||||
sqlSb.append(" TAB.PREFIXO, ");
|
||||
sqlSb.append(" TAB.DESCRUTA, ");
|
||||
sqlSb.append(" TAB.RUTA_ID, ");
|
||||
sqlSb.append(" TAB.NUMRUTA, ");
|
||||
sqlSb.append(" TAB.INTERESTADUAL, ");
|
||||
sqlSb.append(" TAB.GRUPO_LINHA, ");
|
||||
sqlSb.append(" TAB.EXTENSAO_KM, ");
|
||||
sqlSb.append(" TAB.CVE_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" TAB.DESC_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" SUM(NVL(TAB.RECEITA_SEGURO,0)) AS RECEITA_SEGURO, ");
|
||||
sqlSb.append(" SUM(NVL(TAB.RECEITA_BAGAGEM,0)) AS RECEITA_BAGAGEM, ");
|
||||
sqlSb.append(" SUM(NVL(TAB.RECEITA_SEGURO_OUTROS,0)) AS RECEITA_SEGURO_OUTROS, ");
|
||||
|
@ -209,6 +218,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
sqlSb.append(" VIAGENS_EXTRA, ");
|
||||
sqlSb.append(" VIAGENS, ");
|
||||
sqlSb.append(" CVE_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" DESC_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" SUM(PRECIOPAGADO) AS RECEITA_TARIFA ");
|
||||
sqlSb.append(" FROM ");
|
||||
sqlSb.append(" (SELECT RT.RUTA_ID, ");
|
||||
|
@ -253,7 +263,8 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
sqlSb.append(" || CR.CORRIDA_ID ");
|
||||
sqlSb.append(" ELSE NULL ");
|
||||
sqlSb.append(" END) VIAGENS, ");
|
||||
sqlSb.append(" NVL(CS.CVECLASE, ' ') CVE_CLASE_SERVICIO ");
|
||||
sqlSb.append(" NVL(CS.CVECLASE, ' ') CVE_CLASE_SERVICIO ,");
|
||||
sqlSb.append(" NVL(CS.DESCCLASE, ' ') DESC_CLASE_SERVICIO ");
|
||||
sqlSb.append(" FROM RUTA RT, ");
|
||||
sqlSb.append(" BOLETO BL, ");
|
||||
sqlSb.append(" CORRIDA CR, ");
|
||||
|
@ -299,6 +310,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
sqlSb.append(" CD.ESTADO_ID, ");
|
||||
sqlSb.append(" RT.INDSENTIDOIDA, ");
|
||||
sqlSb.append(" CS.CVECLASE, ");
|
||||
sqlSb.append(" CS.DESCCLASE, ");
|
||||
sqlSb.append(" BL.BOLETO_ID, ");
|
||||
sqlSb.append(" BL.preciopagado ");
|
||||
sqlSb.append(" ) DADOS ");
|
||||
|
@ -319,17 +331,21 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
sqlSb.append(" PASSAGEIROS, ");
|
||||
sqlSb.append(" VIAGENS_EXTRA, ");
|
||||
sqlSb.append(" VIAGENS, ");
|
||||
sqlSb.append(" CVE_CLASE_SERVICIO ");
|
||||
sqlSb.append(" CVE_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" DESC_CLASE_SERVICIO ");
|
||||
sqlSb.append(" ) TAB1 ");
|
||||
sqlSb.append(" )TAB ");
|
||||
sqlSb.append(" GROUP BY TAB.RUTA_ID, ");
|
||||
sqlSb.append(" TAB.NUMRUTA, ");
|
||||
//Obs.: Não deve será alterado ordenação pois impactará na lógica de agrupamento por ida/volta
|
||||
sqlSb.append(" GROUP BY ");
|
||||
sqlSb.append(" TAB.PREFIXO, ");
|
||||
sqlSb.append(" TAB.DESCRUTA, ");
|
||||
sqlSb.append(" TAB.RUTA_ID, ");
|
||||
sqlSb.append(" TAB.NUMRUTA, ");
|
||||
sqlSb.append(" TAB.INTERESTADUAL, ");
|
||||
sqlSb.append(" TAB.GRUPO_LINHA, ");
|
||||
sqlSb.append(" TAB.EXTENSAO_KM, ");
|
||||
sqlSb.append(" TAB.CVE_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" TAB.DESC_CLASE_SERVICIO, ");
|
||||
sqlSb.append(" TAB.INDSENTIDOIDA, ");
|
||||
sqlSb.append(" TAB.ASSENTOS ");
|
||||
sqlSb.append(" ) SUB ");
|
||||
|
@ -345,7 +361,8 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
}
|
||||
|
||||
/**
|
||||
* Preenche objeto de relatório caso seja Ida criar novo objeto e preenche com dados, caso seja Volta concantena/agrupa com o objeto de linha da Ida
|
||||
* Preenche objeto de relatório caso seja Ida criar novo objeto e preenche com dados, caso seja Volta concantena/agrupa com o objeto de linha da Ida.
|
||||
* Obs.: Não deve será alterado ordenação pois impactará na lógica abaixo.
|
||||
*
|
||||
* @param rset
|
||||
* @param relatorioBean
|
||||
|
@ -360,7 +377,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
relatorioBean.setRUTA_ID(rset.getBigDecimal("RUTA_ID"));
|
||||
relatorioBean.setNUMRUTA(rset.getString("NUMRUTA"));
|
||||
relatorioBean.setPREFIXO(rset.getString("PREFIXO"));
|
||||
relatorioBean.setDESCRUTA(rset.getString("DESCRUTA") + (BigDecimal.ZERO.equals(rset.getBigDecimal("INDSENTIDOIDA")) ? " - VOLTA " : " - IDA"));
|
||||
relatorioBean.setDESCRUTA(rset.getString("DESCRUTA"));
|
||||
relatorioBean.setINTERESTADUAL(rset.getString("INTERESTADUAL"));
|
||||
relatorioBean.setGRUPO_LINHA(rset.getString("GRUPO_LINHA"));
|
||||
relatorioBean.setEXTENSAO_KM(rset.getBigDecimal("EXTENSAO_KM"));
|
||||
|
@ -368,12 +385,15 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
relatorioBean.setRECEITA_BAGAGEM(rset.getBigDecimal("RECEITA_BAGAGEM"));
|
||||
relatorioBean.setRECEITA_SEGURO_OUTROS(rset.getBigDecimal("RECEITA_SEGURO_OUTROS"));
|
||||
relatorioBean.setRECEITA_TARIFA(rset.getBigDecimal("RECEITA_TARIFA"));
|
||||
relatorioBean.setRECEITA_TARIFA_SEGURO(rset.getBigDecimal("RECEITA_SEGURO") !=null ?
|
||||
rset.getBigDecimal("RECEITA_TARIFA").add(rset.getBigDecimal("RECEITA_SEGURO")) : rset.getBigDecimal("RECEITA_TARIFA") );
|
||||
relatorioBean.setRECEITA_PEDAGIO(rset.getBigDecimal("RECEITA_PEDAGIO"));
|
||||
relatorioBean.setRECEITA_EMBARQUE(rset.getBigDecimal("RECEITA_EMBARQUE"));
|
||||
relatorioBean.setPASSAGEIROS(rset.getBigDecimal("PASSAGEIROS"));
|
||||
relatorioBean.setVIAGENS_EXTRA(rset.getBigDecimal("VIAGENS_EXTRA"));
|
||||
relatorioBean.setVIAGENS(rset.getBigDecimal("VIAGENS"));
|
||||
relatorioBean.setCVE_CLASE_SERVICIO(rset.getString("CVE_CLASE_SERVICIO"));
|
||||
relatorioBean.setDESC_CLASE_SERVICIO(rset.getString("DESC_CLASE_SERVICIO"));
|
||||
relatorioBean.setRECEITA_TOTAL(rset.getBigDecimal("RECEITA_TOTAL"));
|
||||
relatorioBean.setVIAGENS_TOTAL(rset.getBigDecimal("VIAGENS_TOTAL"));
|
||||
relatorioBean.setKM_RODADO(rset.getBigDecimal("KM_RODADO"));
|
||||
|
@ -384,12 +404,13 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
relatorioBean.setRECEITA_VIAGEM(rset.getBigDecimal("RECEITA_VIAGEM"));
|
||||
relatorioBean.setPAX_KM(rset.getBigDecimal("PAX_KM"));
|
||||
relatorioBean.setPAX_OFERTADO(rset.getBigDecimal("PAX_OFERTADO"));
|
||||
relatorioBean.setASSENTOS(rset.getBigDecimal("ASSENTOS"));
|
||||
} else {
|
||||
//Volta
|
||||
relatorioBean.setRUTA_ID(rset.getBigDecimal("RUTA_ID"));
|
||||
relatorioBean.setNUMRUTA(relatorioBean.getNUMRUTA() + rset.getString("NUMRUTA"));
|
||||
relatorioBean.setPREFIXO(rset.getString("PREFIXO"));
|
||||
relatorioBean.setDESCRUTA(relatorioBean.getDESCRUTA() + (BigDecimal.ZERO.equals(rset.getBigDecimal("INDSENTIDOIDA")) ? " - VOLTA " : " - IDA"));
|
||||
relatorioBean.setDESCRUTA(relatorioBean.getDESCRUTA());
|
||||
relatorioBean.setINTERESTADUAL(rset.getString("INTERESTADUAL"));
|
||||
relatorioBean.setGRUPO_LINHA(rset.getString("GRUPO_LINHA"));
|
||||
relatorioBean.setEXTENSAO_KM(relatorioBean.getEXTENSAO_KM().add(rset.getBigDecimal("EXTENSAO_KM")));
|
||||
|
@ -397,12 +418,15 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
relatorioBean.setRECEITA_BAGAGEM(relatorioBean.getRECEITA_BAGAGEM().add(rset.getBigDecimal("RECEITA_BAGAGEM")));
|
||||
relatorioBean.setRECEITA_SEGURO_OUTROS(relatorioBean.getRECEITA_SEGURO_OUTROS().add(rset.getBigDecimal("RECEITA_SEGURO_OUTROS")));
|
||||
relatorioBean.setRECEITA_TARIFA(relatorioBean.getRECEITA_TARIFA().add(rset.getBigDecimal("RECEITA_TARIFA")));
|
||||
relatorioBean.setRECEITA_TARIFA_SEGURO(rset.getBigDecimal("RECEITA_SEGURO") !=null ?
|
||||
relatorioBean.getRECEITA_TARIFA_SEGURO().add(rset.getBigDecimal("RECEITA_SEGURO")) : rset.getBigDecimal("RECEITA_TARIFA"));
|
||||
relatorioBean.setRECEITA_PEDAGIO(relatorioBean.getRECEITA_PEDAGIO().add(rset.getBigDecimal("RECEITA_PEDAGIO")));
|
||||
relatorioBean.setRECEITA_EMBARQUE(relatorioBean.getRECEITA_EMBARQUE().add(rset.getBigDecimal("RECEITA_EMBARQUE")));
|
||||
relatorioBean.setPASSAGEIROS(relatorioBean.getPASSAGEIROS().add(rset.getBigDecimal("PASSAGEIROS")));
|
||||
relatorioBean.setVIAGENS_EXTRA(relatorioBean.getVIAGENS_EXTRA().add(rset.getBigDecimal("VIAGENS_EXTRA")));
|
||||
relatorioBean.setVIAGENS(relatorioBean.getVIAGENS().add(rset.getBigDecimal("VIAGENS")));
|
||||
relatorioBean.setCVE_CLASE_SERVICIO(rset.getString("CVE_CLASE_SERVICIO"));
|
||||
relatorioBean.setDESC_CLASE_SERVICIO(rset.getString("DESC_CLASE_SERVICIO"));
|
||||
relatorioBean.setRECEITA_TOTAL(relatorioBean.getRECEITA_TOTAL().add(rset.getBigDecimal("RECEITA_TOTAL")));
|
||||
relatorioBean.setVIAGENS_TOTAL(relatorioBean.getVIAGENS_TOTAL().add(rset.getBigDecimal("VIAGENS_TOTAL")));
|
||||
relatorioBean.setKM_RODADO(relatorioBean.getKM_RODADO().add(rset.getBigDecimal("KM_RODADO")));
|
||||
|
@ -413,6 +437,7 @@ public class RelatorioResumoLinhasAnaliticoSimplificadoSumarizado extends Relato
|
|||
relatorioBean.setRECEITA_VIAGEM(relatorioBean.getRECEITA_VIAGEM().add(rset.getBigDecimal("RECEITA_VIAGEM")));
|
||||
relatorioBean.setPAX_KM(relatorioBean.getPAX_KM().add(rset.getBigDecimal("PAX_KM")));
|
||||
relatorioBean.setPAX_OFERTADO(relatorioBean.getPAX_OFERTADO().add(rset.getBigDecimal("PAX_OFERTADO")));
|
||||
relatorioBean.setASSENTOS(relatorioBean.getASSENTOS().add(rset.getBigDecimal("ASSENTOS")));
|
||||
|
||||
}
|
||||
return relatorioBean;
|
||||
|
|
Binary file not shown.
|
@ -1,8 +1,8 @@
|
|||
<?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="RelatorioResumoLinhas" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
|
||||
<property name="ireport.zoom" value="3.138428376721017"/>
|
||||
<property name="ireport.x" value="0"/>
|
||||
<property name="ireport.y" value="556"/>
|
||||
<property name="ireport.x" value="1014"/>
|
||||
<property name="ireport.y" value="225"/>
|
||||
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
|
||||
<style name="table">
|
||||
<box>
|
||||
|
@ -66,17 +66,20 @@
|
|||
<field name="RECEITA_VIAGEM" class="java.math.BigDecimal"/>
|
||||
<field name="PAX_KM" class="java.math.BigDecimal"/>
|
||||
<field name="PAX_OFERTADO" class="java.math.BigDecimal"/>
|
||||
<field name="DESC_CLASE_SERVICIO" class="java.lang.String"/>
|
||||
<field name="RECEITA_TARIFA_SEGURO" class="java.math.BigDecimal"/>
|
||||
<field name="ASSENTOS" class="java.math.BigDecimal"/>
|
||||
<sortField name="INTERESTADUAL"/>
|
||||
<sortField name="GRUPO_LINHA"/>
|
||||
<sortField name="RUTA_ID"/>
|
||||
<sortField name="DESCRUTA"/>
|
||||
<variable name="RECEITA_TARIFA_GRP" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA_SEGURO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_TARIFA_INT" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA_SEGURO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_TARIFA_GERAL" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA}]]></variableExpression>
|
||||
<variableExpression><![CDATA[$F{RECEITA_TARIFA_SEGURO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="RECEITA_SEGURO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression>
|
||||
|
@ -222,6 +225,15 @@
|
|||
<variable name="PAX_OFERTADO_3" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{PAX_OFERTADO}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="ASSENTOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{ASSENTOS}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="ASSENTOS_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{ASSENTOS}]]></variableExpression>
|
||||
</variable>
|
||||
<variable name="ASSENTOS_3" class="java.math.BigDecimal" calculation="Sum">
|
||||
<variableExpression><![CDATA[$F{ASSENTOS}]]></variableExpression>
|
||||
</variable>
|
||||
<group name="groupInterestaduak">
|
||||
<groupExpression><![CDATA[$F{INTERESTADUAL}]]></groupExpression>
|
||||
<groupHeader>
|
||||
|
@ -251,7 +263,7 @@
|
|||
<text><![CDATA[Sub Total:]]></text>
|
||||
</staticText>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="041e4886-2c87-4687-8f2e-f2fbbe18729d" x="210" y="0" width="33" height="10"/>
|
||||
<reportElement uuid="041e4886-2c87-4687-8f2e-f2fbbe18729d" x="255" y="0" width="33" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -265,25 +277,21 @@
|
|||
<textFieldExpression><![CDATA[$V{KM_RODADO_2}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="06262876-8581-45b3-abcb-73c9b8996406" x="469" y="0" width="20" height="10"/>
|
||||
<reportElement uuid="06262876-8581-45b3-abcb-73c9b8996406" x="578" y="0" width="20" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_KM_3}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="d79c96bc-69a8-4645-be85-28ede43da0a7" x="530" y="0" width="35" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAX_KM_3}]]></textFieldExpression>
|
||||
<textField>
|
||||
<reportElement uuid="87aa214d-6238-4a44-8fd2-195865a7fff6" x="440" y="0" width="18" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{PASSAGEIROS_2}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="18d95330-8f56-4502-90de-5d8b25baa561" x="489" y="0" width="41" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAX_OFERTADO_2}]]></textFieldExpression>
|
||||
<textField>
|
||||
<reportElement uuid="ff932989-3db9-4572-9c66-a28dd7f5b4df" x="654" y="0" width="18" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{ASSENTOS_2}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
|
@ -317,7 +325,7 @@
|
|||
<text><![CDATA[Total do Grupo:]]></text>
|
||||
</staticText>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="db1cd701-47d4-441a-ab78-f9e7aa686ad0" x="210" y="3" width="33" height="10"/>
|
||||
<reportElement uuid="db1cd701-47d4-441a-ab78-f9e7aa686ad0" x="255" y="3" width="33" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -331,25 +339,21 @@
|
|||
<textFieldExpression><![CDATA[$V{KM_RODADO_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="a5aacae3-b107-43b0-8db3-186cd6a3f619" x="469" y="3" width="20" height="10"/>
|
||||
<reportElement uuid="a5aacae3-b107-43b0-8db3-186cd6a3f619" x="578" y="3" width="20" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_KM_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="1d66a926-6d03-4df6-9bd4-c2c1b8bf206f" x="530" y="3" width="35" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression>
|
||||
<textField>
|
||||
<reportElement uuid="478fb5a6-6800-4f5d-9a3f-36db8d96e62f" x="440" y="3" width="18" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="3ce85dfc-cc58-4b71-bad5-f9c4193ef52f" x="489" y="3" width="41" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font size="6" isBold="true"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{PAX_OFERTADO_1}]]></textFieldExpression>
|
||||
<textField>
|
||||
<reportElement uuid="d141bc70-150a-4fb0-8470-b597ddfbee69" x="654" y="0" width="18" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{ASSENTOS_1}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</groupFooter>
|
||||
|
@ -492,7 +496,7 @@
|
|||
<text><![CDATA[Linha]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="796d78cd-ff11-4469-9dbe-7abbb92f4868" mode="Transparent" x="181" y="16" width="29" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="796d78cd-ff11-4469-9dbe-7abbb92f4868" mode="Transparent" x="226" y="16" width="29" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
|
@ -500,12 +504,12 @@
|
|||
<text><![CDATA[Extensão]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="deca7e00-7f89-4dac-ad2e-89eaeb59ba6c" mode="Transparent" x="210" y="16" width="33" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="deca7e00-7f89-4dac-ad2e-89eaeb59ba6c" mode="Transparent" x="255" y="16" width="33" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Passagens]]></text>
|
||||
<text><![CDATA[Receita]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="0c75fb19-0d9a-4b66-9e3c-4d714cae6079" mode="Transparent" x="327" y="16" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
|
@ -516,31 +520,23 @@
|
|||
<text><![CDATA[Km Rodado]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="31f020bf-2be6-4f3c-98ec-6dffc692dfc6" mode="Transparent" x="469" y="16" width="20" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<reportElement uuid="31f020bf-2be6-4f3c-98ec-6dffc692dfc6" mode="Transparent" x="578" y="16" width="20" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[R$/KM]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="50c7e602-bf62-49c7-aab5-a923ae173891" mode="Transparent" x="530" y="16" width="35" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PAX. Trans.]]></text>
|
||||
</staticText>
|
||||
<elementGroup>
|
||||
<staticText>
|
||||
<reportElement uuid="c44f403d-3437-470d-9ec6-de363516687e" x="170" y="2" width="73" height="8"/>
|
||||
<reportElement uuid="c44f403d-3437-470d-9ec6-de363516687e" x="215" y="2" width="73" height="8"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[RECEITA]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement uuid="3031bb9a-2f49-447e-9b79-738d5a765c61" x="170" y="12" width="73" height="1"/>
|
||||
<reportElement uuid="3031bb9a-2f49-447e-9b79-738d5a765c61" x="215" y="12" width="73" height="1"/>
|
||||
</line>
|
||||
</elementGroup>
|
||||
<elementGroup>
|
||||
|
@ -554,27 +550,53 @@
|
|||
<line>
|
||||
<reportElement uuid="b0b782a1-761e-46b7-8aec-6caedfa6a501" x="327" y="12" width="45" height="1"/>
|
||||
</line>
|
||||
<line>
|
||||
<reportElement uuid="81088d54-7287-4ab3-af62-826428c0dd5c" x="405" y="12" width="97" height="1"/>
|
||||
</line>
|
||||
</elementGroup>
|
||||
<elementGroup/>
|
||||
<elementGroup>
|
||||
<staticText>
|
||||
<reportElement uuid="a1bffc92-03fd-4b36-958a-42daba63eeb6" x="469" y="2" width="96" height="8"/>
|
||||
<reportElement uuid="a1bffc92-03fd-4b36-958a-42daba63eeb6" x="542" y="2" width="153" height="8"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PARÂMETROS OPERACIONAIS]]></text>
|
||||
</staticText>
|
||||
<line>
|
||||
<reportElement uuid="215a5a7f-9389-4c1c-8022-01dc4504b996" x="469" y="12" width="96" height="1"/>
|
||||
<reportElement uuid="215a5a7f-9389-4c1c-8022-01dc4504b996" x="542" y="13" width="153" height="1"/>
|
||||
</line>
|
||||
</elementGroup>
|
||||
<staticText>
|
||||
<reportElement uuid="b063e934-2c41-4b8b-a5cd-a58832a9d88d" mode="Transparent" x="489" y="16" width="41" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<reportElement uuid="46f8a00f-7194-45d0-903d-1a480659eaf2" mode="Transparent" x="148" y="16" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PAX Ofer.]]></text>
|
||||
<text><![CDATA[Classe]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="66b430c8-060a-4763-8b0a-7cd1c2d2b046" x="405" y="2" width="97" height="8"/>
|
||||
<textElement textAlignment="Center">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
<text><![CDATA[PASSAGEIROS]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="59d8acd1-408c-498d-821c-1271f5b1d0de" mode="Transparent" x="405" y="16" width="97" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Passag. Transportados]]></text>
|
||||
</staticText>
|
||||
<staticText>
|
||||
<reportElement uuid="013a1bf5-824b-48ad-82d3-844b63f63dfb" mode="Transparent" x="623" y="16" width="72" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
|
||||
<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
|
||||
<paragraph lineSpacing="Single"/>
|
||||
</textElement>
|
||||
<text><![CDATA[Lugares Ofertados]]></text>
|
||||
</staticText>
|
||||
</band>
|
||||
</columnHeader>
|
||||
|
@ -588,14 +610,14 @@
|
|||
<textFieldExpression><![CDATA[$F{DESCRUTA}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="0e3f1f2d-a83f-4e9a-ba34-db10a68e9c6c" x="181" y="0" width="29" height="9"/>
|
||||
<reportElement uuid="0e3f1f2d-a83f-4e9a-ba34-db10a68e9c6c" x="226" y="0" width="29" height="9"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$F{EXTENSAO_KM}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="#,##0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="f0e8fc9a-4e83-4e23-a959-85701a6a2513" x="210" y="0" width="33" height="9"/>
|
||||
<reportElement uuid="f0e8fc9a-4e83-4e23-a959-85701a6a2513" x="255" y="0" width="33" height="9"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA}]]></textFieldExpression>
|
||||
<textFieldExpression><![CDATA[$F{RECEITA_TARIFA_SEGURO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="f53b87cd-bf78-423c-8370-da117fbfe57e" x="327" y="0" width="45" height="9"/>
|
||||
|
@ -603,21 +625,24 @@
|
|||
<textFieldExpression><![CDATA[$F{KM_RODADO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="803a40d7-383b-4a69-98a3-fe5020830ac4" x="469" y="0" width="20" height="10"/>
|
||||
<reportElement uuid="803a40d7-383b-4a69-98a3-fe5020830ac4" x="578" y="0" width="20" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{RECEITA_KM_2}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00">
|
||||
<reportElement uuid="938accbf-05a4-46f2-87a2-91891f82252f" x="530" y="0" width="35" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{PAX_KM_2}]]></textFieldExpression>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="4a88394a-4587-42a6-ae41-94f123536176" x="148" y="0" width="50" height="9"/>
|
||||
<textElement textAlignment="Center" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$F{DESC_CLASE_SERVICIO}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField pattern="###0.00" isBlankWhenNull="true">
|
||||
<reportElement uuid="cb5f2712-9b8e-409f-8d3b-daf613cf0c13" x="489" y="0" width="41" height="10"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle">
|
||||
<font size="5"/>
|
||||
</textElement>
|
||||
<textFieldExpression><![CDATA[$F{PAX_OFERTADO}]]></textFieldExpression>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="deefcbc0-9738-4e8e-a2b2-127b6a5d715f" x="440" y="1" width="18" height="9"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField isBlankWhenNull="true">
|
||||
<reportElement uuid="29743967-d3ce-4a42-b6c5-75de9d9afce0" x="654" y="1" width="18" height="9"/>
|
||||
<textElement textAlignment="Right" verticalAlignment="Middle"/>
|
||||
<textFieldExpression><![CDATA[$F{ASSENTOS}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</detail>
|
||||
|
@ -631,7 +656,7 @@
|
|||
<text><![CDATA[Geral]]></text>
|
||||
</staticText>
|
||||
<textField pattern="#,##0.00">
|
||||
<reportElement uuid="3bfef22c-0a77-422c-ac1d-f4d2535b46ff" x="210" y="0" width="33" height="10"/>
|
||||
<reportElement uuid="3bfef22c-0a77-422c-ac1d-f4d2535b46ff" x="255" y="0" width="33" height="10"/>
|
||||
<textElement textAlignment="Right">
|
||||
<font isBold="true"/>
|
||||
</textElement>
|
||||
|
@ -644,6 +669,16 @@
|
|||
</textElement>
|
||||
<textFieldExpression><![CDATA[$V{KM_RODADO_3}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="b8b59c66-dd76-4f22-ac42-208cbfc41857" x="440" y="0" width="18" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{PASSAGEIROS_3}]]></textFieldExpression>
|
||||
</textField>
|
||||
<textField>
|
||||
<reportElement uuid="5e2bc7f8-57bf-4c94-ac64-4d890f75310b" x="654" y="0" width="18" height="10"/>
|
||||
<textElement textAlignment="Right"/>
|
||||
<textFieldExpression><![CDATA[$V{ASSENTOS_3}]]></textFieldExpression>
|
||||
</textField>
|
||||
</band>
|
||||
</columnFooter>
|
||||
<lastPageFooter>
|
||||
|
|
|
@ -17,6 +17,7 @@ public class RelatorioResumoLinhasBean {
|
|||
private BigDecimal RECEITA_BAGAGEM;
|
||||
private BigDecimal RECEITA_SEGURO_OUTROS;
|
||||
private BigDecimal RECEITA_TARIFA;
|
||||
private BigDecimal RECEITA_TARIFA_SEGURO;
|
||||
private BigDecimal RECEITA_PEDAGIO;
|
||||
private BigDecimal RECEITA_EMBARQUE;
|
||||
private BigDecimal PASSAGEIROS;
|
||||
|
@ -33,6 +34,8 @@ public class RelatorioResumoLinhasBean {
|
|||
private BigDecimal RECEITA_VIAGEM;
|
||||
private BigDecimal PAX_KM;
|
||||
private BigDecimal PAX_OFERTADO;
|
||||
private String DESC_CLASE_SERVICIO;
|
||||
private BigDecimal ASSENTOS;
|
||||
|
||||
public BigDecimal getRUTA_ID_VOLTA() {
|
||||
return RUTA_ID_VOLTA;
|
||||
|
@ -265,4 +268,35 @@ public class RelatorioResumoLinhasBean {
|
|||
public void setINDSENTIDOIDA(BigDecimal iNDSENTIDOIDA) {
|
||||
INDSENTIDOIDA = iNDSENTIDOIDA;
|
||||
}
|
||||
|
||||
public String getDESC_CLASE_SERVICIO() {
|
||||
return DESC_CLASE_SERVICIO;
|
||||
}
|
||||
|
||||
public void setDESC_CLASE_SERVICIO(String dESC_CLASE_SERVICIO) {
|
||||
DESC_CLASE_SERVICIO = dESC_CLASE_SERVICIO;
|
||||
}
|
||||
|
||||
public BigDecimal getRECEITA_TARIFA_SEGURO() {
|
||||
return RECEITA_TARIFA_SEGURO;
|
||||
}
|
||||
|
||||
public void setRECEITA_TARIFA_SEGURO(BigDecimal rECEITA_TARIFA_SEGURO) {
|
||||
RECEITA_TARIFA_SEGURO = rECEITA_TARIFA_SEGURO;
|
||||
}
|
||||
|
||||
public BigDecimal getASSENTOS() {
|
||||
return ASSENTOS;
|
||||
}
|
||||
|
||||
public void setASSENTOS(BigDecimal aSSENTOS) {
|
||||
ASSENTOS = aSSENTOS;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
// TODO Auto-generated method stub
|
||||
return getRUTA_ID() + getDESCRUTA();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue