<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.4.0.final using JasperReports Library version 6.4.1  -->
<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="agendamentoporunidade" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="d4a1d5eb-82dd-412f-a620-202e4bdf9dba">
	<property name="template.engine" value="tabular_template"/>
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
	<style name="Table">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
			<topPen lineWidth="1.0" lineColor="#000000"/>
			<leftPen lineWidth="1.0" lineColor="#000000"/>
			<bottomPen lineWidth="1.0" lineColor="#000000"/>
			<rightPen lineWidth="1.0" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table_TH" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table_TD" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="Table_CH" mode="Opaque" backcolor="#FFFFFF">
		<box>
			<topPen lineWidth="0.5" lineColor="#000000"/>
			<bottomPen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<parameter name="FILTRO" class="java.lang.String"/>
	<parameter name="DADOS_BASICOS" class="br.com.elotech.config.DadosBasicos"/>
	<parameter name="LOGO" class="java.lang.Object"/>
	<parameter name="TITULO" class="java.lang.String"/>
	<parameter name="TP_REL" class="java.lang.String"/>
	<parameter name="VERSION" class="java.lang.String"/>
	<parameter name="SITUACAO" class="java.lang.String">
		<parameterDescription><![CDATA[]]></parameterDescription>
	</parameter>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="unidade" class="java.lang.String"/>
	<field name="profissional" class="java.lang.String"/>
	<field name="cidadao" class="java.lang.String"/>
	<field name="dtNascimento" class="java.util.Date"/>
	<field name="dtAgendamento" class="java.util.Date"/>
	<field name="hrAgendamento" class="java.util.Date"/>
	<field name="prontuario" class="java.lang.String"/>
	<field name="telefone" class="java.lang.String"/>
	<field name="celular" class="java.lang.String"/>
	<variable name="total_profissional" class="java.lang.Integer" resetType="Group" resetGroup="gpMedico" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<variable name="total_unidade" class="java.lang.Integer" resetType="Group" resetGroup="gpUnidade" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<variable name="total_geral" class="java.lang.Integer" calculation="Count">
		<variableExpression><![CDATA[$F{cidadao}]]></variableExpression>
		<initialValueExpression><![CDATA[0]]></initialValueExpression>
	</variable>
	<group name="gpUnidade" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{unidade}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<staticText>
					<reportElement x="0" y="0" width="43" height="15" uuid="d884041a-215a-4e3e-998f-0a679bbdd1ee"/>
					<box leftPadding="5"/>
					<textElement verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Unidade:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement x="43" y="0" width="512" height="15" uuid="4afed8d5-9918-41d6-abd4-2d3fe3ba6cdf"/>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{unidade}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="15">
				<staticText>
					<reportElement x="0" y="0" width="495" height="13" uuid="16c20999-2719-4d56-a470-1c67d460c5e0">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total por Unidade:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement x="495" y="0" width="60" height="13" isPrintWhenDetailOverflows="true" uuid="5ecb3540-612e-469b-a094-19f1891c35c5">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box rightPadding="10">
						<topPen lineWidth="1.0"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_unidade}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="gpMedico" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{profissional}]]></groupExpression>
		<groupHeader>
			<band height="15">
				<staticText>
					<reportElement x="10" y="0" width="60" height="15" uuid="829c5861-9f24-4b88-badb-922c061ad64f">
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Profissional:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement x="70" y="0" width="485" height="15" uuid="7a8791e4-005d-48f3-a1f2-80cfb4336698"/>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{profissional}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="13">
				<staticText>
					<reportElement x="0" y="0" width="495" height="13" uuid="6b3ccca8-0af3-401a-8d58-2008b533ede6">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box>
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Total por profissional:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement x="495" y="0" width="60" height="13" isPrintWhenDetailOverflows="true" uuid="43b45e0a-0254-45c8-82dd-098c6bbf07e2">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box rightPadding="10">
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
						<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="7" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{total_profissional}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<group name="gpDataAgendamento" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{dtAgendamento}]]></groupExpression>
		<groupHeader>
			<band height="30">
				<staticText>
					<reportElement mode="Opaque" x="410" y="15" width="145" height="15" backcolor="#C4C4C4" uuid="b60323d0-2324-48d4-aaf7-03a57982a0d4">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="0"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Telefone para Contato]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="360" y="15" width="50" height="15" backcolor="#C4C4C4" uuid="b5fb49ea-bcba-48ec-842c-42c2dd6b71c3">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="0"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Dt. Nascimento]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="60" y="15" width="250" height="15" backcolor="#C4C4C4" uuid="c7d9ff9b-fc40-4dfc-bb3e-98003eb90d52">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Cidadão]]></text>
				</staticText>
				<staticText>
					<reportElement x="10" y="0" width="110" height="15" uuid="cb0f9a8e-ede9-4be2-bc5c-7b4311d8cc14">
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding=""/>
					</textElement>
					<text><![CDATA[Data do Agendamento:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
					<reportElement x="120" y="0" width="435" height="15" uuid="b5cfcf92-6157-4b06-b851-ede9fe0b27f9"/>
					<textElement verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{dtAgendamento}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="310" y="15" width="50" height="15" backcolor="#C4C4C4" uuid="1703dc8c-39a0-4c15-9082-ab549a745919">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="0"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Prontuário]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="10" y="15" width="50" height="15" backcolor="#C4C4C4" uuid="a8b2693f-ba99-4ed0-9bec-439145f46aa4">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					</reportElement>
					<box leftPadding="0"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Horário]]></text>
				</staticText>
			</band>
		</groupHeader>
	</group>
	<pageHeader>
		<band height="103" splitType="Stretch">
			<textField>
				<reportElement x="555" y="0" width="8" height="90" uuid="e72d63c7-2bcb-4149-a11e-b68c591f7645">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<textElement rotation="Left">
					<font size="5"/>
				</textElement>
				<textFieldExpression><![CDATA[($P{VERSION} != null && $P{VERSION} != "" ? "v."+$P{VERSION} : "")]]></textFieldExpression>
			</textField>
			<frame>
				<reportElement mode="Opaque" x="0" y="0" width="555" height="70" backcolor="#FFFFFF" uuid="6321f5e3-86eb-444f-acc1-8daaaa0d6c60">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="ShowOutOfBoundContent" value="false"/>
				</reportElement>
				<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
					<topPen lineWidth="2.0" lineColor="#066990"/>
					<leftPen lineWidth="2.0" lineColor="#066990"/>
					<rightPen lineWidth="2.0" lineColor="#066990"/>
				</box>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="100" y="7" width="455" height="20" forecolor="#000000" uuid="555240c1-0443-419c-8bf0-7a4f388e4155">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box topPadding="0" leftPadding="10" bottomPadding="0" rightPadding="10"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="SansSerif" size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getPrefeitura()]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="100" y="27" width="455" height="15" forecolor="#000000" uuid="502aeaee-ee33-429f-a820-6d44c1a2501e">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box topPadding="0" leftPadding="10" bottomPadding="0" rightPadding="10"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="SansSerif" size="11" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getSecretaria()]]></textFieldExpression>
				</textField>
				<image hAlign="Center" vAlign="Middle" isUsingCache="true" onErrorType="Blank">
					<reportElement mode="Opaque" x="10" y="7" width="90" height="55" backcolor="#FFFFFF" uuid="5090998c-dbda-4473-beeb-6e51ecea41eb">
						<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box padding="5"/>
					<imageExpression><![CDATA[$P{LOGO}]]></imageExpression>
				</image>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="100" y="42" width="455" height="20" forecolor="#000000" uuid="793b703b-ee2c-4fa2-af62-98d51b646058">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box topPadding="0" leftPadding="10" bottomPadding="0" rightPadding="10"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="SansSerif" size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getUnidade()]]></textFieldExpression>
				</textField>
			</frame>
			<textField isStretchWithOverflow="true" isBlankWhenNull="false">
				<reportElement x="32" y="90" width="418" height="13" uuid="f0949da5-5f04-4ec0-9fd5-7cc56c1bf05f">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="0" rightPadding="5">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression><![CDATA[($P{FILTRO} != null ? $P{FILTRO} : "Nenhum filtro informado")]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="90" width="32" height="13" uuid="423c9862-62b2-4868-93e3-a5ba1c5289ff">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="5" rightPadding="2">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Filtros:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement mode="Opaque" x="0" y="70" width="555" height="20" forecolor="#FFFFFF" backcolor="#066990" uuid="27c7256f-d960-4b5c-b965-b9b267c275f8">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="0" rightPadding="0">
					<pen lineWidth="2.0" lineColor="#066990"/>
					<topPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="2.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement mode="Transparent" x="480" y="90" width="75" height="13" forecolor="#000000" uuid="15f8e6f5-1952-4279-9465-8ddc652962e5">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box padding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{DADOS_BASICOS}.getUsuario()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="450" y="90" width="30" height="13" forecolor="#000000" uuid="ab59e678-17c8-4678-96a6-423307baa582"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="6" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Usuário:]]></text>
			</staticText>
		</band>
	</pageHeader>
	<detail>
		<band height="13">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="60" y="0" width="250" height="13" uuid="c47edc5d-8aaa-4d21-be95-88d5feba2f6b">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box leftPadding="5"/>
				<textElement verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{cidadao}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="360" y="0" width="50" height="13" uuid="4f44601c-edef-4f0b-a571-26e357857a9c">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{dtNascimento}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="310" y="0" width="50" height="13" uuid="af993943-0477-4d7a-9e41-686dfa138c08"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{prontuario}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="410" y="0" width="144" height="13" uuid="ae29e560-fc1f-4b8c-9bf9-61af039b2a0f">
					<property name="com.jaspersoft.studio.unit.x" value="pixel"/>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[($F{telefone}!=null ? $F{telefone} : " ") +($F{telefone}!=null ? " / " : " ") + ($F{celular}!=null ? $F{celular} : " ")]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="HH:mm " isBlankWhenNull="true">
				<reportElement x="10" y="0" width="50" height="13" uuid="ac98ae18-c41e-4d7a-b890-28ae78d937f5"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{hrAgendamento}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="13">
			<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
			<textField>
				<reportElement mode="Opaque" x="480" y="0" width="40" height="13" backcolor="#FFFFFF" uuid="fed27553-a6c4-4a8a-9056-2f6f2589a3e5"/>
				<box topPadding="2">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["Pág. "+$V{PAGE_NUMBER}+" de "]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement mode="Opaque" x="520" y="0" width="34" height="13" backcolor="#FFFFFF" uuid="9f5ad531-d413-49c9-874b-8b99e8150fa6">
					<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
				</reportElement>
				<box topPadding="2" leftPadding="2" rightPadding="5">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement>
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement mode="Opaque" x="0" y="0" width="60" height="13" backcolor="#FFFFFF" uuid="fc593335-5cbf-4caf-97b3-ff897c676bde"/>
				<box padding="2">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Left">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement mode="Opaque" x="60" y="0" width="420" height="13" backcolor="#FFFFFF" uuid="8c2f09c6-c33b-4843-8073-d7317eb5fec7"/>
				<box topPadding="2" leftPadding="5">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Top">
					<font size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[(($P{DADOS_BASICOS}.getUnidade() != "" && $P{DADOS_BASICOS}.getUnidade() != null) ? $P{DADOS_BASICOS}.getUnidade() + " - " : "")
+ 
(($P{DADOS_BASICOS}.getEndereco() != "" && $P{DADOS_BASICOS}.getEndereco() != null) ? $P{DADOS_BASICOS}.getEndereco() : "")]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="13">
			<textField>
				<reportElement x="495" y="0" width="60" height="13" isPrintWhenDetailOverflows="true" uuid="ba334c72-35f6-4546-a25c-82508355003d">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box rightPadding="10">
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total_geral}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="0" width="495" height="13" uuid="552139af-0780-404f-b70f-9795b79365ed">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="7" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Total Geral:]]></text>
			</staticText>
		</band>
	</summary>
</jasperReport>
