<?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="RelatorioReceitaServico" columnCount="8" printOrder="Horizontal" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="100" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c092ef85-9334-4225-93d7-1acb7cf4d021">
	<property name="ireport.zoom" value="1.7715610000000075"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.2" value="pageHeader"/>
	<property name="net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1" value="columnHeader"/>
	<parameter name="NOME_RELATORIO" class="java.lang.String"/>
	<parameter name="DATA_INICIAL" class="java.util.Date"/>
	<parameter name="DATA_FINAL" class="java.util.Date"/>
	<parameter name="USUARIO" class="java.lang.String"/>
	<parameter name="FILTROS" class="java.lang.String"/>
	<parameter name="ESTADOS_ID" class="java.lang.String"/>
	<parameter name="inicialAutorizado" class="java.util.Collection"/>
	<parameter name="finalAutorizado" class="java.lang.Integer"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="estado" class="java.lang.String"/>
	<field name="numeroBPE" class="java.lang.Integer"/>
	<field name="serieBPE" class="java.lang.String"/>
	<field name="finalAutorizado" class="java.lang.Integer"/>
	<variable name="bilhete_COUNT" class="java.lang.Integer" resetType="Group" resetGroup="estado" calculation="Count">
		<variableExpression><![CDATA[$F{numeroBPE}]]></variableExpression>
	</variable>
	<variable name="TOTAL_BILHETES_GERAL" class="java.lang.Integer" incrementType="Group" incrementGroup="estado" calculation="Sum">
		<variableExpression><![CDATA[$V{bilhete_COUNT}]]></variableExpression>
		<initialValueExpression><![CDATA[]]></initialValueExpression>
	</variable>
	<variable name="inicio" class="java.lang.Integer" resetType="None" incrementType="Group" incrementGroup="estado" calculation="Lowest">
		<variableExpression><![CDATA[$F{numeroBPE}]]></variableExpression>
		<initialValueExpression><![CDATA[]]></initialValueExpression>
	</variable>
	<variable name="fim" class="java.lang.Integer" incrementType="Group" incrementGroup="estado" calculation="Highest">
		<variableExpression><![CDATA[$F{numeroBPE}]]></variableExpression>
		<initialValueExpression><![CDATA[$F{numeroBPE}]]></initialValueExpression>
	</variable>
	<group name="estado">
		<groupExpression><![CDATA[$P{ESTADOS_ID}.equals("") ? null : $F{estado}]]></groupExpression>
		<groupHeader>
			<band height="46">
				<staticText>
					<reportElement uuid="2abbc372-a813-4da6-8ce1-e5901a15b430" x="0" y="26" width="97" height="20"/>
					<textElement>
						<font size="11" isBold="true" isItalic="false"/>
					</textElement>
					<text><![CDATA[Número BPE ]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="b3502755-0bd7-4f2a-92da-9b978a6a1f05" x="0" y="0" width="97" height="20"/>
					<textElement textAlignment="Left">
						<font size="11" isBold="true" isItalic="false"/>
					</textElement>
					<text><![CDATA[Estado:]]></text>
				</staticText>
				<textField>
					<reportElement uuid="6c12b027-87a2-4a76-a291-1874b37595ea" x="97" y="0" width="102" height="20">
						<printWhenExpression><![CDATA[!$P{ESTADOS_ID}.equals("")]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font size="10" isBold="true" isItalic="false"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{estado}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement uuid="62d2b85b-9b75-453a-8d3d-e90136f0ce98" x="199" y="1" width="62" height="19"/>
					<textElement textAlignment="Left">
						<font size="11" isBold="true" isItalic="false"/>
					</textElement>
					<text><![CDATA[Série:]]></text>
				</staticText>
				<textField>
					<reportElement uuid="b62df4a9-ba4b-4cb5-b7e8-ec69c20e0189" x="261" y="1" width="87" height="19">
						<printWhenExpression><![CDATA[!$P{ESTADOS_ID}.equals("")]]></printWhenExpression>
					</reportElement>
					<textElement>
						<font size="11" isBold="true" isItalic="false"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{serieBPE}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement uuid="c804ad70-880e-4aaf-b321-0da2bb917c1a" x="261" y="26" width="87" height="20"/>
					<textElement/>
					<textFieldExpression><![CDATA[$V{inicio}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement uuid="c9a2844a-5957-46e0-b08a-8dd909d5dce6" x="199" y="26" width="62" height="20"/>
					<textElement textAlignment="Left">
						<font size="11" isBold="true" isItalic="false"/>
					</textElement>
					<text><![CDATA[Nº Inicial:]]></text>
				</staticText>
				<staticText>
					<reportElement uuid="1a592966-8259-4762-94e9-d27da948da93" x="348" y="26" width="71" height="20"/>
					<textElement textAlignment="Left">
						<font size="11" isBold="true" isItalic="false"/>
					</textElement>
					<text><![CDATA[Nº Final:]]></text>
				</staticText>
				<textField>
					<reportElement uuid="1d8c442d-ba8a-419e-9445-25690fcfc14b" x="419" y="26" width="135" height="20" printWhenGroupChanges="estado"/>
					<textElement/>
					<textFieldExpression><![CDATA[$F{finalAutorizado}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="31">
				<printWhenExpression><![CDATA[!$P{ESTADOS_ID}.equals("")]]></printWhenExpression>
				<textField>
					<reportElement uuid="159f0892-ce02-41a2-9c6b-e7b25ce4012a" x="702" y="8" width="100" height="20"/>
					<textElement textAlignment="Right">
						<font size="11"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{bilhete_COUNT}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement uuid="e3d729bc-7c1b-4196-ba3c-c2422ba28ead" x="554" y="8" width="148" height="20"/>
					<textElement>
						<font size="11" isItalic="false"/>
					</textElement>
					<text><![CDATA[Total de Documentos]]></text>
				</staticText>
				<line>
					<reportElement uuid="e46ceea6-b4ea-4951-8a2e-ee9969f84e91" x="0" y="1" width="801" height="1"/>
				</line>
				<line>
					<reportElement uuid="c8484e52-e7f5-41e7-9c15-408458302a2e" x="0" y="28" width="801" height="1"/>
				</line>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="82" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="136a5066-d141-4362-af36-0780f0d16542" mode="Transparent" x="0" y="0" width="554" height="42" 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>
				<reportElement uuid="a9d471fb-1e1d-4d9a-9783-bbf988931192" x="554" y="0" width="137" height="25"/>
				<textElement textAlignment="Right">
					<font size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{cabecalho.dataHora}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement uuid="0d200750-aabf-4c7e-b27b-c0e7af4802a9" mode="Transparent" x="691" y="0" width="111" 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>
			<line>
				<reportElement uuid="bbf33a72-515f-42fc-8c79-e859aebca31d" x="0" y="59" width="802" height="1"/>
			</line>
			<textField pattern="" isBlankWhenNull="false">
				<reportElement uuid="bae9bec6-8c42-4bee-a070-34b0a7f1aee4" mode="Transparent" x="554" y="25" width="137" height="17" 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 evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement uuid="314e312c-8f24-42de-8354-3c1f7241a985" mode="Transparent" x="691" y="25" width="111" height="17" 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="" isBlankWhenNull="false">
				<reportElement uuid="4e030613-9cee-443e-9eaa-b19fa3090976" mode="Transparent" x="554" y="42" width="248" height="17" 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>
			<line>
				<reportElement uuid="6ca45088-a58d-43b3-b196-8fc26e128fbf" x="0" y="81" width="802" height="1"/>
			</line>
			<textField>
				<reportElement uuid="b29d0494-2695-420b-bdc1-b13c08bdbcda" x="0" y="59" width="832" height="14"/>
				<textElement verticalAlignment="Middle">
					<font size="11"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{FILTROS}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="26" splitType="Stretch">
			<textField>
				<reportElement uuid="9a639996-146c-42c9-a8fd-f947a59310f4" x="0" y="10" width="97" height="16"/>
				<textElement>
					<font size="10" isItalic="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numeroBPE}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="21" splitType="Stretch">
			<staticText>
				<reportElement uuid="8f64fd0a-a820-4ad6-8fc8-cb6d4f8e9831" x="554" y="0" width="148" height="21"/>
				<textElement>
					<font size="11" isItalic="false"/>
				</textElement>
				<text><![CDATA[Total Geral de Documentos]]></text>
			</staticText>
			<textField>
				<reportElement uuid="36133c4b-460e-4642-b827-053d0a247a18" x="702" y="0" width="100" height="21"/>
				<textElement textAlignment="Right">
					<font size="11"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{TOTAL_BILHETES_GERAL}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="50">
			<textField>
				<reportElement uuid="6f13c961-dd50-4e44-ba73-65e0752b8b83" x="0" y="24" width="802" height="26"/>
				<textElement markup="none">
					<font size="11" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$R{msg.noData}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
