<?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="1130" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="1090" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="2de20ee0-535e-49d2-a7be-c24a30351d9f">
	<property name="ireport.zoom" value="1.0980750000000004"/>
	<property name="ireport.x" value="350"/>
	<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"/>
	<style name="zebrado">
		<conditionalStyle>
			<conditionExpression><![CDATA[$V{REPORT_COUNT}%2==1]]></conditionExpression>
			<style backcolor="#CCCCCC"/>
		</conditionalStyle>
	</style>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="STATUS" class="java.lang.String"/>
	<field name="dtvenda" class="java.lang.String"/>
	<field name="empresa_id" class="java.lang.String"/>
	<field name="origem" class="java.lang.String"/>
	<field name="destino" class="java.lang.String"/>
	<field name="dtviagem" class="java.lang.String"/>
	<field name="valor" class="java.math.BigDecimal"/>
	<field name="chbpe" class="java.lang.String"/>
	<field name="num_bpe" class="java.lang.String"/>
	<field name="numserie_bpe" class="java.lang.String"/>
	<field name="nombempresa" class="java.lang.String"/>
	<field name="evento" class="java.lang.String"/>
	<field name="qtd" class="java.lang.String"/>
	<field name="protocolo" class="java.lang.String"/>
	<field name="uforigem" class="java.lang.String"/>
	<field name="ufdestino" class="java.lang.String"/>
	<variable name="totalValor" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valor}]]></variableExpression>
		<initialValueExpression><![CDATA[BigDecimal.ZERO]]></initialValueExpression>
	</variable>
	<title>
		<band height="93" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="da52f710-3882-4beb-ba6f-870e03f6800d" mode="Transparent" x="0" y="0" width="798" height="57" 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>
				<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement uuid="2f4f1314-9363-4e6d-822f-c85c1890998b" mode="Transparent" x="1065" y="25" width="25" 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[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="c8a70b8d-369e-48ae-a911-a5d9692316f7" stretchType="RelativeToBandHeight" mode="Transparent" x="798" y="42" width="292" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.impressorPor}+" "+$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement uuid="ad4bbfb8-582d-4aa2-904d-8dfe60e54442" mode="Transparent" x="1009" y="0" width="80" height="25" 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[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="8601bf20-f5f8-4fed-9445-7adfe580d236" mode="Transparent" x="798" y="25" width="267" 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[$R{cabecalho.pagina}+" "+$V{PAGE_NUMBER}+" "+$R{cabecalho.de}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="b48a0903-0b2a-4ae5-ae04-811d097a9f91" x="798" y="0" width="211" height="25"/>
				<textElement textAlignment="Right">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement uuid="aff6535e-c25b-4f31-ad3a-baacc52e4974" x="-1" y="57" width="1091" height="21"/>
				<box>
					<topPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<columnHeader>
		<band height="15">
			<textField>
				<reportElement uuid="2d8bc8b7-05a7-493a-ac4f-52f7f39cfa8b" x="0" y="0" width="65" height="15"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.empresaId}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="aae9977c-b656-4daf-8b9f-8fd3248542e3" x="65" y="0" width="200" height="15"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.nomeEmpresa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="38753499-ea21-4051-aaa0-a8cdc36e087d" x="265" y="0" width="42" height="15"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.origem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="3998308e-b9fe-465e-b251-47d19d7c4ddd" x="349" y="0" width="70" height="15"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.dataVenda}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="924ae914-4074-4746-97c0-b11119029cc0" x="1033" y="0" width="56" height="15"/>
				<textElement textAlignment="Right">
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.valorBPe}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="f9f9f464-c0da-4d85-ad06-06567943eaa8" x="703" y="0" width="221" height="15"/>
				<box leftPadding="5"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.chaveAcesso}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="8080038d-0253-4fe8-a21b-75c7257d81c5" x="307" y="0" width="42" height="15"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.destino}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="6eb33a55-1523-4031-9157-04b92fd09603" x="1009" y="0" width="24" height="15"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.qtd}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="fa7c03df-c59f-4e31-96fa-8a508c19746d" x="419" y="0" width="56" height="15"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.numBPe}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="6cb48779-f12f-4422-bdcc-faba0f0bc6d2" x="924" y="0" width="85" height="15"/>
				<box leftPadding="5"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.protocolo}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="e065ba85-3603-4e9b-bb55-4fc881056597" x="505" y="0" width="90" height="15"/>
				<textElement textAlignment="Center">
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.dataViagem}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="1bd2f4a5-8270-46b1-a46b-0863c3f21dcd" x="595" y="0" width="108" height="15"/>
				<textElement textAlignment="Left">
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.evento}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="abec744e-661d-407e-b21b-92cedc682316" x="475" y="0" width="30" height="15"/>
				<textElement>
					<font size="10" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{label.serie}]]></textFieldExpression>
			</textField>
		</band>
	</columnHeader>
	<detail>
		<band height="15" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="e29821d0-e770-43f3-a6a2-082204e4a2c4" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="0" width="65" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{empresa_id}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="b8ccaac1-5267-48a0-b637-b595f74b73a7" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="65" y="0" width="200" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nombempresa}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="2a28ff64-e39c-456c-9dc0-514a15406ed2" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="265" y="0" width="42" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{uforigem}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="319b345c-ad14-4025-8fd3-3e34e8cacd54" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="307" y="0" width="42" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ufdestino}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="e6244540-af1b-4d94-8b0f-d2c3e501db61" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="349" y="0" width="70" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{dtvenda}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="6e5187d9-591a-42ab-a394-3f990ea8adc1" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="1033" y="0" width="56" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valor}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="fe71d802-0ba0-4336-b76a-f72a37b23075" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="475" y="0" width="30" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numserie_bpe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="07f16df1-fd27-46ba-9262-835eb8dddc96" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="419" y="0" width="56" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{num_bpe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="8082048d-bc65-4b71-8322-309ffc7b2113" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="505" y="0" width="90" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{dtviagem}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="26b1a9e1-ab12-4222-82a3-6aa531243cbc" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="595" y="0" width="108" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Left">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{evento}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="fcf89d79-a930-4db6-b165-a9709729e9b3" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="703" y="0" width="221" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Left">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{chbpe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="dc340bdd-44e4-4f4e-9b44-62411cb46d66" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="924" y="0" width="85" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{protocolo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="c51bed7c-2724-4cfb-8799-da09f22bd439" style="zebrado" stretchType="RelativeToTallestObject" mode="Opaque" x="1009" y="0" width="24" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{qtd}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<lastPageFooter>
		<band/>
	</lastPageFooter>
	<summary>
		<band height="18">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="95d7aa90-90da-4ddb-b63d-16a69e4996aa" stretchType="RelativeToTallestObject" x="798" y="0" width="126" height="18"/>
				<box leftPadding="0">
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Bottom" markup="styled">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{header.filtro.total}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="933b9f19-86f6-40c1-a117-ac27ada061b7" stretchType="RelativeToTallestObject" x="924" y="0" width="165" height="18"/>
				<box>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Bottom" markup="styled">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{totalValor}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="29">
			<textField>
				<reportElement uuid="6b9f63c1-76d9-4dd7-8fce-9bc0d91292af" x="0" y="0" width="1090" height="29"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
