<?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="no_planilla_nom_consolidado_mes" language="groovy" pageWidth="612" pageHeight="792" whenNoDataType="NoDataSection" columnWidth="572" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="2.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/nomina/no_planilla_nom_consolidado_mes"/>
	<property name="ireport.jasperserver.url" value="http://3.22.202.200:8080/jasperserver/services/repository"/>
	<parameter name="id_periodo_filtro" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="comando" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="whereClasePlanta" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[" "]]></defaultValueExpression>
	</parameter>
	<parameter name="desc_clase" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="wherePago" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[" "]]></defaultValueExpression>
	</parameter>
	<parameter name="tag_rete" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[BigDecimal.valueOf(0)]]></defaultValueExpression>
	</parameter>
	<parameter name="id_cen_op" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[BigDecimal.valueOf(0)]]></defaultValueExpression>
	</parameter>
	<parameter name="whereCenOp" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[" "]]></defaultValueExpression>
	</parameter>
	<parameter name="anho_mes_filtro" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[" "]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select

informe.id_tipo_concepto_org, informe.operador,
informe.tipcod,
informe.tipo,
informe.tipcod || ' - ' || informe.tipo as completo_tipo,
informe.codigo,
informe.descripcion,
SUM(informe.valor) as valor,
SUM(case when informe.operador = 1 then informe.valor else informe.valor * (-1) end) as valor_operador,
SUM(funcionarios.cantidad) as cantidad,
nvl( (
select max(cenop.nom_cen_op)
from centro_operacion cenop
where
1 = 1
and cenop.id_cen_op = $P{id_cen_op}
), 'CONSOLIDADO') as cen_op,
(
select distinct periodo.periodo
from no_periodo_v periodo
where periodo.id_periodo = $P{id_periodo_filtro}
) as periodo

from(

select id_periodo,tipcod,tipo,codigo,descripcion, sum(valor_liquidado) valor, id_tipo_concepto_org, operador
from(

        select tab0.* from(

select
liquida.id_periodo,tipo.codigo as tipcod,tipo.descripcion as tipo,
concep.codigo,concep.descripcion,liquida.valor_liquidado,liquida.num_doc, CONCEP.ID_TIPO_CONCEPTO_ORG, CONCEP.OPERADOR,
            tab5.id_cen_op

from no_liquida_nomina liquida
left join no_concep_nomina concep on concep.id_concep_nomina = liquida.id_concep_nomina and concep.pago_func = 1
left join no_tipo_concepto tipo on tipo.id_tipo_concepto = concep.id_tipo_concepto_org
left join (

          select nom.*,
          case when tab.num_doc is not null then 1 else 0 end as pago
          from no_nombramiento_v nom

          left join (select distinct
          pago.id_tipo_doc,
          pago.num_doc
          from no_pago_func pago
          where
          (select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro}) between TO_NUMBER(TO_CHAR(pago.fecha_activacion,'YYYYMM'))  and nvl(TO_NUMBER(TO_CHAR(pago.fecha_terminacion,'YYYYMM')), (select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro}))
          )tab
          on tab.id_tipo_doc = nom.id_tipo_doc and tab.num_doc = nom.num_doc

    )tab0
    on tab0.id_tipo_doc = liquida.id_tipo_doc and tab0.num_doc = liquida.num_doc


            left join NO_ESTADO_FUNC_V tab5 on
            tab5.id_tipo_doc = liquida.id_tipo_doc
            and tab5.num_doc = liquida.num_doc
            and tab5.periodo = liquida.id_periodo

where liquida.id_periodo in(select distinct id_periodo
from no_periodo_v periodo
where periodo.ANHO_MES =(select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro})) and tipo.id_tipo_concepto!=4
$P!{whereClasePlanta} $P!{wherePago}
--filtro func con retefuente - 20140710
and (
0 = $P{tag_rete}
or
liquida.num_doc in (select distinct tab.num_doc from no_liquida_nomina tab where tab.id_periodo in(select distinct id_periodo
from no_periodo_v periodo
where periodo.ANHO_MES =(select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro})) and tab.id_concep_nomina = (select no_param_concep.id_concep_rete from no_param_concep))
)

        )tab0

        where
        1 = 1
        $P!{whereCenOp}

)group by id_periodo,tipcod,tipo,codigo,descripcion, ID_TIPO_CONCEPTO_ORG, OPERADOR

)informe

left join(

    select concep.codigo,count(concep.num_doc) cantidad
    from (

        select tab0.* from(

            select
            concep.codigo,
            liquida.num_doc,
            tab5.id_cen_op

from no_liquida_nomina liquida
left join no_concep_nomina concep on concep.id_concep_nomina = liquida.id_concep_nomina and concep.pago_func = 1
left join no_tipo_concepto tipo on tipo.id_tipo_concepto = concep.id_tipo_concepto_org
left join (

          select nom.*,
          case when tab.num_doc is not null then 1 else 0 end as pago
          from no_nombramiento_v nom

          left join (select distinct
          pago.id_tipo_doc,
          pago.num_doc
          from no_pago_func pago
          where
          (select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro}) between TO_NUMBER(TO_CHAR(pago.fecha_activacion,'YYYYMM'))  and nvl(TO_NUMBER(TO_CHAR(pago.fecha_terminacion,'YYYYMM')), (select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro}))
          )tab
          on tab.id_tipo_doc = nom.id_tipo_doc and tab.num_doc = nom.num_doc

    )tab0
    on tab0.id_tipo_doc = liquida.id_tipo_doc and tab0.num_doc = liquida.num_doc

                    left join NO_ESTADO_FUNC_V tab5 on
                    tab5.id_tipo_doc = liquida.id_tipo_doc
                    and tab5.num_doc = liquida.num_doc
                    and tab5.periodo = liquida.id_periodo

where liquida.id_periodo in(select distinct id_periodo
from no_periodo_v periodo
where periodo.ANHO_MES =(select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro})) and tipo.id_tipo_concepto!=4
$P!{whereClasePlanta} $P!{wherePago}
--filtro func con retefuente - 20140710
and (
0 = $P{tag_rete}
or
liquida.num_doc in (select distinct tab.num_doc from no_liquida_nomina tab where tab.id_periodo in(select distinct id_periodo
from no_periodo_v periodo
where periodo.ANHO_MES =(select anho_mes from NO_PERIODO_V where id_periodo=$P{id_periodo_filtro})) and tab.id_concep_nomina = (select no_param_concep.id_concep_rete from no_param_concep))
)

        )tab0

        where
        1 = 1
        $P!{whereCenOp}

    )concep

    group by concep.codigo

)funcionarios on funcionarios.codigo = informe.codigo

group by
informe.id_tipo_concepto_org,
informe.tipcod,
informe.tipo,
informe.codigo,
informe.descripcion,
informe.operador

order by
id_tipo_concepto_org,
tipcod,
codigo]]>
	</queryString>
	<field name="ID_TIPO_CONCEPTO_ORG" class="java.math.BigDecimal"/>
	<field name="OPERADOR" class="java.math.BigDecimal"/>
	<field name="TIPCOD" class="java.lang.String"/>
	<field name="TIPO" class="java.lang.String"/>
	<field name="COMPLETO_TIPO" class="java.lang.String"/>
	<field name="CODIGO" class="java.lang.String"/>
	<field name="DESCRIPCION" class="java.lang.String"/>
	<field name="VALOR" class="java.math.BigDecimal"/>
	<field name="VALOR_OPERADOR" class="java.math.BigDecimal"/>
	<field name="CANTIDAD" class="java.math.BigDecimal"/>
	<field name="CEN_OP" class="java.lang.String"/>
	<field name="PERIODO" class="java.lang.String"/>
	<variable name="total_tipo" class="java.math.BigDecimal" resetType="Group" resetGroup="Tipo Periodo" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_OPERADOR}]]></variableExpression>
	</variable>
	<variable name="cantidad_tipo" class="java.math.BigDecimal" resetType="Group" resetGroup="Tipo Periodo" calculation="Sum">
		<variableExpression><![CDATA[$F{CANTIDAD}]]></variableExpression>
	</variable>
	<variable name="total_valor" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_OPERADOR}]]></variableExpression>
	</variable>
	<variable name="total_cantidad" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{CANTIDAD}]]></variableExpression>
	</variable>
	<group name="Tipo Periodo">
		<groupExpression><![CDATA[$F{ID_TIPO_CONCEPTO_ORG}]]></groupExpression>
		<groupHeader>
			<band height="12">
				<textField>
					<reportElement mode="Opaque" x="30" y="0" width="505" height="12" forecolor="#000000" backcolor="#D2D8E0"/>
					<box leftPadding="3">
						<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" rotation="None" markup="none">
						<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{TIPO}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="23">
				<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="true">
					<reportElement mode="Transparent" x="335" y="0" width="100" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
					<box 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="Right" verticalAlignment="Middle" rotation="None" markup="none">
						<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{total_tipo}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement mode="Opaque" x="30" y="0" width="305" height="12" backcolor="#D2D8E0"/>
					<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">
						<font size="8" isBold="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA["TOTAL "]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement mode="Opaque" x="435" y="0" width="100" height="12" backcolor="#D2D8E0"/>
					<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">
						<font size="8" isBold="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="100" splitType="Stretch">
			<staticText>
				<reportElement x="140" y="0" width="295" height="60"/>
				<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Sistema General de Nómina
Resúmen Devengados y Deducidos Consolidado por Mes]]></text>
			</staticText>
			<image onErrorType="Icon">
				<reportElement x="0" y="10" width="140" height="40"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:LogoEmpresa003.jpg"]]></imageExpression>
			</image>
			<staticText>
				<reportElement mode="Opaque" x="435" y="28" width="137" height="12" 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 pattern="dd-MMM-yyyy   hh:mm aaa">
				<reportElement x="435" y="40" width="137" height="12"/>
				<box rightPadding="3"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="140" y="60" width="295" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{PERIODO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="140" y="80" width="295" height="20" isRemoveLineWhenBlank="true"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[( $P{tag_rete} == 1
    ? "Funcionarios con Retefuente"
    : null
)]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="435" y="68" width="137" height="12" 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[Centro de Operación:]]></text>
			</staticText>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement x="435" y="80" width="137" height="20"/>
				<box rightPadding="3"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{CEN_OP}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="22" splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="12" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="140" y="0" width="195" height="12" forecolor="#000000" backcolor="#88C2F9"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[DESCRIPCIÓN]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="90" y="0" width="50" height="12" forecolor="#000000" backcolor="#88C2F9"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[CÓDIGO]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="335" y="0" width="100" height="12" forecolor="#000000" backcolor="#88C2F9"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[VALOR]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="435" y="0" width="100" height="12" forecolor="#000000" backcolor="#88C2F9"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[CANTIDAD]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="30" y="0" width="60" height="12" forecolor="#000000" backcolor="#88C2F9"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[OPERADOR]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="12" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="140" y="0" width="195" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<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 textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DESCRIPCION}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="90" y="0" width="50" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{CODIGO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="335" y="0" width="100" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<box 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="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="435" y="0" width="100" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{CANTIDAD}]]></textFieldExpression>
			</textField>
			<textField pattern="" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="30" y="0" width="60" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<box>
					<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" rotation="None" markup="none">
					<font fontName="SansSerif" size="7" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[( $F{OPERADOR} == 1
    ? "+"
    : "-"
)]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="14" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="24" splitType="Stretch">
			<textField>
				<reportElement mode="Opaque" x="229" y="12" width="89" 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>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="319" y="12" width="60" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<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.String"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="229" y="0" width="150" height="12" forecolor="#575757"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<text><![CDATA[Websafi - Nómina]]></text>
			</staticText>
		</band>
	</pageFooter>
	<summary>
		<band height="104" splitType="Stretch">
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Transparent" x="335" y="0" width="100" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<box 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="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="7" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{total_valor}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement mode="Opaque" x="30" y="0" width="305" height="12" backcolor="#D2D8E0"/>
				<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">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["TOTALES "]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement mode="Opaque" x="435" y="0" width="100" height="12" backcolor="#D2D8E0"/>
				<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">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[]]></textFieldExpression>
			</textField>
			<subreport>
				<reportElement stretchType="RelativeToBandHeight" x="23" y="30" width="250" height="62"/>
				<subreportParameter name="comando">
					<subreportParameterExpression><![CDATA[$P{comando}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression class="java.lang.String"><![CDATA["repo:firmas1"]]></subreportExpression>
			</subreport>
			<subreport>
				<reportElement stretchType="RelativeToTallestObject" x="302" y="30" width="250" height="62"/>
				<subreportParameter name="comando">
					<subreportParameterExpression><![CDATA[$P{comando}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
			</subreport>
		</band>
	</summary>
	<noData>
		<band height="20">
			<staticText>
				<reportElement x="0" y="0" width="572" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[No hay objetos a mostrar.]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
