- Ajustes RDA e RRL

- Relatório de Acompanhamento de Equivalentes (Base + Indicador Absoluto)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@29608 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno 2013-07-31 19:08:28 +00:00
parent ebe96d6419
commit 32d2d057e6
19 changed files with 1596 additions and 171 deletions

View File

@ -0,0 +1,269 @@
/**
*
*/
package com.rjconsultores.ventaboletos.relatorios.impl;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.ArrayDataSource;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.web.utilerias.NamedParameterStatement;
/**
* @author Bruno H. G. Gouvêa <bruno@rjconsultores.com.br>
*
*/
public class RelatorioAcompanhamentoEquivalentes extends Relatorio {
enum IndicadorRelatorio {
MPE(1), RECEITA_KM(2), RECEITA_VIAGEM(3), IAP(4), PAXKM(5), ABSOLUTO(6), EQ(7);
public final int valor;
IndicadorRelatorio(int valorOpcao) {
valor = valorOpcao;
}
public static IndicadorRelatorio fromInt(Integer value) {
if (value != null) {
for (IndicadorRelatorio b : IndicadorRelatorio.values()) {
if (value.equals(b.valor)) {
return b;
}
}
}
return null;
}
}
/**
* @param parametros
* @param conexao
* @throws Exception
*/
public RelatorioAcompanhamentoEquivalentes(Map<String, Object> parametros, Connection conexao) throws Exception {
super(parametros, conexao);
// TODO Auto-generated constructor stub
this.setCustomDataSource(new ArrayDataSource(this) {
protected void prepareQuery() throws SQLException {
Connection conexao = this.relatorio.getConexao();
Map<String, Object> parametros = this.relatorio.getParametros();
String sql = getSql();
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
if (parametros.get("EMPRESA_ID") != null)
stmt.setInt("EMPRESA_ID", (Integer) parametros.get("EMPRESA_ID"));
else
stmt.setNull("EMPRESA_ID", java.sql.Types.INTEGER);
if (parametros.get("TIPOSERVICIO_ID") != null)
stmt.setInt("TIPOSERVICIO_ID", (Integer) parametros.get("TIPOSERVICIO_ID"));
else
stmt.setNull("TIPOSERVICIO_ID", java.sql.Types.INTEGER);
stmt.setDate("DATA_MES", new java.sql.Date(((Date) parametros.get("DATA_MES")).getTime()));
this.resultSet = stmt.executeQuery();
}
@Override
public void initDados() throws Exception {
this.prepareQuery();
Date dataInicial = (Date) this.relatorio.getParametros().get("DATA_MES");
while (this.resultSet.next()) {
Integer rolOperativoId = this.resultSet.getInt("ROLOPERATIVO_ID");
Integer corridaId = this.resultSet.getInt("CORRIDA_ID");
Map<String, Object> row = new HashMap<String, Object>();
BigDecimal totalMes = BigDecimal.ZERO;
Integer totalDias = 0;
row.put("LINHA", this.resultSet.getString("SIGLA"));
row.put("LOTACAO", this.resultSet.getInt("ASSENTOS"));
row.put("SERVICO", this.resultSet.getString("TIPO_SERVICO"));
row.put("CODIGO", this.resultSet.getInt("CORRIDA_ID"));
row.put("HORARIO", this.resultSet.getString("HORARIO"));
row.put("INTERESTADUAL", this.resultSet.getString("INTERESTADUAL"));
row.put("GRUPO_LINHA", this.resultSet.getString("GRUPO_LINHA"));
Calendar cal = Calendar.getInstance();
cal.setTime(dataInicial);
cal.set(Calendar.DATE, 1);
// Roda todos os dias do mes
for (int dia = 1 ; dia <= cal.getActualMaximum(Calendar.DATE) ; dia++) {
BigDecimal valor = getValorByIndicador(cal.getTime(), corridaId, rolOperativoId, (Integer) this.relatorio.getParametros().get("INDICADOR"));
if (valor != null) {
totalMes = totalMes.add(valor);
totalDias++;
}
row.put(String.valueOf(cal.get(Calendar.DATE)), valor);
if(cal.get(Calendar.DATE) < cal.getActualMaximum(Calendar.DATE))
cal.add(Calendar.DATE, 1);
}
System.out.println("Total mes "+totalMes+ "Total dias"+ totalDias);
if(totalMes != null && !totalMes.equals(BigDecimal.ZERO) && totalDias > 0)
row.put("MEDIA", totalMes.divide(BigDecimal.valueOf(totalDias)));
this.dados.add(row);
}
}
protected BigDecimal getValorByIndicador(Date data, Integer corridaId, Integer rolOperativoId, Integer indicador) throws SQLException {
String sql = null;
switch (IndicadorRelatorio.fromInt(indicador)) {
case MPE:
break;
case ABSOLUTO:
sql = getSqlIndicadorAbsoluto();
break;
case EQ:
break;
case IAP:
break;
case PAXKM:
break;
case RECEITA_KM:
break;
case RECEITA_VIAGEM:
break;
}
return getValorIndicador(data, corridaId, sql);
}
});
}
protected String getSqlIndicadorAbsoluto() {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT SUM(1) AS VALOR");
sql.append(" FROM BOLETO BO ");
sql.append(" WHERE BO.INDSTATUSOPERACION = 'F' ");
sql.append(" AND BO.ACTIVO = 1 ");
sql.append(" AND (BO.MOTIVOCANCELACION_ID IS NULL OR BO.MOTIVOCANCELACION_ID = 0) ");
sql.append(" AND BO.INDREIMPRESION = 0 ");
sql.append(" AND BO.CORRIDA_ID = :CORRIDA_ID ");
sql.append(" AND BO.FECCORRIDA = :FECCORRIDA ");
return sql.toString();
}
protected BigDecimal getValorIndicador(Date data, Integer corridaId, String sql) throws SQLException {
Connection conexao = this.getConexao();
BigDecimal retorno = null;
NamedParameterStatement stmt = new NamedParameterStatement(conexao, sql);
stmt.setInt("CORRIDA_ID", corridaId);
stmt.setDate("FECCORRIDA", new java.sql.Date(data.getTime()));
ResultSet resultSet = stmt.executeQuery();
if (resultSet.next())
retorno = resultSet.getBigDecimal("VALOR");
resultSet.close();
stmt.close();
return retorno;
}
/*
* (non-Javadoc)
*
* @see com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio#processaParametros()
*/
@Override
public void processaParametros() throws Exception {
}
private String getSql() {
StringBuilder sql = new StringBuilder();
sql.append(" SELECT DISTINCT RT.RUTA_ID, ");
sql.append(" CR.CORRIDA_ID, ");
sql.append(" RT.DESCRUTA, ");
sql.append(" DA.CANTASIENTOS ASSENTOS, ");
sql.append(" PO.CVEPARADA||' - '||PD.CVEPARADA SIGLA, ");
sql.append(" TO_CHAR(CR.FECHORSALIDAORIGINAL, 'HH24:MI') HORARIO, ");
sql.append(" CR.ROLOPERATIVO_ID, ");
sql.append(" CASE ");
sql.append(" WHEN CO.ESTADO_ID <> CD.ESTADO_ID THEN ");
sql.append(" 'S' ");
sql.append(" ELSE ");
sql.append(" 'N' ");
sql.append(" END INTERESTADUAL, ");
sql.append(" NVL(GR.DESCGRUPO, 'Não Definido') GRUPO_LINHA, ");
sql.append(" (CASE ");
sql.append(" WHEN CR.TIPOSERVICIO_ID = 2 THEN ");
sql.append(" 'Extra' ");
sql.append(" ELSE ");
sql.append(" NULL ");
sql.append(" END) TIPO_SERVICO ");
sql.append(" ");
sql.append(" FROM RUTA RT, ");
sql.append(" CORRIDA CR, ");
sql.append(" TRAMO TR, ");
sql.append(" ROL_OPERATIVO RO, ");
sql.append(" DIAGRAMA_AUTOBUS DA, ");
sql.append(" GRUPO_RUTA GR, ");
sql.append(" PARADA PO, ");
sql.append(" PARADA PD, ");
sql.append(" CIUDAD CO, ");
sql.append(" CIUDAD CD ");
sql.append(" WHERE RT.RUTA_ID = CR.RUTA_ID ");
sql.append(" AND CR.EMPRESACORRIDA_ID = NVL(:EMPRESA_ID, CR.EMPRESACORRIDA_ID) ");
sql.append(" AND CR.ORIGEN_ID = PO.PARADA_ID ");
sql.append(" AND CR.DESTINO_ID = PD.PARADA_ID ");
sql.append(" AND PO.CIUDAD_ID = CO.CIUDAD_ID ");
sql.append(" AND PD.CIUDAD_ID = CD.CIUDAD_ID ");
sql.append(" AND RT.GRUPORUTA_ID = GR.GRUPORUTA_ID(+) ");
sql.append(" AND RO.ROLOPERATIVO_ID = CR.ROLOPERATIVO_ID ");
sql.append(" AND RO.DIAGRAMAAUTOBUS_ID = DA.DIAGRAMAAUTOBUS_ID ");
sql.append(" AND TR.ORIGEN_ID = CR.ORIGEN_ID ");
sql.append(" AND TR.DESTINO_ID = CR.DESTINO_ID ");
sql.append(" AND CR.TIPOSERVICIO_ID = NVL(:TIPOSERVICIO_ID, CR.TIPOSERVICIO_ID) ");
sql.append(" AND TO_CHAR(CR.FECCORRIDA, 'MMYYYY') = TO_CHAR(:DATA_MES, 'MMYYYY') ");
sql.append(" ORDER BY INTERESTADUAL, GRUPO_LINHA, SIGLA");
return sql.toString();
}
}

View File

@ -5,6 +5,8 @@ msg.noData=N
cabecalho.relatorio=Relatório: cabecalho.relatorio=Relatório:
cabecalho.periodo=Período: cabecalho.periodo=Período:
cabecalho.periodoA=à cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
rodape.pagina=Página cabecalho.impressorPor=Impressor por:
rodape.de=de cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -3,8 +3,14 @@ msg.noData=N
#Labels cabeçalho #Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período: cabecalho.periodo=Período:
cabecalho.periodoA=à cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
cabecalho.impressorPor=Impressor por:
cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:
rodape.pagina=Página rodape.pagina=Página
rodape.de=de rodape.de=de

View File

@ -3,8 +3,11 @@ msg.noData=N
#Labels cabeçalho #Labels cabeçalho
cabecalho.relatorio=Relatório:
cabecalho.periodo=Período: cabecalho.periodo=Período:
cabecalho.periodoA=à cabecalho.periodoA=à
cabecalho.dataHora=Data/Hora:
rodape.pagina=Página cabecalho.impressorPor=Impressor por:
rodape.de=de cabecalho.pagina=Página
cabecalho.de=de
cabecalho.filtros=Filtros:

View File

@ -0,0 +1,730 @@
<?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="2.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="1"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="DATA_MES" class="java.util.Date"/>
<parameter name="EMPRESA" class="java.lang.String"/>
<parameter name="NOME_RELATORIO" class="java.lang.String"/>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<queryString>
<![CDATA[SELECT 1 FROM DUAL]]>
</queryString>
<field name="1" class="java.math.BigDecimal"/>
<field name="2" class="java.math.BigDecimal"/>
<field name="3" class="java.math.BigDecimal"/>
<field name="4" class="java.math.BigDecimal"/>
<field name="5" class="java.math.BigDecimal"/>
<field name="6" class="java.math.BigDecimal"/>
<field name="7" class="java.math.BigDecimal"/>
<field name="8" class="java.math.BigDecimal"/>
<field name="9" class="java.math.BigDecimal"/>
<field name="10" class="java.math.BigDecimal"/>
<field name="11" class="java.math.BigDecimal"/>
<field name="12" class="java.math.BigDecimal"/>
<field name="13" class="java.math.BigDecimal"/>
<field name="14" class="java.math.BigDecimal"/>
<field name="15" class="java.math.BigDecimal"/>
<field name="16" class="java.math.BigDecimal"/>
<field name="17" class="java.math.BigDecimal"/>
<field name="18" class="java.math.BigDecimal"/>
<field name="19" class="java.math.BigDecimal"/>
<field name="20" class="java.math.BigDecimal"/>
<field name="21" class="java.math.BigDecimal"/>
<field name="22" class="java.math.BigDecimal"/>
<field name="23" class="java.math.BigDecimal"/>
<field name="24" class="java.math.BigDecimal"/>
<field name="25" class="java.math.BigDecimal"/>
<field name="26" class="java.math.BigDecimal"/>
<field name="27" class="java.math.BigDecimal"/>
<field name="28" class="java.math.BigDecimal"/>
<field name="29" class="java.math.BigDecimal"/>
<field name="30" class="java.math.BigDecimal"/>
<field name="31" class="java.math.BigDecimal"/>
<field name="MEDIA" class="java.math.BigDecimal"/>
<field name="INTERESTADUAL" class="java.lang.String"/>
<field name="GRUPO_LINHA" class="java.lang.String"/>
<field name="LINHA" class="java.lang.String"/>
<field name="LOTACAO" class="java.lang.Integer"/>
<field name="SERVICO" class="java.lang.String"/>
<field name="CODIGO" class="java.lang.Integer"/>
<field name="HORARIO" class="java.lang.String"/>
<group name="groupInterestaduak">
<groupExpression><![CDATA[$F{INTERESTADUAL}]]></groupExpression>
<groupHeader>
<band height="12">
<line>
<reportElement uuid="5bdcd7b5-6a5b-4ee1-b271-23c38689cbc0" x="1" y="1" width="797" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<textField>
<reportElement uuid="9bf6af16-4242-4e39-b90e-3e0d3fe8cbdb" x="14" y="2" width="72" height="9"/>
<textElement/>
<textFieldExpression><![CDATA[$F{INTERESTADUAL}.equals( "S" )?"Linhas Interestaduais":"Linhas Intermunicipais"]]></textFieldExpression>
</textField>
</band>
</groupHeader>
</group>
<group name="groupLinha">
<groupExpression><![CDATA[$F{GRUPO_LINHA}]]></groupExpression>
<groupHeader>
<band height="9">
<textField>
<reportElement uuid="2bce894e-4df1-466e-90ba-6bd518ea4376" x="14" y="0" width="72" height="9"/>
<textElement/>
<textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="095b53f2-ed2e-4c2f-8b03-fd362ba20e4a" x="1" y="0" width="797" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch">
<textField>
<reportElement uuid="9e87eb2d-1887-4b55-8185-532290be371a" x="0" y="24" width="275" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="13cd1307-cc98-498c-8bac-618957350b22" x="0" y="40" width="275" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="4408d1db-05db-4538-944d-5561074f2706" mode="Transparent" x="66" y="60" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$P{DATA_MES}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c714d8a2-a41a-4fc8-848c-9cb455c3a0c7" mode="Transparent" x="1" y="60" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e5254cd0-647f-4b22-be4c-cce9afc5a10f" x="669" y="40" width="100" height="20"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["Página: "+$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy">
<reportElement uuid="55b08ff2-e470-4b59-8c56-58e6fa05ccd5" x="669" y="25" width="100" height="15"/>
<textElement textAlignment="Right">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3" x="1" y="76" width="797" height="1"/>
</line>
</band>
</title>
<pageHeader>
<band height="14" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="29" splitType="Stretch">
<staticText>
<reportElement uuid="ab5f3970-f3bc-41b6-925a-2e805d11a697" x="2" y="19" width="26" height="9"/>
<textElement textAlignment="Center"/>
<text><![CDATA[Linha]]></text>
</staticText>
<staticText>
<reportElement uuid="140d1bb2-2a74-489a-955b-26898fda76fd" x="28" y="19" width="12" height="9"/>
<textElement/>
<text><![CDATA[Lot.]]></text>
</staticText>
<staticText>
<reportElement uuid="bcaa405e-87c5-44b3-91b0-473a9d5d232d" x="40" y="19" width="22" height="9"/>
<textElement/>
<text><![CDATA[Serviço]]></text>
</staticText>
<staticText>
<reportElement uuid="db4d2cdf-6182-4ed4-88fb-793f2df5f819" x="62" y="19" width="22" height="9"/>
<textElement/>
<text><![CDATA[Código]]></text>
</staticText>
<staticText>
<reportElement uuid="a7595967-d511-40ac-9944-2005d7b81f82" x="84" y="19" width="22" height="9"/>
<textElement/>
<text><![CDATA[Horário]]></text>
</staticText>
<textField>
<reportElement uuid="2107e748-575e-48ea-bf9c-2537d4f5ddd6" x="107" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="dc0c4d88-d505-4fd5-abeb-f701d9c0b302" x="128" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+1).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="acca6f71-0cd6-44d3-b011-f2f888f65d53" x="149" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+2).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="6be4fcb6-6dd1-450e-8a63-9191dae7d114" x="170" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+3).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="56631e55-ec6b-45ad-b473-374e7d50aeab" x="191" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+4).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="b0aa3d67-927b-4869-b207-b066109e93eb" x="212" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+5).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="9776b0ae-011f-4c80-826e-8ef9d9d82c53" x="233" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+6).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="6e2004a6-ca3c-4304-ac25-bcac39e59b52" x="254" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+7).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="35a9267c-bc50-4007-ab8e-d09da4c11377" x="275" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+8).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="02fc4075-effa-435e-abb8-8ffd6e2a808a" x="296" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+9).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f9d60367-2060-4861-80df-da648c5d9061" x="317" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+10).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="e26fc1c7-80e7-41e2-81cf-cc0c9d0923b1" x="338" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+11).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="05fa9c87-9245-4906-8e08-15a6fe4ba87d" x="359" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+12).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="505a83c1-9621-4b57-a98e-4fd4f31fc6a7" x="380" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+13).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="786ef12e-991f-48fb-84e7-4a538d268464" x="401" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+14).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="3ca9d652-8763-4ba6-9eca-02503a479dd6" x="422" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+15).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="7272cac1-e6d0-4f7c-bdc7-a7ce2cc5df28" x="443" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+16).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="3f56639e-dce9-4b6d-ba50-006457bad975" x="464" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+17).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="dee9cad7-6045-4253-8adf-86abc07111b8" x="485" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+18).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d1f80bab-05c7-4e63-ad02-288d3e95fc1d" x="506" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+19).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="76d4dc6b-7a53-4a19-b11c-679376c567f5" x="527" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+20).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="d017d649-a4fd-40a8-883c-9256f486a2c9" x="548" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+21).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="82519047-4a31-49f6-9543-1af1aae0f345" x="569" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+22).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="81992545-46b5-419e-bcff-a0a538614ef9" x="590" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+23).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="1a67c216-1114-4f75-acdd-f86c00e507ac" x="611" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+24).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f19274ea-e6ff-42bd-bb48-93fc5af9bb81" x="632" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+25).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="c00ca3df-c20c-42b9-bdeb-8c929f394710" x="653" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+26).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="6b23d108-a7c3-4260-8727-38ca8a8830ca" x="674" y="9" width="21" height="9"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+27).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="947ae0f2-9bfe-410e-948f-299f4ddaa529" x="695" y="9" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 28]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+28).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="3444e15e-4ecd-4be2-8150-8d8a17fc5ee3" x="716" y="9" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 29]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+29).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="83819626-2df2-4c0d-a8a5-7aa76c2cf0be" x="737" y="9" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 30]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[new SimpleDateFormat("EEE").format(new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()+30).getTime() ).toUpperCase()]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="1b584b49-a18c-4fec-9db0-a49c883f77bc" x="107" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[1]]></text>
</staticText>
<staticText>
<reportElement uuid="0416fb40-f83d-4a6f-a7b2-414707c9b460" x="128" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[2]]></text>
</staticText>
<staticText>
<reportElement uuid="ca416842-04f3-44da-9ec8-24cb8103ec84" x="149" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[3]]></text>
</staticText>
<staticText>
<reportElement uuid="a0cb4604-b560-4c46-ad36-3811db526c6e" x="170" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[4]]></text>
</staticText>
<staticText>
<reportElement uuid="d193b9ca-d636-4ea2-a9f4-5021e2f4a07d" x="191" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[5]]></text>
</staticText>
<staticText>
<reportElement uuid="aebcee91-87b4-4c3a-96ac-5edd44fee038" x="212" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[6]]></text>
</staticText>
<staticText>
<reportElement uuid="69064ecf-e231-43a8-a799-05d3cf314376" x="233" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[7]]></text>
</staticText>
<staticText>
<reportElement uuid="7114e5f0-3f09-4149-9f0f-c98732a45775" x="254" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[8]]></text>
</staticText>
<staticText>
<reportElement uuid="2f0a2ba4-6244-4474-b2e7-62183aa8d3e1" x="275" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[9]]></text>
</staticText>
<staticText>
<reportElement uuid="557e9344-6ba9-4a6a-aee5-3dd26f97b0d7" x="296" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[10]]></text>
</staticText>
<staticText>
<reportElement uuid="835a2917-5687-4f28-aa47-0076edcb36c9" x="317" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[11]]></text>
</staticText>
<staticText>
<reportElement uuid="c234f547-39fb-4b61-980c-dcb9b38a6375" x="338" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[12]]></text>
</staticText>
<staticText>
<reportElement uuid="6670ac05-94de-4ee7-8dd8-2925c98fc1bc" x="359" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[13]]></text>
</staticText>
<staticText>
<reportElement uuid="f693af00-a15a-492d-ae53-ccf053350748" x="380" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[14]]></text>
</staticText>
<staticText>
<reportElement uuid="2743d415-a9cd-4e39-91df-62a496fe65e5" x="401" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[15]]></text>
</staticText>
<staticText>
<reportElement uuid="a64e2134-19cd-4f09-a01f-625256d5ce26" x="422" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[16]]></text>
</staticText>
<staticText>
<reportElement uuid="5588d382-0a32-41bf-b29c-998858793836" x="443" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[17]]></text>
</staticText>
<staticText>
<reportElement uuid="02469f3a-db27-4848-8c83-d033339ae7fc" x="464" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[18]]></text>
</staticText>
<staticText>
<reportElement uuid="b7f45013-d4da-41af-b3be-eedf28aebed9" x="485" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[19]]></text>
</staticText>
<staticText>
<reportElement uuid="b24ab443-8611-49d1-957a-e0e9a269b4d8" x="506" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[20]]></text>
</staticText>
<staticText>
<reportElement uuid="18b91423-47ce-4cd8-96c9-ccd1cb7f50d0" x="527" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[21]]></text>
</staticText>
<staticText>
<reportElement uuid="bb38cd6b-b309-4b95-abf5-8541143c3842" x="548" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[22]]></text>
</staticText>
<staticText>
<reportElement uuid="d745fc7b-0b8f-452f-9f99-db793d1bb3c8" x="569" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[23]]></text>
</staticText>
<staticText>
<reportElement uuid="06232108-6a9c-4026-96bb-d6ee33b6ffdc" x="590" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[24]]></text>
</staticText>
<staticText>
<reportElement uuid="37f5a219-9138-4a83-887f-b7152f623fba" x="611" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[25]]></text>
</staticText>
<staticText>
<reportElement uuid="1f5d2da5-9aaa-4b9d-8370-a82251aaeb61" x="653" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[27]]></text>
</staticText>
<staticText>
<reportElement uuid="876cf09a-12c7-4abf-86b5-b8ce1218d270" x="674" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[28]]></text>
</staticText>
<staticText>
<reportElement uuid="32e99172-74f3-4829-9e1a-33816fc46150" x="695" y="19" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 28]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[29]]></text>
</staticText>
<staticText>
<reportElement uuid="f325966e-025f-44f4-8bf3-1de178966310" x="716" y="19" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 29]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[30]]></text>
</staticText>
<staticText>
<reportElement uuid="cea9c440-d2ef-42a4-8aeb-4708cd6425e5" x="737" y="19" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 30]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[31]]></text>
</staticText>
<staticText>
<reportElement uuid="06427360-d078-4b27-928a-87fba309b8c7" x="632" y="19" width="21" height="9"/>
<textElement textAlignment="Right"/>
<text><![CDATA[26]]></text>
</staticText>
<staticText>
<reportElement uuid="2bae6074-292b-43d3-9b6c-24ad69ddf4f6" x="758" y="19" width="40" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 30]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/>
<text><![CDATA[Média]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="9" splitType="Stretch">
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6c7fe634-f8ff-4561-b406-f3a7d81a59d7" x="107" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{1}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="70a617b8-14c8-4db1-b0f4-92afcc689dec" x="128" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{2}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="e5da3ff4-37bd-4cd8-b6a6-200e61eab949" x="149" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{3}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="ca916bdf-73a3-47b3-9448-38015b20873d" x="170" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{4}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="31aa5754-01ef-49f0-b3bf-6bdcf5800f62" x="191" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{5}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="31bd6daf-d363-4a85-8e48-1013a9ebf4a3" x="212" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{6}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="640c25da-45cc-4704-b897-84a51814a9a0" x="233" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{7}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6661dd44-288a-4005-92c9-37c87da4cc3d" x="254" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{8}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="63c1e741-80ed-4395-80c7-3407fb1ce029" x="275" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{9}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="7d9cc1fd-10f3-46b9-bfd9-1dfe69bcdcd3" x="296" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{10}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="dbfa0125-c957-43b2-abd3-b70653a30be0" x="317" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{11}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="60962cc3-9904-4b26-a4d1-7414fa1a4d95" x="338" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{12}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="fb6abc28-60a8-42c1-b289-1efc4cf85d4e" x="359" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{13}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="72af959f-1bac-4244-80b9-bf1373e36d04" x="380" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{14}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="97d8fdd9-4e7a-465a-b6bb-8f5e3214c7fe" x="401" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{15}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="4fec3db5-f241-48f2-924f-0483059e94f6" x="422" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{16}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6f3c3fad-ab53-4193-b26e-aec8a5dab372" x="443" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{17}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="46c22891-8102-42d4-be0f-f74f2382c282" x="464" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{18}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="dc59236b-f51c-4a51-a780-02859bd402fb" x="485" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{19}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="279d0025-ffc2-40eb-899e-00a39763b1c1" x="506" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{20}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="20956cdc-d62d-4bbd-8e87-9f0e92b5a57e" x="527" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{21}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="33369dc3-5414-43a2-877e-e550bcc01079" x="548" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{22}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="9dae419c-5094-40d8-bfb2-1bb6c0890c18" x="569" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{23}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="39c215a1-877e-4fc7-8382-7f28a10c1f10" x="590" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{24}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="710e4e5e-0df1-4699-b72e-ec66b04735f6" x="611" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{25}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="aa499faf-02c5-4cc9-9bc2-955a1a2f89b9" x="632" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{26}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="53018545-5ca9-440e-8ef8-24a8ff44e63c" x="653" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{27}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="2c1a0573-4046-4cb8-a65b-dbe37a0b25de" x="674" y="0" width="21" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{28}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="ff7126b7-4a2c-4c9f-8b6a-6154ad797d27" x="695" y="0" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 28]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{29}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="e376102a-1726-4351-a94a-98f7a3df367f" x="716" y="0" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 29]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{30}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="38d94d51-460f-4dfe-9b88-c627f3593b0c" x="737" y="0" width="21" height="9">
<printWhenExpression><![CDATA[new GregorianCalendar($P{DATA_MES}.getYear(), $P{DATA_MES}.getMonth(), $P{DATA_MES}.getDate()).getActualMaximum(Calendar.DAY_OF_MONTH) > 30]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{31}]]></textFieldExpression>
</textField>
<textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6cbe547b-fd61-4a67-a3c5-96e9b9742eb1" x="758" y="0" width="40" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{MEDIA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="81f95e8c-5c85-43c5-b830-6ca9becc9619" x="2" y="0" width="26" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{LINHA}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="99bb4d23-7e3e-4384-b63d-d22765ba6e53" x="28" y="0" width="12" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{LOTACAO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="a4711633-73ff-4154-8b02-0b2e107cbbb4" x="40" y="0" width="22" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{SERVICO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="e77668a8-4828-4581-a0d6-6a8301d07573" x="62" y="0" width="22" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{CODIGO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="true">
<reportElement uuid="cf1b2f4e-3187-4262-86a2-2fe1c0eee0e9" x="84" y="0" width="22" height="9"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{HORARIO}]]></textFieldExpression>
</textField>
</band>
</detail>
<noData>
<band height="50">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="145" y="14" width="530" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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="RelatorioReceitaDiariaAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c5fca8ba-9c4b-4e17-9986-a053943688db"> <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="RelatorioReceitaDiariaAgencia" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c5fca8ba-9c4b-4e17-9986-a053943688db">
<property name="ireport.zoom" value="3.0"/> <property name="ireport.zoom" value="3.0"/>
<property name="ireport.x" value="452"/> <property name="ireport.x" value="1529"/>
<property name="ireport.y" value="184"/> <property name="ireport.y" value="0"/>
<style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/> <style name="Title" fontName="Times New Roman" fontSize="50" isBold="true" pdfFontName="Times-Bold"/>
<style name="SubTitle" forecolor="#736343" fontName="SansSerif" fontSize="18"/> <style name="SubTitle" forecolor="#736343" fontName="SansSerif" fontSize="18"/>
<style name="Column header" forecolor="#666666" fontName="SansSerif" fontSize="12" isBold="true"/> <style name="Column header" forecolor="#666666" fontName="SansSerif" fontSize="12" isBold="true"/>
@ -23,6 +23,8 @@
</parameter> </parameter>
<parameter name="B_EXCLUI_BAGAGEM" class="java.lang.Boolean"/> <parameter name="B_EXCLUI_BAGAGEM" class="java.lang.Boolean"/>
<parameter name="EMPRESA_NOME" class="java.lang.String"/> <parameter name="EMPRESA_NOME" class="java.lang.String"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<queryString> <queryString>
<![CDATA[SELECT TAB1.*, <![CDATA[SELECT TAB1.*,
(TAB1.RECEITA_TARIFA + TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO + (TAB1.RECEITA_TARIFA + TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO +
@ -299,13 +301,13 @@
<groupFooter> <groupFooter>
<band height="15"> <band height="15">
<line> <line>
<reportElement uuid="479bbc53-bfef-4007-a5f5-94b6eff14400" positionType="FixRelativeToBottom" x="1" y="0" width="802" height="1"/> <reportElement uuid="479bbc53-bfef-4007-a5f5-94b6eff14400" positionType="FixRelativeToBottom" x="0" y="0" width="801" height="1"/>
<graphicElement> <graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/> <pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement> </graphicElement>
</line> </line>
<line> <line>
<reportElement uuid="8e892f70-7671-4f8b-ba54-a1308c2bbf70" positionType="FixRelativeToBottom" x="1" y="14" width="802" height="1"/> <reportElement uuid="8e892f70-7671-4f8b-ba54-a1308c2bbf70" positionType="FixRelativeToBottom" x="0" y="14" width="801" height="1"/>
<graphicElement> <graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/> <pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement> </graphicElement>
@ -460,28 +462,18 @@
<background> <background>
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<title> <pageHeader>
<band height="53" splitType="Stretch"> <band height="68" splitType="Stretch">
<rectangle>
<reportElement uuid="40951cf0-f721-444c-937e-a529296c7cc5" x="1" y="0" width="800" height="51"/>
</rectangle>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="51724883-07e3-4d85-9d83-8e4fb54a369f" mode="Transparent" x="82" y="21" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="d21432b0-fce0-450d-9b7b-cdea77833d38" mode="Transparent" x="5" y="22" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField> </textField>
<textField>
<reportElement uuid="9ab65a31-d370-435c-9797-bf9d01f7db8e" x="5" y="21" width="77" height="15"/>
<textElement>
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.relatorio}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3df44bfd-0b0d-408a-b69d-ce5a91fac303" mode="Transparent" x="5" y="36" width="77" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="02d24cc7-5f1d-47f7-a2e9-2ef879e77e4c" mode="Transparent" x="5" y="37" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -489,7 +481,7 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="2d8e8bb8-83e9-4e1b-87dc-60f3aa339144" mode="Transparent" x="82" y="36" width="53" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="301c617e-56e5-490d-bd3f-75802c30eca2" mode="Transparent" x="50" y="37" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -497,7 +489,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="c29183cc-bb62-4ac1-b880-a218e54be0c0" mode="Transparent" x="150" y="36" width="69" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a9a25cd6-d853-4d96-a32f-e7add83bc119" mode="Transparent" x="108" y="37" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -505,7 +497,7 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="66de0d17-aaae-4bc7-97fc-c642bbcdf2fa" mode="Transparent" x="137" y="36" width="13" height="14" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="596e008c-0f33-4c36-9ef5-0d20eb9a5329" mode="Transparent" x="98" y="37" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -513,22 +505,68 @@
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c3ee982a-23ee-4eb3-9056-dd5fb872a362" mode="Transparent" x="5" y="1" width="145" height="20" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="a2d42009-b404-4228-9c01-29b30186a756" mode="Transparent" x="5" y="2" width="145" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$P{EMPRESA_NOME}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{EMPRESA_NOME}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy HH:mm:ss" isBlankWhenNull="false">
<reportElement uuid="f3e39ff9-c583-4ecc-91c1-b7a567c89a69" mode="Transparent" x="713" y="3" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="784343bf-ecf0-432b-af7c-58287bd3845e" x="0" y="51" width="801" height="1"/>
</line>
<textField>
<reportElement uuid="b68ae40a-dbf1-4aca-8df9-48eb18c8589d" x="631" y="3" width="80" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e5021e1c-bcba-41e1-8bed-1a3d7db2d7c2" mode="Transparent" x="675" y="19" width="127" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}+" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c34699cb-6a28-4ba6-83e1-d455d2a7c1d8" mode="Transparent" x="702" y="35" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3def105e-361f-4161-a44e-717cfcd1c464" mode="Transparent" x="5" y="53" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="75824227-df57-48bc-950f-788e1bf6e304" x="51" y="53" width="717" height="14"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
</band> </band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
<band height="16" splitType="Stretch"> <band height="16" splitType="Stretch">
<line> <line>
<reportElement uuid="f72cb4df-3356-4874-b805-90039927d88a" positionType="FixRelativeToBottom" x="0" y="15" width="802" height="1"/> <reportElement uuid="f72cb4df-3356-4874-b805-90039927d88a" positionType="FixRelativeToBottom" x="0" y="15" width="801" height="1"/>
<graphicElement> <graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/> <pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement> </graphicElement>
@ -668,7 +706,7 @@
<text><![CDATA[Agência]]></text> <text><![CDATA[Agência]]></text>
</staticText> </staticText>
<line> <line>
<reportElement uuid="7955897b-dd86-4c44-8086-ca3c7d756d6b" positionType="FixRelativeToBottom" x="1" y="0" width="802" height="1"/> <reportElement uuid="7955897b-dd86-4c44-8086-ca3c7d756d6b" positionType="FixRelativeToBottom" x="0" y="0" width="801" height="1"/>
<graphicElement> <graphicElement>
<pen lineWidth="0.5" lineColor="#999999"/> <pen lineWidth="0.5" lineColor="#999999"/>
</graphicElement> </graphicElement>
@ -851,34 +889,6 @@
</line> </line>
</band> </band>
</columnFooter> </columnFooter>
<pageFooter>
<band height="25" splitType="Stretch">
<frame>
<reportElement uuid="c7f454d1-df93-4f1f-adf2-1370faee439a" mode="Opaque" x="1" y="1" width="800" height="24" forecolor="#CCCCCC" backcolor="#CCCCCC"/>
<textField evaluationTime="Report">
<reportElement uuid="8eac3c11-7a66-42dd-b9bf-cddff16e20de" style="Column header" x="759" y="1" width="40" height="20" forecolor="#736343"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="f41a29ef-7a03-4fe4-abd8-359dcee2cba3" style="Column header" x="679" y="0" width="80" height="20" forecolor="#736343"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$R{rodape.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{rodape.de}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy h.mm a">
<reportElement uuid="86638452-9dd7-4deb-90f5-caa33d583b3d" style="Column header" x="22" y="1" width="197" height="20" forecolor="#736343"/>
<textElement verticalAlignment="Middle">
<font size="10" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField>
</frame>
</band>
</pageFooter>
<summary> <summary>
<band splitType="Stretch"/> <band splitType="Stretch"/>
</summary> </summary>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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"> <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="4.0"/> <property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="165"/> <property name="ireport.y" value="21"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
<box> <box>
@ -32,6 +32,8 @@
<defaultValueExpression><![CDATA[null]]></defaultValueExpression> <defaultValueExpression><![CDATA[null]]></defaultValueExpression>
</parameter> </parameter>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/> <parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<queryString> <queryString>
<![CDATA[SELECT TAB.*, <![CDATA[SELECT TAB.*,
(TAB.PASSAGEIROS / DECODE(TAB.VIAGENS_TOTAL,0,1,TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPA, (TAB.PASSAGEIROS / DECODE(TAB.VIAGENS_TOTAL,0,1,TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPA,
@ -43,7 +45,7 @@
((TAB.PASSAGEIROS_EQUIVALENTE / DECODE(TAB.VIAGENS_TOTAL,0,1, TAB.VIAGENS_TOTAL)) / TAB.ASSENTOS) * 100 IAP ((TAB.PASSAGEIROS_EQUIVALENTE / DECODE(TAB.VIAGENS_TOTAL,0,1, TAB.VIAGENS_TOTAL)) / TAB.ASSENTOS) * 100 IAP
FROM (SELECT TAB1.*, FROM (SELECT TAB1.*,
(TAB1.RECEITA_TARIFA + TAB1.RECEITA_SEGURO + (TAB1.RECEITA_TARIFA + TAB1.RECEITA_SEGURO +
TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO_OUTROS) RECEITA_TOTAL, TAB1.RECEITA_BAGAGEM + TAB1.RECEITA_SEGURO_OUTROS + TAB1.RECEITA_PEDAGIO + TAB1.RECEITA_EMBARQUE) RECEITA_TOTAL,
(TAB1.VIAGENS + TAB1.VIAGENS_EXTRA) VIAGENS_TOTAL, (TAB1.VIAGENS + TAB1.VIAGENS_EXTRA) VIAGENS_TOTAL,
((TAB1.VIAGENS + TAB1.VIAGENS_EXTRA) * TAB1.EXTENSAO_KM) KM_RODADO, ((TAB1.VIAGENS + TAB1.VIAGENS_EXTRA) * TAB1.EXTENSAO_KM) KM_RODADO,
(SELECT SUM((TAB1.EXTENSAO_KM / DECODE(TR.CANTKMREAL,0,1, TR.CANTKMREAL)) * COUNT(1)) (SELECT SUM((TAB1.EXTENSAO_KM / DECODE(TR.CANTKMREAL,0,1, TR.CANTKMREAL)) * COUNT(1))
@ -80,7 +82,7 @@
GROUP BY CT.TRAMO_ID, TR.CANTKMREAL) PASSAGEIROS_EQUIVALENTE GROUP BY CT.TRAMO_ID, TR.CANTKMREAL) PASSAGEIROS_EQUIVALENTE
FROM (SELECT RT.RUTA_ID, FROM (SELECT RT.RUTA_ID,
RT.NUMRUTA, RT.NUMRUTA,
RT.DESCRUTA, PO.CVEPARADA||' - '||PD.CVEPARADA DESCRUTA,
TF.PRECIO TARIFA, TF.PRECIO TARIFA,
DA.CANTASIENTOS ASSENTOS, DA.CANTASIENTOS ASSENTOS,
RO.ROLOPERATIVO_ID, RO.ROLOPERATIVO_ID,
@ -99,6 +101,8 @@
0 RECEITA_BAGAGEM, 0 RECEITA_BAGAGEM,
0 RECEITA_SEGURO_OUTROS, 0 RECEITA_SEGURO_OUTROS,
SUM(BL.PRECIOPAGADO) RECEITA_TARIFA, SUM(BL.PRECIOPAGADO) RECEITA_TARIFA,
SUM(BL.IMPORTEPEDAGIO) RECEITA_PEDAGIO,
SUM(BL.IMPORTETAXAEMBARQUE) RECEITA_EMBARQUE,
COUNT(1) PASSAGEIROS, COUNT(1) PASSAGEIROS,
COUNT(DISTINCT CASE COUNT(DISTINCT CASE
WHEN CR.TIPOSERVICIO_ID = 2 THEN WHEN CR.TIPOSERVICIO_ID = 2 THEN
@ -157,7 +161,7 @@
$P{DATA_FINAL} $P{DATA_FINAL}
GROUP BY RT.RUTA_ID, GROUP BY RT.RUTA_ID,
RT.NUMRUTA, RT.NUMRUTA,
RT.DESCRUTA, PO.CVEPARADA||' - '||PD.CVEPARADA,
TF.PRECIO, TF.PRECIO,
DA.CANTASIENTOS, DA.CANTASIENTOS,
RO.ROLOPERATIVO_ID, RO.ROLOPERATIVO_ID,
@ -178,6 +182,8 @@
<field name="RECEITA_BAGAGEM" class="java.math.BigDecimal"/> <field name="RECEITA_BAGAGEM" class="java.math.BigDecimal"/>
<field name="RECEITA_SEGURO_OUTROS" class="java.math.BigDecimal"/> <field name="RECEITA_SEGURO_OUTROS" class="java.math.BigDecimal"/>
<field name="RECEITA_TARIFA" class="java.math.BigDecimal"/> <field name="RECEITA_TARIFA" class="java.math.BigDecimal"/>
<field name="RECEITA_PEDAGIO" class="java.math.BigDecimal"/>
<field name="RECEITA_EMBARQUE" class="java.math.BigDecimal"/>
<field name="PASSAGEIROS" class="java.math.BigDecimal"/> <field name="PASSAGEIROS" class="java.math.BigDecimal"/>
<field name="VIAGENS_EXTRA" class="java.math.BigDecimal"/> <field name="VIAGENS_EXTRA" class="java.math.BigDecimal"/>
<field name="VIAGENS" class="java.math.BigDecimal"/> <field name="VIAGENS" class="java.math.BigDecimal"/>
@ -213,23 +219,23 @@
<variable name="RECEITA_SEGURO_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum"> <variable name="RECEITA_SEGURO_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_SEGURO}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_BAGAGEM_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum"> <variable name="RECEITA_EMBARQUE_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_EMBARQUE}]]></variableExpression>
</variable>
<variable name="RECEITA_EMBARQUE_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_BAGAGEM_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum"> <variable name="RECEITA_EMBARQUE_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_BAGAGEM_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum"> <variable name="RECEITA_PEDAGIO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_PEDAGIO}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_SEGURO_OUTROS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum"> <variable name="RECEITA_PEDAGIO_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_PEDAGIO}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_SEGURO_OUTROS_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum"> <variable name="RECEITA_PEDAGIO_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_PEDAGIO}]]></variableExpression>
</variable>
<variable name="RECEITA_SEGURO_OUTROS_3" class="java.math.BigDecimal" resetType="Column" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_TOTAL_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum"> <variable name="RECEITA_TOTAL_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_TOTAL}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_TOTAL}]]></variableExpression>
@ -382,15 +388,15 @@
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_SEGURO_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="da6f1964-eb77-40bf-ba65-6f09ee4e703f" x="246" y="0" width="35" height="10"/> <reportElement uuid="da6f1964-eb77-40bf-ba65-6f09ee4e703f" x="246" y="0" width="35" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_EMBARQUE_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="13c20f2f-6815-4c5e-a756-62a635c6129b" x="281" y="0" width="37" height="10"/> <reportElement uuid="13c20f2f-6815-4c5e-a756-62a635c6129b" x="281" y="0" width="37" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_OUTROS_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_PEDAGIO_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="59b3f3b3-7353-406e-a096-2e1dc48b7484" x="318" y="0" width="42" height="10"/> <reportElement uuid="59b3f3b3-7353-406e-a096-2e1dc48b7484" x="318" y="0" width="42" height="10"/>
@ -499,15 +505,15 @@
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_SEGURO_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="a5aecb48-d419-406a-b4ab-3dad24491fea" x="246" y="3" width="35" height="10"/> <reportElement uuid="a5aecb48-d419-406a-b4ab-3dad24491fea" x="246" y="3" width="35" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_EMBARQUE_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="dc6ef510-1db0-4682-b6f3-13e31ef5a838" x="281" y="3" width="37" height="10"/> <reportElement uuid="dc6ef510-1db0-4682-b6f3-13e31ef5a838" x="281" y="3" width="37" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_OUTROS_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_PEDAGIO_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="fb906a2d-72ab-4301-ada9-002950616b02" x="318" y="3" width="42" height="10"/> <reportElement uuid="fb906a2d-72ab-4301-ada9-002950616b02" x="318" y="3" width="42" height="10"/>
@ -585,32 +591,26 @@
<background> <background>
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<title> <pageHeader>
<band height="79" splitType="Stretch"> <band height="66" splitType="Stretch">
<textField>
<reportElement uuid="9e87eb2d-1887-4b55-8185-532290be371a" x="0" y="24" width="191" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="13cd1307-cc98-498c-8bac-618957350b22" x="0" y="40" width="191" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e9d8adae-c169-4fc4-9a35-fd1461933161" mode="Transparent" x="119" y="60" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="4c19b162-dfd6-48b7-b393-b7203a1bcd68" mode="Transparent" x="5" y="21" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="886fdbb8-b6c4-4ba1-98b8-15d9047cec7f" mode="Transparent" x="5" y="36" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="4408d1db-05db-4538-944d-5561074f2706" mode="Transparent" x="66" y="60" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="18ea34bb-d251-4e11-8589-235007cb2544" mode="Transparent" x="50" y="36" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -618,7 +618,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="06b0102b-f339-4eed-aad7-f6b84267c237" mode="Transparent" x="132" y="60" width="59" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="68db054c-7950-4088-9373-de44bff98b7c" mode="Transparent" x="108" y="36" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -626,34 +626,74 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c714d8a2-a41a-4fc8-848c-9cb455c3a0c7" mode="Transparent" x="1" y="60" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="b137a935-0ee3-4e32-9f1e-81eaae50fb0c" mode="Transparent" x="98" y="36" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e5254cd0-647f-4b22-be4c-cce9afc5a10f" x="669" y="40" width="100" height="20"/> <reportElement uuid="06a3d1b5-6685-4431-9578-dc0df27ee598" mode="Transparent" x="5" y="1" width="145" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font size="10"/> <font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Página: "+$V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy"> <textField pattern="dd/MM/yyyy HH:mm:ss" isBlankWhenNull="false">
<reportElement uuid="55b08ff2-e470-4b59-8c56-58e6fa05ccd5" x="669" y="25" width="100" height="15"/> <reportElement uuid="ee4f1d8d-ab87-49b7-af10-578709b54e88" mode="Transparent" x="713" y="2" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font size="10"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="afaaa1cf-1a3e-4a42-9fa3-e634a66fc3d3" x="1" y="76" width="797" height="1"/> <reportElement uuid="2893a2f0-d4b5-410a-982f-9cd50acc10f9" x="0" y="50" width="801" height="1"/>
</line>
<textField>
<reportElement uuid="87a53987-9821-4624-b0e0-e28617218944" x="631" y="2" width="80" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="43a80a09-d61c-47e9-bf58-4463f67dae6f" mode="Transparent" x="675" y="18" width="127" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}+" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="aba1011b-5b9f-4f9f-82da-b60daa0aec6e" mode="Transparent" x="702" y="34" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="3aa0af99-e71b-4318-aec2-b466c14702db" mode="Transparent" x="5" y="51" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="cbbf0c9d-061e-4da8-bfa8-4edf2affada5" x="51" y="51" width="717" height="14"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="db16cef4-cd72-45c5-8469-459c9ab3e032" x="0" y="65" width="801" height="1"/>
</line> </line>
</band> </band>
</title>
<pageHeader>
<band height="14" splitType="Stretch"/>
</pageHeader> </pageHeader>
<columnHeader> <columnHeader>
<band height="20" splitType="Stretch"> <band height="20" splitType="Stretch">
@ -726,7 +766,7 @@
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Bagagens]]></text> <text><![CDATA[Embarque]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="037e186a-34d1-4774-be91-0f53474af75b" mode="Transparent" x="281" y="10" width="37" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="037e186a-34d1-4774-be91-0f53474af75b" mode="Transparent" x="281" y="10" width="37" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
@ -734,7 +774,7 @@
<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<text><![CDATA[Seguro Opc.]]></text> <text><![CDATA[Pedagio]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="be5c09d6-13c0-4d7f-83ec-f5718fe019d2" mode="Transparent" x="318" y="10" width="42" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="be5c09d6-13c0-4d7f-83ec-f5718fe019d2" mode="Transparent" x="318" y="10" width="42" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
@ -930,12 +970,12 @@
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="908b363d-27a9-4f48-a601-0506227e0ab4" x="246" y="0" width="35" height="9"/> <reportElement uuid="908b363d-27a9-4f48-a601-0506227e0ab4" x="246" y="0" width="35" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_BAGAGEM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{RECEITA_EMBARQUE}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="f223321b-454b-4b7c-aa70-698525f5ba33" x="281" y="0" width="37" height="9"/> <reportElement uuid="f223321b-454b-4b7c-aa70-698525f5ba33" x="281" y="0" width="37" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_SEGURO_OUTROS}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{RECEITA_PEDAGIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="f0e8fc9a-4e83-4e23-a959-85701a6a2513" x="177" y="0" width="38" height="9"/> <reportElement uuid="f0e8fc9a-4e83-4e23-a959-85701a6a2513" x="177" y="0" width="38" height="9"/>
@ -1031,15 +1071,15 @@
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_SEGURO_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="7142b0c4-f126-4565-9b85-a83dd631612e" x="246" y="0" width="35" height="10"/> <reportElement uuid="7142b0c4-f126-4565-9b85-a83dd631612e" x="246" y="0" width="35" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_BAGAGEM_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_EMBARQUE_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="8d8798a7-a0c3-41ef-b9c8-06b40b8196e3" x="281" y="0" width="37" height="10"/> <reportElement uuid="8d8798a7-a0c3-41ef-b9c8-06b40b8196e3" x="281" y="0" width="37" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_SEGURO_OUTROS_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_PEDAGIO_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00"> <textField pattern="#,##0.00">
<reportElement uuid="7cb22254-3c7c-4ed3-9c90-2a3dac05e8e0" x="318" y="0" width="42" height="10"/> <reportElement uuid="7cb22254-3c7c-4ed3-9c90-2a3dac05e8e0" x="318" y="0" width="42" height="10"/>
@ -1111,7 +1151,7 @@
<noData> <noData>
<band height="50"> <band height="50">
<textField> <textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="145" y="14" width="530" height="20"/> <reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="145" y="13" width="530" height="20"/>
<textElement markup="none"> <textElement markup="none">
<font size="11" isBold="true"/> <font size="11" isBold="true"/>
</textElement> </textElement>

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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="RelatorioResumoLinhasAnalitico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2"> <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="RelatorioResumoLinhasAnalitico" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isFloatColumnFooter="true" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/> <property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="6"/> <property name="ireport.x" value="560"/>
<property name="ireport.y" value="5"/> <property name="ireport.y" value="0"/>
<style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="textStyle" isDefault="true" fontSize="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/>
<style name="table"> <style name="table">
<box> <box>
@ -32,6 +32,8 @@
<defaultValueExpression><![CDATA[null]]></defaultValueExpression> <defaultValueExpression><![CDATA[null]]></defaultValueExpression>
</parameter> </parameter>
<parameter name="EMPRESA_ID" class="java.lang.Integer"/> <parameter name="EMPRESA_ID" class="java.lang.Integer"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<queryString> <queryString>
<![CDATA[SELECT TAB.*, <![CDATA[SELECT TAB.*,
(TAB.EXTENSAO_KM/TAB.PASSAGEIROS) PAX_KM (TAB.EXTENSAO_KM/TAB.PASSAGEIROS) PAX_KM
@ -61,8 +63,7 @@
RT.RUTA_ID, RT.RUTA_ID,
RT.NUMRUTA, RT.NUMRUTA,
RT.DESCRUTA, RT.DESCRUTA,
CR.ROLOPERATIVO_ID) TAB CR.ROLOPERATIVO_ID) TAB]]>
]]>
</queryString> </queryString>
<field name="FECCORRIDA" class="java.sql.Timestamp"/> <field name="FECCORRIDA" class="java.sql.Timestamp"/>
<field name="RUTA_ID" class="java.math.BigDecimal"/> <field name="RUTA_ID" class="java.math.BigDecimal"/>
@ -198,32 +199,26 @@
<background> <background>
<band splitType="Stretch"/> <band splitType="Stretch"/>
</background> </background>
<title> <pageHeader>
<band height="79" splitType="Stretch"> <band height="66" splitType="Stretch">
<textField>
<reportElement uuid="9e87eb2d-1887-4b55-8185-532290be371a" x="0" y="24" width="114" height="15"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="13cd1307-cc98-498c-8bac-618957350b22" x="0" y="40" width="114" height="20"/>
<textElement>
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e9d8adae-c169-4fc4-9a35-fd1461933161" mode="Transparent" x="119" y="60" width="13" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="5" y="21" width="257" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Transparent" x="5" y="36" width="44" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="4408d1db-05db-4538-944d-5561074f2706" mode="Transparent" x="66" y="60" width="53" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Transparent" x="50" y="36" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -231,7 +226,7 @@
<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false"> <textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="06b0102b-f339-4eed-aad7-f6b84267c237" mode="Transparent" x="132" y="60" width="59" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Transparent" x="108" y="36" width="51" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
@ -239,31 +234,71 @@
<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
</textField> </textField>
<textField pattern="" isBlankWhenNull="false"> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="c714d8a2-a41a-4fc8-848c-9cb455c3a0c7" mode="Transparent" x="1" y="60" width="65" height="15" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="98" y="36" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none"> <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"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/> <paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression> <textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
</textField> </textField>
<textField> <textField pattern="" isBlankWhenNull="false">
<reportElement uuid="e5254cd0-647f-4b22-be4c-cce9afc5a10f" x="455" y="39" width="100" height="20"/> <reportElement uuid="5dfea5f4-257a-43bc-94cb-bdead81ef7ac" mode="Transparent" x="5" y="1" width="145" height="20" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right"> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font size="10"/> <font fontName="SansSerif" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA["Página: "+$V{PAGE_NUMBER}]]></textFieldExpression> <textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="dd/MM/yyyy"> <textField pattern="dd/MM/yyyy HH:mm:ss" isBlankWhenNull="false">
<reportElement uuid="55b08ff2-e470-4b59-8c56-58e6fa05ccd5" x="455" y="24" width="100" height="15"/> <reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Transparent" x="465" y="2" width="89" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right"> <textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font size="10"/> <font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression> <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
</textField> </textField>
<line>
<reportElement uuid="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="0" y="50" width="554" height="1"/>
</line>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="383" y="2" width="80" height="15"/>
<textElement textAlignment="Right">
<font size="9" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="38fe3ac0-c843-4b7e-afe6-dad5e4e5a8f6" mode="Transparent" x="427" y="18" width="127" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}+" " + $V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Transparent" x="454" y="34" width="100" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<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"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="ccec8b66-ed79-418b-b66d-15d9ed3bf2ce" mode="Transparent" x="5" y="51" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$R{cabecalho.filtros}]]></textFieldExpression>
</textField>
<textField>
<reportElement uuid="98fc1c7e-3fee-4c70-924f-2cbb17fd243f" x="51" y="51" width="717" height="14"/>
<textElement>
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
</band> </band>
</title>
<pageHeader>
<band height="11" splitType="Stretch"/>
</pageHeader> </pageHeader>
<detail> <detail>
<band height="12"> <band height="12">

View File

@ -4,9 +4,7 @@
package com.rjconsultores.ventaboletos.relatorios.utilitarios; package com.rjconsultores.ventaboletos.relatorios.utilitarios;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -28,7 +26,7 @@ public class ArrayDataSource implements IDataSource {
public ArrayDataSource(Relatorio relatorio) throws Exception { public ArrayDataSource(Relatorio relatorio) throws Exception {
this.relatorio = relatorio; this.relatorio = relatorio;
this.dados = new ArrayList<Map<String, Object>>();
this.initDados(); this.initDados();
this.rowNum = -1; this.rowNum = -1;
} }

View File

@ -0,0 +1,118 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.rjconsultores.ventaboletos.web.gui.controladores.relatorios;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.zkoss.util.resource.Labels;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Radio;
import org.zkoss.zul.Radiogroup;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.Ruta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioAcompanhamentoEquivalentes;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhas;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioResumoLinhasAnalitico;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
/**
*
* @author Administrador
*/
@Controller("relatorioAcompanhamentoEquivalentesController")
@Scope("prototype")
public class RelatorioAcompanhamentoEquivalentesController extends MyGenericForwardComposer {
@Autowired
private DataSource dataSource;
@Autowired
private EmpresaService empresaService;
private List<Empresa> lsEmpresa;
private Datebox datMes;
private Radiogroup rdGroupIndicador;
private Radiogroup rdGroupServico;
private MyComboboxEstandar cmbEmpresa;
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
/**
* @throws Exception
*
*/
private void executarRelatorio() throws Exception {
Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>();
parametros.put("DATA_MES", (java.util.Date) this.datMes.getValue());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioAcompanhamentoEquivalentesController.window.title"));
parametros.put("INDICADOR", Integer.parseInt(rdGroupIndicador.getSelectedItem().getValue()));
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA", empresa.getNombempresa());
}
if(!rdGroupServico.getSelectedItem().getValue().equals("-1"))
parametros.put("TIPOSERVICIO_ID", Integer.parseInt(rdGroupServico.getSelectedItem().getValue()));
relatorio = new RelatorioAcompanhamentoEquivalentes(parametros, dataSource.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioAcompanhamentoEquivalentesController.window.title"), args, MODAL);
}
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEmpresa = empresaService.obtenerTodos();
super.doAfterCompose(comp);
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
}

View File

@ -39,6 +39,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService; import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService; import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService; import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject; import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
@ -268,30 +269,40 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
private void executarRelatorio() throws Exception { private void executarRelatorio() throws Exception {
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) this.datInicial.getValue()).getTime())); parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) this.datInicial.getValue()).getTime()));
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime())); parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime()));
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked()); parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
parametros.put("B_CONTEMPLAR_GAP", chkExcessoBagagem.isChecked()); parametros.put("B_CONTEMPLAR_GAP", chkContemplarGap.isChecked());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title")); parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"));
parametros.put("ISDEVOLUCAODESTINO", rd1.isChecked() ? 0 : 1); parametros.put("ISDEVOLUCAODESTINO", rd1.isChecked() ? 0 : 1);
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData())); lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
filtro.append("Agência(s): ");
if (lsNumPuntoVenta.size() > 0) { if (lsNumPuntoVenta.size() > 0) {
parametros.put("NUMPUNTOVENTA", lsNumPuntoVenta); parametros.put("NUMPUNTOVENTA", lsNumPuntoVenta);
parametros.put("ISNUMPUNTOVENTATODOS", "N"); parametros.put("ISNUMPUNTOVENTATODOS", "N");
filtro.append(lsNumPuntoVenta.size()+" selecionada(s);");
} }
else else{
parametros.put("ISNUMPUNTOVENTATODOS", "S"); parametros.put("ISNUMPUNTOVENTATODOS", "S");
filtro.append("Todas ;");
}
filtro.append(" Estado: ");
Comboitem itemEstado = cmbEstado.getSelectedItem(); Comboitem itemEstado = cmbEstado.getSelectedItem();
if (itemEstado != null) { if (itemEstado != null) {
Estado estado = (Estado) itemEstado.getValue(); Estado estado = (Estado) itemEstado.getValue();
parametros.put("ESTADO_ID", estado.getEstadoId()); parametros.put("ESTADO_ID", estado.getEstadoId());
filtro.append(estado.getCveestado()+";");
} }
else
filtro.append("Todos;");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) { if (itemEmpresa != null) {
@ -300,11 +311,37 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
parametros.put("EMPRESA_NOME", empresa.getNombempresa()); parametros.put("EMPRESA_NOME", empresa.getNombempresa());
} }
filtro.append(" Tipo Agência: ");
Comboitem itemTipoPunto = cmbTipoPuntoVenta.getSelectedItem(); Comboitem itemTipoPunto = cmbTipoPuntoVenta.getSelectedItem();
if (itemTipoPunto != null) { if (itemTipoPunto != null) {
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) itemTipoPunto.getValue(); TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) itemTipoPunto.getValue();
parametros.put("TIPOPTOVTA_ID", tipoPuntoVenta.getTipoptovtaId().intValue()); parametros.put("TIPOPTOVTA_ID", tipoPuntoVenta.getTipoptovtaId().intValue());
filtro.append(tipoPuntoVenta.getDesctipo()+";");
} }
else
filtro.append("Todos;");
if(chkContemplarGap.isChecked())
filtro.append(" Contemplar GAP;");
else
filtro.append(" Desconsiderar GAP;");
if( chkExcessoBagagem.isChecked())
filtro.append(" Exclui Excesso de Bagagem;");
else
filtro.append(" Inclui Excesso de Bagagem;");
filtro.append(" Devolução na agência: ");
if(rd1.isChecked())
filtro.append("Origem;");
else
filtro.append("Destino;");
parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = new RelatorioReceitaDiariaAgencia(parametros, dataSource.getConnection()); Relatorio relatorio = new RelatorioReceitaDiariaAgencia(parametros, dataSource.getConnection());

View File

@ -30,6 +30,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService; import com.rjconsultores.ventaboletos.service.PuntoVentaService;
import com.rjconsultores.ventaboletos.service.RutaService; import com.rjconsultores.ventaboletos.service.RutaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService; import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
@ -70,16 +71,23 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
Relatorio relatorio; Relatorio relatorio;
Map<String, Object> parametros = new HashMap<String, Object>(); Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("DATA_INICIAL", (java.util.Date) this.fecCorridaIni.getValue()); parametros.put("DATA_INICIAL", (java.util.Date) this.fecCorridaIni.getValue());
parametros.put("DATA_FINAL", (java.util.Date) this.fecCorridaFin.getValue()); parametros.put("DATA_FINAL", (java.util.Date) this.fecCorridaFin.getValue());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title")); parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioResumoLinhasController.window.title"));
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
Comboitem itemRuta = cmbRuta.getSelectedItem(); Comboitem itemRuta = cmbRuta.getSelectedItem();
filtro.append("Linha: ");
if (itemRuta != null) { if (itemRuta != null) {
Ruta ruta = (Ruta) itemRuta.getValue(); Ruta ruta = (Ruta) itemRuta.getValue();
parametros.put("RUTA_ID", ruta.getRutaId()); parametros.put("RUTA_ID", ruta.getRutaId());
filtro.append(ruta.getDescruta()+";");
} }
else
filtro.append("Todas;");
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem(); Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) { if (itemEmpresa != null) {
@ -88,6 +96,8 @@ public class RelatorioResumoLinhasController extends MyGenericForwardComposer {
parametros.put("EMPRESA", empresa.getNombempresa()); parametros.put("EMPRESA", empresa.getNombempresa());
} }
parametros.put("FILTROS", filtro.toString());
if (rd1.isChecked()) if (rd1.isChecked())
relatorio = new RelatorioResumoLinhas(parametros, dataSource.getConnection()); relatorio = new RelatorioResumoLinhas(parametros, dataSource.getConnection());
else else

View File

@ -0,0 +1,25 @@
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.relatorios;
import org.zkoss.util.resource.Labels;
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
public class ItemMenuRelatorioAcompanhamentoEquivalentes extends DefaultItemMenuSistema {
public ItemMenuRelatorioAcompanhamentoEquivalentes() {
super("indexController.mniRelatorioAcompanhamentoEquivalentes.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIOACOMPANHAMENTOEQUIVALENTES";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioAcompanhamentoEquivalentes.zul",
Labels.getLabel("relatorioAcompanhamentoEquivalentesController.window.title"), null,desktop);
}
}

View File

@ -218,6 +218,7 @@ indexController.mniRelatorioLinhaOperacional.label = Relatório de Linha Operaci
indexController.mniRelatorioTrechoVendido.label = Relatório de Trecho Vendido Por Agência indexController.mniRelatorioTrechoVendido.label = Relatório de Trecho Vendido Por Agência
indexController.mniRelatorioPassageirosViajar.label = Passageiros a Viajar indexController.mniRelatorioPassageirosViajar.label = Passageiros a Viajar
indexController.mniRelatorioResumoLinhas.label = Relatório Resumo de Linhas indexController.mniRelatorioResumoLinhas.label = Relatório Resumo de Linhas
indexController.mniRelatorioAcompanhamentoEquivalentes.label = Relatório Acompanhamento Equivalentes
#PARTE REALIZADA POR MANUEL #PARTE REALIZADA POR MANUEL
indexController.mnCortesias.label = Cortesias Para Funcionários indexController.mnCortesias.label = Cortesias Para Funcionários
@ -316,6 +317,26 @@ relatorioReceitaDiariaAgenciaController.lbDevolucao.value = Devolução baseadas
relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd1.label = Origem relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd1.label = Origem
relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd2.label = Destino relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.rd2.label = Destino
#Relatório Acompanhamento Equivalentes
relatorioAcompanhamentoEquivalentesController.window.title = Relatório de Acompanhamento de Equivalentes
relatorioAcompanhamentoEquivalentesController.lbMes.value = Mês/Ano
relatorioAcompanhamentoEquivalentesController.lbIndicador.value = Indicador
relatorioAcompanhamentoEquivalentesController.lbIndicador.mpe.value = MPE
relatorioAcompanhamentoEquivalentesController.lbIndicador.receitaKm.value = R$/Km
relatorioAcompanhamentoEquivalentesController.lbIndicador.receitaViagem.value = R$/Viagem
relatorioAcompanhamentoEquivalentesController.lbIndicador.iap.value = IAP
relatorioAcompanhamentoEquivalentesController.lbIndicador.paxKm.value = Pax.KM
relatorioAcompanhamentoEquivalentesController.lbIndicador.absoluto.value = Absoluto
relatorioAcompanhamentoEquivalentesController.lbIndicador.eq.value = Eq
relatorioAcompanhamentoEquivalentesController.lbTipoServico.value = Tipos de Serviço
relatorioAcompanhamentoEquivalentesController.lbTipoServico.ordinarios.value = Somente Ordinários
relatorioAcompanhamentoEquivalentesController.lbTipoServico.extraordinarios.value = Somente Extraordinários
relatorioAcompanhamentoEquivalentesController.lbTipoServico.todos.value = Todos
relatorioAcompanhamentoEquivalentesController.lbEmpresa.value = Empresa
# Pantalla Editar Classe # Pantalla Editar Classe
editarClaseServicioController.window.title = Tipo de Classe editarClaseServicioController.window.title = Tipo de Classe
editarClaseServicioController.btnApagar.tooltiptext = Eliminar editarClaseServicioController.btnApagar.tooltiptext = Eliminar

View File

@ -0,0 +1,119 @@
<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winFiltroRelatorioAcompanhamentoEquivalentes"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioAcompanhamentoEquivalentes"
apply="${relatorioAcompanhamentoEquivalentesController}"
contentStyle="overflow:auto" height="278px" width="550px"
border="normal">
<grid fixedLayout="true">
<columns>
<column width="50%" />
<column width="50%" />
</columns>
<rows>
<row>
<cell>
<label
value="${c:l('relatorioAcompanhamentoEquivalentesController.lbEmpresa.value')}" />
<space />
<combobox id="cmbEmpresa" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioAcompanhamentoEquivalentes$composer.lsEmpresa}"
constraint="no empty" />
</cell>
<cell>
<label
value="${c:l('relatorioAcompanhamentoEquivalentesController.lbMes.value')}" />
<space />
<datebox id="datMes" format="MM/yyyy"
lenient="false" constraint="no empty" maxlength="7" />
</cell>
</row>
<row>
<groupbox width="100%" height="130px">
<caption
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.value')}" />
<radiogroup id="rdGroupIndicador">
<grid width="92%">
<columns>
<column width="50%" />
<column width="50%" />
</columns>
<rows>
<row>
<radio
radiogroup="rdGroupIndicador" value="1"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.mpe.value')}" />
<radio
radiogroup="rdGroupIndicador" value="2"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.receitaKm.value')}" />
</row>
<row>
<radio
radiogroup="rdGroupIndicador" value="3"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.receitaViagem.value')}" />
<radio
radiogroup="rdGroupIndicador" value="4"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.iap.value')}" />
</row>
<row>
<radio
radiogroup="rdGroupIndicador" value="5"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.paxKm.value')}" />
<radio
radiogroup="rdGroupIndicador" value="6"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.absoluto.value')}" />
</row>
<row>
<radio
radiogroup="rdGroupIndicador" value="7"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbIndicador.eq.value')}" />
</row>
</rows>
</grid>
</radiogroup>
</groupbox>
<groupbox width="100%" height="130px">
<caption
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbTipoServico.value')}" />
<radiogroup id="rdGroupServico">
<grid width="92%">
<columns>
<column width="100%" />
</columns>
<rows>
<row>
<radio
radiogroup="rdGroupServico" value="1"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbTipoServico.ordinarios.value')}" />
</row>
<row>
<radio
radiogroup="rdGroupServico" value="2"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbTipoServico.extraordinarios.value')}" />
</row>
<row>
<radio
radiogroup="rdGroupServico" value="-1"
label="${c:l('relatorioAcompanhamentoEquivalentesController.lbTipoServico.todos.value')}" />
</row>
</rows>
</grid>
</radiogroup>
</groupbox>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>

View File

@ -7,7 +7,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioResumoLinhas" <window id="winFiltroRelatorioResumoLinhas"
apply="${relatorioResumoLinhasController}" apply="${relatorioResumoLinhasController}"
contentStyle="overflow:auto" height="240px" width="450px" contentStyle="overflow:auto" height="165px" width="480px"
border="normal"> border="normal">
<grid fixedLayout="true"> <grid fixedLayout="true">
<columns> <columns>
@ -24,7 +24,9 @@
<datebox id="fecCorridaIni" width="130px" <datebox id="fecCorridaIni" width="130px"
format="dd/MM/yyyy" lenient="false" constraint="no empty" format="dd/MM/yyyy" lenient="false" constraint="no empty"
maxlength="10" /> maxlength="10" />
<space />
<label value="${c:l('relatorioResumoLinhasController.lbAte.value')}" /> <label value="${c:l('relatorioResumoLinhasController.lbAte.value')}" />
<space />
<datebox id="fecCorridaFin" width="130px" <datebox id="fecCorridaFin" width="130px"
format="dd/MM/yyyy" lenient="false" constraint="no empty" format="dd/MM/yyyy" lenient="false" constraint="no empty"
maxlength="10" /> maxlength="10" />