<?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="Kód a názov" pageWidth="595" pageHeight="842" columnWidth="511" leftMargin="42" rightMargin="42" topMargin="42" bottomMargin="42">
	<property name="ireport.zoom" value="1.6105100000000008"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<style name="Title" fontName="Arial" fontSize="18" isBold="true" pdfFontName="Times-Bold"/>
	<style name="SubTitle" forecolor="#000000" fontName="Arial" fontSize="10" isBold="true"/>
	<style name="Column header" forecolor="#FFFFFF" hAlign="Left" fontName="Arial" fontSize="8" isBold="true"/>
	<style name="Detail" fontName="Arial" fontSize="8"/>
	<style name="Row" mode="Opaque" forecolor="#FFFFFF" backcolor="#FFFFFF"/>
	<parameter name="PROGRAM" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="USER" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="Poznamka" class="java.lang.String"/>
	<field name="DarcekKod" class="java.lang.String"/>
	<field name="DarcekNazov" class="java.lang.String"/>
	<field name="DarcekCena" class="java.math.BigDecimal"/>
	<field name="Vystavil" class="java.lang.String"/>
	<field name="Vytlacil" class="java.lang.String"/>
	<field name="DodavatelNazov" class="java.lang.String"/>
	<field name="DodavatelInfo" class="java.lang.String"/>
	<field name="OdberatelNazov" class="java.lang.String"/>
	<field name="OdberatelXp" class="java.lang.String"/>
	<field name="Pokladnica" class="java.lang.String"/>
	<field name="Datum" class="java.util.Date"/>
	<field name="ZostatokBodov" class="java.math.BigDecimal"/>
	<field name="OdberatelKarta" class="java.lang.String"/>
	<field name="OdberatelAdresa" class="java.lang.String"/>
	<field name="OdberatelZlava" class="java.math.BigDecimal"/>
	<field name="OdberatelTelefon" class="java.lang.String"/>
	<field name="OdberatelEmail" class="java.lang.String"/>
	<field name="OdberatelPoznamka" class="java.lang.String"/>
	<pageHeader>
		<band height="59" splitType="Stretch">
			<staticText>
				<reportElement style="Title" x="0" y="0" width="511" height="22" forecolor="#000000"/>
				<box leftPadding="0"/>
				<textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="none">
					<font pdfFontName="Times-Roman"/>
				</textElement>
				<text><![CDATA[Objednávka darčeka]]></text>
			</staticText>
			<textField>
				<reportElement style="Detail" x="68" y="0" width="112" height="10"/>
				<textElement textAlignment="Left" verticalAlignment="Top">
					<font size="7" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{PROGRAM}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement style="Detail" x="381" y="0" width="115" height="10"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font size="7" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Strana "+$V{PAGE_NUMBER}+" z"]]></textFieldExpression>
			</textField>
			<textField pattern="dd.MM.yyyy HH:mm:ss">
				<reportElement style="Detail" x="0" y="0" width="68" height="10"/>
				<textElement textAlignment="Left" verticalAlignment="Top">
					<font size="7" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement style="Detail" x="496" y="0" width="15" height="10"/>
				<textElement textAlignment="Left" verticalAlignment="Top">
					<font size="7" isBold="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["  "+$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement style="Detail" x="349" y="23" width="32" height="10"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
				</textElement>
				<text><![CDATA[Vystavil:]]></text>
			</staticText>
			<staticText>
				<reportElement style="Detail" x="349" y="33" width="32" height="10"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
				</textElement>
				<text><![CDATA[Vytlačil:]]></text>
			</staticText>
			<staticText>
				<reportElement style="Detail" x="0" y="23" width="45" height="10"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
				</textElement>
				<text><![CDATA[Pokladnica:]]></text>
			</staticText>
			<staticText>
				<reportElement style="Detail" x="0" y="33" width="45" height="10"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
				</textElement>
				<text><![CDATA[Dátum:]]></text>
			</staticText>
			<textField isBlankWhenNull="false">
				<reportElement key="" style="Detail" x="45" y="23" width="88" height="10"/>
				<textElement>
					<font isBold="true" isItalic="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{Pokladnica}]]></textFieldExpression>
			</textField>
			<textField pattern="dd.MM.yyyy" isBlankWhenNull="false">
				<reportElement key="" style="Detail" x="45" y="33" width="88" height="10"/>
				<textElement>
					<font isBold="true" isItalic="false"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{Datum}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="false">
				<reportElement key="" style="Detail" x="381" y="23" width="130" height="10"/>
				<textElement>
					<font isBold="true" isItalic="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{Vystavil}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="false">
				<reportElement key="" style="Detail" x="381" y="33" width="130" height="10"/>
				<textElement>
					<font isBold="true" isItalic="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{USER}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="61" splitType="Stretch">
			<printWhenExpression><![CDATA[$V{REPORT_COUNT}==1]]></printWhenExpression>
			<frame>
				<reportElement stretchType="RelativeToTallestObject" x="1" y="2" width="243" height="55"/>
				<box bottomPadding="0">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<staticText>
					<reportElement style="Detail" x="5" y="2" width="89" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
					</textElement>
					<text><![CDATA[Dodávateľ:]]></text>
				</staticText>
				<image scaleImage="RealHeight" onErrorType="Blank">
					<reportElement positionType="Float" x="5" y="27" width="89" height="11"/>
					<box topPadding="3" rightPadding="3"/>
					<imageExpression class="java.lang.String"><![CDATA["../custom/logo_print.png"]]></imageExpression>
				</image>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement key="" style="SubTitle" x="5" y="14" width="238" height="12"/>
					<textElement>
						<font isItalic="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DodavatelNazov}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement key="" style="Detail" positionType="Float" x="94" y="27" width="149" height="25"/>
					<textElement>
						<font size="9" isItalic="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DodavatelInfo}]]></textFieldExpression>
				</textField>
			</frame>
			<frame>
				<reportElement stretchType="RelativeToTallestObject" x="275" y="2" width="236" height="55"/>
				<box bottomPadding="0">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<staticText>
					<reportElement style="Detail" x="5" y="2" width="89" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
					</textElement>
					<text><![CDATA[Odberateľ:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement key="" style="SubTitle" positionType="Float" x="5" y="15" width="231" height="12"/>
					<textElement>
						<font isItalic="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{OdberatelNazov}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement key="" style="SubTitle" positionType="Float" x="17" y="28" width="219" height="12"/>
					<textElement>
						<font size="9" isBold="false" isItalic="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[($F{OdberatelKarta}==null?"":"Karta: "+$F{OdberatelKarta}+"\n")+
($F{ZostatokBodov}==null?"":"\nZostatok bodov: "+$F{ZostatokBodov})]]></textFieldExpression>
				</textField>
			</frame>
		</band>
		<band height="14">
			<printWhenExpression><![CDATA[$V{REPORT_COUNT}==1]]></printWhenExpression>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement key="" style="Detail" x="1" y="0" width="511" height="11" isRemoveLineWhenBlank="true"/>
				<textElement>
					<font isItalic="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{Poznamka}]]></textFieldExpression>
			</textField>
		</band>
		<band height="33">
			<frame>
				<reportElement stretchType="RelativeToTallestObject" x="1" y="1" width="510" height="28"/>
				<box bottomPadding="0">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<staticText>
					<reportElement style="Detail" x="5" y="2" width="89" height="10"/>
					<textElement>
						<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
					</textElement>
					<text><![CDATA[Darček:]]></text>
				</staticText>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement key="" style="SubTitle" x="5" y="14" width="505" height="12"/>
					<textElement>
						<font isItalic="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[($F{DarcekKod}+" - "+$F{DarcekNazov}+", cena "+$F{DarcekCena}).trim()]]></textFieldExpression>
				</textField>
			</frame>
		</band>
	</detail>
	<summary>
		<band height="188" splitType="Stretch">
			<staticText>
				<reportElement style="Detail" x="280" y="5" width="225" height="20"/>
				<textElement markup="styled">
					<font isItalic="true"/>
				</textElement>
				<text><![CDATA[Za odberateľa *<br/>(podpis):]]></text>
			</staticText>
			<staticText>
				<reportElement style="Detail" x="6" y="5" width="89" height="20"/>
				<textElement markup="styled">
					<font isItalic="true"/>
				</textElement>
				<text><![CDATA[Za dodávateľa<br/>(pečiatka a podpis):]]></text>
			</staticText>
			<staticText>
				<reportElement style="Detail" x="280" y="148" width="89" height="16"/>
				<textElement>
					<font fontName="Arial" size="8" isBold="false" isItalic="true"/>
				</textElement>
				<text><![CDATA[Dátum a čas prevzatia:]]></text>
			</staticText>
			<staticText>
				<reportElement style="Detail" x="280" y="164" width="89" height="20"/>
				<textElement markup="styled">
					<font isItalic="true"/>
				</textElement>
				<text><![CDATA[Za odberateľa prevzal<br/>(podpis):]]></text>
			</staticText>
			<line>
				<reportElement x="1" y="136" width="510" height="1"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement x="6" y="93" width="499" height="43"/>
				<textElement textAlignment="Justified">
					<font size="8" isItalic="true"/>
				</textElement>
				<text><![CDATA[* Svojím podpisom potvrdzujem súhlas s pravidlami vernostného programu, a zároveň potvrdzujem výber darčeka.

Podmienkou pre prevzatie vybraného darčeka je predloženie podpísaného dokladu Objednávka darčeka na predajni Dom farieb. Vybraný darček bude dostupný na predajni do 4 týždňov od podpisu Objednávky darčeka.

]]></text>
			</staticText>
		</band>
	</summary>
</jasperReport>
