<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0  -->
<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="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" whenResourceMissingType="Error" uuid="d4a1d5eb-82dd-412f-a620-202e4bdf9dba">
	<property name="template.engine" value="tabular_template"/>
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
	<property name="com.jaspersoft.studio.unit." value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
	<property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
	<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>
	<subDataset name="tableDataset" uuid="4031641a-afc1-4188-9f59-7f3321292adb">
		<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
		<queryString>
			<![CDATA[]]>
		</queryString>
		<field name="medico" class="java.lang.String"/>
		<field name="paciente" class="java.lang.String"/>
		<field name="telefone" class="java.lang.String"/>
		<field name="data" class="java.lang.String"/>
		<field name="hora" class="java.lang.String"/>
	</subDataset>
	<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">
		<parameterDescription><![CDATA[]]></parameterDescription>
	</parameter>
	<parameter name="VERSION" class="java.lang.String"/>
	<parameter name="AGRUPAMENTO" class="java.lang.String"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="filaNome" class="java.lang.String"/>
	<field name="quantidade" class="java.lang.Integer"/>
	<field name="status" class="java.lang.String"/>
	<field name="usrNome" class="java.lang.String"/>
	<variable name="total_geral" class="java.lang.Integer" calculation="Sum">
		<variableExpression><![CDATA[$F{quantidade}]]></variableExpression>
		<initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression>
	</variable>
	<group name="Group1">
		<groupExpression><![CDATA[$F{filaNome}]]></groupExpression>
		<groupHeader>
			<band height="28">
				<textField>
					<reportElement mode="Opaque" x="0" y="0" width="802" height="15" backcolor="#A6A6A6" uuid="7daa2195-353b-467f-b330-a13a2fe95670"/>
					<textElement textAlignment="Left"/>
					<textFieldExpression><![CDATA["  " + $F{filaNome}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="0" y="15" width="502" height="13" backcolor="#C4C4C4" uuid="42c114e8-5938-46e6-a4c3-b4aa9568bc1b">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Profissional]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="502" y="15" width="200" height="13" backcolor="#C4C4C4" uuid="9afd0c4f-a572-44bc-851e-7924981a78bf">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Status]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="702" y="15" width="100" height="13" backcolor="#C4C4C4" uuid="2e1b8ec8-eb07-44e8-b51a-a502b4a2540a">
						<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					</reportElement>
					<box leftPadding="5"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
					</textElement>
					<text><![CDATA[Quantidade]]></text>
				</staticText>
			</band>
		</groupHeader>
	</group>
	<pageHeader>
		<band height="103" splitType="Stretch">
			<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="Transparent" x="679" y="90" width="123" 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="649" 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>
			<frame>
				<reportElement mode="Opaque" x="0" y="0" width="802" height="70" backcolor="#FFFFFF" uuid="745d563b-5cea-4094-bfed-a9a50169b041">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
					<property name="ShowOutOfBoundContent" value="false"/>
				</reportElement>
				<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
					<pen lineColor="#066990"/>
					<topPen lineWidth="2.0"/>
					<leftPen lineWidth="2.0"/>
					<rightPen lineWidth="2.0"/>
				</box>
				<textField isBlankWhenNull="true">
					<reportElement mode="Transparent" x="174" y="7" width="455" height="20" forecolor="#000000" uuid="01b87b21-4139-49fe-8b76-4b92c0f2460a">
						<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="174" y="27" width="455" height="15" forecolor="#000000" uuid="1b492bf0-b92b-48a4-91d5-ac9e6dee9917">
						<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="75" y="7" width="90" height="55" backcolor="#FFFFFF" uuid="da6e2b11-651d-4ea7-b22b-79b0539d871c">
						<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="174" y="42" width="455" height="20" forecolor="#000000" uuid="dc520693-d66c-4dc2-84a4-cce5a866e18f">
						<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 isBlankWhenNull="true">
				<reportElement mode="Opaque" x="0" y="70" width="802" height="20" forecolor="#FFFFFF" backcolor="#066990" uuid="7994e884-d39f-4957-a313-8ac42f728cd5">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box leftPadding="0" rightPadding="0">
					<pen lineColor="#066990"/>
					<leftPen lineWidth="2.0"/>
					<rightPen lineWidth="2.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="9" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{TITULO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="802" y="0" width="8" height="90" uuid="f9813ae8-bd29-4613-9035-24e95b34081f">
					<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>
		</band>
	</pageHeader>
	<detail>
		<band height="19">
			<textField>
				<reportElement x="702" y="0" width="100" height="15" uuid="9fc8c2de-7072-4983-8133-a708c0407553"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{quantidade}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="504" y="0" width="198" height="15" uuid="fcdb0952-fdc8-45fe-8896-25f37d07e43e"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[$F{status}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="-1" y="0" width="504" height="15" uuid="6e3dcbf4-24e7-4274-acf3-3e4ac4954dfd"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA["  " + $F{usrNome}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="13">
			<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
			<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="668" 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>
			<textField evaluationTime="Report">
				<reportElement mode="Opaque" x="768" y="0" width="34" height="13" backcolor="#FFFFFF" uuid="ecc1b2cb-b8a5-404e-9abb-bda9131afb0d">
					<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>
				<reportElement mode="Opaque" x="728" y="0" width="40" height="13" backcolor="#FFFFFF" uuid="ddacae81-04c3-49d7-bbfd-3ba53424fe16"/>
				<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>
		</band>
	</pageFooter>
	<summary>
		<band height="13">
			<staticText>
				<reportElement x="0" y="0" width="748" height="13" uuid="552139af-0780-404f-b70f-9795b79365ed">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box>
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Total de Solicitações:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="748" y="0" width="54" height="13" uuid="253422c9-c600-42cf-9ff4-0bc75c5fd1f2">
					<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
				</reportElement>
				<box rightPadding="5">
					<topPen lineWidth="1.0"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{total_geral}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
