<?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="report name" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="56"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Java\\sinan_relatorios\\src\\com\\org\\relatorios\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="TITULO" class="java.lang.String"/>
	<parameter name="CABECALHO1" class="java.lang.String"/>
	<parameter name="CABECALHO2" class="java.lang.String"/>
	<parameter name="RODAPE1" class="java.lang.String"/>
	<parameter name="TOTAL1" class="java.lang.String"/>
	<parameter name="TOTAL2" class="java.lang.String"/>
	<parameter name="TOTAL3" class="java.lang.String"/>
	<parameter name="parDesagregacao" class="java.lang.String"/>
	<parameter name="parDataAvaliacao" class="java.lang.String"/>
	<parameter name="parAgravo" class="java.lang.String"/>
	<parameter name="parAno" class="java.lang.String"/>
	<parameter name="parSgUf" class="java.lang.String"/>
	<parameter name="parRegiaoSaude" class="java.lang.String"/>
	<parameter name="municipioEspecifico" class="java.lang.String"/>
	<parameter name="TITULO_COLUNA" class="java.lang.String"/>
	<parameter name="QTDE_REG_MUNIC_AGR" class="java.lang.String"/>
	<parameter name="parPeriodo" class="java.lang.String"/>
	<parameter name="parPeriodo60" class="java.lang.String"/>
	<parameter name="parIsRegiao" class="java.lang.Boolean"/>
	<parameter name="parArquivos" class="java.lang.String"/>
	<parameter name="parNenhum" class="java.lang.Boolean"/>
	<parameter name="parDataAtual" class="java.lang.String"/>
	<parameter name="parDescricaoReg" class="java.lang.String"/>
	<parameter name="parRegionalSaude" class="java.lang.String"/>
	<parameter name="numeradorTotal" class="java.lang.String"/>
	<parameter name="denominadorTotal" class="java.lang.String"/>
	<parameter name="taxaTotal" class="java.lang.String"/>
	<parameter name="parAnoPeriodoAvaliacao" class="java.lang.String"/>
	<parameter name="parPeriodoCoortePB" class="java.lang.String"/>
	<parameter name="parPeriodoCoorteMB" class="java.lang.String"/>
	<parameter name="parPeriodoAvaliacao" class="java.lang.String"/>
	<parameter name="parDescricaoRegional" class="java.lang.String"/>
	<field name="nomeMunicipio" class="java.lang.String"/>
	<field name="codRegiaoSaude" class="java.lang.String"/>
	<field name="regiaoSaude" class="java.lang.String"/>
	<field name="uf" class="java.lang.String"/>
	<field name="numerador" class="java.lang.String"/>
	<field name="codRegional" class="java.lang.String"/>
	<field name="regional" class="java.lang.String"/>
	<field name="numeradorInt" class="java.lang.Integer"/>
	<field name="denominador" class="java.lang.String"/>
	<field name="denominadorInt" class="java.lang.Integer"/>
	<field name="taxa" class="java.lang.String"/>
	<variable name="REPORT_TOTAL" class="java.lang.Integer">
		<variableExpression><![CDATA[$V{REPORT_COUNT}]]></variableExpression>
	</variable>
	<variable name="CURRENT_PAGE" class="java.lang.Integer" resetType="Page">
		<variableExpression><![CDATA[$V{REPORT_COUNT}]]></variableExpression>
	</variable>
	<group name="Regiao">
		<groupExpression><![CDATA[$P{parDesagregacao}.equals("Somente municípios")?$F{uf}:$P{parNenhum}?$F{uf}:$P{parIsRegiao}?$F{regiaoSaude}:$F{regional}]]></groupExpression>
		<groupHeader>
			<band height="50">
				<printWhenExpression><![CDATA[!$F{nomeMunicipio}.equals("TOTAL")]]></printWhenExpression>
				<rectangle>
					<reportElement x="-2" y="0" width="548" height="45" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" forecolor="#000000" backcolor="#CCCCCC"/>
				</rectangle>
				<textField>
					<reportElement x="0" y="0" width="100" height="20"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{uf}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement x="99" y="0" width="220" height="20"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$P{parDesagregacao}.equals("Somente municípios")?"":$P{parNenhum}?"":$P{parIsRegiao}?$F{regiaoSaude}:$F{regional}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="341" y="25" width="67" height="20"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<text><![CDATA[Cura]]></text>
				</staticText>
				<textField>
					<reportElement x="0" y="30" width="160" height="20"/>
					<textElement/>
					<textFieldExpression class="java.lang.String"><![CDATA[$P{parNenhum}?"Regional/Região de Notificação":"Município de Residência Atual"]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="424" y="26" width="69" height="19"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<text><![CDATA[Total]]></text>
				</staticText>
				<staticText>
					<reportElement x="493" y="25" width="50" height="19"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<text><![CDATA[Proporção]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="35">
				<printWhenExpression><![CDATA[$F{nomeMunicipio}.equals("TOTAL")]]></printWhenExpression>
				<rectangle>
					<reportElement x="-1" y="0" width="547" height="20" backcolor="#CCCCCC"/>
				</rectangle>
				<textField>
					<reportElement x="347" y="0" width="67" height="20"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<textFieldExpression class="java.lang.String"><![CDATA[$P{numeradorTotal}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement x="0" y="0" width="220" height="20"/>
					<textElement verticalAlignment="Middle">
						<font isBold="true"/>
					</textElement>
					<text><![CDATA[TOTAL]]></text>
				</staticText>
				<textField pattern="###0.0;-###0.0">
					<reportElement x="493" y="0" width="53" height="20"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<textFieldExpression class="java.lang.String"><![CDATA[$P{taxaTotal}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="424" y="0" width="69" height="20"/>
					<textElement textAlignment="Center" verticalAlignment="Middle"/>
					<textFieldExpression class="java.lang.String"><![CDATA[$P{denominadorTotal}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="132" splitType="Stretch">
			<rectangle>
				<reportElement x="0" y="50" width="546" height="75"/>
			</rectangle>
			<textField isBlankWhenNull="true">
				<reportElement x="1" y="0" width="274" height="14"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{CABECALHO1}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="275" y="0" width="278" height="14"/>
				<textElement>
					<font fontName="Arial" size="6" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{CABECALHO2}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="2" y="19" width="529" height="14"/>
				<textElement>
					<font fontName="Arial" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{TITULO}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="5" y="52" width="107" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Nível de desagregação:]]></text>
			</staticText>
			<staticText>
				<reportElement x="5" y="65" width="133" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[UF de residência atual:]]></text>
			</staticText>
			<staticText>
				<reportElement x="5" y="92" width="133" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<text><![CDATA[Município de residência atual:]]></text>
			</staticText>
			<line>
				<reportElement x="316" y="50" width="1" height="75"/>
			</line>
			<staticText>
				<reportElement x="3" y="34" width="550" height="14" forecolor="#666666" backcolor="#666666"/>
				<textElement>
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Proporção de cura dos casos novos de hanseníase diagnosticados nos anos das coortes]]></text>
			</staticText>
			<staticText>
				<reportElement x="321" y="70" width="103" height="14"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Período de PB:]]></text>
			</staticText>
			<textField>
				<reportElement x="112" y="52" width="203" height="15"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parDesagregacao}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="155" y="78" width="157" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parRegiaoSaude} == "" ? $P{parRegionalSaude}: $P{parRegiaoSaude}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="426" y="83" width="120" height="14"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parPeriodoCoorteMB}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="321" y="97" width="222" height="26"/>
				<textElement verticalAlignment="Top">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parArquivos}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="138" y="65" width="152" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parSgUf}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="138" y="92" width="174" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{municipioEspecifico}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="5" y="79" width="190" height="14"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parDescricaoRegional}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="426" y="70" width="120" height="14"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parPeriodoCoortePB}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="321" y="83" width="103" height="14"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Período de MB:]]></text>
			</staticText>
			<textField>
				<reportElement x="424" y="57" width="120" height="14"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{parPeriodoAvaliacao}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="321" y="57" width="103" height="14"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Período de avaliação:]]></text>
			</staticText>
		</band>
	</title>
	<detail>
		<band height="21" splitType="Stretch">
			<printWhenExpression><![CDATA[!$F{nomeMunicipio}.equals("TOTAL")]]></printWhenExpression>
			<textField pattern="###0.0;-###0.0">
				<reportElement x="1" y="0" width="220" height="18"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{nomeMunicipio}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="347" y="0" width="67" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{numerador}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="###0.0;-###0.0">
				<reportElement x="493" y="0" width="50" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{taxa}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="424" y="0" width="69" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{denominador}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="38" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="347" y="20" width="199" height="14"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="Arial" size="8" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{RODAPE1}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="195" y="21" width="80" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Pág. "+$V{PAGE_NUMBER}+" de"]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="275" y="21" width="40" height="12"/>
				<textElement verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="2" y="20" width="76" height="14"/>
				<textElement verticalAlignment="Bottom">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Relatório emitido em:]]></text>
			</staticText>
		</band>
	</pageFooter>
	<summary>
		<band height="53">
			<printWhenExpression><![CDATA[!$P{QTDE_REG_MUNIC_AGR}.equals("Agravos")]]></printWhenExpression>
		</band>
	</summary>
</jasperReport>
