<?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="order" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="001cec2c-ccd4-45df-b6f6-2d28cf67ed6a">
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["/home/pepa/Dokumenty/dev/java/isspst/"]]></defaultValueExpression>
	</parameter>
	<parameter name="P_STAMP" class="java.lang.String"/>
	<parameter name="SET_PRICES" class="java.lang.Boolean">
		<defaultValueExpression><![CDATA[true]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="address" class="info.bukova.isspst.data.AddressEmb"/>
	<field name="deliveryAddress" class="info.bukova.isspst.data.AddressEmb"/>
	<field name="suplier" class="info.bukova.isspst.data.AddressEmb"/>
	<field name="total" class="java.math.BigDecimal"/>
	<field name="orderDate" class="java.util.Date"/>
	<field name="numser" class="java.lang.String"/>
	<field name="description" class="java.lang.String"/>
	<field name="deliveryType" class="java.lang.String"/>
	<field name="deliveryDate" class="java.util.Date"/>
	<field name="address.city" class="java.lang.String"/>
	<field name="address.company" class="java.lang.String"/>
	<field name="address.contactName" class="java.lang.String"/>
	<field name="address.department" class="java.lang.String"/>
	<field name="address.description" class="java.lang.String"/>
	<field name="address.dic" class="java.lang.String"/>
	<field name="address.email" class="java.lang.String"/>
	<field name="address.houseNumber" class="java.lang.String"/>
	<field name="address.ic" class="java.lang.Long"/>
	<field name="address.phone" class="java.lang.String"/>
	<field name="address.state" class="java.lang.String"/>
	<field name="address.street" class="java.lang.String"/>
	<field name="address.web" class="java.lang.String"/>
	<field name="address.zipCode" class="java.lang.String"/>
	<field name="deliveryAddress.city" class="java.lang.String"/>
	<field name="deliveryAddress.company" class="java.lang.String"/>
	<field name="deliveryAddress.contactName" class="java.lang.String"/>
	<field name="deliveryAddress.department" class="java.lang.String"/>
	<field name="deliveryAddress.description" class="java.lang.String"/>
	<field name="deliveryAddress.dic" class="java.lang.String"/>
	<field name="deliveryAddress.email" class="java.lang.String"/>
	<field name="deliveryAddress.houseNumber" class="java.lang.String"/>
	<field name="deliveryAddress.ic" class="java.lang.Long"/>
	<field name="deliveryAddress.id" class="java.lang.Integer"/>
	<field name="deliveryAddress.phone" class="java.lang.String"/>
	<field name="deliveryAddress.state" class="java.lang.String"/>
	<field name="deliveryAddress.street" class="java.lang.String"/>
	<field name="deliveryAddress.web" class="java.lang.String"/>
	<field name="deliveryAddress.zipCode" class="java.lang.String"/>
	<field name="suplier.city" class="java.lang.String"/>
	<field name="suplier.company" class="java.lang.String"/>
	<field name="suplier.contactName" class="java.lang.String"/>
	<field name="suplier.department" class="java.lang.String"/>
	<field name="suplier.description" class="java.lang.String"/>
	<field name="suplier.dic" class="java.lang.String"/>
	<field name="suplier.email" class="java.lang.String"/>
	<field name="suplier.houseNumber" class="java.lang.String"/>
	<field name="suplier.ic" class="java.lang.Long"/>
	<field name="suplier.id" class="java.lang.Integer"/>
	<field name="suplier.phone" class="java.lang.String"/>
	<field name="suplier.state" class="java.lang.String"/>
	<field name="suplier.street" class="java.lang.String"/>
	<field name="suplier.web" class="java.lang.String"/>
	<field name="suplier.zipCode" class="java.lang.String"/>
	<field name="items" class="java.util.List"/>
	<field name="ownedBy" class="info.bukova.isspst.data.User"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="216" splitType="Stretch">
			<staticText>
				<reportElement uuid="e33386cf-55fb-4e87-9bc4-1305da3e3b4f" x="0" y="0" width="60" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[Dodavatel]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement uuid="5fdef08a-c765-49f2-b586-62cfc465d066" x="10" y="30" width="264" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{suplier.company}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="d0e9d0d0-3e48-4a55-9939-4a319a4e7fc7" x="10" y="50" width="264" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[($F{suplier.street} != null ? $F{suplier.street} : "") + " " + ($F{suplier.houseNumber} != null ? $F{suplier.houseNumber} : "")]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="6299a1b9-3f35-4338-a0a2-67833d3783e7" x="10" y="70" width="68" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{suplier.zipCode}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="768dc3f2-630d-449c-b24e-075e55ce6e26" x="78" y="70" width="196" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{suplier.city}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="f51305e3-eb73-4921-842e-b0af78c3766a" x="326" y="0" width="135" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[OBJEDNÁVKA číslo:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="b9128111-d873-4674-8624-83bb3cac6867" x="471" y="0" width="98" height="20"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numser}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="0c2f1226-a8cf-48f6-8283-4769e26c0fc2" x="298" y="30" width="40" height="20"/>
				<textElement/>
				<text><![CDATA[Dne:]]></text>
			</staticText>
			<textField pattern="dd. MM. yyyy">
				<reportElement uuid="c4b7d5e4-2b65-4cc6-a81e-2119bada96c8" x="338" y="30" width="65" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{orderDate}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="bd24bfca-4fe3-4767-b064-5c989192ade1" x="298" y="50" width="40" height="20"/>
				<textElement/>
				<text><![CDATA[IČ:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="585941f3-ff17-42ab-8f66-5660a2da5a2b" x="338" y="50" width="100" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{address.ic}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="df149b1d-adbf-4ce4-95e1-c3b4b24d37ec" x="298" y="70" width="100" height="20"/>
				<textElement/>
				<text><![CDATA[Bankovní spojení:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="6b0bf145-0455-4e40-8dce-f833b6b17145" x="298" y="90" width="100" height="20"/>
				<textElement/>
				<text><![CDATA[Číslo účtu:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="e3e1438a-3374-4494-bdb2-5c2ffbb020cc" x="438" y="50" width="33" height="20"/>
				<textElement/>
				<text><![CDATA[DIČ:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="af46f632-d215-48e3-a9a7-00ebac37f045" x="471" y="50" width="100" height="20"/>
				<textElement/>
				<textFieldExpression><![CDATA[$F{address.dic}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="9cf02ba6-cc41-4636-83b2-1fe06648c893" x="0" y="110" width="572" height="1"/>
			</line>
			<staticText>
				<reportElement uuid="9399a213-0a68-474c-afeb-d336318a6762" x="298" y="111" width="100" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Fakturujte:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="198a61ac-0655-4d61-b372-85ddd57c5ee8" x="298" y="135" width="263" height="20"/>
				<textElement>
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{address.company}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="41f32f59-9642-4c81-acad-6e99a32e6f8d" x="298" y="155" width="263" height="20"/>
				<textElement>
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{address.street} + " " + $F{address.houseNumber}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="8a868e1e-11da-45b7-89d9-790f5363e7f3" x="298" y="175" width="66" height="20"/>
				<textElement>
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{address.zipCode}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="de5ffe57-60ee-44cb-9ac2-8f214c691260" x="364" y="175" width="197" height="20"/>
				<textElement>
					<font size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{address.city}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="8788d8c6-4927-4ee7-ab69-2e5ab625e4c9" x="10" y="111" width="100" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Dodejte:]]></text>
			</staticText>
			<textField>
				<reportElement uuid="1dc1ad96-e7df-4ee4-a411-1f780313a099" x="10" y="135" width="264" height="20"/>
				<textElement>
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deliveryAddress.company}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="0384225e-7f42-4255-b9fc-8544d1bcb8e8" x="10" y="155" width="264" height="20"/>
				<textElement>
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deliveryAddress.street} + " " + $F{deliveryAddress.houseNumber}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="e4e95d7d-cda7-46ef-9cc1-5efa42909341" x="10" y="175" width="66" height="20"/>
				<textElement>
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deliveryAddress.zipCode}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="e2de64f4-a4bb-4356-9b27-d04eef2020b7" x="78" y="175" width="196" height="20"/>
				<textElement>
					<font isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deliveryAddress.city}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="1a276641-e1e9-4639-b0a7-f0ac1b8cb03b" x="0" y="195" width="572" height="1"/>
			</line>
			<staticText>
				<reportElement uuid="3cdf19f5-cbad-4de1-9c7e-9cd89466ad07" x="10" y="195" width="83" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Termín dodání:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="d5ee95b9-0c7d-4f92-af1a-58100aa7c313" x="298" y="195" width="90" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Způsob dopravy:]]></text>
			</staticText>
			<textField pattern="dd. MM. yyyy" isBlankWhenNull="true">
				<reportElement uuid="3e101c47-cc46-4174-9209-ac566d486bfa" x="93" y="195" width="100" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{deliveryDate}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="5da8f5e3-f03d-48ed-becd-63564f646da6" x="388" y="195" width="173" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{deliveryType}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="70772b35-a893-4ee7-90e1-ba7138098f96" x="0" y="215" width="572" height="1"/>
			</line>
			<line>
				<reportElement uuid="a2a88073-41e3-4910-bc0b-e2bbd5201e75" x="0" y="0" width="572" height="1"/>
			</line>
			<line>
				<reportElement uuid="be1cb78f-455a-460f-b9c1-67cb0fff1f00" x="572" y="0" width="1" height="216"/>
			</line>
			<line>
				<reportElement uuid="020db8bd-8369-4508-ba8a-5ea3d5893ed5" x="-1" y="0" width="1" height="216"/>
			</line>
			<line>
				<reportElement uuid="4639f6f0-c11f-4d7a-8227-9b85989e0b96" x="285" y="1" width="1" height="109"/>
			</line>
			<line>
				<reportElement uuid="a398c2d7-8d45-4631-afd6-471c92b3888d" x="285" y="196" width="1" height="19"/>
			</line>
		</band>
	</pageHeader>
	<detail>
		<band height="63" splitType="Stretch">
			<subreport>
				<reportElement uuid="f584d121-262a-4149-bd05-b8c6bb15d93a" x="-1" y="0" width="574" height="63"/>
				<subreportParameter name="SET_PRICES">
					<subreportParameterExpression><![CDATA[$P{SET_PRICES}]]></subreportParameterExpression>
				</subreportParameter>
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{items})]]></dataSourceExpression>
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "orderItems.jasper"]]></subreportExpression>
			</subreport>
		</band>
	</detail>
	<summary>
		<band height="101" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement uuid="751eb3dc-1e2d-4bd9-9d09-a307aaf383b9" x="10" y="0" width="551" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="aab64506-6f8d-4b0f-82d7-345dc7317c30" x="10" y="36" width="68" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Vyřizuje:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="86f65923-4a94-4988-b32f-8f1632e90e39" x="10" y="56" width="68" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Útvar:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="45feb76f-4106-47fd-8cdd-7b324cb9937e" x="10" y="76" width="68" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Telefon, fax:]]></text>
			</staticText>
			<line>
				<reportElement uuid="7ff79ca7-d5d4-4510-8a0d-cdc759626c6b" x="403" y="76" width="158" height="1"/>
				<graphicElement>
					<pen lineStyle="Dashed"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement uuid="d5cda83b-a950-4425-9f06-3c40a6eeb5f3" x="403" y="77" width="158" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[razítko a podpis]]></text>
			</staticText>
			<line>
				<reportElement uuid="98129acb-e148-489d-ae4e-cbe9bd580054" x="572" y="0" width="1" height="101"/>
			</line>
			<line>
				<reportElement uuid="4520dd4e-f1d2-49e6-a539-8ce0a58a6d55" x="-1" y="0" width="1" height="101"/>
			</line>
			<line>
				<reportElement uuid="28c4da74-c350-4bac-a918-7da9c4703f35" x="0" y="100" width="572" height="1"/>
			</line>
			<textField>
				<reportElement uuid="fd079061-3ca5-4430-b7cf-91843fd1dc74" x="78" y="36" width="184" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[""+($F{ownedBy} != null ? $F{ownedBy} : "")]]></textFieldExpression>
			</textField>
			<image hAlign="Center" vAlign="Middle">
				<reportElement uuid="8a225478-b6f1-4589-95f9-bf63a23d984a" x="403" y="20" width="158" height="56"/>
				<imageExpression><![CDATA[$P{P_STAMP}]]></imageExpression>
			</image>
		</band>
	</summary>
</jasperReport>
