<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.8.0.final using JasperReports Library version 6.8.0-2ed8dfabb690ff337a5797129f2cd92902b0c87b  -->
<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="Reporte_Acuerdo_Agrupado" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ddb8dad5-cd8e-4808-a285-fac6a709547f">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Inceptio"/>
	<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
	<property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w1" value="123"/>
	<property name="com.jaspersoft.studio.data.sql.SQLQueryDesigner.sash.w2" value="872"/>
	<parameter name="Imagensubordinado" class="java.lang.String"/>
	<parameter name="asignacionacuerdoresponsableid" class="java.lang.Integer"/>
	<parameter name="Imagenjefe" class="java.lang.String"/>
	<parameter name="nombreinstituto" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT Concat_WS(' ', cs.ApellidoPaterno, cs.ApellidoMaterno, cs.Nombre) nombresubordinado, Concat_WS(' ', cj.ApellidoPaterno, cj.ApellidoMaterno, cj.Nombre) nombrejefe, ps.Nombre Puestosub, ds.Nombre Departamentosub, per.Descripcion periodoevaluacion, ci.Nombre Ciclo, ns.Nombre Nivel,
aaf.FirmaSubordinado, aaf.FirmaJefe, aaf.TextoAcuerdo, aaf.Firmado, aaf.FechaFirmaSubordinado, aaf.FechaFirmaJefe, aaf.FechaTermino, pj.Nombre Puestojefe, dj.nombre Departamentojefe, group_concat(ps.Nombre SEPARATOR ',') listapuesto, group_concat(ds.Nombre SEPARATOR ',') listadepartamento,
group_concat(ns.Nombre SEPARATOR ',') listanivel
FROM e3_asignacionacuerdo aa
INNER JOIN e3_asignacionacuerdoresponsable acr ON aa.AsignacionAcuerdoResponsableId = acr.AsignacionAcuerdoResponsableId 
INNER JOIN e3_colaborador cs ON aa.ColaboradorSubordinadoId = cs.ColaboradorId
INNER JOIN e3_puesto ps ON aa.PuestoSubordinadoId = ps.PuestoId
INNER JOIN e3_departamento ds ON ps.DepartamentoId = ds.DepartamentoId
LEFT JOIN nivel ns ON ds.NivelId = ns.NivelId
INNER JOIN e3_colaborador cj ON acr.ColaboradorId = cj.ColaboradorId
INNER JOIN e3_puesto pj ON acr.PuestoId = pj.PuestoId
INNER JOIN e3_departamento dj ON pj.DepartamentoId = dj.DepartamentoId
INNER JOIN e3_asignacionacuerdofirma aaf ON aa.AsignacionAcuerdoFirmaId = aaf.AsignacionAcuerdoFirmaId
INNER JOIN e3_periodoevaluacion per ON aa.PeriodoEvaluacionId = per.PeriodoEvaluacionId
INNER JOIN ciclo ci ON per.CicloId = ci.CicloId
WHERE acr.AsignacionAcuerdoResponsableId =  $P{asignacionacuerdoresponsableid} 
GROUP BY acr.AsignacionAcuerdoResponsableId]]>
	</queryString>
	<field name="nombresubordinado" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="nombresubordinado"/>
	</field>
	<field name="nombrejefe" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="nombrejefe"/>
	</field>
	<field name="Puestosub" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="Puestosub"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_puesto"/>
	</field>
	<field name="Departamentosub" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="Departamentosub"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_departamento"/>
	</field>
	<field name="periodoevaluacion" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="periodoevaluacion"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_periodoevaluacion"/>
	</field>
	<field name="Ciclo" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="Ciclo"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="ciclo"/>
	</field>
	<field name="Nivel" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="Nivel"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="nivel"/>
	</field>
	<field name="FirmaSubordinado" class="java.lang.Boolean">
		<property name="com.jaspersoft.studio.field.label" value="FirmaSubordinado"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="FirmaJefe" class="java.lang.Boolean">
		<property name="com.jaspersoft.studio.field.label" value="FirmaJefe"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="TextoAcuerdo" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="TextoAcuerdo"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="Firmado" class="java.lang.Boolean">
		<property name="com.jaspersoft.studio.field.label" value="Firmado"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="FechaFirmaSubordinado" class="java.sql.Timestamp">
		<property name="com.jaspersoft.studio.field.label" value="FechaFirmaSubordinado"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="FechaFirmaJefe" class="java.sql.Timestamp">
		<property name="com.jaspersoft.studio.field.label" value="FechaFirmaJefe"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="FechaTermino" class="java.sql.Timestamp">
		<property name="com.jaspersoft.studio.field.label" value="FechaTermino"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_asignacionacuerdofirma"/>
	</field>
	<field name="Puestojefe" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="Puestojefe"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_puesto"/>
	</field>
	<field name="Departamentojefe" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="Departamentojefe"/>
		<property name="com.jaspersoft.studio.field.tree.path" value="e3_departamento"/>
	</field>
	<field name="listapuesto" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="listapuesto"/>
	</field>
	<field name="listadepartamento" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="listadepartamento"/>
	</field>
	<field name="listanivel" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.label" value="listanivel"/>
	</field>
	<title>
		<band height="341">
			<staticText>
				<reportElement x="5" y="5" width="280" height="30" uuid="ce8d6b45-c65c-4663-a4c2-cc551fca9044"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[Sistema de evaluación 360]]></text>
			</staticText>
			<staticText>
				<reportElement x="20" y="150" width="130" height="20" uuid="036bd527-91dc-4da3-bd19-7d2c148f8920"/>
				<text><![CDATA[Evaluado]]></text>
			</staticText>
			<image onErrorType="Blank">
				<reportElement x="193" y="147" width="75" height="70" uuid="3565348a-9985-45db-95c1-a2b9d8f1c2bc"/>
				<imageExpression><![CDATA[$P{Imagensubordinado}]]></imageExpression>
			</image>
			<rectangle>
				<reportElement mode="Transparent" x="0" y="140" width="270" height="190" uuid="641806e6-97a3-4606-bef1-e2f4df342455"/>
			</rectangle>
			<staticText>
				<reportElement x="5" y="55" width="280" height="30" uuid="408b1334-8972-4730-976f-1b4374d55065"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[Acuerdo de la evaluación]]></text>
			</staticText>
			<textField>
				<reportElement x="5" y="100" width="264" height="30" uuid="bdead0ac-5dae-4096-b754-1067f4b93de1"/>
				<textFieldExpression><![CDATA["Periodo: "+$F{periodoevaluacion}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="294" y="100" width="258" height="30" uuid="94944802-4327-4b03-9978-5b4de2bfbc54"/>
				<textFieldExpression><![CDATA["Ciclo: "+$F{Ciclo}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="20" y="172" width="40" height="20" uuid="90d8396d-0de1-4e43-a0b4-e9f8a1323fa6"/>
				<text><![CDATA[Nombre:]]></text>
			</staticText>
			<staticText>
				<reportElement x="20" y="202" width="30" height="20" uuid="66f26401-7f9e-4169-9027-8ff2732f5b3e"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Nivel:]]></text>
			</staticText>
			<staticText>
				<reportElement x="20" y="242" width="80" height="20" uuid="d6787901-d726-4f92-8abd-a77182640a8e"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Departamento]]></text>
			</staticText>
			<textField isStretchWithOverflow="true">
				<reportElement x="60" y="172" width="130" height="28" uuid="3c8373ae-a258-4ecc-b053-b16751e0c6d0"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nombresubordinado}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="20" y="280" width="40" height="20" uuid="10546871-f792-4355-b7bb-f0d61308c058"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Puesto:]]></text>
			</staticText>
			<rectangle>
				<reportElement mode="Transparent" x="282" y="140" width="272" height="190" uuid="c6b0a8d3-4ef7-4420-98fc-23aec0c8823a"/>
			</rectangle>
			<staticText>
				<reportElement x="310" y="150" width="130" height="20" uuid="91cbba7d-4f0a-4caf-bf2c-67f3ee9abe18"/>
				<text><![CDATA[Jefe]]></text>
			</staticText>
			<image onErrorType="Blank">
				<reportElement x="488" y="150" width="64" height="60" uuid="1cb5d342-36b8-46c6-ab8d-0d03ccdd1eda"/>
				<imageExpression><![CDATA[$P{Imagenjefe}]]></imageExpression>
			</image>
			<staticText>
				<reportElement x="310" y="172" width="40" height="20" uuid="0e57a993-0e0b-48a7-9897-a224cac60201"/>
				<text><![CDATA[Nombre:]]></text>
			</staticText>
			<staticText>
				<reportElement x="310" y="200" width="30" height="20" uuid="ec34de38-027e-4bb2-ac33-83eb5ba48aab"/>
				<text><![CDATA[Nivel:]]></text>
			</staticText>
			<staticText>
				<reportElement x="310" y="222" width="77" height="20" uuid="ee05b7c6-f54c-4cfc-93f2-626db2d5fb8a"/>
				<text><![CDATA[Departamento]]></text>
			</staticText>
			<textField isStretchWithOverflow="true">
				<reportElement x="340" y="200" width="130" height="20" uuid="edac9413-2dcc-4016-9485-0757442c0089"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[($F{Nivel} == null)? "":$F{Nivel}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="310" y="240" width="40" height="20" uuid="12fc6800-cd91-4107-8c7b-3f496ed9d852"/>
				<text><![CDATA[Puesto:]]></text>
			</staticText>
			<textField>
				<reportElement x="350" y="172" width="130" height="28" uuid="fc502f8d-2eb7-4ded-8c71-c1b9cf630c23"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nombrejefe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="350" y="240" width="130" height="20" uuid="3d1276f6-1c47-409e-b91f-0158e847ceb9"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Puestojefe}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="387" y="222" width="130" height="20" uuid="d4ab0aa2-4179-489d-b7c5-5dc7a5ce4e0a"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{Departamentojefe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="60" y="280" width="184" height="30" uuid="99c218b5-6ca8-4284-a370-f832b8dad4eb"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{listapuesto}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="100" y="242" width="154" height="34" uuid="be96bee9-1d59-4815-96cb-63bb10990a12"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{listadepartamento}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="50" y="202" width="130" height="38" uuid="3b095481-e6ff-4a49-b269-b0cb0d42656f"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[($F{listanivel} == null)? "" : $F{listanivel}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="5" y="35" width="180" height="20" uuid="8c9972ef-9be5-4418-afce-a4e56cd83083"/>
				<textFieldExpression><![CDATA[$P{nombreinstituto}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<detail>
		<band height="156" splitType="Stretch">
			<textField isStretchWithOverflow="true">
				<reportElement x="0" y="70" width="554" height="60" uuid="37ab7d62-a3b4-4e8f-abd4-363513b866a7"/>
				<textElement markup="html">
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{TextoAcuerdo}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="10" width="554" height="30" uuid="66c96d8b-4721-4b42-a6f9-869b3cba6228"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="10"/>
				</textElement>
				<text><![CDATA[Acta de acuerdo y compromiso]]></text>
			</staticText>
			<textField pattern="MMM d, yyyy h:mm:ss a">
				<reportElement x="454" y="40" width="100" height="30" uuid="a9a2cf4a-b8ec-40bb-82b1-55e5305dc456"/>
				<textElement>
					<font size="9"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{FechaTermino}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="65">
			<textField>
				<reportElement x="180" y="10" width="100" height="30" uuid="a7da8fda-cc96-4b8e-ab65-e72844f9d73c"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="280" y="10" width="100" height="30" uuid="a0b24f28-a2b3-44ab-952e-c4348c2d11a8"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[" / " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<lastPageFooter>
		<band height="173">
			<textField isStretchWithOverflow="true">
				<reportElement x="0" y="12" width="204" height="20" uuid="059a7528-4267-49a8-a492-f9ddc16a11da"/>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{nombresubordinado}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="52" width="204" height="20" uuid="c28092e0-9be2-450c-8f09-d173b1ca2a97"/>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[(( $F{FirmaSubordinado})? "Firmado": "Pendiente firma")]]></textFieldExpression>
			</textField>
			<textField pattern="MMM d, yyyy h:mm:ss a">
				<reportElement x="0" y="72" width="204" height="20" uuid="c35c6638-b610-4bf9-a9a9-8db799d5e9eb"/>
				<textElement textAlignment="Left" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{FechaFirmaSubordinado}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="350" y="12" width="204" height="20" uuid="3d80703f-a478-42e0-902b-0567e344fb6c"/>
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{nombrejefe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="350" y="32" width="204" height="20" uuid="28850875-1a02-4d75-828e-446b4198dda6"/>
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{Puestojefe}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="350" y="52" width="204" height="20" uuid="accf71b8-b1b0-484d-9bab-92736b67be13"/>
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[(($F{FirmaJefe})? "Firmado": "Pendiente firma")]]></textFieldExpression>
			</textField>
			<textField pattern="MMM d, yyyy h:mm:ss a">
				<reportElement x="350" y="72" width="204" height="20" uuid="98533215-54f4-432a-937f-8ce6b01c4bac"/>
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{FechaFirmaJefe}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="0" y="32" width="280" height="20" uuid="b2c610fe-08ff-4bf7-9bea-e5713c928bf4"/>
				<textFieldExpression><![CDATA[$F{listapuesto}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="180" y="130" width="100" height="30" uuid="52265f05-29e4-4af5-a169-a0081f4549e5"/>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="280" y="130" width="100" height="30" uuid="460d15ef-3695-493c-9ca0-393a12d11171"/>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[" / " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</lastPageFooter>
</jasperReport>
