<?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="RelatorioLinhaOperacional" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="05f861f2-e7cd-40e1-9ba0-8f8cd2c3c35c">
	<property name="ireport.zoom" value="1.7715610000000013"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="DATA_DE" class="java.lang.String" isForPrompting="false"/>
	<parameter name="DATA_ATE" class="java.lang.String" isForPrompting="false"/>
	<parameter name="LINHAS" class="java.lang.String" isForPrompting="false"/>
	<parameter name="LINHAS_IDS" class="java.lang.String" isForPrompting="false"/>
	<parameter name="EMPRESA_IDS" class="java.lang.String" isForPrompting="false"/>
	<parameter name="SQL" class="java.lang.String"/>
	<parameter name="STR_ESPECIE" class="java.lang.String"/>
	<parameter name="DESC_LINHAS_SELECIONADAS" class="java.lang.String"/>
	<queryString>
		<![CDATA[$P!{SQL}]]>
	</queryString>
	<field name="DATA_CORRIDA" class="java.sql.Timestamp"/>
	<field name="HORA_SAIDA" class="java.lang.String"/>
	<field name="LINHA" class="java.lang.String"/>
	<field name="ORIGEM" class="java.lang.String"/>
	<field name="DESTINO" class="java.lang.String"/>
	<field name="EMPRESAID" class="java.math.BigDecimal"/>
	<field name="EMPRESA" class="java.lang.String"/>
	<field name="QTDE_BOLETOS" class="java.math.BigDecimal"/>
	<field name="codigo" class="java.lang.String"/>
	<field name="prefixo" class="java.lang.String"/>
	<field name="corrida_id" class="java.lang.String"/>
	<field name="data_corrida_formatada" class="java.lang.String"/>
	<variable name="QTDE_BOLETOS_2" class="java.math.BigDecimal" resetType="Group" resetGroup="empresa" calculation="Sum">
		<variableExpression><![CDATA[$F{QTDE_BOLETOS}]]></variableExpression>
	</variable>
	<variable name="QTDE_BOLETOS_1" class="java.math.BigDecimal" resetType="Group" resetGroup="data_venda" calculation="Sum">
		<variableExpression><![CDATA[$F{QTDE_BOLETOS}]]></variableExpression>
	</variable>
	<group name="empresa">
		<groupExpression><![CDATA[$F{EMPRESAID}]]></groupExpression>
		<groupHeader>
			<band/>
		</groupHeader>
		<groupFooter>
			<band/>
		</groupFooter>
	</group>
	<group name="data_venda">
		<groupExpression><![CDATA[$F{data_corrida_formatada}]]></groupExpression>
		<groupHeader>
			<band height="44">
				<textField pattern="">
					<reportElement x="0" y="1" width="68" height="20" uuid="40522537-b07f-4001-9b55-7c2ad1b78ee3"/>
					<textFieldExpression><![CDATA[$F{data_corrida_formatada}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="143" y="21" width="59" height="20" uuid="5f3a69a7-463d-48ea-99af-f5446c6afd9e"/>
					<textElement textAlignment="Center">
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Prefixo]]></text>
				</staticText>
				<staticText>
					<reportElement x="108" y="21" width="35" height="20" uuid="27eb2510-ecb8-4c95-b976-10c318e20fd5"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Código]]></text>
				</staticText>
				<line>
					<reportElement x="0" y="0" width="555" height="1" uuid="47efb762-6148-45fa-892c-67687d0e52a9"/>
				</line>
				<textField>
					<reportElement x="68" y="1" width="100" height="20" uuid="67b08836-be8c-4e19-a2c8-a75624670dc7"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{EMPRESA}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="538" y="21" width="17" height="20" uuid="cfa49b76-7a66-481c-b436-ce89f9f95be4"/>
					<textElement textAlignment="Right">
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Qtde.]]></text>
				</staticText>
				<staticText>
					<reportElement x="413" y="21" width="80" height="20" uuid="65b42a56-42d8-427c-8dd4-5767b3124ad9"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Destino]]></text>
				</staticText>
				<staticText>
					<reportElement x="334" y="21" width="79" height="20" uuid="00b58cf4-caaa-4721-b08a-2303e6cf5cab"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Origem]]></text>
				</staticText>
				<staticText>
					<reportElement x="202" y="21" width="132" height="20" uuid="23d10c6d-a185-407c-bd32-43d5c0fbd4dd"/>
					<textElement textAlignment="Center">
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Linha]]></text>
				</staticText>
				<staticText>
					<reportElement x="81" y="21" width="27" height="20" uuid="ec08843f-04de-4891-abc8-14f015abf4e4"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[ Hora]]></text>
				</staticText>
				<line>
					<reportElement x="0" y="41" width="555" height="1" uuid="b17d89e0-6b0b-4905-a5d7-8f5efaeba8b7"/>
				</line>
				<staticText>
					<reportElement x="0" y="21" width="48" height="20" uuid="b262d6ff-a3bc-4979-bad8-d1bdd50cdc26"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Data]]></text>
				</staticText>
				<staticText>
					<reportElement x="48" y="21" width="33" height="20" uuid="68fc8cc7-0228-48f5-b332-64aa4b34c560"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Serviço]]></text>
				</staticText>
				<staticText>
					<reportElement x="493" y="21" width="22" height="20" uuid="7b26d4c7-6ad3-43b2-bfd5-91b430f7ed92"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Mes]]></text>
				</staticText>
				<staticText>
					<reportElement x="515" y="21" width="23" height="20" uuid="a639e1eb-67ee-4b2f-a190-1e6ac33c28ff"/>
					<textElement>
						<font size="9" isBold="true"/>
					</textElement>
					<text><![CDATA[Ano]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="23">
				<line>
					<reportElement positionType="Float" x="0" y="0" width="555" height="1" uuid="5942b8cb-4274-4ff4-be5c-ded9128456a4"/>
				</line>
				<textField>
					<reportElement x="420" y="0" width="135" height="20" uuid="0b71b96c-b8dd-4f9f-b074-96362b21684e"/>
					<textElement textAlignment="Right">
						<font size="11" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA["Total " + $V{QTDE_BOLETOS_1}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="93" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="0" width="247" height="20" uuid="68f4ea28-b08b-4655-ab65-5f181721909f"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[LINHA OPERACIONAL]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy HH:mm">
				<reportElement x="403" y="0" width="152" height="20" uuid="d0203404-283e-4281-a85f-9fe7c3f0e121"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="31" width="247" height="20" uuid="7adb9127-4696-4a5a-9ebb-ab4430744550"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="51" width="46" height="20" uuid="4edc7c1b-38fc-4738-a3eb-a8002b23ae18"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Linha(s):]]></text>
			</staticText>
			<staticText>
				<reportElement positionType="Float" x="0" y="71" width="46" height="20" uuid="bb6eb592-643e-4bce-8a2c-4b7f09848727"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Espécie:]]></text>
			</staticText>
			<line>
				<reportElement positionType="Float" x="0" y="91" width="555" height="1" uuid="001cfcc7-c18f-4b8f-9bd1-01568512ca0c"/>
			</line>
			<textField>
				<reportElement x="46" y="71" width="509" height="20" uuid="d5217a3d-bf2e-4e6e-a235-b8149af41b56"/>
				<textFieldExpression><![CDATA[$P{STR_ESPECIE}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="46" y="51" width="509" height="20" uuid="bfcb1c28-92e8-4bbe-a3b7-c094012fbd43"/>
				<textFieldExpression><![CDATA[$P{DESC_LINHAS_SELECIONADAS}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="23" splitType="Stretch">
			<textField>
				<reportElement x="371" y="0" width="184" height="20" uuid="6a9bc57e-e736-4980-9a76-2c0c5f9da022"/>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Página " + $V{PAGE_NUMBER}+ " de " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="14" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="true">
				<reportElement x="81" y="0" width="27" height="12" isPrintWhenDetailOverflows="true" uuid="3c1495b2-eb67-4d1a-8483-47526b4e14be"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{HORA_SAIDA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="202" y="0" width="132" height="12" isPrintWhenDetailOverflows="true" uuid="959dcd09-1ee7-426e-b678-e3d6cd22324d"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{LINHA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="413" y="0" width="80" height="12" isPrintWhenDetailOverflows="true" uuid="d033d5fa-3020-4404-b927-c799a0b33439"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DESTINO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="538" y="0" width="17" height="12" isPrintWhenDetailOverflows="true" uuid="466de50f-51a9-4a7f-8a2c-a0e31dc0eefc"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{QTDE_BOLETOS}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="108" y="0" width="35" height="12" isPrintWhenDetailOverflows="true" uuid="7390fb34-2705-439c-ab6b-559544ff211c"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{codigo}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="143" y="0" width="59" height="12" isPrintWhenDetailOverflows="true" uuid="a69fcf9c-097f-4efc-946d-7efd4594fd2a"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{prefixo}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="334" y="0" width="79" height="12" isPrintWhenDetailOverflows="true" uuid="4a0f6ebe-4f70-4ac9-a93b-44c842b2cf1a"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ORIGEM}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="0" y="0" width="48" height="12" isPrintWhenDetailOverflows="true" uuid="f6037e2d-a04d-4442-b818-46c6afa7428d"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DATA_CORRIDA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="48" y="0" width="33" height="12" uuid="f753ffdc-6d7f-4910-8a51-f95313d7b139"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{corrida_id}]]></textFieldExpression>
			</textField>
			<textField pattern="MM">
				<reportElement x="493" y="0" width="22" height="12" uuid="53515049-3fa3-4cf0-917b-634f39444af4"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DATA_CORRIDA}]]></textFieldExpression>
			</textField>
			<textField pattern="yyyy">
				<reportElement x="515" y="0" width="23" height="12" uuid="c6ccb2f7-c869-4d17-84e4-61b48d8e6e3e"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{DATA_CORRIDA}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
