daniel.zauli 2017-12-05 20:22:35 +00:00
parent 009e6c5026
commit 584df34577
6 changed files with 225 additions and 35 deletions

View File

@ -47,7 +47,8 @@ public class RelatorioDemandasDetalhado extends RelatorioDemandas {
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
StringBuilder sql = new StringBuilder();
sql.append(" with vendidos as ( ");
sql.append(" SELECT ");
sql.append(" bol.fechorviaje DATA, ");
sql.append(" r.DESCRUTA LINHA, ");
@ -61,7 +62,8 @@ public class RelatorioDemandasDetalhado extends RelatorioDemandas {
sql.append(" nvl(ct.PLATAFORMA,'') PLATAFORMA, ");
sql.append(" e.NOMBEMPRESA EMPRESA,");
sql.append(" COUNT(bol.BOLETO_ID) OCUPACAO, ");
sql.append(" r.NUMRUTA CODLINHA ");
sql.append(" r.NUMRUTA CODLINHA , ");
sql.append(" r.INDSENTIDOIDA SENTIDO ");
sql.append(" FROM ");
sql.append(" boleto bol ");
sql.append(" LEFT JOIN ruta r ");
@ -141,7 +143,8 @@ public class RelatorioDemandasDetalhado extends RelatorioDemandas {
sql.append(" ts.DESCSERVICIO, ");
sql.append(" ct.PLATAFORMA, ");
sql.append(" da.CANTASIENTOSVENDIBLES, ");
sql.append(" r.NUMRUTA ");
sql.append(" r.NUMRUTA, ");
sql.append(" r.INDSENTIDOIDA ");
sql.append(" ORDER BY ");
sql.append(" e.NOMBEMPRESA, ");
@ -151,6 +154,85 @@ public class RelatorioDemandasDetalhado extends RelatorioDemandas {
sql.append(" p_destino.DESCPARADA, ");
sql.append(" cs.DESCCLASE ");
sql.append(" ) , nao_vendidos as ( ");
sql.append(" select distinct c.FECCORRIDA data, ");
sql.append(" r.DESCRUTA LINHA, ");
sql.append(" c.CORRIDA_ID SERVICO, ");
sql.append(" c.FECHORSALIDA HORARIO, ");
sql.append(" p_origem.DESCPARADA ORIGEM, ");
sql.append(" p_destino.DESCPARADA DESTINO, ");
sql.append(" cs.DESCCLASE CLASSE, ");
sql.append(" da.CANTASIENTOSVENDIBLES CAPACIDADE, ");
sql.append(" ts.DESCSERVICIO TIPO_SERVICO, ");
sql.append(" NVL(ct.PLATAFORMA,'') PLATAFORMA, ");
sql.append(" e.NOMBEMPRESA EMPRESA, ");
sql.append(" 0 as OCUPACAO, ");
sql.append(" r.NUMRUTA CODLINHA, ");
sql.append(" r.INDSENTIDOIDA SENTIDO ");
sql.append(" from corrida c ");
sql.append(" LEFT JOIN ruta r ");
sql.append(" ON r.RUTA_ID = c.RUTA_ID ");
sql.append(" LEFT JOIN parada p_origem ");
sql.append(" ON p_origem.PARADA_ID = c.ORIGEN_ID ");
sql.append(" LEFT JOIN parada p_destino ");
sql.append(" ON p_destino.PARADA_ID = c.DESTINO_ID ");
sql.append(" LEFT JOIN CLASE_SERVICIO cs ");
sql.append(" ON cs.CLASESERVICIO_ID = c.CLASESERVICIO_ID ");
sql.append(" LEFT JOIN TIPO_SERVICIO ts ");
sql.append(" ON ts.TIPOSERVICIO_ID = cs.TIPOSERVICO ");
sql.append(" LEFT JOIN corrida_tramo ct ");
sql.append(" ON ct.CORRIDA_ID = c.CORRIDA_ID ");
sql.append(" AND ct.FECCORRIDA = c.FECCORRIDA ");
sql.append(" LEFT JOIN rol_operativo ro ");
sql.append(" ON ro.ROLOPERATIVO_ID = c.ROLOPERATIVO_ID ");
sql.append(" LEFT JOIN diagrama_autobus da ");
sql.append(" ON da.diagramaautobus_id = ro.diagramaautobus_id ");
sql.append(" LEFT JOIN empresa e ");
sql.append(" ON e.EMPRESA_ID = c.EMPRESACORRIDA_ID ");
sql.append(" WHERE ");
sql.append(" c.FECHORSALIDA >= :DATA_INICIAL ");
sql.append(" AND c.FECHORSALIDA <= :DATA_FINAL ");
sql.append(" and c.activo = 1 ");
if (parametros.get("RUTA_ID") != null) {
sql.append(" AND r.RUTA_ID = :RUTA_ID ");
}
if (parametros.get("EMPRESA_ID") != null) {
sql.append(" AND e.EMPRESA_ID = :EMPRESA_ID ");
}
if (parametros.get("HORA_INICIAL") != null && parametros.get("HORA_FINAL") != null) {
sql.append(" AND ");
sql.append(" ( ");
do {
mesclarDataHora(dataInicial, horaInicial);
sql.append(" C.FECHORSALIDA BETWEEN to_date('" + format.format(dataInicial.getTime()) + "', 'dd/MM/yyyy HH24:MI:ss') ");
mesclarDataHora(dataInicial, horaFinal);
sql.append(" AND to_date('" + format.format(dataInicial.getTime()) + "', 'dd/MM/yyyy HH24:MI:ss')");
dataInicial.add(Calendar.DAY_OF_MONTH, 1);
if (!dataInicial.after(dataFinal)) {
sql.append(" OR ");
}
} while (!dataInicial.after(dataFinal));
sql.append(" ) ");
}
if (parametros.get("TIPO_SERVICO") != null) {
sql.append(" AND c.TIPOSERVICIO_ID = :TIPO_SERVICO ");
}
sql.append(" and (c.corrida_id) not in (select (ve.SERVICO) from vendidos ve) ");
sql.append(" ) ");
sql.append(" select * from ( ");
sql.append(" select * from vendidos union select * from nao_vendidos ");
sql.append(" ) order by empresa ");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
if (parametros.get("EMPRESA_ID") != null) {
stmt.setInt("EMPRESA_ID", Integer.valueOf(parametros.get("EMPRESA_ID").toString()));
@ -186,6 +268,7 @@ public class RelatorioDemandasDetalhado extends RelatorioDemandas {
dataResult.put("OCUPACAO", rset.getInt("OCUPACAO"));
dataResult.put("EMPRESA", rset.getString("EMPRESA"));
dataResult.put("CODLINHA", rset.getString("CODLINHA"));
dataResult.put("SENTIDO", rset.getString("SENTIDO"));
this.dados.add(dataResult);

View File

@ -42,6 +42,9 @@ public class RelatorioDemandasDetalhadoNovoLayout extends RelatorioDemandas {
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
StringBuilder sql = new StringBuilder();
sql.append(" with vendidos as ( ");
sql.append("select ");
sql.append(" trunc(co.feccorrida) as data_corrida, ");
sql.append(" trunc(bo.fechorviaje) as data, ");
@ -58,7 +61,8 @@ public class RelatorioDemandasDetalhadoNovoLayout extends RelatorioDemandas {
sql.append(" count(bo.boleto_id) as ocupacao, ");
sql.append(" ts.descservicio as tipo_servico, ");
sql.append(" ct.plataforma as plataforma, ");
sql.append(" e.nombempresa as empresa ");
sql.append(" e.nombempresa as empresa, ");
sql.append(" r.INDSENTIDOIDA AS sentido ");
sql.append("from boleto bo ");
sql.append(" join corrida co on co.corrida_id = bo.corrida_id and co.feccorrida = bo.feccorrida ");
sql.append(" join corrida_tramo ct on ct.corrida_id = bo.corrida_id and bo.feccorrida = ct.feccorrida and ct.origen_id = bo.origen_id ");
@ -99,8 +103,80 @@ public class RelatorioDemandasDetalhadoNovoLayout extends RelatorioDemandas {
sql.append(" case when ((ori.indvisibleinternet is null or ori.indvisibleinternet = 1) ");
sql.append(" and (des.indvisibleinternet is null or des.indvisibleinternet = 1)) then 'SIM' else 'NÃO' end, ");
sql.append(" bo.fechorviaje, ori.descparada, des.descparada, cs.descclase, ");
sql.append(" da.cantasientos, ts.descservicio, ct.plataforma, e.nombempresa ");
sql.append(" da.cantasientos, ts.descservicio, ct.plataforma, e.nombempresa, r.INDSENTIDOIDA ");
sql.append("order by e.nombempresa, data, linha, servico, origem, destino ");
sql.append(" ), nao_vendidos as ( ");
sql.append(" SELECT co.FECHORSALIDA AS data_corrida, ");
sql.append(" co.FECHORSALIDA AS data, ");
sql.append(" r.descruta AS linha, ");
sql.append(" r.numruta AS codlinha, ");
sql.append(" co.corrida_id AS servico, ");
sql.append(" CASE ");
sql.append(" WHEN ((ori.indvisibleinternet IS NULL ");
sql.append(" OR ori.indvisibleinternet = 1) ");
sql.append("AND (des.indvisibleinternet IS NULL ");
sql.append("OR des.indvisibleinternet = 1)) ");
sql.append("THEN 'SIM' ");
sql.append("ELSE 'NÃO' ");
sql.append("END AS internet, ");
sql.append("co.FECCORRIDA AS horario, ");
sql.append("ori.descparada AS origem, ");
sql.append(" des.descparada AS destino, ");
sql.append(" cs.descclase AS classe, ");
sql.append(" da.cantasientos AS capacidade, ");
sql.append(" 0 AS ocupacao, ");
sql.append(" ts.descservicio AS tipo_servico, ");
sql.append(" ct.plataforma AS plataforma, ");
sql.append(" e.nombempresa AS empresa, ");
sql.append(" r.INDSENTIDOIDA AS sentido ");
sql.append(" FROM corrida co ");
sql.append(" JOIN corrida_tramo ct ");
sql.append(" ON ct.corrida_id = co.corrida_id ");
sql.append(" AND co.feccorrida = ct.feccorrida ");
sql.append(" AND ct.origen_id = co.origen_id ");
sql.append(" JOIN ruta r ");
sql.append(" ON co.ruta_id = r.ruta_id ");
sql.append(" LEFT JOIN empresa e ");
sql.append(" ON e.empresa_id = co.empresacorrida_id ");
sql.append(" JOIN parada ori ");
sql.append(" ON ori.parada_id = co.origen_id ");
sql.append(" JOIN parada des ");
sql.append(" ON des.parada_id = co.destino_id ");
sql.append(" JOIN clase_servicio cs ");
sql.append(" ON cs.claseservicio_id = co.claseservicio_id ");
sql.append(" JOIN rol_operativo ro ");
sql.append(" ON ro.roloperativo_id = co.roloperativo_id ");
sql.append(" JOIN diagrama_autobus da ");
sql.append(" ON ro.diagramaautobus_id = da.diagramaautobus_id ");
sql.append(" JOIN tipo_servicio ts ");
sql.append(" ON ts.tiposervicio_id = co.tiposervicio_id ");
sql.append(" WHERE ct.activo = 1 ");
sql.append(" and co.activo = 1 ");
sql.append(" and co.FECHORSALIDA >= :DATA_INICIAL and co.FECHORSALIDA <= :DATA_FINAL ");
if (parametros.get("HORA_INICIAL") != null && parametros.get("HORA_FINAL") != null) {
sql.append(" AND ");
sql.append(" ( ");
do {
mesclarDataHora(dataInicial, horaInicial);
sql.append(" co.FECCORRIDA between to_date('" + format.format(dataInicial.getTime()) + "', 'dd/MM/yyyy HH24:MI:ss') ");
mesclarDataHora(dataInicial, horaFinal);
sql.append(" and to_date('" + format.format(dataInicial.getTime()) + "', 'dd/MM/yyyy HH24:MI:ss')");
dataInicial.add(Calendar.DAY_OF_MONTH, 1);
if (!dataInicial.after(dataFinal)) {
sql.append(" or ");
}
} while (!dataInicial.after(dataFinal));
sql.append(" ) ");
}
sql.append(" )select * from ( ");
sql.append(" select * from vendidos v union select * from nao_vendidos ) order by empresa ");
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql.toString());
if (parametros.get("EMPRESA_ID") != null)
@ -135,6 +211,7 @@ public class RelatorioDemandasDetalhadoNovoLayout extends RelatorioDemandas {
dataResult.put("OCUPACAO", rset.getInt("OCUPACAO"));
dataResult.put("EMPRESA", rset.getString("EMPRESA"));
dataResult.put("CODLINHA", rset.getString("CODLINHA"));
dataResult.put("SENTIDO", rset.getString("SENTIDO"));
this.dados.add(dataResult);
}
this.resultSet = rset;

View File

@ -1,7 +1,7 @@
<?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="RelatorioDemandasDetalhado" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="2.200000000000009"/>
<property name="ireport.x" value="0"/>
<property name="ireport.x" value="839"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
@ -45,6 +45,7 @@
<field name="PLATAFORMA" class="java.lang.String"/>
<field name="EMPRESA" class="java.lang.String"/>
<field name="CODLINHA" class="java.lang.String"/>
<field name="SENTIDO" class="java.lang.String"/>
<variable name="POR_OCUPACAO" class="java.lang.Double">
<variableExpression><![CDATA[$F{OCUPACAO}.doubleValue() / $F{CAPACIDADE}.doubleValue()]]></variableExpression>
</variable>
@ -245,7 +246,7 @@
<text><![CDATA[Plataforma]]></text>
</staticText>
<staticText>
<reportElement uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f" mode="Transparent" x="715" y="0" width="71" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<reportElement uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f" mode="Transparent" x="715" y="0" width="40" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" 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"/>
@ -259,6 +260,14 @@
</textElement>
<text><![CDATA[Cod. Linha]]></text>
</staticText>
<staticText>
<reportElement uuid="00c54946-d0e2-4e47-a473-3445959d4d69" mode="Transparent" x="755" y="0" width="31" height="11" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Sentido]]></text>
</staticText>
</band>
</columnHeader>
<detail>
@ -319,7 +328,7 @@
<textFieldExpression><![CDATA[$F{PLATAFORMA}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00 %" isBlankWhenNull="true">
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="715" y="0" width="71" height="11"/>
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="715" y="0" width="40" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$V{POR_OCUPACAO}]]></textFieldExpression>
</textField>
@ -328,6 +337,11 @@
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{CODLINHA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement uuid="ce7446b8-b4da-489e-9435-27133b870da1" x="755" y="0" width="31" height="11"/>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{SENTIDO}.equals("0") ? "VOLTA" : "IDA" ]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>

View File

@ -1,7 +1,7 @@
<?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="RelatorioDemandasDetalhadoNovoLayout" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="842" leftMargin="0" rightMargin="0" topMargin="20" bottomMargin="20" uuid="b92fb063-a827-4619-8a69-5c78e3afbb8c">
<property name="ireport.zoom" value="3.2210200000000144"/>
<property name="ireport.x" value="556"/>
<property name="ireport.x" value="1721"/>
<property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
@ -46,6 +46,7 @@
<field name="EMPRESA" class="java.lang.String"/>
<field name="CODLINHA" class="java.lang.String"/>
<field name="INTERNET" class="java.lang.String"/>
<field name="SENTIDO" class="java.lang.String"/>
<variable name="POR_OCUPACAO" class="java.lang.Double">
<variableExpression><![CDATA[$F{OCUPACAO}.doubleValue() / $F{CAPACIDADE}.doubleValue()]]></variableExpression>
</variable>
@ -61,28 +62,28 @@
<title>
<band height="13">
<staticText>
<reportElement x="92" y="0" width="46" height="13" uuid="9fc7e58e-8625-41c4-a8ee-6454f6382d46"/>
<reportElement uuid="9fc7e58e-8625-41c4-a8ee-6454f6382d46" x="92" y="0" width="46" height="13"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Serviço]]></text>
</staticText>
<staticText>
<reportElement x="0" y="0" width="61" height="13" uuid="3766fa33-6281-4576-a9d1-3b984e1976d3"/>
<reportElement uuid="3766fa33-6281-4576-a9d1-3b984e1976d3" x="0" y="0" width="61" height="13"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Data]]></text>
</staticText>
<staticText>
<reportElement x="182" y="0" width="46" height="13" uuid="7e1f6b82-8a1f-4719-b942-41f0d7027aa8"/>
<reportElement uuid="7e1f6b82-8a1f-4719-b942-41f0d7027aa8" x="182" y="0" width="46" height="13"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Horário]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="611" y="0" width="50" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="95367884-2b52-4bbd-b716-852ff13290e9"/>
<reportElement uuid="95367884-2b52-4bbd-b716-852ff13290e9" mode="Transparent" x="601" y="0" width="40" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -90,7 +91,7 @@
<text><![CDATA[Ocupação]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="348" y="0" width="120" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="a39ab8f3-becb-44e3-b4f5-b7c43889508c"/>
<reportElement uuid="a39ab8f3-becb-44e3-b4f5-b7c43889508c" mode="Transparent" x="348" y="0" width="120" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -98,7 +99,7 @@
<text><![CDATA[Destino]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="661" y="0" width="68" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="170230ea-2a12-4444-9f13-c706d557ae8d"/>
<reportElement uuid="170230ea-2a12-4444-9f13-c706d557ae8d" mode="Transparent" x="641" y="0" width="68" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -106,7 +107,7 @@
<text><![CDATA[Tipo]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="228" y="0" width="120" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="c0542d93-dde4-448d-932c-453d6a4a6882"/>
<reportElement uuid="c0542d93-dde4-448d-932c-453d6a4a6882" mode="Transparent" x="228" y="0" width="120" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -114,7 +115,7 @@
<text><![CDATA[Origem]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="558" y="0" width="53" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="9c65b631-065c-49af-ab2c-3bcea583eaea"/>
<reportElement uuid="9c65b631-065c-49af-ab2c-3bcea583eaea" mode="Transparent" x="558" y="0" width="43" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -122,7 +123,7 @@
<text><![CDATA[Capacidade]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="468" y="0" width="90" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="a7f96097-c8fd-4ba0-bea7-7b40a0fc81f7"/>
<reportElement uuid="a7f96097-c8fd-4ba0-bea7-7b40a0fc81f7" mode="Transparent" x="468" y="0" width="90" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -130,7 +131,7 @@
<text><![CDATA[Classe]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="729" y="0" width="51" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="0452264c-0f27-46d6-84ad-0fba6e5abdfa"/>
<reportElement uuid="0452264c-0f27-46d6-84ad-0fba6e5abdfa" mode="Transparent" x="709" y="0" width="51" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -138,7 +139,7 @@
<text><![CDATA[Plataforma]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="780" y="0" width="62" height="13" forecolor="#000000" backcolor="#FFFFFF" uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f"/>
<reportElement uuid="f596b16a-f9d9-42f5-b86f-3f468b0deb8f" mode="Transparent" x="760" y="0" width="52" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
@ -146,19 +147,27 @@
<text><![CDATA[%Ocupação]]></text>
</staticText>
<staticText>
<reportElement x="61" y="0" width="31" height="13" uuid="3766fa33-6281-4576-a9d1-3b984e1976d3"/>
<reportElement uuid="3766fa33-6281-4576-a9d1-3b984e1976d3" x="61" y="0" width="31" height="13"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Linha]]></text>
</staticText>
<staticText>
<reportElement x="138" y="0" width="44" height="13" uuid="a427bc80-0924-441c-896b-a888a929d4f5"/>
<reportElement uuid="a427bc80-0924-441c-896b-a888a929d4f5" x="138" y="0" width="44" height="13"/>
<textElement textAlignment="Center">
<font size="8" isBold="true"/>
</textElement>
<text><![CDATA[Internet]]></text>
</staticText>
<staticText>
<reportElement uuid="8213fc73-da7f-47fc-b430-e9f4f3e4add7" mode="Transparent" x="812" y="0" width="30" height="13" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<text><![CDATA[Sentido]]></text>
</staticText>
</band>
</title>
<columnHeader>
@ -167,96 +176,103 @@
<detail>
<band height="13" splitType="Stretch">
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="0" y="0" width="61" height="13" uuid="bc091860-adab-47d8-8352-982bc8e484a3"/>
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="0" y="0" width="61" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{DATA}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="92" y="0" width="46" height="13" uuid="82c36c16-1662-4af9-a285-c935ab350e79"/>
<reportElement uuid="82c36c16-1662-4af9-a285-c935ab350e79" x="92" y="0" width="46" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
</textField>
<textField pattern="HH.mm" isBlankWhenNull="true">
<reportElement x="182" y="0" width="46" height="13" uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb"/>
<reportElement uuid="ef45dd24-19e8-4e92-9759-f8e7a5c990eb" x="182" y="0" width="46" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{HORARIO}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="228" y="0" width="120" height="13" uuid="17011486-0d4c-4e22-b534-48e0bb025673"/>
<reportElement uuid="17011486-0d4c-4e22-b534-48e0bb025673" x="228" y="0" width="120" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="348" y="0" width="120" height="13" uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423"/>
<reportElement uuid="a89c84e4-0e13-4e85-a565-9eb0bc6e5423" x="348" y="0" width="120" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="468" y="0" width="90" height="13" uuid="7be97f5f-b36b-4679-befb-e5f2b4532963"/>
<reportElement uuid="7be97f5f-b36b-4679-befb-e5f2b4532963" x="468" y="0" width="90" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CLASSE}]]></textFieldExpression>
</textField>
<textField pattern="###0" isBlankWhenNull="true">
<reportElement x="558" y="0" width="53" height="13" uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c"/>
<reportElement uuid="7c1e2d86-f9ce-4730-866c-dc6cbdd0cf2c" x="558" y="0" width="43" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CAPACIDADE}]]></textFieldExpression>
</textField>
<textField pattern="###0" isBlankWhenNull="true">
<reportElement x="611" y="0" width="50" height="13" uuid="7c0246f5-739b-440c-a242-915117bd9fd1"/>
<reportElement uuid="7c0246f5-739b-440c-a242-915117bd9fd1" x="601" y="0" width="40" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{OCUPACAO}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
<reportElement x="661" y="0" width="68" height="13" uuid="dd401917-6047-4e1b-9722-31fe8d096594"/>
<reportElement uuid="dd401917-6047-4e1b-9722-31fe8d096594" x="641" y="0" width="68" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{TIPO_SERVICO}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
<reportElement x="729" y="0" width="51" height="13" uuid="4dafd61b-ce2b-4690-b029-2a1382113099"/>
<reportElement uuid="4dafd61b-ce2b-4690-b029-2a1382113099" x="709" y="0" width="51" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{PLATAFORMA}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.00 %" isBlankWhenNull="true">
<reportElement x="780" y="0" width="62" height="13" uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d"/>
<reportElement uuid="8ad565b3-b12c-4fef-a1c7-836e7415436d" x="760" y="0" width="52" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$V{POR_OCUPACAO}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
<reportElement x="61" y="0" width="31" height="13" uuid="bc091860-adab-47d8-8352-982bc8e484a3"/>
<reportElement uuid="bc091860-adab-47d8-8352-982bc8e484a3" x="61" y="0" width="31" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{CODLINHA}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="138" y="0" width="44" height="13" uuid="773ac0f6-0c11-430d-8a10-8c62b272b064"/>
<reportElement uuid="773ac0f6-0c11-430d-8a10-8c62b272b064" x="138" y="0" width="44" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{INTERNET}]]></textFieldExpression>
</textField>
<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
<reportElement uuid="cce46f47-2fbf-45c2-8347-6d3572f19b92" x="812" y="0" width="30" height="13"/>
<textElement textAlignment="Center">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$F{SENTIDO}.equals("0") ? "VOLTA" : "IDA" ]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>