<?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="barcodesheet" columnCount="5" printOrder="Horizontal" pageWidth="595" pageHeight="841" columnWidth="114" leftMargin="11" rightMargin="11" topMargin="31" bottomMargin="31" uuid="4d71c84d-61d4-4e4b-bf7b-18b390b64bc1">
	<property name="ireport.scriptlethandling" value="0"/>
	<property name="ireport.encoding" value="UTF-8"/>
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="CODE" class="java.lang.String"/>
	<field name="CODETYPE" class="java.lang.String"/>
	<field name="NAME" class="java.lang.String"/>
	<sortField name="NAME"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="50" splitType="Stretch">
			<elementGroup/>
			<textField>
				<reportElement x="0" y="30" width="113" height="20" uuid="df4e7476-bcb4-4804-bf23-806190bff70e"/>
				<textElement textAlignment="Center"/>
				<textFieldExpression><![CDATA[$F{CODE}]]></textFieldExpression>
			</textField>
			<image scaleImage="RetainShape" hAlign="Center" vAlign="Bottom">
				<reportElement key="image-1" x="0" y="0" width="113" height="30" uuid="bdf0fb1f-66e5-4bb6-b49b-d5f95329cbc6"/>
				<imageExpression><![CDATA[($F{CODETYPE}.equalsIgnoreCase("EAN-13") ? com.unicenta.pos.util.BarcodeImage.getBarcodeEAN13($F{CODE}) :
    ($F{CODETYPE}.equalsIgnoreCase("EAN-8") ? com.unicenta.pos.util.BarcodeImage.getBarcodeEAN8($F{CODE}) :
        ($F{CODETYPE}.equalsIgnoreCase("UPC-A") ? com.unicenta.pos.util.BarcodeImage.getBarcodeUPCA($F{CODE}) :
            ($F{CODETYPE}.equalsIgnoreCase("UPC-E") ? com.unicenta.pos.util.BarcodeImage.getBarcodeUPCE($F{CODE}) :
                ($F{CODETYPE}.equalsIgnoreCase("CODE128") ? com.unicenta.pos.util.BarcodeImage.getBarcode128($F{CODE}) :
                    com.unicenta.pos.util.BarcodeImage.getBarcodeUPCE($F{CODE})
                )
            )
        )
    )
)]]></imageExpression>
			</image>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
