<?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="consulta_inv_dv_tercero" pageWidth="1100" pageHeight="595" orientation="Landscape" columnWidth="1060" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="0.9090909090909105"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/inventario/in_general_devolutivos"/>
	<property name="ireport.jasperserver.url" value="http://192.168.2.43:8090/jasperserver/services/repository"/>
	<parameter name="vigencia" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_meses" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="whereCenOp" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereTercero" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereEstructura" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereEspacio" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereTipoAlmacenamiento" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereLinea" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereClase" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereCatalogo" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="whereCostoInicial" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="num_doc" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select

tab0.TIPO_RECURSO,
tab0.ID_VIGENCIA,
tab0.ID_MESES,
tab0.mes,
tab0.ID_ESPACIO,
tab0.ID_MAE_TER,
tab0.ID_TIPO_ALMACENAMIENTO,
tab0.ESTADO,

sum(nvl(tab0.COSTO_ACTUAL,0)) as COSTO_ACTUAL,
sum(nvl(tab0.COSTO_INICIAL,0)) as COSTO_INICIAL,
sum(nvl(tab0.VIDA_UTIL,0)) as VIDA_UTIL,

tab0.id_linea,
tab0.id_clase,
tab0.id_catalogo,

tab0.num_doc,
tab0.razon_soc,
tab0.codigo_elemento,
tab0.descripcion,
tab0.fecha_ingreso,
tab0.tipo_almacenamiento,
tab0.estructura,
tab0.espacio

from(

    select

    tab0.*

    from(

        SELECT

        'ANM' as TIPO_RECURSO,
        tab0.ID_VIGENCIA,
        tab0.ID_MESES,
        tab11.descripcion as mes,
        tab0.ID_INVENTARIO_DV,
        tab0.ID_CEN_OP,
        tab0.ID_ESPACIO,
        tab0.ID_MAE_TER,
        tab0.ID_TIPO_ALMACENAMIENTO,
        tab0.ESTADO,
        tab0.COSTO_ACTUAL,
        tab0.COORDENADA_X,
        tab0.COORDENADA_Y,
        tab0.DIAS_DEPRECIADOS,
        tab0.VALOR_DETERIORO,
        tab0.VALOR_RESIDUAL,
        tab0.VALOR_VALORACION,
        tab0.VALOR_AVALUO,
        tab0.VALOR_AJUSTE,
        tab0.AJUSTE_CH_CONVERGENCIA,
        tab0.COSTO_INICIAL,
        tab0.VIDA_UTIL,

        tab1.id_linea,
        tab1.id_clase,
        tab1.id_catalogo,

        tab7.num_doc,
        tab7.razon_soc,
        tab9.prefijo,
        tab9.nom_cen_op,
        tab1.codigo,
        tab10.codigo_elemento,
        tab10.desc_catalogo as descripcion,
        tab1.fecha_ingreso,
        uni.unidad,
        uni.descripcion as unidad_medida,
        tab8.descripcion as tipo_almacenamiento,
        tab6.nombre as estructura,
        tab5.descripcion as espacio,
        par.serie,
        par.plaqueta,
        par.placa,
        par.codigo_bar,
        par.nombre as nombre_parte,
        par.descripcion as tipo_parte

        FROM IN_SALDO_INVENTARIO_DV tab0

        JOIN IN_INVENTARIO_DV tab1 ON tab0.id_inventario_dv = tab1.id_inventario_dv
        JOIN MESES tab11 ON tab0.id_meses = tab11.id_meses
        JOIN IN_LINEA tab2 ON tab1.id_linea = tab2.id_linea
        JOIN IN_CODIGO_ELEMENTO_V tab10 ON tab1.id_linea = tab10.id_linea AND tab1.id_catalogo = tab10.id_catalogo AND tab1.id_clase = tab10.id_clase
        JOIN IN_CLASE tab3 ON tab1.id_linea = tab3.id_linea AND tab1.id_clase = tab3.id_clase
        JOIN IN_CATALOGO tab4 ON tab1.id_linea = tab4.id_linea AND tab1.id_clase = tab4.id_clase AND tab1.id_catalogo = tab4.id_catalogo
        join in_unidad_medida uni on uni.ID_UNIDAD_MEDIDA = tab4.ID_UNIDAD_MEDIDA
        JOIN IN_ESPACIO tab5 ON tab0.id_espacio = tab5.id_espacio
        JOIN IN_ESTRUCTURA tab6 ON tab5.id_estructura = tab6.id_estructura
        JOIN INTERCEROS_V tab7 ON tab0.id_mae_ter = tab7.id_mae_ter
        JOIN IN_TIPO_ALMACENAMIENTO tab8 ON tab0.id_tipo_almacenamiento = tab8.id_tipo_almacenamiento
        JOIN CENTRO_OPERACION tab9 ON tab0.id_cen_op = tab9.id_cen_op

        left join (
            select
            par.id_inventario_dv,
            listagg(par.serie, ',') within group (order by par.id_inventario_dv) as serie,
            listagg(par.plaqueta, ',') within group (order by par.id_inventario_dv) as plaqueta,
            listagg(par.placa, ',') within group (order by par.id_inventario_dv) as placa,
            listagg(par.codigo_bar, ',') within group (order by par.id_inventario_dv) as codigo_bar,
            listagg(parcla.nombre, ',') within group (order by par.id_inventario_dv) as nombre,
            listagg(parcla.descripcion, ',') within group (order by par.id_inventario_dv) as descripcion
            from in_partes_inventario par
            left join in_partes_clase parcla on parcla.id_partes_clase = par.id_partes_clase
            group by
            par.id_inventario_dv
        )par on par.id_inventario_dv = tab0.id_inventario_dv

        WHERE
        tab0.id_vigencia != '-1'
        AND tab0.id_vigencia = $P{vigencia}
        AND tab0.id_meses = $P{id_meses}

        union

        SELECT

        'SGR' as TIPO_RECURSO,
        tab0.ID_VIGENCIA,
        tab0.ID_MESES,
        tab11.descripcion as mes,
        tab0.ID_INVENTARIO_DV,
        tab0.ID_CEN_OP,
        tab0.ID_ESPACIO,
        tab0.ID_MAE_TER,
        tab0.ID_TIPO_ALMACENAMIENTO,
        tab0.ESTADO,
        tab0.COSTO_ACTUAL,
        tab0.COORDENADA_X,
        tab0.COORDENADA_Y,
        tab0.DIAS_DEPRECIADOS,
        tab0.VALOR_DETERIORO,
        tab0.VALOR_RESIDUAL,
        tab0.VALOR_VALORACION,
        tab0.VALOR_AVALUO,
        tab0.VALOR_AJUSTE,
        tab0.AJUSTE_CH_CONVERGENCIA,
        tab0.COSTO_INICIAL,
        tab0.VIDA_UTIL,

        tab1.id_linea,
        tab1.id_clase,
        tab1.id_catalogo,

        tab7.num_doc,
        tab7.razon_soc,
        tab9.prefijo,
        tab9.nom_cen_op,
        tab1.codigo,
        tab10.codigo_elemento,
        tab10.desc_catalogo as descripcion,
        tab1.fecha_ingreso,
        uni.unidad,
        uni.descripcion as unidad_medida,
        tab8.descripcion as tipo_almacenamiento,
        tab6.nombre as estructura,
        tab5.descripcion as espacio,
        par.serie,
        par.plaqueta,
        par.placa,
        par.codigo_bar,
        par.nombre as nombre_parte,
        par.descripcion as tipo_parte

        FROM IN_SALDO_INVENTARIO_DV@SGR.ANM.LOCAL tab0

        JOIN IN_INVENTARIO_DV@SGR.ANM.LOCAL tab1 ON tab0.id_inventario_dv = tab1.id_inventario_dv
        JOIN MESES@SGR.ANM.LOCAL tab11 ON tab0.id_meses = tab11.id_meses
        JOIN IN_LINEA@SGR.ANM.LOCAL tab2 ON tab1.id_linea = tab2.id_linea
        JOIN IN_CODIGO_ELEMENTO_V@SGR.ANM.LOCAL tab10 ON tab1.id_linea = tab10.id_linea AND tab1.id_catalogo = tab10.id_catalogo AND tab1.id_clase = tab10.id_clase
        JOIN IN_CLASE@SGR.ANM.LOCAL tab3 ON tab1.id_linea = tab3.id_linea AND tab1.id_clase = tab3.id_clase
        JOIN IN_CATALOGO@SGR.ANM.LOCAL tab4 ON tab1.id_linea = tab4.id_linea AND tab1.id_clase = tab4.id_clase AND tab1.id_catalogo = tab4.id_catalogo
        join in_unidad_medida@SGR.ANM.LOCAL uni on uni.ID_UNIDAD_MEDIDA = tab4.ID_UNIDAD_MEDIDA
        JOIN IN_ESPACIO@SGR.ANM.LOCAL tab5 ON tab0.id_espacio = tab5.id_espacio
        JOIN IN_ESTRUCTURA@SGR.ANM.LOCAL tab6 ON tab5.id_estructura = tab6.id_estructura
        JOIN INTERCEROS_V@SGR.ANM.LOCAL tab7 ON tab0.id_mae_ter = tab7.id_mae_ter
        JOIN IN_TIPO_ALMACENAMIENTO@SGR.ANM.LOCAL tab8 ON tab0.id_tipo_almacenamiento = tab8.id_tipo_almacenamiento
        JOIN CENTRO_OPERACION@SGR.ANM.LOCAL tab9 ON tab0.id_cen_op = tab9.id_cen_op

        left join (
            select
            par.id_inventario_dv,
            listagg(par.serie, ',') within group (order by par.id_inventario_dv) as serie,
            listagg(par.plaqueta, ',') within group (order by par.id_inventario_dv) as plaqueta,
            listagg(par.placa, ',') within group (order by par.id_inventario_dv) as placa,
            listagg(par.codigo_bar, ',') within group (order by par.id_inventario_dv) as codigo_bar,
            listagg(parcla.nombre, ',') within group (order by par.id_inventario_dv) as nombre,
            listagg(parcla.descripcion, ',') within group (order by par.id_inventario_dv) as descripcion
            from in_partes_inventario@SGR.ANM.LOCAL par
            left join in_partes_clase@SGR.ANM.LOCAL parcla on parcla.id_partes_clase = par.id_partes_clase
            group by
            par.id_inventario_dv
        )par on par.id_inventario_dv = tab0.id_inventario_dv

        WHERE
        tab0.id_vigencia != '-1'
        AND tab0.id_vigencia = $P{vigencia}
        AND tab0.id_meses = $P{id_meses}

    )tab0

    WHERE
    tab0.id_vigencia != '-1'
    AND tab0.estado = '1'
    AND tab0.num_doc = $P{num_doc}
    $P!{whereCenOp}
    $P!{whereLinea}
    $P!{whereClase}
    $P!{whereCatalogo}
    $P!{whereTipoAlmacenamiento}
    $P!{whereEspacio}
    $P!{whereEstructura}

)tab0

group by
tab0.TIPO_RECURSO,
tab0.ID_VIGENCIA,
tab0.ID_MESES,
tab0.mes,
tab0.ID_ESPACIO,
tab0.ID_MAE_TER,
tab0.ID_TIPO_ALMACENAMIENTO,
tab0.ESTADO,

tab0.id_linea,
tab0.id_clase,
tab0.id_catalogo,

tab0.num_doc,
tab0.razon_soc,
tab0.codigo_elemento,
tab0.descripcion,
tab0.fecha_ingreso,
tab0.tipo_almacenamiento,
tab0.estructura,
tab0.espacio

order by
tab0.num_doc,
tab0.tipo_recurso,
tab0.codigo_elemento]]>
	</queryString>
	<field name="TIPO_RECURSO" class="java.lang.String"/>
	<field name="ID_VIGENCIA" class="java.math.BigDecimal"/>
	<field name="ID_MESES" class="java.math.BigDecimal"/>
	<field name="MES" class="java.lang.String"/>
	<field name="ID_ESPACIO" class="java.math.BigDecimal"/>
	<field name="ID_MAE_TER" class="java.math.BigDecimal"/>
	<field name="ID_TIPO_ALMACENAMIENTO" class="java.math.BigDecimal"/>
	<field name="ESTADO" class="java.math.BigDecimal"/>
	<field name="COSTO_ACTUAL" class="java.math.BigDecimal"/>
	<field name="COSTO_INICIAL" class="java.math.BigDecimal"/>
	<field name="VIDA_UTIL" class="java.math.BigDecimal"/>
	<field name="ID_LINEA" class="java.math.BigDecimal"/>
	<field name="ID_CLASE" class="java.math.BigDecimal"/>
	<field name="ID_CATALOGO" class="java.math.BigDecimal"/>
	<field name="NUM_DOC" class="java.lang.String"/>
	<field name="RAZON_SOC" class="java.lang.String"/>
	<field name="CODIGO_ELEMENTO" class="java.lang.String"/>
	<field name="DESCRIPCION" class="java.lang.String"/>
	<field name="FECHA_INGRESO" class="java.sql.Timestamp"/>
	<field name="TIPO_ALMACENAMIENTO" class="java.lang.String"/>
	<field name="ESTRUCTURA" class="java.lang.String"/>
	<field name="ESPACIO" class="java.lang.String"/>
	<group name="Mae_Ter" isReprintHeaderOnEachPage="true">
		<groupExpression><![CDATA[$F{ID_MAE_TER}]]></groupExpression>
		<groupHeader>
			<band height="45">
				<printWhenExpression><![CDATA[$F{ID_VIGENCIA}!= null]]></printWhenExpression>
				<staticText>
					<reportElement mode="Opaque" x="0" y="0" width="100" height="18" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Documento  :]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="100" y="0" width="960" height="18"/>
					<box leftPadding="4" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="12"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{NUM_DOC}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="100" y="18" width="960" height="18"/>
					<box leftPadding="4" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font size="12"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{RAZON_SOC}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="0" y="18" width="100" height="18" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement verticalAlignment="Middle">
						<font size="12" isBold="true"/>
					</textElement>
					<text><![CDATA[Tercero  :]]></text>
				</staticText>
			</band>
		</groupHeader>
	</group>
	<group name="TIPO_RECURSO">
		<groupExpression><![CDATA[$F{TIPO_RECURSO}]]></groupExpression>
		<groupHeader>
			<band height="50">
				<staticText>
					<reportElement mode="Opaque" x="0" y="26" width="100" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Código Elemento]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="100" y="26" width="316" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Descripción Elemento]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="416" y="26" width="63" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Fecha Ingreso]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="669" y="26" width="130" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Estructura]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="799" y="26" width="131" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Espacio]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="930" y="26" width="130" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Costo Histórico]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="479" y="26" width="190" height="24" backcolor="#88C2F9"/>
					<box leftPadding="2" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Tipo Almacenamiento]]></text>
				</staticText>
				<textField>
					<reportElement mode="Opaque" x="0" y="0" width="1060" height="18" backcolor="#88C2F9"/>
					<box leftPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement verticalAlignment="Middle" markup="none">
						<font size="12" isBold="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["INVENTARIO DEVOLUTIVO " + $F{TIPO_RECURSO}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="98" splitType="Stretch">
			<textField pattern="dd/MM/yyyy h:mm a">
				<reportElement x="930" y="64" width="130" height="16"/>
				<box rightPadding="3"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="176" y="0" width="754" height="80"/>
				<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
					<font fontName="SansSerif" size="24" isBold="true"/>
				</textElement>
				<text><![CDATA[Control De Recursos Físicos
Consulta Inventarios Devolutivos ANM/SGR por Tercero]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="930" y="48" width="130" height="16" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Fecha de Impresión:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="176" y="80" width="754" height="18">
					<printWhenExpression><![CDATA[$F{ID_VIGENCIA}!= null]]></printWhenExpression>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.0"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.0"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Periodo de "+$F{MES}+" del "+$F{ID_VIGENCIA}]]></textFieldExpression>
			</textField>
			<image>
				<reportElement x="0" y="22" width="176" height="58"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:LogoEmpresa003.jpg"]]></imageExpression>
			</image>
		</band>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="21" splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="18" splitType="Stretch">
			<printWhenExpression><![CDATA[$F{ID_VIGENCIA}!= null]]></printWhenExpression>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="100" height="18"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{CODIGO_ELEMENTO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="100" y="0" width="316" height="18"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DESCRIPCION}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="416" y="0" width="63" height="18"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{FECHA_INGRESO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="669" y="0" width="130" height="18"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{ESTRUCTURA}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="$ #,##0.00" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="930" y="0" width="130" height="18"/>
				<box leftPadding="2" rightPadding="4">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{COSTO_INICIAL}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="479" y="0" width="190" height="18"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{TIPO_ALMACENAMIENTO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="799" y="0" width="131" height="18"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{ESPACIO}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch">
			<printWhenExpression><![CDATA[$F{ID_VIGENCIA}!= null]]></printWhenExpression>
		</band>
	</columnFooter>
	<pageFooter>
		<band height="24" splitType="Stretch">
			<printWhenExpression><![CDATA[$F{ID_VIGENCIA}!= null]]></printWhenExpression>
			<staticText>
				<reportElement mode="Opaque" x="446" y="0" width="173" height="12" forecolor="#575757"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="7"/>
				</textElement>
				<text><![CDATA[Websafi - Control De Recursos Físicos
]]></text>
			</staticText>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="555" y="12" width="64" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<box leftPadding="2"/>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement mode="Opaque" x="446" y="12" width="109" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Página "+$V{PAGE_NUMBER}+" de "]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="100" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement x="0" y="67" width="250" height="20"/>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{RAZON_SOC}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="0" y="87" width="250" height="13"/>
				<box leftPadding="5" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["CC/Nit: "+$F{NUM_DOC}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
