<?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="codigo_barras" pageWidth="284" pageHeight="86" orientation="Landscape" columnWidth="268" leftMargin="8" rightMargin="8" topMargin="8" bottomMargin="0">
	<property name="ireport.zoom" value="2.357947691000003"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/inventario/codigo_barras45mm"/>
	<property name="ireport.jasperserver.url" value="http://localhost:18090/jasperserver/services/repository"/>
	<parameter name="valor_ini" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="valor_fin" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select * from(
select rownum as rn,  lpad(n,6,0) as cod1, lpad(n+1,6,0) as cod2 from( select rownum n from dual connect by level <= $P{valor_fin}) where n >=  $P{valor_ini}
)
where
mod(rn, 2) = 1]]>
	</queryString>
	<field name="RN" class="java.math.BigDecimal"/>
	<field name="COD1" class="java.lang.String"/>
	<field name="COD2" class="java.lang.String"/>
	<detail>
		<band height="78" splitType="Stretch">
			<componentElement>
				<reportElement x="91" y="37" width="36" height="33"/>
				<jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="bottom">
					<jr:codeExpression><![CDATA[$F{COD1}]]></jr:codeExpression>
				</jr:DataMatrix>
			</componentElement>
			<componentElement>
				<reportElement x="228" y="37" width="35" height="33"/>
				<jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" textPosition="bottom">
					<jr:codeExpression><![CDATA[$F{COD2}]]></jr:codeExpression>
				</jr:DataMatrix>
			</componentElement>
			<textField>
				<reportElement x="138" y="57" width="52" height="20"/>
				<textElement>
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{COD2}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="57" width="52" height="20"/>
				<textElement>
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{COD1}]]></textFieldExpression>
			</textField>
			<image>
				<reportElement x="0" y="25" width="78" height="31"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:logo_vertical"]]></imageExpression>
			</image>
			<image>
				<reportElement x="137" y="26" width="78" height="31"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:logo_vertical"]]></imageExpression>
			</image>
		</band>
	</detail>
</jasperReport>
