<?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="RelatorioEmpresaCorrida" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" resourceBundle="RelatorioEmpresaCorrida" whenResourceMissingType="Empty" uuid="94834362-0ecc-46da-b0a2-5cdee355da3e">
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
	<property name="net.sf.jasperreports.export.pdf.exclude.origin.band.2" value="columnHeader"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.3" value="groupHeader"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.group.3" value="empresa"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.4" value="groupFooter"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.group.4" value="empresa"/>
	<property name="ireport.zoom" value="1.3636363636363635"/>
	<property name="ireport.x" value="60"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.remove.emtpy.space.between.columns" value="true"/>
	<property name="net.sf.jasperreports.export.xls.remove.emtpy.space.between.rows" value="true"/>
	<parameter name="fecInicio" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="NOMBEMPRESA" class="java.lang.String"/>
	<parameter name="fecFinal" class="java.lang.String"/>
	<parameter name="USUARIO_ID" class="java.lang.String"/>
	<parameter name="LINHA_FILTRO" class="java.lang.String"/>
	<parameter name="SERVICO_FILTRO" class="java.lang.String"/>
	<parameter name="TITULO" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="linea" class="java.lang.String"/>
	<field name="boletos" class="java.math.BigDecimal"/>
	<field name="abonos" class="java.math.BigDecimal"/>
	<field name="kmOnibusProprio" class="java.math.BigDecimal"/>
	<field name="kmOnibusArrendados" class="java.math.BigDecimal"/>
	<field name="kmTotal" class="java.math.BigDecimal"/>
	<field name="pasajerosTransportados" class="java.lang.Integer"/>
	<field name="empresa" class="java.lang.String"/>
	<variable name="sum.boletos" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{boletos}]]></variableExpression>
	</variable>
	<variable name="sum.abonos" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{abonos}]]></variableExpression>
	</variable>
	<variable name="sum.kmOnibusProprio" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{kmOnibusProprio}]]></variableExpression>
	</variable>
	<variable name="sum.kmOnibusArrendados" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{kmOnibusArrendados}]]></variableExpression>
	</variable>
	<variable name="sum.kmTotal" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{kmTotal}]]></variableExpression>
	</variable>
	<variable name="sum.pasajerosTransportados" class="java.lang.Integer" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{pasajerosTransportados}]]></variableExpression>
	</variable>
	<group name="empresa">
		<groupExpression><![CDATA[$F{empresa}]]></groupExpression>
		<groupHeader>
			<band height="42">
				<textField>
					<reportElement uuid="09306494-79f1-44dd-9eed-c39684384bbf" x="0" y="0" width="326" height="20"/>
					<textElement>
						<font size="12" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="e8355048-a037-4837-866b-e6cf7a3e90ed" stretchType="RelativeToTallestObject" x="192" y="20" width="59" height="22"/>
					<textElement markup="none">
						<font size="9"/>
						<paragraph firstLineIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.abonos}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="d88253ec-b6d4-4e99-b677-3c1a0b273a81" stretchType="RelativeToTallestObject" x="132" y="20" width="60" height="22"/>
					<textElement markup="none">
						<font size="9"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.boletos}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="569add1e-cb73-4278-b800-fa44631527f6" stretchType="RelativeToTallestObject" x="399" y="20" width="88" height="22"/>
					<textElement markup="none">
						<font size="9"/>
						<paragraph firstLineIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.kmOnibusArrendados}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="31387dbf-1cdc-4c27-992f-2e439abea576" stretchType="RelativeToTallestObject" x="326" y="20" width="73" height="22"/>
					<textElement markup="none">
						<font size="9"/>
						<paragraph leftIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.kmOnibusProprio}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="12ef050d-3938-4dd6-8e82-bfeca7adaa2a" stretchType="RelativeToTallestObject" x="59" y="20" width="73" height="22"/>
					<textElement markup="none">
						<font size="9"/>
						<paragraph leftIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.linea}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="fb4fcf1b-de90-426b-bfaa-732a08711977" x="326" y="0" width="229" height="20"/>
					<textElement verticalAlignment="Bottom">
						<font isBold="true"/>
						<paragraph leftIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{header.km.grupo}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="73c02335-4bbe-44ba-9c73-1201ed6b3967" stretchType="RelativeToTallestObject" x="251" y="20" width="75" height="22"/>
					<textElement markup="none">
						<font size="9"/>
						<paragraph firstLineIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.pasajerosTransportados}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="edd89ef1-92d6-4b5f-b249-851532fad9df" stretchType="RelativeToTallestObject" x="487" y="20" width="68" height="22"/>
					<textElement markup="none">
						<font size="9"/>
						<paragraph firstLineIndent="2"/>
					</textElement>
					<textFieldExpression><![CDATA[$R{detail.kmTotal}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="23">
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="96095298-1c13-4089-8a8b-fd324b377e45" x="131" y="3" width="61" height="16"/>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{sum.boletos}]]></textFieldExpression>
				</textField>
				<line>
					<reportElement uuid="6cef9de7-7dee-488b-aea7-3d02a8e3634a" x="0" y="0" width="555" height="1"/>
				</line>
				<textField pattern="#,##0.00">
					<reportElement uuid="354a3daa-dbb6-45c0-93c3-b9c4f485cbb5" x="192" y="3" width="59" height="16"/>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{sum.abonos}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00">
					<reportElement uuid="2f518abc-f4b9-411b-bb4f-5e58c0a2b301" x="326" y="3" width="73" height="16"/>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{sum.kmOnibusProprio}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00">
					<reportElement uuid="6ce0a6db-3435-4ef2-be61-273af168410f" x="399" y="3" width="88" height="16"/>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{sum.kmOnibusArrendados}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00">
					<reportElement uuid="3abc13c1-b7df-49e7-977a-c49638f639c2" x="487" y="3" width="68" height="16"/>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{sum.kmTotal}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="9a3560b6-4371-4d7c-9336-f7578ccadda8" x="251" y="3" width="75" height="16"/>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{sum.pasajerosTransportados}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="39">
			<textField>
				<reportElement uuid="e5d4714c-07cc-42ff-a7a8-76d6f6d3e716" x="0" y="19" width="49" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{header.periodo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="66b2d0f6-2bf1-4bc7-9ec0-a34444e04d60" x="399" y="0" width="58" height="19"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{header.data.hora}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="be1692e9-f130-4d08-9173-6ca3e4699030" x="444" y="19" width="82" height="20"/>
				<textElement textAlignment="Right">
					<paragraph rightIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{header.pagina}+" "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="4914d9e7-6ce8-4512-b1f8-13f3b572ac50" x="49" y="19" width="395" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$P{fecInicio} + " à " + $P{fecFinal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="652312bd-292a-424d-a234-5f157e3699c6" x="0" y="0" width="399" height="19"/>
				<textElement>
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement uuid="6f671365-868e-41a6-81ee-a308d1d91e1d" x="457" y="0" width="98" height="19"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement uuid="0228244f-d8b1-47c5-9020-513456ec745c" x="526" y="19" width="29" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<columnHeader>
		<band height="22" splitType="Stretch">
			<textField>
				<reportElement uuid="f5729d81-df6a-4612-b01d-d43ce1008f3f" stretchType="RelativeToTallestObject" x="487" y="0" width="68" height="22"/>
				<textElement markup="none">
					<font size="9"/>
					<paragraph firstLineIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.kmTotal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="e0126182-4184-40df-898c-71babec8c9ac" stretchType="RelativeToTallestObject" x="251" y="0" width="75" height="22"/>
				<textElement markup="none">
					<font size="9"/>
					<paragraph firstLineIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.pasajerosTransportados}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="1ab856e3-3db6-43af-9241-f52d67972d8f" stretchType="RelativeToTallestObject" x="192" y="0" width="59" height="22"/>
				<textElement markup="none">
					<font size="9"/>
					<paragraph firstLineIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.abonos}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="192f95fb-fc2c-4872-b0a4-00d0675a9882" stretchType="RelativeToTallestObject" x="132" y="0" width="60" height="22"/>
				<textElement markup="none">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.boletos}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="76ea0944-2fed-4c0f-a436-77489c8bb755" stretchType="RelativeToTallestObject" x="326" y="0" width="73" height="22"/>
				<textElement markup="none">
					<font size="9"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.kmOnibusProprio}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="bc11eaed-fff3-4d98-b397-25e43e398699" stretchType="RelativeToTallestObject" x="399" y="0" width="88" height="22"/>
				<textElement markup="none">
					<font size="9"/>
					<paragraph firstLineIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.kmOnibusArrendados}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="140d9378-b983-4eef-bb17-9dbdc80d324a" stretchType="RelativeToTallestObject" x="59" y="0" width="73" height="22"/>
				<textElement markup="none">
					<font size="9"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{detail.linea}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="1e959efc-f066-48df-94d1-5ab4ba7fb79e" stretchType="RelativeToTallestObject" x="0" y="0" width="59" height="22"/>
				<textElement markup="none">
					<font size="9"/>
				</textElement>
				<text><![CDATA[Empresa]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="17" splitType="Stretch">
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="3111776a-f727-4313-841c-55dabd804df4" stretchType="RelativeToTallestObject" x="487" y="0" width="68" height="17"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{kmTotal}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="3343aea7-212b-4bd5-a29c-8dcab3cb7568" stretchType="RelativeToTallestObject" x="192" y="0" width="59" height="17"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{abonos}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="cee727cd-cbc7-41d0-8020-d70aa33d8c9f" stretchType="RelativeToTallestObject" x="399" y="0" width="88" height="17"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{kmOnibusArrendados}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="9f731da4-307a-4409-a8d5-28b2c4c40fce" stretchType="RelativeToTallestObject" x="59" y="0" width="73" height="17"/>
				<textElement textAlignment="Left">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{linea}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="c29b2244-5b3e-48a2-9adf-8e10ee2a3856" stretchType="RelativeToTallestObject" x="326" y="0" width="73" height="17"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{kmOnibusProprio}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="false">
				<reportElement uuid="b36dbddb-2fa9-48a5-809e-0e15ad54c529" stretchType="RelativeToTallestObject" x="132" y="0" width="60" height="17"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{boletos}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="4a68f71a-7be1-467a-b3eb-641a0c1f9a48" stretchType="RelativeToTallestObject" x="251" y="0" width="75" height="17"/>
				<textElement textAlignment="Center">
					<font size="8"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{pasajerosTransportados}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement uuid="b933abbd-d3f7-4164-a61d-0ffb2c3e4d73" stretchType="RelativeToTallestObject" x="0" y="0" width="59" height="17"/>
				<textElement textAlignment="Left">
					<font size="7"/>
					<paragraph leftIndent="2"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<noData>
		<band height="20">
			<textField>
				<reportElement uuid="5a6c1b7b-2242-4cf1-b957-723b906ee620" x="0" y="0" width="555" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
