<?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="RelatorioDiferencasTransferencias" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="704929c0-c799-46a5-9ca8-3e21a3f3f8b3">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="DATA_FINAL" class="java.util.Date"/>
	<parameter name="DATA_INICIAL" class="java.util.Date"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="FILTRO_EMPRESA" class="java.lang.String"/>
	<parameter name="FILTRO_AGENCIA" class="java.lang.String"/>
	<field name="empresa" class="java.lang.String"/>
	<field name="agencia_transf" class="java.lang.String"/>
	<field name="bilhete" class="java.lang.String"/>
	<field name="origem" class="java.lang.String"/>
	<field name="destino" class="java.lang.String"/>
	<field name="classe_original" class="java.lang.String"/>
	<field name="total_original" class="java.math.BigDecimal"/>
	<field name="classe_transf" class="java.lang.String"/>
	<field name="total_transf" class="java.math.BigDecimal"/>
	<field name="valor_diferenca" class="java.math.BigDecimal"/>
	<variable name="total_original_sum" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{total_original}]]></variableExpression>
	</variable>
	<variable name="total_transf_sum" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{total_transf}]]></variableExpression>
	</variable>
	<variable name="valor_diferenca_sum" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valor_diferenca}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="95" splitType="Stretch">
			<textField>
				<reportElement uuid="610c970c-2f65-4cfb-b455-e840b4bd647c" x="567" y="16" width="122" height="25"/>
				<textElement textAlignment="Right">
					<font size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="71b7f03d-60a4-4dc8-a056-087a9f0aec4d" mode="Transparent" x="481" y="58" width="208" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="9" 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 evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement uuid="9629258c-431b-4142-b21a-7b7e7524cda6" mode="Transparent" x="704" y="41" width="35" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" 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 uuid="17df9fe4-c482-4448-a4ca-5ab3dccc1ba7" mode="Transparent" x="704" y="14" width="89" height="25" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" 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 isStretchWithOverflow="true">
				<reportElement uuid="99b96f7a-fa53-44a8-beda-294bd0098d81" x="0" y="70" width="802" height="25"/>
				<textElement verticalAlignment="Middle">
					<font size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="fb13ecbc-e8ae-4663-9c10-fc9e3df409c6" mode="Transparent" x="0" y="16" width="382" height="35" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="15" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{NOME_RELATORIO}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="e0048527-18d6-42a9-8bfb-abc5e8b69cd2" mode="Transparent" x="584" y="41" width="105" height="15" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" 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 pattern="" isBlankWhenNull="false">
				<reportElement uuid="0c0e2883-7d56-4c18-99d5-ff57476f6cc6" mode="Transparent" x="0" y="51" width="62" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodo}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="646ef8b5-8aa8-4dab-995c-3d072f56e647" mode="Transparent" x="119" y="51" width="10" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.periodoA}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="6f9ba5a7-c5b1-4382-a3a4-de071a202549" mode="Transparent" x="135" y="51" width="48" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="false">
				<reportElement uuid="7825d024-4acb-48ef-ac31-17f62bf76d2e" mode="Transparent" x="66" y="51" width="48" height="14" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Top" rotation="None" markup="none">
					<font fontName="SansSerif" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Single"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="43" splitType="Stretch">
			<staticText>
				<reportElement uuid="bc37af37-9b2d-46dc-969d-800271b9247b" x="412" y="20" width="86" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Classe Original]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="05f6b0c4-65f5-4413-814f-5f3f5171bb89" x="0" y="20" width="80" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Empresa]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="8b901287-2a27-4555-a9ec-fc89e5b29701" x="232" y="20" width="90" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Origem]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="127050d6-089c-4486-bffc-0dd6603debd4" x="80" y="20" width="80" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Agência transf.]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="9f01f9d0-b086-40f4-aa5d-57fa216a2955" x="160" y="20" width="72" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Nº Bilhete]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="b376832e-c8b6-47f9-b26b-5e0dbe81a34d" x="322" y="20" width="90" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Destino]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="f43caf02-0714-4e25-93b8-f6251b0473af" x="498" y="20" width="73" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Total Original]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="02096d93-5c1a-436a-8bb3-b13b76f0d04f" x="571" y="20" width="90" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Classe transf.]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="4b2a91fe-ac98-4b7c-b02e-d98862580cf4" x="661" y="20" width="70" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Total Transf.]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="6f895f9e-f2dd-404f-adf2-125732738753" x="731" y="20" width="70" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Vlr. Diferença]]></text>
			</staticText>
			<line>
				<reportElement uuid="917f4346-87f6-4040-b8ec-781e8e14be30" x="0" y="16" width="802" height="2"/>
			</line>
			<line>
				<reportElement uuid="56a46a13-901c-4cf2-b143-0ebd53e0f257" x="0" y="40" width="802" height="2"/>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="24" splitType="Stretch">
			<textField pattern="#,##0.00">
				<reportElement uuid="63e7f691-3da7-403b-b3c0-428204cd300b" x="731" y="0" width="70" height="20"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valor_diferenca}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement uuid="f328e3a4-f1d7-46f6-9d02-9bfd4ad1d512" x="160" y="0" width="72" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{bilhete}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="">
				<reportElement uuid="e5de48ac-118a-416c-a88e-b42b7dc64e40" x="80" y="1" width="80" height="20"/>
				<textElement>
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{agencia_transf}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="">
				<reportElement uuid="6f0f48bd-579d-4016-938f-75034c33ccf4" x="0" y="0" width="80" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="">
				<reportElement uuid="cec35341-5bcd-4d7c-a59e-76434bc6d4fe" x="232" y="0" width="90" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{origem}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="">
				<reportElement uuid="2b3cb9a8-6893-4bdf-b9eb-2853038a9258" x="322" y="0" width="90" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{destino}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="">
				<reportElement uuid="c3ec1906-8357-49ca-bbe6-4bb7f927d668" x="412" y="0" width="86" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{classe_original}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="a7933cd7-a8da-40c1-b4fe-7c499fbddcb6" x="498" y="0" width="73" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{total_original}]]></textFieldExpression>
			</textField>
			<textField pattern="">
				<reportElement uuid="0abd4d65-b47b-4bb5-9db2-fc1b08842641" x="571" y="0" width="90" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{classe_transf}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="18f38bde-1e97-481b-8f10-bdfe51bc8492" x="661" y="0" width="70" height="20"/>
				<textElement textAlignment="Left">
					<font size="10"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{total_transf}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="42" splitType="Stretch">
			<textField pattern="#,##0.00">
				<reportElement uuid="9250f22d-9830-4dc5-90cf-a1e33a764259" x="498" y="3" width="73" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total_original_sum}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="ab84fd96-22bf-4012-ae8c-164b913f1c5f" x="661" y="3" width="70" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total_transf_sum}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00">
				<reportElement uuid="aa4d7e9b-a3bd-4a67-a05a-caf728d69037" x="731" y="3" width="70" height="20"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{valor_diferenca_sum}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="50">
			<textField>
				<reportElement uuid="b6953c35-eeee-4652-907d-2d9e415750dd" x="14" y="14" width="530" height="26"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
