- Ajustes RRL (caso 4548)

- Parcial do relatorio de devolução dos bilhetes

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@30855 d1611594-4594-4d17-8e1d-87c2c4800839
master
bruno 2013-09-12 19:10:09 +00:00
parent e777659194
commit 71498dc706
10 changed files with 2236 additions and 78 deletions

View File

@ -0,0 +1,292 @@
<?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="RelatorioDevolucaoBilhetes" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<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_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" 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"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<queryString>
<![CDATA[]]>
</queryString>
<group name="grpEmpresa">
<groupExpression><![CDATA[$F{NOMBEMPRESA}]]></groupExpression>
<groupHeader>
<band height="14">
<textField>
<reportElement uuid="95e0028f-60d8-4bbf-afea-a2f3d40b2deb" x="0" y="0" width="187" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Empresa: "+$F{NOMBEMPRESA}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="11">
<staticText>
<reportElement uuid="2a963103-78f6-46c6-ac37-29ed4654df56" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Empresa: ]]></text>
</staticText>
<textField pattern="#,##0.00">
<reportElement uuid="0617c1e5-cd2f-4b67-ba79-d68c6604275e" x="354" y="0" width="64" height="11"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_EMBARQUE_1}]]></textFieldExpression>
</textField>
<line>
<reportElement uuid="7fc66df3-edd7-4149-847e-1375a3621e80" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="c4a77336-68c6-4e8e-8cd0-ee9c5cdcea51" x="0" y="0" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="59" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="1" y="1" width="257" 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{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Transparent" x="1" y="16" 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 pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Transparent" x="46" y="16" width="51" 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[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Transparent" x="107" y="16" width="51" 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[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="97" y="16" width="10" 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.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Transparent" x="461" y="0" 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="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="1" y="43" width="554" height="1"/>
</line>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="379" y="0" 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="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Transparent" x="450" y="31" width="100" height="12" 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="1" y="44" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Middle" 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="47" y="44" width="508" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263" mode="Transparent" x="430" y="16" width="105" 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}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="5a57c3a1-ed8e-46fb-836f-d250116a238a" mode="Transparent" x="535" y="16" width="15" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="13">
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="0" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="12" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="1" width="129" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[AIDF]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="129" y="1" width="55" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Série/Subs.]]></text>
</staticText>
<staticText>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="184" y="1" width="55" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Número]]></text>
</staticText>
<staticText>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="290" y="1" width="47" height="11" 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>
<text><![CDATA[Base Calc.]]></text>
</staticText>
<staticText>
<reportElement uuid="93a5880a-7547-4e53-85f4-09a6c22d5699" mode="Transparent" x="337" y="1" width="32" height="11" 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>
<text><![CDATA[Alíquota]]></text>
</staticText>
<staticText>
<reportElement uuid="1d4f5650-a014-468d-a9b2-c58887492ace" mode="Transparent" x="369" y="1" width="32" height="11" 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>
<text><![CDATA[ICMS]]></text>
</staticText>
<staticText>
<reportElement uuid="9b724ccc-0e90-4271-9e51-54128161d074" mode="Transparent" x="401" y="1" width="63" height="11" 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>
<text><![CDATA[Isentas]]></text>
</staticText>
<staticText>
<reportElement uuid="32c20a27-414c-41be-86b2-0d23645acd18" x="239" y="1" width="51" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Vr. Contábil]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="11"/>
</detail>
<lastPageFooter>
<band height="11">
<textField evaluationTime="Auto" pattern="#,##0.00">
<reportElement uuid="1d265368-d216-4cec-a824-a0c0b5536a43" x="355" y="-1" width="63" height="12"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{TOTAL_EMBARQUE_2}]]></textFieldExpression>
</textField>
<staticText>
<reportElement uuid="f7ac3bf7-ac60-405e-b2a3-60c9150421a0" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Geral: ]]></text>
</staticText>
<line>
<reportElement uuid="06fb8df2-dbea-44e7-9e45-21f8aa82f939" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</lastPageFooter>
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="148" y="8" width="407" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -0,0 +1,282 @@
<?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="RelatorioDevolucaoBilhetesGap" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="efbc89d4-6f08-4ea5-802f-d4f48ed208e2">
<property name="ireport.zoom" value="2.0"/>
<property name="ireport.x" value="185"/>
<property name="ireport.y" value="0"/>
<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_INICIAL" class="java.util.Date"/>
<parameter name="DATA_FINAL" 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"/>
<parameter name="USUARIO" class="java.lang.String"/>
<parameter name="FILTROS" class="java.lang.String"/>
<parameter name="TIPO_DATA" class="java.lang.Integer"/>
<queryString>
<![CDATA[]]>
</queryString>
<group name="grpEmpresa">
<groupExpression><![CDATA[$F{NOMBEMPRESA}]]></groupExpression>
<groupHeader>
<band height="14">
<textField>
<reportElement uuid="95e0028f-60d8-4bbf-afea-a2f3d40b2deb" x="0" y="0" width="187" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA["Empresa: "+$F{NOMBEMPRESA}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band height="11">
<staticText>
<reportElement uuid="2a963103-78f6-46c6-ac37-29ed4654df56" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Empresa: ]]></text>
</staticText>
<line>
<reportElement uuid="7fc66df3-edd7-4149-847e-1375a3621e80" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="c4a77336-68c6-4e8e-8cd0-ee9c5cdcea51" x="0" y="0" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<pageHeader>
<band height="59" splitType="Stretch">
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="2ed4524d-5c06-487c-a8f1-abc59a8ef7fc" mode="Transparent" x="1" y="1" width="257" 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{NOME_RELATORIO}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="fc199edd-4f2f-4b5f-9397-44f4af50a920" mode="Transparent" x="1" y="16" 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 pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="f64c2e3c-d936-4072-a0b1-d914f408bbbb" mode="Transparent" x="46" y="16" width="51" 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[$P{DATA_INICIAL}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
<reportElement uuid="00093c35-d3a5-4b0e-8a7a-26a86912dd25" mode="Transparent" x="107" y="16" width="51" 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[$P{DATA_FINAL}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="def1b81c-a286-4749-9ef7-f90984a3a5eb" mode="Transparent" x="97" y="16" width="10" 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.periodoA}]]></textFieldExpression>
</textField>
<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
<reportElement uuid="ea4dfc22-27b5-4600-8e8b-7d74460ed744" mode="Transparent" x="461" y="0" 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="d9b398e6-2fe9-4a3d-bceb-f9db7a06e5a9" x="1" y="43" width="554" height="1"/>
</line>
<textField>
<reportElement uuid="a46c91f5-fb60-48d8-93c1-3814ce0160dd" x="379" y="0" 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="623b5d82-e7b3-4439-96c5-f44833fb8864" mode="Transparent" x="450" y="31" width="100" height="12" 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="1" y="44" width="45" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Left" verticalAlignment="Middle" 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="47" y="44" width="508" height="14"/>
<textElement verticalAlignment="Middle">
<font size="8"/>
</textElement>
<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
</textField>
<textField pattern="" isBlankWhenNull="false">
<reportElement uuid="6aae4c9b-2e2a-4fd5-9115-760449d3c263" mode="Transparent" x="430" y="16" width="105" 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}]]></textFieldExpression>
</textField>
<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
<reportElement uuid="5a57c3a1-ed8e-46fb-836f-d250116a238a" mode="Transparent" x="535" y="16" width="15" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
<font fontName="SansSerif" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
<paragraph lineSpacing="Single"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
<columnHeader>
<band height="13">
<line>
<reportElement uuid="04a75f17-3686-484b-be43-7b7e22e9def7" x="0" y="0" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<line>
<reportElement uuid="d9f712d0-01a8-4241-a1e6-dc096b4ee773" x="0" y="12" width="554" height="1"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
<staticText>
<reportElement uuid="9c579f27-ee14-4804-b73d-64994a6e41ec" x="0" y="1" width="129" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Agência de Devolução]]></text>
</staticText>
<staticText>
<reportElement uuid="7b8a8f38-e513-4a8c-a82b-a9c6ffd21f6f" x="129" y="1" width="55" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Número]]></text>
</staticText>
<staticText>
<reportElement uuid="4f8fcbb3-73e7-4b15-9687-30ff12bb1526" x="184" y="1" width="55" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Formulário]]></text>
</staticText>
<staticText>
<reportElement uuid="7b817589-f754-49f1-bf53-856be52946fb" mode="Transparent" x="290" y="1" width="47" height="11" 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>
<text><![CDATA[Vr Seguro]]></text>
</staticText>
<staticText>
<reportElement uuid="93a5880a-7547-4e53-85f4-09a6c22d5699" mode="Transparent" x="337" y="1" width="54" height="11" 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>
<text><![CDATA[Vr Pedagio]]></text>
</staticText>
<staticText>
<reportElement uuid="1d4f5650-a014-468d-a9b2-c58887492ace" mode="Transparent" x="391" y="1" width="61" height="11" 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>
<text><![CDATA[Vr Tx Embarque]]></text>
</staticText>
<staticText>
<reportElement uuid="9b724ccc-0e90-4271-9e51-54128161d074" mode="Transparent" x="452" y="1" width="63" height="11" 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>
<text><![CDATA[Vr Total]]></text>
</staticText>
<staticText>
<reportElement uuid="32c20a27-414c-41be-86b2-0d23645acd18" x="239" y="1" width="51" height="11"/>
<textElement>
<font size="7"/>
</textElement>
<text><![CDATA[Vr Tarifa]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="11"/>
</detail>
<lastPageFooter>
<band height="11">
<staticText>
<reportElement uuid="f7ac3bf7-ac60-405e-b2a3-60c9150421a0" x="0" y="0" width="51" height="11"/>
<textElement/>
<text><![CDATA[Total Geral: ]]></text>
</staticText>
<line>
<reportElement uuid="06fb8df2-dbea-44e7-9e45-21f8aa82f939" x="0" y="10" width="554" height="1" forecolor="#666666"/>
<graphicElement>
<pen lineWidth="0.5"/>
</graphicElement>
</line>
</band>
</lastPageFooter>
<noData>
<band height="39">
<textField>
<reportElement uuid="a640c0eb-ead8-4a2a-bda4-675165e8bc7d" x="148" y="8" width="407" height="20"/>
<textElement markup="none">
<font size="11" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
</textField>
</band>
</noData>
</jasperReport>

View File

@ -1,7 +1,7 @@
<?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="2.2"/> <property name="ireport.zoom" value="2.2"/>
<property name="ireport.x" value="862"/> <property name="ireport.x" value="818"/>
<property name="ireport.y" value="54"/> <property name="ireport.y" value="54"/>
<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">
@ -39,7 +39,7 @@
<![CDATA[SELECT TAB.*, <![CDATA[SELECT TAB.*,
(TAB.PASSAGEIROS / (TAB.PASSAGEIROS /
DECODE(TAB.VIAGENS_TOTAL, 0, 1, TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPA, DECODE(TAB.VIAGENS_TOTAL, 0, 1, TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPA,
(TAB.PASSAGEIROS_EQUIVALENTE / ( ROUND(TAB.PASSAGEIROS_EQUIVALENTE, 2) /
DECODE(TAB.VIAGENS_TOTAL, 0, 1, TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPE, DECODE(TAB.VIAGENS_TOTAL, 0, 1, TAB.VIAGENS_TOTAL)) PASSAGEIROS_MPE,
(TAB.RECEITA_TOTAL / DECODE(TAB.KM_RODADO, 0, 1, TAB.KM_RODADO)) RECEITA_KM, (TAB.RECEITA_TOTAL / DECODE(TAB.KM_RODADO, 0, 1, TAB.KM_RODADO)) RECEITA_KM,
(TAB.RECEITA_TOTAL / (TAB.RECEITA_TOTAL /
@ -47,15 +47,13 @@
ROUND(((TAB.RECEITA_TOTAL / ROUND(((TAB.RECEITA_TOTAL /
DECODE(TAB.VIAGENS_TOTAL, 0, 1, TAB.VIAGENS_TOTAL)) / DECODE(TAB.VIAGENS_TOTAL, 0, 1, TAB.VIAGENS_TOTAL)) /
DECODE(TAB.TARIFA, 0, 1, TAB.TARIFA)), DECODE(TAB.TARIFA, 0, 1, TAB.TARIFA)),
0) EQ, 2) EQ,
(TAB.PASSAGEIROS_EQUIVALENTE * TAB.EXTENSAO_KM) PAX_KM, (ROUND(TAB.PASSAGEIROS_EQUIVALENTE, 2) * TAB.EXTENSAO_KM) PAX_KM,
(TAB.ASSENTOS * TAB.KM_RODADO) PAX_OFERTADO, (TAB.ASSENTOS * TAB.KM_RODADO) PAX_OFERTADO,
((TAB.PASSAGEIROS_EQUIVALENTE * TAB.EXTENSAO_KM) / ((ROUND(TAB.PASSAGEIROS_EQUIVALENTE, 2) * TAB.EXTENSAO_KM) /
(TAB.ASSENTOS * TAB.KM_RODADO)) IAP (TAB.ASSENTOS * TAB.KM_RODADO)) * 100 IAP
FROM (SELECT TAB1.*, FROM (SELECT TAB1.*,
(TAB1.RECEITA_TARIFA + TAB1.RECEITA_SEGURO + (TAB1.RECEITA_TARIFA) 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((DECODE(TR.CANTKMREAL, 0, 1, TR.CANTKMREAL) / (SELECT SUM((DECODE(TR.CANTKMREAL, 0, 1, TR.CANTKMREAL) /
@ -144,7 +142,7 @@
AND CS.CLASESERVICIO_ID = RT.CLASESERVICIO_ID AND CS.CLASESERVICIO_ID = RT.CLASESERVICIO_ID
AND CR.FECCORRIDA = BL.FECCORRIDA AND CR.FECCORRIDA = BL.FECCORRIDA
AND CR.RUTA_ID = NVL($P{RUTA_ID}, CR.RUTA_ID) AND CR.RUTA_ID = NVL($P{RUTA_ID}, CR.RUTA_ID)
AND RT.GRUPORUTA_ID = NVL($P{GRUPORUTA_ID}, RT.GRUPORUTA_ID) AND RT.GRUPORUTA_ID = NVL($P{GRUPORUTA_ID}, RT.GRUPORUTA_ID)
AND CR.CORRIDA_ID = BL.CORRIDA_ID AND CR.CORRIDA_ID = BL.CORRIDA_ID
AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID} AND CR.EMPRESACORRIDA_ID = $P{EMPRESA_ID}
AND CR.ORIGEN_ID = PO.PARADA_ID AND CR.ORIGEN_ID = PO.PARADA_ID
@ -236,10 +234,10 @@
<variableExpression><![CDATA[$F{RECEITA_EMBARQUE}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_EMBARQUE}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_EMBARQUE_2" class="java.math.BigDecimal" resetType="Group" resetGroup="groupInterestaduak" calculation="Sum"> <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_EMBARQUE}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_EMBARQUE_3" class="java.math.BigDecimal" resetType="Column" 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_EMBARQUE}]]></variableExpression>
</variable> </variable>
<variable name="RECEITA_PEDAGIO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum"> <variable name="RECEITA_PEDAGIO_1" class="java.math.BigDecimal" resetType="Group" resetGroup="groupLinha" calculation="Sum">
<variableExpression><![CDATA[$F{RECEITA_PEDAGIO}]]></variableExpression> <variableExpression><![CDATA[$F{RECEITA_PEDAGIO}]]></variableExpression>
@ -381,7 +379,7 @@
<groupHeader> <groupHeader>
<band height="12"> <band height="12">
<line> <line>
<reportElement uuid="5bdcd7b5-6a5b-4ee1-b271-23c38689cbc0" x="1" y="1" width="797" height="1"/> <reportElement uuid="5bdcd7b5-6a5b-4ee1-b271-23c38689cbc0" x="1" y="1" width="800" height="1"/>
<graphicElement> <graphicElement>
<pen lineWidth="0.5"/> <pen lineWidth="0.5"/>
</graphicElement> </graphicElement>
@ -446,7 +444,7 @@
<textFieldExpression><![CDATA[$V{KM_RODADO_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{KM_RODADO_2}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="3bc49334-8935-4b95-8686-65b2baf249a7" x="511" y="0" width="27" height="10"/> <reportElement uuid="3bc49334-8935-4b95-8686-65b2baf249a7" x="511" y="0" width="20" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_2}]]></textFieldExpression>
</textField> </textField>
@ -456,47 +454,50 @@
<textFieldExpression><![CDATA[$F{INTERESTADUAL}.equals( "S" )?"Linhas Interestaduais":"Linhas Intermunicipais"]]></textFieldExpression> <textFieldExpression><![CDATA[$F{INTERESTADUAL}.equals( "S" )?"Linhas Interestaduais":"Linhas Intermunicipais"]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="ccf12c36-31bc-4819-b94d-3ce42c238820" mode="Transparent" x="539" y="0" width="33" height="10"/> <reportElement uuid="ccf12c36-31bc-4819-b94d-3ce42c238820" mode="Transparent" x="532" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="0359e97f-5c6c-4265-b1de-6f8facc625e7" x="572" y="0" width="25" height="10"/> <reportElement uuid="0359e97f-5c6c-4265-b1de-6f8facc625e7" x="565" y="0" width="25" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_2}.divide($V{VIAGENS_TOTAL_2}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_2}.divide($V{VIAGENS_TOTAL_2}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="0e0b4d6d-2f9e-4d0f-a94c-904a514e59cb" x="598" y="0" width="37" height="10"/> <reportElement uuid="0e0b4d6d-2f9e-4d0f-a94c-904a514e59cb" x="591" y="0" width="26" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_2}.divide( $V{VIAGENS_TOTAL_2} , 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_2}.divide( $V{VIAGENS_TOTAL_2} , 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="803a40d7-383b-4a69-98a3-fe5020830ac4" x="637" y="0" width="20" height="10"/> <reportElement uuid="803a40d7-383b-4a69-98a3-fe5020830ac4" x="623" y="0" width="20" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_2}.divide($V{KM_RODADO_2}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_TOTAL_2}.divide($V{KM_RODADO_2}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="#,##0.00">
<reportElement uuid="def9f63d-940e-468c-95b6-2b79cb58d60a" x="668" y="0" width="32" height="10"/> <reportElement uuid="def9f63d-940e-468c-95b6-2b79cb58d60a" x="663" y="0" width="32" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_2}.divide( $V{VIAGENS_TOTAL_2}, 2, RoundingMode.HALF_UP )]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_TOTAL_2}.divide( $V{VIAGENS_TOTAL_2}, 2, RoundingMode.HALF_UP )]]></textFieldExpression>
</textField> </textField>
<textField pattern=""> <textField pattern="###0.00">
<reportElement uuid="cb2e8937-83c0-4a78-a8f7-568141922cad" x="657" y="0" width="11" height="10"> <reportElement uuid="cb2e8937-83c0-4a78-a8f7-568141922cad" x="643" y="0" width="20" height="10"/>
<printWhenExpression><![CDATA[false]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{EQ_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{EQ_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="938accbf-05a4-46f2-87a2-91891f82252f" x="732" y="0" width="34" height="10"/> <reportElement uuid="938accbf-05a4-46f2-87a2-91891f82252f" x="736" y="0" width="45" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_KM_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_KM_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="90494c53-7ffb-481b-862e-8568cf819594" x="700" y="0" width="32" height="10"/> <reportElement uuid="90494c53-7ffb-481b-862e-8568cf819594" x="695" y="0" width="41" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_OFERTADO_2}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_OFERTADO_2}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00">
<reportElement uuid="bddaad96-34a4-4bff-b094-5e8970bb92e8" x="781" y="0" width="20" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_KM_2}.divide( $V{PAX_OFERTADO_2}, 4, RoundingMode.HALF_UP ).multiply(BigDecimal.valueOf(100))]]></textFieldExpression>
</textField>
</band> </band>
</groupFooter> </groupFooter>
</group> </group>
@ -510,7 +511,7 @@
<textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="095b53f2-ed2e-4c2f-8b03-fd362ba20e4a" x="1" y="0" width="797" height="1"/> <reportElement uuid="095b53f2-ed2e-4c2f-8b03-fd362ba20e4a" x="1" y="0" width="800" height="1"/>
<graphicElement> <graphicElement>
<pen lineWidth="0.5"/> <pen lineWidth="0.5"/>
</graphicElement> </graphicElement>
@ -570,7 +571,7 @@
<textFieldExpression><![CDATA[$V{KM_RODADO_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{KM_RODADO_1}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="dede42db-eaf2-4b63-a508-c90517d2a54e" x="511" y="3" width="27" height="10"/> <reportElement uuid="dede42db-eaf2-4b63-a508-c90517d2a54e" x="511" y="3" width="20" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_1}]]></textFieldExpression>
</textField> </textField>
@ -580,47 +581,50 @@
<textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{GRUPO_LINHA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="d1797148-777c-4f49-98ba-5c209760a467" mode="Transparent" x="539" y="3" width="33" height="10"/> <reportElement uuid="d1797148-777c-4f49-98ba-5c209760a467" mode="Transparent" x="532" y="3" width="33" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="c3185c7f-5a88-4ae7-b13a-c1ddd6f1ee27" x="572" y="3" width="25" height="10"/> <reportElement uuid="c3185c7f-5a88-4ae7-b13a-c1ddd6f1ee27" x="565" y="3" width="25" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_1}.divide($V{VIAGENS_TOTAL_1}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_1}.divide($V{VIAGENS_TOTAL_1}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="3feb9928-9ade-41a0-b31e-5e1cbbc0d735" x="598" y="3" width="37" height="10"/> <reportElement uuid="3feb9928-9ade-41a0-b31e-5e1cbbc0d735" x="591" y="3" width="26" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_1}.divide( $V{VIAGENS_TOTAL_1}, 2, RoundingMode.HALF_UP )]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_1}.divide( $V{VIAGENS_TOTAL_1}, 2, RoundingMode.HALF_UP )]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="a5aacae3-b107-43b0-8db3-186cd6a3f619" x="637" y="3" width="20" height="10"/> <reportElement uuid="a5aacae3-b107-43b0-8db3-186cd6a3f619" x="623" y="3" width="20" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_1}.divide($V{KM_RODADO_1}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_TOTAL_1}.divide($V{KM_RODADO_1}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern=""> <textField pattern="###0.00">
<reportElement uuid="9f5c694a-56ed-4f9d-a19f-1dc70894f76d" x="657" y="3" width="11" height="10"> <reportElement uuid="9f5c694a-56ed-4f9d-a19f-1dc70894f76d" x="643" y="3" width="20" height="10"/>
<printWhenExpression><![CDATA[false]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{EQ_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{EQ_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="#,##0.00">
<reportElement uuid="453574ed-a800-4690-8305-175b10dc5346" x="668" y="3" width="32" height="10"/> <reportElement uuid="453574ed-a800-4690-8305-175b10dc5346" x="663" y="3" width="32" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_1}.divide( $V{VIAGENS_TOTAL_1}, 2, RoundingMode.HALF_UP )]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_TOTAL_1}.divide( $V{VIAGENS_TOTAL_1}, 2, RoundingMode.HALF_UP )]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="1d66a926-6d03-4df6-9bd4-c2c1b8bf206f" x="732" y="3" width="34" height="10"/> <reportElement uuid="1d66a926-6d03-4df6-9bd4-c2c1b8bf206f" x="736" y="3" width="45" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_KM_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="2bcd1fde-444b-4332-9ff8-c76d76ce77d6" x="700" y="3" width="32" height="10"/> <reportElement uuid="2bcd1fde-444b-4332-9ff8-c76d76ce77d6" x="695" y="3" width="41" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_OFERTADO_1}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_OFERTADO_1}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00">
<reportElement uuid="2f2294c0-dad9-4ee9-b875-e99dc1d66a73" x="781" y="3" width="20" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_KM_1}.divide( $V{PAX_OFERTADO_1}, 4, RoundingMode.HALF_UP ).multiply(BigDecimal.valueOf(100))]]></textFieldExpression>
</textField>
</band> </band>
</groupFooter> </groupFooter>
</group> </group>
@ -861,15 +865,15 @@
<text><![CDATA[Km Rodado]]></text> <text><![CDATA[Km Rodado]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="998f2194-128e-4132-b882-9188016b3d87" mode="Transparent" x="511" y="10" width="27" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="998f2194-128e-4132-b882-9188016b3d87" mode="Transparent" x="511" y="10" width="20" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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[Absoluto]]></text> <text><![CDATA[Abs.]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="ddc8db3b-b459-4b86-9862-311f9530786b" mode="Transparent" x="572" y="10" width="25" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="ddc8db3b-b459-4b86-9862-311f9530786b" mode="Transparent" x="565" y="10" width="25" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -877,7 +881,7 @@
<text><![CDATA[MPA]]></text> <text><![CDATA[MPA]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="56978e81-7af5-4596-b12c-faa90561c0fa" mode="Transparent" x="539" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="56978e81-7af5-4596-b12c-faa90561c0fa" mode="Transparent" x="532" y="10" width="33" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -885,7 +889,7 @@
<text><![CDATA[Equival.]]></text> <text><![CDATA[Equival.]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="d5dd65d5-24a2-454e-a516-6847f0abf648" mode="Transparent" x="598" y="10" width="37" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="d5dd65d5-24a2-454e-a516-6847f0abf648" mode="Transparent" x="591" y="10" width="26" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -893,7 +897,7 @@
<text><![CDATA[MPE]]></text> <text><![CDATA[MPE]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="31f020bf-2be6-4f3c-98ec-6dffc692dfc6" mode="Transparent" x="637" y="10" width="20" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="31f020bf-2be6-4f3c-98ec-6dffc692dfc6" mode="Transparent" x="623" y="10" width="20" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -901,7 +905,7 @@
<text><![CDATA[R$/KM]]></text> <text><![CDATA[R$/KM]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="ea2e82c6-9390-4fca-9158-94f17dc4360a" mode="Transparent" x="657" y="10" width="11" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="ea2e82c6-9390-4fca-9158-94f17dc4360a" mode="Transparent" x="643" y="10" width="20" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -909,7 +913,7 @@
<text><![CDATA[EQ.]]></text> <text><![CDATA[EQ.]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="5f13dda7-5e2c-4c1a-a8cc-03cb2e0ea46b" mode="Transparent" x="668" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="5f13dda7-5e2c-4c1a-a8cc-03cb2e0ea46b" mode="Transparent" x="663" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -917,7 +921,7 @@
<text><![CDATA[R$/Viagem]]></text> <text><![CDATA[R$/Viagem]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="50c7e602-bf62-49c7-aab5-a923ae173891" mode="Transparent" x="732" y="10" width="34" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="50c7e602-bf62-49c7-aab5-a923ae173891" mode="Transparent" x="736" y="10" width="45" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -925,7 +929,7 @@
<text><![CDATA[PAX. Trans.]]></text> <text><![CDATA[PAX. Trans.]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement uuid="11d0f094-3bb0-4ffb-bdf6-8ff8a0831a22" mode="Transparent" x="766" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="11d0f094-3bb0-4ffb-bdf6-8ff8a0831a22" mode="Transparent" x="781" y="10" width="20" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -959,7 +963,7 @@
<text><![CDATA[PASSAGEIROS]]></text> <text><![CDATA[PASSAGEIROS]]></text>
</staticText> </staticText>
<line> <line>
<reportElement uuid="c9726b5f-4f89-4c7c-ab63-a7a893bcd3b8" x="514" y="8" width="121" height="1"/> <reportElement uuid="c9726b5f-4f89-4c7c-ab63-a7a893bcd3b8" x="514" y="8" width="103" height="1"/>
</line> </line>
</elementGroup> </elementGroup>
<elementGroup> <elementGroup>
@ -969,11 +973,11 @@
<text><![CDATA[PARÂMETROS OPERACIONAIS]]></text> <text><![CDATA[PARÂMETROS OPERACIONAIS]]></text>
</staticText> </staticText>
<line> <line>
<reportElement uuid="215a5a7f-9389-4c1c-8022-01dc4504b996" x="637" y="8" width="161" height="1"/> <reportElement uuid="215a5a7f-9389-4c1c-8022-01dc4504b996" x="621" y="8" width="180" height="1"/>
</line> </line>
</elementGroup> </elementGroup>
<staticText> <staticText>
<reportElement uuid="b063e934-2c41-4b8b-a5cd-a58832a9d88d" mode="Transparent" x="700" y="10" width="32" height="9" forecolor="#000000" backcolor="#FFFFFF"/> <reportElement uuid="b063e934-2c41-4b8b-a5cd-a58832a9d88d" mode="Transparent" x="695" y="10" width="41" height="9" forecolor="#000000" backcolor="#FFFFFF"/>
<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none"> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
<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"/>
@ -1055,47 +1059,47 @@
<textFieldExpression><![CDATA[$F{KM_RODADO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{KM_RODADO}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="775711fe-9467-4465-b092-80ef51ead84d" x="511" y="0" width="27" height="9"/> <reportElement uuid="775711fe-9467-4465-b092-80ef51ead84d" x="511" y="0" width="20" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PASSAGEIROS}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="25394a2c-dbf5-46b5-ae4e-375dd9864630" x="539" y="0" width="33" height="9"/> <reportElement uuid="25394a2c-dbf5-46b5-ae4e-375dd9864630" x="532" y="0" width="33" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS_EQUIVALENTE}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PASSAGEIROS_EQUIVALENTE}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="ac90046e-a510-4587-8d6a-cbf419b713f6" x="572" y="0" width="25" height="9"/> <reportElement uuid="ac90046e-a510-4587-8d6a-cbf419b713f6" x="565" y="0" width="25" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS_MPA}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PASSAGEIROS_MPA}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="0190c870-c423-4a99-b09d-ce360b0382fa" x="598" y="0" width="37" height="9"/> <reportElement uuid="0190c870-c423-4a99-b09d-ce360b0382fa" x="591" y="0" width="26" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PASSAGEIROS_MPE}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PASSAGEIROS_MPE}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="78d6da19-c9f8-4d7c-a2a7-edda464ebe46" x="637" y="0" width="20" height="9"/> <reportElement uuid="78d6da19-c9f8-4d7c-a2a7-edda464ebe46" x="623" y="0" width="20" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_KM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{RECEITA_KM}]]></textFieldExpression>
</textField> </textField>
<textField pattern="#,##0.00" isBlankWhenNull="true"> <textField pattern="#,##0.00" isBlankWhenNull="true">
<reportElement uuid="8012c831-d025-4bd9-9967-a4fe6f122cd0" x="668" y="0" width="32" height="9"/> <reportElement uuid="8012c831-d025-4bd9-9967-a4fe6f122cd0" x="663" y="0" width="32" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{RECEITA_VIAGEM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{RECEITA_VIAGEM}]]></textFieldExpression>
</textField> </textField>
<textField isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="c214d5e9-aae9-432f-b566-bc922cefdff6" x="657" y="0" width="11" height="9"/> <reportElement uuid="c214d5e9-aae9-432f-b566-bc922cefdff6" x="643" y="0" width="20" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{EQ}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{EQ}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="4a7aebfb-b474-4fb3-9fa6-2e90fd172058" x="732" y="0" width="34" height="9"/> <reportElement uuid="4a7aebfb-b474-4fb3-9fa6-2e90fd172058" x="736" y="0" width="45" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PAX_KM}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="6c7fe634-f8ff-4561-b406-f3a7d81a59d7" x="766" y="0" width="32" height="9"/> <reportElement uuid="6c7fe634-f8ff-4561-b406-f3a7d81a59d7" x="781" y="0" width="20" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{IAP}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{IAP}]]></textFieldExpression>
</textField> </textField>
@ -1105,7 +1109,7 @@
<textFieldExpression><![CDATA[$F{CVE_CLASE_SERVICIO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{CVE_CLASE_SERVICIO}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00" isBlankWhenNull="true"> <textField pattern="###0.00" isBlankWhenNull="true">
<reportElement uuid="75718ac2-555b-4cc0-99ab-52ea850ee2e9" x="700" y="0" width="32" height="9"/> <reportElement uuid="75718ac2-555b-4cc0-99ab-52ea850ee2e9" x="695" y="0" width="41" height="9"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/> <textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{PAX_OFERTADO}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PAX_OFERTADO}]]></textFieldExpression>
</textField> </textField>
@ -1164,52 +1168,55 @@
<textFieldExpression><![CDATA[$V{KM_RODADO_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{KM_RODADO_3}]]></textFieldExpression>
</textField> </textField>
<textField> <textField>
<reportElement uuid="11bb7940-dfb1-48a4-9855-5d189309a9a6" x="511" y="0" width="27" height="10"/> <reportElement uuid="11bb7940-dfb1-48a4-9855-5d189309a9a6" x="511" y="0" width="20" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="e1d404c1-7d6d-4df5-b95b-43ac42143940" mode="Transparent" x="539" y="0" width="33" height="10"/> <reportElement uuid="e1d404c1-7d6d-4df5-b95b-43ac42143940" mode="Transparent" x="532" y="0" width="33" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="3eb6fb5d-9ebe-4d7b-8330-3fc40aaa42a8" x="572" y="0" width="25" height="10"/> <reportElement uuid="3eb6fb5d-9ebe-4d7b-8330-3fc40aaa42a8" x="565" y="0" width="25" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_3}.divide($V{VIAGENS_TOTAL_3}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_3}.divide($V{VIAGENS_TOTAL_3}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="286fdd0c-a121-4c6e-83e5-114d7307c557" x="598" y="0" width="37" height="10"/> <reportElement uuid="286fdd0c-a121-4c6e-83e5-114d7307c557" x="591" y="0" width="26" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_3}.divide( $V{VIAGENS_TOTAL_3}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PASSAGEIROS_EQUIVALENTE_3}.divide( $V{VIAGENS_TOTAL_3}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="06262876-8581-45b3-abcb-73c9b8996406" x="637" y="0" width="20" height="10"/> <reportElement uuid="06262876-8581-45b3-abcb-73c9b8996406" x="623" y="0" width="20" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_3}.divide($V{KM_RODADO_3}, 2, RoundingMode.HALF_UP)]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_TOTAL_3}.divide($V{KM_RODADO_3}, 2, RoundingMode.HALF_UP)]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="#,##0.00">
<reportElement uuid="30561514-bc5c-42cf-8906-89af33a0f831" x="668" y="0" width="32" height="10"/> <reportElement uuid="30561514-bc5c-42cf-8906-89af33a0f831" x="663" y="0" width="32" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{RECEITA_TOTAL_3}.divide( $V{VIAGENS_TOTAL_3}, 2, RoundingMode.HALF_UP )]]></textFieldExpression> <textFieldExpression><![CDATA[$V{RECEITA_TOTAL_3}.divide( $V{VIAGENS_TOTAL_3}, 2, RoundingMode.HALF_UP )]]></textFieldExpression>
</textField> </textField>
<textField pattern=""> <textField pattern="###0.00">
<reportElement uuid="c4eb80d5-7b91-4a65-a1c2-812c6a4cddef" x="657" y="0" width="11" height="10"> <reportElement uuid="c4eb80d5-7b91-4a65-a1c2-812c6a4cddef" x="643" y="0" width="20" height="10"/>
<printWhenExpression><![CDATA[false]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{EQ_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{EQ_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="d79c96bc-69a8-4645-be85-28ede43da0a7" x="732" y="0" width="34" height="10"/> <reportElement uuid="d79c96bc-69a8-4645-be85-28ede43da0a7" x="736" y="0" width="45" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_KM_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_KM_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00"> <textField pattern="###0.00">
<reportElement uuid="579c3d84-f52d-4659-a9b1-9647f971ec92" x="700" y="0" width="32" height="10"/> <reportElement uuid="579c3d84-f52d-4659-a9b1-9647f971ec92" x="695" y="0" width="41" height="10"/>
<textElement textAlignment="Right"/> <textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_OFERTADO_3}]]></textFieldExpression> <textFieldExpression><![CDATA[$V{PAX_OFERTADO_3}]]></textFieldExpression>
</textField> </textField>
<textField pattern="###0.00">
<reportElement uuid="cf84b174-34e9-40e6-9986-f0464ea4f0c1" x="781" y="0" width="20" height="10"/>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$V{PAX_KM_3}.divide( $V{PAX_OFERTADO_3}, 4, RoundingMode.HALF_UP ).multiply(BigDecimal.valueOf(100))]]></textFieldExpression>
</textField>
</band> </band>
</columnFooter> </columnFooter>
<noData> <noData>

View File

@ -0,0 +1,363 @@
/*
* 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.ArrayList;
import java.util.Arrays;
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.zhtml.Messagebox;
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zul.Bandbox;
import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Combobox;
import org.zkoss.zul.Comboitem;
import org.zkoss.zul.Datebox;
import org.zkoss.zul.Paging;
import org.zkoss.zul.Radio;
import org.zkoss.zul.Textbox;
import com.rjconsultores.ventaboletos.entidad.Empresa;
import com.rjconsultores.ventaboletos.entidad.Estado;
import com.rjconsultores.ventaboletos.entidad.PuntoVenta;
import com.rjconsultores.ventaboletos.entidad.TipoPuntoVenta;
import com.rjconsultores.ventaboletos.relatorios.impl.RelatorioReceitaDiariaAgencia;
import com.rjconsultores.ventaboletos.relatorios.utilitarios.Relatorio;
import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.service.PuntoVentaService;
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.MyListbox;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderEstadoSimple;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPuntoVentaSimple;
import com.trg.search.Filter;
/**
*
* @author Administrador
*/
@Controller("relatorioDevolucaoBilhetesController")
@Scope("prototype")
public class RelatorioDevolucaoBilhetesController extends MyGenericForwardComposer {
@Autowired
private EstadoService estadoService;
@Autowired
private EmpresaService empresaService;
@Autowired
private PuntoVentaService puntoVentaService;
@Autowired
private TipoPuntoVentaService tipoPuntoVentaService;
@Autowired
private DataSource dataSource;
private List<Estado> lsEstado;
private List<Empresa> lsEmpresa;
private List<TipoPuntoVenta> lsTipoPuntoVenta;
private List<PuntoVenta> lsNumPuntoVenta;
@Autowired
private transient PagedListWrapper<PuntoVenta> plwPuntoVenta;
private MyListbox puntoVentaList;
private MyListbox estadoList;
private MyListbox puntoVentaSelList;
private Paging pagingPuntoVenta;
private Bandbox bbPesquisaPuntoVenta;
private Textbox txtPalavraPesquisa;
private Combobox cmbEstado;
private Combobox cmbEmpresa;
private Combobox cmbPuntoVenta;
private Combobox cmbTipoPuntoVenta;
private Combobox cmbReceitaImposto;
private Datebox datInicial;
private Datebox datFinal;
private Checkbox chkExcessoBagagem;
private Checkbox chkContemplarGap;
private Radio rd1;
public Datebox getDatInicial() {
return datInicial;
}
public void setDatInicial(Datebox datInicial) {
this.datInicial = datInicial;
}
public Datebox getDatFinal() {
return datFinal;
}
public void setDatFinal(Datebox datFinal) {
this.datFinal = datFinal;
}
public List<Estado> getLsEstado() {
return lsEstado;
}
public void setLsEstado(List<Estado> lsEstado) {
this.lsEstado = lsEstado;
}
public Combobox getCmbEstado() {
return cmbEstado;
}
public void setCmbEstado(Combobox cmbEstado) {
this.cmbEstado = cmbEstado;
}
public Combobox getCmbPuntoVenta() {
return cmbPuntoVenta;
}
public void setCmbPuntoVenta(Combobox cmbPuntoVenta) {
this.cmbPuntoVenta = cmbPuntoVenta;
}
public MyListbox getPuntoVentaList() {
return puntoVentaList;
}
public void setPuntoVentaList(MyListbox puntoVentaList) {
this.puntoVentaList = puntoVentaList;
}
public Paging getPagingPuntoVenta() {
return pagingPuntoVenta;
}
public void setPagingPuntoVenta(Paging pagingPuntoVenta) {
this.pagingPuntoVenta = pagingPuntoVenta;
}
public Textbox getTxtPalavraPesquisa() {
return txtPalavraPesquisa;
}
public void setTxtPalavraPesquisa(Textbox txtPalavraPesquisa) {
this.txtPalavraPesquisa = txtPalavraPesquisa;
}
public Bandbox getBbPesquisaPuntoVenta() {
return bbPesquisaPuntoVenta;
}
public void setBbPesquisaPuntoVenta(Bandbox bbPesquisaPuntoVenta) {
this.bbPesquisaPuntoVenta = bbPesquisaPuntoVenta;
}
public Checkbox getChkExcessoBagagem() {
return chkExcessoBagagem;
}
public void setChkExcessoBagagem(Checkbox chkExcessoBagagem) {
this.chkExcessoBagagem = chkExcessoBagagem;
}
public MyListbox getPuntoVentaSelList() {
return puntoVentaSelList;
}
public void setPuntoVentaSelList(MyListbox puntoVentaSelList) {
this.puntoVentaSelList = puntoVentaSelList;
}
public List<Empresa> getLsEmpresa() {
return lsEmpresa;
}
public void setLsEmpresa(List<Empresa> lsEmpresa) {
this.lsEmpresa = lsEmpresa;
}
public List<TipoPuntoVenta> getLsTipoPuntoVenta() {
return lsTipoPuntoVenta;
}
public void setLsTipoPuntoVenta(List<TipoPuntoVenta> lsTipoPuntoVenta) {
this.lsTipoPuntoVenta = lsTipoPuntoVenta;
}
public void onClick$btnExecutarRelatorio(Event ev) throws Exception {
executarRelatorio();
}
public void onDoubleClick$puntoVentaList(Event ev) {
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaList.getSelected();
puntoVentaSelList.addItemNovo(puntoVentaSel);
}
public void onDoubleClick$puntoVentaSelList(Event ev) {
PuntoVenta puntoVentaSel = (PuntoVenta) puntoVentaSelList.getSelected();
puntoVentaSelList.removeItem(puntoVentaSel);
}
public void onClick$btnLimpar(Event ev) {
limparPesquisaAgencia();
}
public void onClick$btnPesquisa(Event ev) {
executarPesquisa();
}
/**
*
*/
private void limparPesquisaAgencia() {
puntoVentaSelList.setData(new ArrayList<Object>());
}
/**
*
*/
private void executarPesquisa() {
HibernateSearchObject<PuntoVenta> puntoVentaBusqueda =
new HibernateSearchObject<PuntoVenta>(PuntoVenta.class,
pagingPuntoVenta.getPageSize());
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
if (puntoVentaList.getData().length == 0) {
try {
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
Labels.getLabel("relatorioDevolucaoBilhetesController.window.title"),
Messagebox.OK, Messagebox.INFORMATION);
} catch (InterruptedException ex) {
}
}
}
/**
* @throws Exception
*
*/
private void executarRelatorio() throws Exception {
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_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime()));
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
parametros.put("B_CONTEMPLAR_GAP", chkContemplarGap.isChecked());
parametros.put("NOME_RELATORIO", Labels.getLabel("relatorioDevolucaoBilhetesController.window.title"));
parametros.put("ISDEVOLUCAODESTINO", rd1.isChecked() ? 0 : 1);
parametros.put("USUARIO", UsuarioLogado.getUsuarioLogado().getUsuarioId().toString());
parametros.put("BASE_CALCULO_IMPOSTO", Integer.valueOf(cmbReceitaImposto.getSelectedItem().getValue().toString()));
lsNumPuntoVenta = new ArrayList(Arrays.asList(puntoVentaSelList.getData()));
filtro.append("Agência(s): ");
if (lsNumPuntoVenta.size() > 0) {
parametros.put("NUMPUNTOVENTA", lsNumPuntoVenta);
parametros.put("ISNUMPUNTOVENTATODOS", "N");
filtro.append(lsNumPuntoVenta.size() + " selecionada(s);");
}
else {
parametros.put("ISNUMPUNTOVENTATODOS", "S");
filtro.append("Todas ;");
}
filtro.append("Estados(s): ");
if (estadoList.getSelectedsItens().size() > 0) {
parametros.put("ESTADO_ID", estadoList.getSelectedsItens());
filtro.append(estadoList.getSelectedsItens().size() + " selecionado(s);");
}
else {
filtro.append("Todos ;");
}
Comboitem itemEmpresa = cmbEmpresa.getSelectedItem();
if (itemEmpresa != null) {
Empresa empresa = (Empresa) itemEmpresa.getValue();
parametros.put("EMPRESA_ID", empresa.getEmpresaId());
parametros.put("EMPRESA_NOME", empresa.getNombempresa());
}
filtro.append(" Tipo Agência: ");
Comboitem itemTipoPunto = cmbTipoPuntoVenta.getSelectedItem();
if (itemTipoPunto != null && ((TipoPuntoVenta) cmbTipoPuntoVenta.getSelectedItem().getValue()).getTipoptovtaId() != -1) {
TipoPuntoVenta tipoPuntoVenta = (TipoPuntoVenta) itemTipoPunto.getValue();
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());
Map args = new HashMap();
args.put("relatorio", relatorio);
openWindow("/component/reportView.zul",
Labels.getLabel("relatorioReceitaDiariaAgenciaController.window.title"), args, MODAL);
}
@Override
public void doAfterCompose(Component comp) throws Exception {
lsEstado = estadoService.obtenerTodos();
lsEmpresa = empresaService.obtenerTodos();
setLsTipoPuntoVenta(tipoPuntoVentaService.obtenerTodos());
super.doAfterCompose(comp);
estadoList.setItemRenderer(new RenderEstadoSimple());
puntoVentaList.setItemRenderer(new RenderPuntoVentaSimple());
puntoVentaSelList.setItemRenderer(new RenderPuntoVentaSimple());
estadoList.setData(lsEstado);
}
}

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 ItemMenuRelatorioDevolucaoBilhetes extends DefaultItemMenuSistema {
public ItemMenuRelatorioDevolucaoBilhetes() {
super("indexController.mniRelatorioDevolucaoBilhetes.label");
}
@Override
public String getClaveMenu() {
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.MENU.RELATORIODEVOLUCAOBILHETES";
}
@Override
public void ejecutar() {
PantallaUtileria.openWindow("/gui/relatorios/filtroRelatorioDevolucaoBilhetes.zul",
Labels.getLabel("relatorioDevolucaoBilhetesController.window.title"), null,desktop);
}
}

View File

@ -1 +1 @@
ADM_20130910_1RC232 ADM_20130912_1RC233

View File

@ -220,6 +220,7 @@ indexController.mniRelatorioResumoLinhas.label = Relatório Resumo de Linhas
indexController.mniRelatorioAcompanhamentoEquivalentes.label = Relatório Acompanhamento Equivalentes indexController.mniRelatorioAcompanhamentoEquivalentes.label = Relatório Acompanhamento Equivalentes
indexController.mniRelatorioLinhasHorario.label = Relatório de Linhas por Horário indexController.mniRelatorioLinhasHorario.label = Relatório de Linhas por Horário
indexController.mniRelatorioTaxasLinha.label = Relatório de Taxas por Linha indexController.mniRelatorioTaxasLinha.label = Relatório de Taxas por Linha
indexController.mniRelatorioDevolucaoBilhetes.label = Relatório de Devolução de Bilhetes
#PARTE REALIZADA POR MANUEL #PARTE REALIZADA POR MANUEL
indexController.mnCortesias.label = Cortesias Para Funcionários indexController.mnCortesias.label = Cortesias Para Funcionários
@ -350,6 +351,30 @@ relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.cmbReceitaImposto.cmbI
relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaPedagio = Receita de Pedagio relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaPedagio = Receita de Pedagio
relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaBagagem = Receita de Bagagem relatorioReceitaDiariaAgenciaController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaBagagem = Receita de Bagagem
#Devolução de Bilhetes
relatorioDevolucaoBilhetesAgenciaController.window.title = Relatório de Devolução de Bilhetes
relatorioDevolucaoBilhetesAgenciaController.lbDataIni.value = Data Inicial
relatorioDevolucaoBilhetesAgenciaController.lbDataFin.value = Data Final
relatorioDevolucaoBilhetesAgenciaController.lbEstado.value = Estado
relatorioDevolucaoBilhetesAgenciaController.lbPuntoVenta.value = Agência
relatorioDevolucaoBilhetesAgenciaController.btnPesquisa.label = Pesquisar
relatorioDevolucaoBilhetesAgenciaController.btnLimpar.label = Limpar Seleção
relatorioDevolucaoBilhetesAgenciaController.puntoVentaSelList.codigo = Código
relatorioDevolucaoBilhetesAgenciaController.puntoVentaSelList.nome = Nome
relatorioDevolucaoBilhetesAgenciaController.lbEmpresa.value = Empresa
relatorioDevolucaoBilhetesAgenciaController.chkDesconsideraMes.label = Desconsiderar devoluções no mês/ano da emissão
relatorioDevolucaoBilhetesAgenciaController.rdIndDataBase.label = Periodo com base na data de:
relatorioDevolucaoBilhetesAgenciaController.rdIndDataBase.cmbItemEmissao = Emissão
relatorioDevolucaoBilhetesAgenciaController.rdIndDataBase.cmbItemDevolucao = Devolução
relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.label = Agrupado por:
relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.cmbItemData = Data
relatorioDevolucaoBilhetesAgenciaController.rdIndAgrupamento.cmbItemLocalidade = Localidade
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.label = Tipo de Relatório:
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemData = Bilhetes Devolvidos
relatorioDevolucaoBilhetesAgenciaController.rdIndTpoRelatorio.cmbItemLocalidade = GAPs Devolvidos
#Relatório Acompanhamento Equivalentes #Relatório Acompanhamento Equivalentes
relatorioAcompanhamentoEquivalentesController.window.title = Relatório de Acompanhamento de Equivalentes relatorioAcompanhamentoEquivalentesController.window.title = Relatório de Acompanhamento de Equivalentes
relatorioAcompanhamentoEquivalentesController.lbMes.value = Mês/Ano relatorioAcompanhamentoEquivalentesController.lbMes.value = Mês/Ano

View File

@ -0,0 +1,164 @@
<?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="winFiltroRelatorioDevolucaoBilhetes"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winFiltroRelatorioDevolucaoBilhetes"
apply="${relatorioDevolucaoBilhetesController}"
contentStyle="overflow:auto" height="324px" width="550px"
border="normal">
<grid fixedLayout="true">
<columns>
<column width="20%" />
<column width="30%" />
<column width="20%" />
<column width="30%" />
</columns>
<rows>
<row>
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbDataIni.value')}" />
<datebox id="datInicial" width="90%"
format="dd/MM/yyyy" lenient="false" constraint="no empty"
maxlength="10" />
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbDataFin.value')}" />
<datebox id="datFinal" width="90%"
format="dd/MM/yyyy" lenient="false" constraint="no empty"
maxlength="10" />
</row>
<row>
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbEmpresa.value')}" />
<combobox id="cmbEmpresa" width="90%" mold="rounded"
buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioDevolucaoBilhetes$composer.lsEmpresa}"
/>
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbTipoPuntoVenta.value')}" />
<combobox id="cmbTipoPuntoVenta" width="90%"
mold="rounded" buttonVisible="true"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
model="@{winFiltroRelatorioDevolucaoBilhetes$composer.lsTipoPuntoVenta}" />
</row>
<row>
<label value="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.label')}" />
<combobox id="cmbReceitaImposto" width="90%"
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
mold="rounded" constraint="no empty">
<comboitem label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitas')}" value="1" />
<comboitem label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaPassagem')}"
value="2" />
<comboitem label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaSeguro')}" value="3" />
<comboitem label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaEmbarque')}"
value="4" />
<comboitem label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaPedagio')}" value="5" />
<comboitem label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.cmbReceitaImposto.cmbItemReceitaBagagem')}" value="6" />
</combobox>
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbPuntoVenta.value')}" />
<bandbox id="bbPesquisaPuntoVenta" width="90%"
mold="rounded" readonly="true">
<bandpopup height="150px">
<vbox>
<hbox>
<textbox id="txtPalavraPesquisa" />
<button id="btnPesquisa"
image="/gui/img/find.png"
label="${c:l('relatorioDevolucaoBilhetesController.btnPesquisa.label')}" />
<button id="btnLimpar"
image="/gui/img/eraser.png"
label="${c:l('relatorioDevolucaoBilhetesController.btnLimpar.label')}" />
</hbox>
<listbox id="puntoVentaList"
mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="false" height="100%" width="360px">
<listhead>
<listheader
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.codigo')}" />
<listheader
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.nome')}" />
</listhead>
</listbox>
<paging id="pagingPuntoVenta"
pageSize="10" />
</vbox>
</bandpopup>
</bandbox>
</row>
<row>
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbEstado.value')}" />
<listbox id="estadoList" mold="select" rows="3"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="true" width="90%">
<listhead>
<listheader
label="${c:l('relatorioDevolucaoBilhetesController.lbEstado.value')}" />
</listhead>
</listbox>
<cell colspan="2" rowspan="2">
<borderlayout height="100px">
<center border="0">
<listbox id="puntoVentaSelList"
mold="paging"
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
vflex="true" multiple="true" height="60%" width="100%">
<listhead>
<listheader
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.codigo')}" />
<listheader
label="${c:l('relatorioDevolucaoBilhetesController.puntoVentaSelList.nome')}" />
<listheader width="35px" />
</listhead>
</listbox>
</center>
</borderlayout>
</cell>
</row>
<row>
<label
value="${c:l('relatorioDevolucaoBilhetesController.lbDevolucao.value')}" />
<cell>
<radiogroup id="rdIndAgenciaDevol" />
<radio id="rd1" checked="true"
label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.rd1.label')}"
radiogroup="rdIndAgenciaDevol" />
<radio id="rd2"
label="${c:l('relatorioDevolucaoBilhetesController.rdIndAgenciaDevol.rd2.label')}"
radiogroup="rdIndAgenciaDevol" />
</cell>
</row>
<row>
<cell colspan="2">
<checkbox id="chkExcessoBagagem"
label="${c:l('relatorioDevolucaoBilhetesController.chkExcessoBagagem.label')}" />
</cell>
<cell colspan="2">
<checkbox id="chkContemplarGap"
label="${c:l('relatorioDevolucaoBilhetesController.chkContemplarGap.label')}" />
</cell>
</row>
</rows>
</grid>
<toolbar>
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
</toolbar>
</window>
</zk>