<?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="c49b5893-2989-4f8d-8645-45d4553bcf9d">
	<property name="ireport.zoom" value="2.1961500000000025"/>
	<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"/>
	<parameter name="LINHAS" 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"/>
	<field name="tarifa" class="java.math.BigDecimal"/>
	<field name="totalReceita" class="java.math.BigDecimal"/>
	<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>
	<variable name="SOMA_TOTAL_RECEITA" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{totalReceita}]]></variableExpression>
	</variable>
	<title>
		<band height="176" splitType="Stretch">
			<staticText>
				<reportElement uuid="48387206-d35a-46c3-92bc-7337730b5b29" mode="Transparent" x="0" y="0" width="555" height="41" forecolor="#000000" backcolor="#FFFFFF"/>
				<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 pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement uuid="08f1d92b-4dee-433a-b066-f1b568988bce" mode="Transparent" x="654" y="0" width="95" height="25" 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[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="98b19fb9-fbbf-4a0d-972d-4984bfba62b0" mode="Transparent" x="555" y="25" width="99" height="16" 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["Página " + $V{PAGE_NUMBER}+ " de " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="0ef26664-c3c7-4239-b964-4dd4c07dc70e" x="-1" y="48" width="750" height="1"/>
			</line>
			<line>
				<reportElement uuid="75af562f-9dac-46dc-8b06-1e50896893d0" positionType="Float" x="-1" y="160" width="750" height="1"/>
			</line>
			<staticText>
				<reportElement uuid="8816e3ed-08fc-44c4-9b5c-90065a97ea1f" x="-1" y="49" width="78" height="22"/>
				<textElement>
					<font isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Empresa:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="e4dcbf34-9a95-47d4-9d85-ef9c75ed8270" x="77" y="49" width="577" height="22"/>
				<textElement>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="bbfa56eb-b0e4-4ce8-95ec-03fa5fecdaa5" x="0" y="71" width="306" height="20"/>
				<textElement>
					<font isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA["Período: " + $P{DATA_DE} + " a " + $P{DATA_ATE}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="09cdf961-cdc2-4062-94e2-241e21a728b5" x="0" y="133" width="50" height="20"/>
				<textElement>
					<font isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Linha:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="70f366bb-2104-429a-8899-66f853c0f260" x="150" y="133" width="405" height="20"/>
				<textElement>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DESC_LINHAS_SELECIONADAS}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="2284285a-4769-4bc9-b48d-ea18d3a2b726" x="0" y="91" width="77" height="20"/>
				<textElement>
					<font isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Tipo de Data:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="6650b65f-2a11-4a23-8afd-c1b2a46c2e47" x="77" y="91" width="73" height="20"/>
				<textElement>
					<font isBold="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[SERVIÇO]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="251da91e-5f8e-452d-9ed9-4414e4d88cc5" x="0" y="111" width="77" height="20"/>
				<textElement>
					<font isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Lugar Ofer:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement uuid="c023bf07-8aa7-4848-a922-a556dd64c576" x="77" y="113" width="478" height="20"/>
				<textElement>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{CANTASIENTOS}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="379fb4cf-7160-4ed9-b230-c5613786e420" x="50" y="133" width="100" height="20"/>
				<textElement>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{LINHAS}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<columnHeader>
		<band height="17">
			<staticText>
				<reportElement uuid="f0c47ec0-d41c-4608-9e01-ee5052ebd24c" x="0" y="0" width="150" height="15"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Origem]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="d526bb87-3f60-4c72-bbc0-cb9f11bee23d" x="150" y="0" width="156" height="15"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Destino]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="da145fa4-768a-4cbc-9704-605b36cfc3bc" x="378" y="0" width="90" height="15"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Extensão KM]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="cb75f5bc-97d3-4041-b4cb-07ef31a0b238" x="468" y="0" width="87" height="15"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Pagantes Ida]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="cef96a7c-142c-400a-b65b-82c101fbd21e" x="555" y="0" width="99" height="15"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Pagantes Volta]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="1554b801-f6ed-48dc-a16e-2f5ca8a8b71a" x="306" y="0" width="72" height="15"/>
				<textElement textAlignment="Left" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Tarifa]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="e5150478-8a28-4de5-87e6-40281b3a55b6" x="654" y="0" width="95" height="15"/>
				<textElement textAlignment="Center" markup="none">
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Total Receita]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="25" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement uuid="c2f2ed2f-8c42-402e-b606-ca76e7bd67e3" x="0" y="0" width="150" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="1195949f-2f19-4935-844c-0c69123efe40" x="555" y="0" width="99" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{totalvolta}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="41bad51e-a613-4ae6-9937-714a05155251" x="150" y="0" width="156" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="049bb44c-49f3-4d89-a213-1d16e30d94b4" x="378" y="0" width="90" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{km}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="5ad76aa0-b16a-41ac-87ca-86bdea7bc612" x="468" y="0" width="87" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{totalida}]]></textFieldExpression>
			</textField>
			<textField pattern=" #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="e203673e-3d97-4bed-9c04-e1e9e1bec06d" x="306" y="0" width="72" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
			</textField>
			<textField pattern=" #,##0.00" isBlankWhenNull="true">
				<reportElement uuid="183eaf3a-6104-46d3-8c8a-1de4c6f761bf" x="654" y="0" width="95" height="15"/>
				<textElement textAlignment="Center">
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{totalReceita}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="27">
			<textField isBlankWhenNull="true">
				<reportElement uuid="1eea79f0-7c7e-43ea-8a3c-a54ec8f9a086" x="378" y="0" width="90" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_KM}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="3a7823db-bc09-4097-8cbd-bb44c55eab67" x="468" y="0" width="87" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_IDA}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="329785a2-cb47-4db5-ba70-06cb06509019" x="555" y="0" width="99" height="15"/>
				<textElement>
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_VOLTA}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="4ddd9911-6763-4724-a5e3-c86a696a8abf" x="0" y="0" width="378" height="15"/>
				<textElement textAlignment="Center">
					<font isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[TOTAL]]></text>
			</staticText>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="53fc346a-9a55-4bf3-8f5c-a9f5a01aa2a4" x="654" y="0" width="95" height="15"/>
				<textElement textAlignment="Center">
					<font size="10"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SOMA_TOTAL_RECEITA}]]></textFieldExpression>
			</textField>
		</band>
	</columnFooter>
	<noData>
		<band height="50">
			<staticText>
				<reportElement uuid="302dc2fd-ac13-424a-9b38-abcc21436bdd" x="0" y="24" width="654" height="26"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<text><![CDATA[Não foi possivel obter dados com os parâmetros informados.]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
