<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="modelo_madurez"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="595"
		 pageHeight="842"
		 columnWidth="535"
		 columnSpacing="0"
		 leftMargin="30"
		 rightMargin="30"
		 topMargin="20"
		 bottomMargin="20"
		 whenNoDataType="NoPages"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<property name="ireport.scriptlethandling" value="0" />
	<property name="ireport.encoding" value="UTF-8" />
	<import value="java.util.*" />
	<import value="net.sf.jasperreports.engine.*" />
	<import value="net.sf.jasperreports.engine.data.*" />

	<parameter name="SUBREPORT_DIR" isForPrompting="true" class="java.lang.String">
		<defaultValueExpression ><![CDATA[".\\src\\informes\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="PR" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="I" isForPrompting="false" class="java.lang.Integer"/>
	<queryString language="hql"><![CDATA[from InformeComponentesBloque
where id_proyecto = $P{PR}
and id_instancia = $P{I}
order by posicion]]></queryString>

	<field name="idBloque" class="java.lang.Integer"/>
	<field name="idComponenteBloque" class="java.lang.Integer"/>
	<field name="idComponenteInstancia" class="java.lang.Integer"/>
	<field name="idInstancia" class="java.lang.Integer"/>
	<field name="idProyecto" class="java.lang.Integer"/>
	<field name="nombreBloque" class="java.lang.String"/>
	<field name="nombreComponente" class="java.lang.String"/>
	<field name="nombreInstancia" class="java.lang.String"/>
	<field name="nombreProyecto" class="java.lang.String"/>
	<field name="posicion" class="java.lang.Integer"/>

		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="23"  isSplitAllowed="true" >
				<rectangle>
					<reportElement
						x="369"
						y="-79"
						width="0"
						height="0"
						key="rectangle-1"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<line direction="BottomUp">
					<reportElement
						x="0"
						y="2"
						width="505"
						height="0"
						key="line-1"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="3"
						y="4"
						width="185"
						height="18"
						key="textField-1"/>
					<box></box>
					<textElement>
						<font/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{nombreComponente}]]></textFieldExpression>
				</textField>
				<subreport  isUsingCache="true">
					<reportElement
						x="194"
						y="4"
						width="315"
						height="19"
						key="subreport-1"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$P{I}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportContenidoCheckBox.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="194"
						y="4"
						width="315"
						height="18"
						key="subreport-2"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$P{I}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponenteTexto.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="194"
						y="4"
						width="315"
						height="18"
						key="subreport-3"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$P{I}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponenteFecha.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="194"
						y="4"
						width="315"
						height="18"
						key="subreport-4"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$P{I}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponentePortafolio.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="193"
						y="4"
						width="315"
						height="18"
						key="subreport-5"
						isPrintWhenDetailOverflows="true"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$P{I}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="CI">
						<subreportParameterExpression><![CDATA[$F{idComponenteInstancia}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponenteLista.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="194"
						y="4"
						width="315"
						height="17"
						key="subreport-6"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$F{idInstancia}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponentePuntuacionMM.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="193"
						y="4"
						width="315"
						height="18"
						key="subreport-7"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$F{idInstancia}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponenteMediaParcialMM.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="193"
						y="4"
						width="315"
						height="18"
						key="subreport-8"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$F{idInstancia}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponenteMediaGlobalMM.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="193"
						y="4"
						width="315"
						height="19"
						key="subreport-9"/>
					<parametersMapExpression><![CDATA[new HashMap($P{REPORT_PARAMETERS_MAP})]]></parametersMapExpression>
					<subreportParameter  name="CB">
						<subreportParameterExpression><![CDATA[$F{idComponenteBloque}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="I">
						<subreportParameterExpression><![CDATA[$F{idInstancia}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "componentes_bloque_subreportComponenteFechaMM.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
