<?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="Libro_diario_oficial_consol" language="groovy" pageWidth="792" pageHeight="612" orientation="Landscape" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.7715610000000022"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="id_cia" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_vigencia" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_periodo_contable" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_cen_op" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="nom_periodo" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="nom_cen_op" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["/home/lavila/reports-dev/Libro_diario/"]]></defaultValueExpression>
	</parameter>
	<parameter name="folio" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[1]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select * from dual]]>
	</queryString>
	<field name="DUMMY" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="80" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="603" y="40" width="150" height="18" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Consolidado]]></text>
			</staticText>
			<image>
				<reportElement x="1" y="10" width="140" height="40"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:LogoEmpresa003.jpg"]]></imageExpression>
			</image>
			<staticText>
				<reportElement x="142" y="0" width="460" height="40"/>
				<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Sistema de Contabilidad
Libro diario oficial]]></text>
			</staticText>
			<textField>
				<reportElement x="142" y="40" width="460" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Periodo: "+$P{nom_periodo}+" de "+$P{id_vigencia}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="613" y="22" width="99" 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[Folio  LDO:]]></text>
			</staticText>
			<textField pattern="dd-MMM-yyyy   hh:mm aaa">
				<reportElement mode="Opaque" x="712" y="22" width="40" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{folio}+$V{PAGE_NUMBER}-1]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<subreport>
				<reportElement x="0" y="0" width="752" height="16"/>
				<subreportParameter name="SUBREPORT_DIR"/>
				<subreportParameter name="id_vigencia">
					<subreportParameterExpression><![CDATA[$P{id_vigencia}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="id_periodo_contable">
					<subreportParameterExpression><![CDATA[$P{id_periodo_contable}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="id_cia">
					<subreportParameterExpression><![CDATA[$P{id_cia}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="nom_periodo">
					<subreportParameterExpression><![CDATA[$P{nom_periodo}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression class="java.lang.String"><![CDATA["repo:Libro_diario_oficial_subc_consol"]]></subreportExpression>
			</subreport>
		</band>
		<band height="25">
			<subreport>
				<reportElement x="0" y="0" width="752" height="16"/>
				<subreportParameter name="whereTipComp"/>
				<subreportParameter name="SUBREPORT_DIR"/>
				<subreportParameter name="id_vigencia">
					<subreportParameterExpression><![CDATA[$P{id_vigencia}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="id_periodo_contable">
					<subreportParameterExpression><![CDATA[$P{id_periodo_contable}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="id_cia">
					<subreportParameterExpression><![CDATA[$P{id_cia}]]></subreportParameterExpression>
				</subreportParameter>
				<subreportParameter name="nom_periodo">
					<subreportParameterExpression><![CDATA[$P{nom_periodo}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression class="java.lang.String"><![CDATA["repo:Libro_diario_oficial_tipComp_consol"]]></subreportExpression>
			</subreport>
		</band>
		<band height="25">
			<subreport>
				<reportElement x="0" y="9" width="376" height="16" isRemoveLineWhenBlank="true"/>
				<subreportParameter name="comando_informe"/>
				<subreportParameter name="id_cia">
					<subreportParameterExpression><![CDATA[$P{id_cia}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression class="java.lang.String"><![CDATA["repo:Control_firmas_Comando_IZQ"]]></subreportExpression>
			</subreport>
			<subreport>
				<reportElement x="376" y="9" width="376" height="16" isRemoveLineWhenBlank="true"/>
				<subreportParameter name="comando_informe"/>
				<subreportParameter name="id_cia">
					<subreportParameterExpression><![CDATA[$P{id_cia}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression class="java.lang.String"><![CDATA["repo:Control_firmas_Comando_DER"]]></subreportExpression>
			</subreport>
		</band>
	</detail>
	<pageFooter>
		<band height="25" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="302" y="0" width="150" height="12" forecolor="#575757"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<text><![CDATA[Websafi - Contabilidad]]></text>
			</staticText>
			<textField>
				<reportElement mode="Opaque" x="302" 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="392" 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>
		</band>
	</pageFooter>
	<noData>
		<band height="20">
			<staticText>
				<reportElement x="1" y="0" width="752" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[No hay objetos a mostrar.]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
