<?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="RelatorioBPe" pageWidth="800" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="760" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f">
	<property name="ireport.zoom" value="0.8467108950806659"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.band.1" value="title"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="columnHeader"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
	<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="STR_ESPECIE" class="java.lang.String"/>
	<parameter name="DESC_LINHAS_SELECIONADAS" class="java.lang.String"/>
	<parameter name="EMPRESA" class="java.lang.String"/>
	<parameter name="CANTASIENTOS" class="java.lang.String"/>
	<parameter name="DATA_DE" class="java.lang.String"/>
	<parameter name="DATA_ATE" class="java.lang.String"/>
	<field name="cantasientos" class="java.lang.String"/>
	<field name="empresa" 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="km" class="java.lang.Float"/>
	<field name="totalida" class="java.lang.Long"/>
	<field name="totalvolta" class="java.lang.Long"/>
	<variable name="SOMA_KM" class="java.lang.Float" calculation="Sum">
		<variableExpression><![CDATA[$F{km}]]></variableExpression>
	</variable>
	<variable name="SOMA_IDA" class="java.lang.Long" calculation="Sum">
		<variableExpression><![CDATA[$F{totalida}]]></variableExpression>
	</variable>
	<variable name="SOMA_VOLTA" class="java.lang.Long" calculation="Sum">
		<variableExpression><![CDATA[$F{totalvolta}]]></variableExpression>
	</variable>
	<title>
		<band height="176" splitType="Stretch">
			<staticText>
				<reportElement mode="Transparent" x="0" y="0" width="459" height="41" forecolor="#000000" backcolor="#FFFFFF" uuid="65b24124-38c3-43b7-8586-bdd577662ef7"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="16" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[QUADRO DEMONSTRATIVO DO MOVIMENTO DE PASSAGEIROS]]></text>
			</staticText>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="728" y="25" width="21" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="2f4f1314-9363-4e6d-822f-c85c1890998b"/>
				<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>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="645" y="0" width="104" height="25" forecolor="#000000" backcolor="#FFFFFF" uuid="ad4bbfb8-582d-4aa2-904d-8dfe60e54442"/>
				<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[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="460" y="25" width="267" height="16" forecolor="#000000" backcolor="#FFFFFF" uuid="8601bf20-f5f8-4fed-9445-7adfe580d236"/>
				<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["Página " + $V{PAGE_NUMBER}+ " de " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="-1" y="48" width="750" height="1" uuid="3c577f75-c6d6-4c11-a846-bfe71a8a1b42"/>
			</line>
			<line>
				<reportElement positionType="Float" x="-1" y="160" width="750" height="1" uuid="84641d2c-21a5-47f0-b4a8-afe7bf700cb6"/>
			</line>
			<staticText>
				<reportElement x="4" y="54" width="58" height="20" uuid="f7af9b8b-6be6-404b-84d3-e99f167d7ac7"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Empresa:]]></text>
			</staticText>
			<textField>
				<reportElement x="62" y="54" width="509" height="20" uuid="d7298e04-4d17-4960-b5c0-fcc5cc40eab2"/>
				<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="4" y="71" width="247" height="20" uuid="6c1d1900-e316-47a2-8456-1127388074c8"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="4" y="133" width="46" height="20" uuid="60219e34-b23c-466a-9a4b-f6ceaa94b040"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Linha:]]></text>
			</staticText>
			<textField>
				<reportElement x="50" y="133" width="509" height="20" uuid="cfb9d8c8-7731-479f-9449-df31087da23a"/>
				<textFieldExpression><![CDATA[$P{DESC_LINHAS_SELECIONADAS}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="4" y="91" width="73" height="20" uuid="6ccd1b99-e792-4636-9ec2-5be200b4d512"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Tipo de Data:]]></text>
			</staticText>
			<staticText>
				<reportElement x="77" y="91" width="73" height="20" uuid="87e23006-8496-4b03-af91-dec91dd19723"/>
				<textElement>
					<font isBold="false"/>
				</textElement>
				<text><![CDATA[SERVIÇO]]></text>
			</staticText>
			<staticText>
				<reportElement x="4" y="111" width="73" height="20" uuid="a5eab335-6bbc-4235-b503-a6dafbf0cb70"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Lugar Ofer:]]></text>
			</staticText>
			<textField>
				<reportElement x="77" y="113" width="509" height="20" uuid="4302c386-53e8-473d-99da-4f26c1d8bc38"/>
				<textFieldExpression><![CDATA[$P{CANTASIENTOS}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<columnHeader>
		<band height="17">
			<staticText>
				<reportElement x="0" y="0" width="219" height="15" uuid="98d28be1-3a8f-483e-a965-bb89e1b714e4"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Origem]]></text>
			</staticText>
			<staticText>
				<reportElement x="219" y="0" width="219" height="15" uuid="51dd342e-a2ed-4398-890e-66531dea6d89"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Destino]]></text>
			</staticText>
			<staticText>
				<reportElement x="438" y="0" width="133" height="15" uuid="87eb7ce1-dc9b-405b-9cff-ed77d622cec6"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Extensão KM]]></text>
			</staticText>
			<staticText>
				<reportElement x="571" y="0" width="104" height="15" uuid="345032f7-5553-45d9-b43c-e99c5fa6199b"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Pagantes Ida]]></text>
			</staticText>
			<staticText>
				<reportElement x="676" y="0" width="84" height="15" uuid="4beb4651-7357-407d-8883-0b606361907a"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Pagantes Volta]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="25" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="0" y="0" width="219" height="15" uuid="e29821d0-e770-43f3-a6a2-082204e4a2c4"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="676" y="0" width="84" height="15" uuid="e6244540-af1b-4d94-8b0f-d2c3e501db61"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{totalvolta}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="219" y="0" width="219" height="15" uuid="b8ccaac1-5267-48a0-b637-b595f74b73a7"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="438" y="0" width="133" height="15" uuid="2a28ff64-e39c-456c-9dc0-514a15406ed2"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{km}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="571" y="0" width="104" height="15" uuid="319b345c-ad14-4025-8fd3-3e34e8cacd54"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{totalida}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="27">
			<textField isBlankWhenNull="true">
				<reportElement x="438" y="0" width="133" height="15" uuid="dbfd6a16-9f63-4fa5-b6cf-9982ae17ef6f"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_KM}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="571" y="0" width="104" height="15" uuid="4c886880-2c26-44c3-885e-4fa8b6c5ba81"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_IDA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="676" y="0" width="84" height="15" uuid="5a617d83-4628-46a2-9618-ae4003f4738b"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_VOLTA}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="0" width="438" height="15" uuid="9d6b3cf8-2945-4094-bbf8-cf312abb4b3c"/>
				<textElement textAlignment="Center">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL]]></text>
			</staticText>
		</band>
	</columnFooter>
	<noData>
		<band height="50">
			<staticText>
				<reportElement x="0" y="24" width="575" height="26" uuid="0cb1af6a-efa0-4590-9b16-c7e6906d00c7"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<text><![CDATA[Não foi possivel obter dados com os parâmetros informados.]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
