<?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="RelatorioFormaPagamentoAgenciaRutaTramo" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="e1b2cfdf-ea1f-4502-bac1-9cf4ce1916e7">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
    <property name="net.sf.jasperreports.export.xls.exclude.origin.band.2" value="pageHeader"/>
    <property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="title"/>
    <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="DATA_INICIAL" class="java.lang.String" isForPrompting="false"/>
	<parameter name="DATA_FINAL" class="java.lang.String" isForPrompting="false"/>
	<field name="descFormaPag" class="java.lang.String"/>
	<field name="descRuta" class="java.lang.String"/>
	<field name="data" class="java.lang.String"/>
	<field name="agencia" class="java.lang.String"/>
	<field name="seguro" class="java.lang.Double"/>
	<field name="pedagio" class="java.lang.Double"/>
	<field name="taxas" class="java.lang.Double"/>
	<field name="tarifa" class="java.lang.Double"/>
	<field name="descTramo" class="java.lang.String"/>
	<field name="quantidade" class="java.lang.Integer"/>
	<field name="total" class="java.lang.Double"/>
	<variable name="soma" class="java.lang.String"/>
	<variable name="PEDAGIO" class="java.lang.Double" resetType="Group" resetGroup="tramoGroup" calculation="Sum">
		<variableExpression><![CDATA[$F{pedagio}]]></variableExpression>
	</variable>
	<variable name="SEGURO" class="java.lang.Double" resetType="Group" resetGroup="tramoGroup" calculation="Sum">
		<variableExpression><![CDATA[$F{seguro}]]></variableExpression>
	</variable>
	<variable name="TAXA" class="java.lang.Double" resetType="Group" resetGroup="tramoGroup" calculation="Sum">
		<variableExpression><![CDATA[$F{taxas}]]></variableExpression>
	</variable>
	<variable name="TOTAL" class="java.lang.Double" resetType="Group" resetGroup="tramoGroup" calculation="Sum">
		<variableExpression><![CDATA[$F{total}]]></variableExpression>
	</variable>
	<variable name="TARIFA" class="java.lang.Double" resetType="Group" resetGroup="tramoGroup" calculation="Sum">
		<variableExpression><![CDATA[$F{tarifa}]]></variableExpression>
	</variable>
	<variable name="QTDE" class="java.lang.Integer" resetType="Group" resetGroup="tramoGroup" calculation="Sum">
		<variableExpression><![CDATA[$F{quantidade}]]></variableExpression>
	</variable>
	<group name="rutaGroup">
		<groupExpression><![CDATA[$F{descRuta}]]></groupExpression>
		<groupHeader>
			<band height="46">
				<textField>
					<reportElement uuid="e7ef7383-b8f7-4711-a161-3be25c1e5b3e" x="110" y="10" width="484" height="20"/>
					<textElement/>
					<textFieldExpression><![CDATA[$F{descRuta}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement uuid="e2248ab9-1416-4529-b4a5-937d2a5d13ce" x="0" y="10" width="85" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[Linha:]]></text>
				</staticText>
				<line>
					<reportElement uuid="392330f2-abd8-45dc-ba6e-2c62f795c5da" x="0" y="45" width="801" height="1"/>
				</line>
			</band>
		</groupHeader>
	</group>
	<group name="tramoGroup">
		<groupExpression><![CDATA[$F{descTramo}]]></groupExpression>
		<groupHeader>
			<band height="48">
				<staticText>
					<reportElement uuid="3421d610-67f9-4213-8362-0ab68419e8fb" x="740" y="26" width="49" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[QTDE]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="e5b8830b-b391-46f6-a2a8-d5612f38f429" x="655" y="26" width="85" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[TOTAL]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="5e90b545-5ccd-4c17-890a-aa9828d504ea" x="594" y="26" width="60" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[TAXAS]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="1d2dea2d-69c0-42b6-8637-1fe26cb97bea" x="380" y="26" width="107" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[PEDÁGIO]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="16204ddc-8276-45c7-b2b6-8909cc1741ae" x="66" y="26" width="108" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[AGÊNCIA]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="f86347ff-3b9f-4a22-b5f2-99c6e6861d5b" x="487" y="26" width="107" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[SEGURO]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="22fcdcd3-8805-4788-b90e-69bc0e082a54" x="0" y="26" width="66" height="20"/>
					<textElement>
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[DATA]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="11488a18-aeb7-4388-837a-4f2c9a7dfe99" x="174" y="26" width="115" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[FORMA DE PAG.]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="be84298d-9f0a-41bf-8b4b-b615e476a26e" x="289" y="26" width="91" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[TARIFA]]></text>
				</staticText>
				<textField>
					<reportElement uuid="3d7a1947-b8d3-4258-9e07-4e765656395a" x="110" y="6" width="100" height="20"/>
					<textElement/>
					<textFieldExpression><![CDATA[$F{descTramo}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement uuid="559e0316-1393-4897-91b2-c75a393e535b" x="0" y="6" width="85" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[Trecho:]]></text>
				</staticText>
				<line>
					<reportElement uuid="f79f5067-4c31-465b-bda5-25ca6037a699" x="0" y="45" width="802" height="1"/>
				</line>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="27">
				<staticText>
					<reportElement uuid="3cf1fe09-a07f-498f-9034-a10dcf6f5789" x="198" y="0" width="91" height="20"/>
					<textElement textAlignment="Right">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[Total]]></text>
				</staticText>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="9029ef1c-d195-41f5-aac5-0e2eef9d65be" x="594" y="0" width="60" height="20"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{TAXA}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="2aa3e35d-32be-4d7b-a65c-c098df18c3a1" x="380" y="0" width="107" height="20"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{PEDAGIO}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="a7759151-581b-4cef-94dc-7b81e0393e69" x="655" y="0" width="85" height="20"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{TOTAL}]]></textFieldExpression>
				</textField>
				<textField pattern="###0" isBlankWhenNull="true">
					<reportElement uuid="bdd9f446-5880-4c04-9701-49ca090f2c9f" x="740" y="0" width="49" height="20"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{QTDE}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="0882ba46-d6e5-4133-8be4-54405f376912" x="487" y="0" width="107" height="20"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{SEGURO}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00" isBlankWhenNull="true">
					<reportElement uuid="a8d7aa6a-5e9f-4c21-8d70-19a4647797dd" x="289" y="0" width="91" height="20"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{TARIFA}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="79" splitType="Stretch">
			<staticText>
				<reportElement uuid="f1ec38fc-f846-43f2-b9a4-338eb5d19aa2" x="39" y="10" width="802" height="20"/>
				<textElement textAlignment="Center">
					<font size="14" isBold="true"/>
				</textElement>
				<text><![CDATA[Relatório de Forma de Pagamento por Linha]]></text>
			</staticText>
			<textField>
				<reportElement uuid="d3de6210-3d3e-4ef1-a080-bcbf232792a7" x="10" y="48" width="247" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Período: " + $P{DATA_INICIAL} + " a " + $P{DATA_FINAL}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="5" splitType="Stretch"/>
	</pageHeader>
	<detail>
		<band height="24" splitType="Stretch">
			<textField>
				<reportElement uuid="4ec9cb1d-eecb-483d-9260-0ce1ab2cb9c4" x="174" y="0" width="115" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{descFormaPag}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="0a26c191-ba8b-4fea-ba9c-baf34336d235" x="380" y="0" width="107" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{pedagio}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="dc2d737e-fe81-4294-9f1e-1ef1cfadb373" x="289" y="0" width="91" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{tarifa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="96bed67b-2854-4ab7-92a9-cc568182e5ee" x="487" y="0" width="107" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{seguro}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="5d6b0aa8-742f-4456-b4d1-338ebc7d78a2" x="594" y="0" width="60" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{taxas}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="9190f9f6-d27a-4da2-9889-f2e963cbfa91" x="0" y="0" width="66" height="20"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="484e43ce-7b7d-436a-a744-3ab9cdd28cdc" x="66" y="0" width="108" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{agencia}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="5d066b77-e5a2-4061-a136-ff9692f0b990" x="740" y="1" width="49" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{quantidade}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="c51218d2-6975-4fe0-9e47-1c100b07e9fe" x="654" y="1" width="86" height="20"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="26" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="28" splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="26" splitType="Stretch"/>
	</summary>
</jasperReport>
