<?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="requirements" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="12ae9a20-4929-4de7-9d72-b7792ac83a22">
	<property name="ireport.zoom" value="2.0"/>
	<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>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="numser" class="java.lang.String">
		<fieldDescription><![CDATA[numser]]></fieldDescription>
	</field>
	<field name="project" class="java.lang.Boolean">
		<fieldDescription><![CDATA[project]]></fieldDescription>
	</field>
	<field name="modifiedBy" class="info.bukova.isspst.data.User">
		<fieldDescription><![CDATA[modifiedBy]]></fieldDescription>
	</field>
	<field name="workgroup" class="info.bukova.isspst.data.Workgroup">
		<fieldDescription><![CDATA[workgroup]]></fieldDescription>
	</field>
	<field name="modified" class="java.util.Date">
		<fieldDescription><![CDATA[modified]]></fieldDescription>
	</field>
	<field name="description" class="java.lang.String">
		<fieldDescription><![CDATA[description]]></fieldDescription>
	</field>
	<field name="kind" class="java.lang.Long">
		<fieldDescription><![CDATA[kind]]></fieldDescription>
	</field>
	<field name="created" class="java.util.Date">
		<fieldDescription><![CDATA[created]]></fieldDescription>
	</field>
	<field name="sumTotal" class="java.math.BigDecimal">
		<fieldDescription><![CDATA[sumTotal]]></fieldDescription>
	</field>
	<field name="ownedBy" class="info.bukova.isspst.data.User">
		<fieldDescription><![CDATA[ownedBy]]></fieldDescription>
	</field>
	<field name="centre" class="info.bukova.isspst.data.Workgroup">
		<fieldDescription><![CDATA[centre]]></fieldDescription>
	</field>
	<field name="state" class="info.bukova.isspst.data.RequirementState">
		<fieldDescription><![CDATA[state]]></fieldDescription>
	</field>
	<field name="reqDate" class="java.util.Date">
		<fieldDescription><![CDATA[reqDate]]></fieldDescription>
	</field>
	<field name="type" class="info.bukova.isspst.data.RequirementType">
		<fieldDescription><![CDATA[type]]></fieldDescription>
	</field>
	<field name="authorization" class="java.util.List">
		<fieldDescription><![CDATA[authorization]]></fieldDescription>
	</field>
	<field name="deliveryDate" class="java.util.Date">
		<fieldDescription><![CDATA[deliveryDate]]></fieldDescription>
	</field>
	<field name="items" class="java.util.List">
		<fieldDescription><![CDATA[items]]></fieldDescription>
	</field>
	<field name="lastApproveDate" class="java.util.Date">
		<fieldDescription><![CDATA[lastApproveDate]]></fieldDescription>
	</field>
	<field name="lastApprover" class="info.bukova.isspst.data.User">
		<fieldDescription><![CDATA[lastApprover]]></fieldDescription>
	</field>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="24" splitType="Stretch">
			<staticText>
				<reportElement uuid="564e6b0f-e303-4761-b178-228b1852bf94" x="0" y="0" width="802" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="14" isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Požadavky]]></text>
			</staticText>
		</band>
	</title>
	<columnHeader>
		<band height="23" splitType="Stretch">
			<line>
				<reportElement uuid="9df136f1-4d6a-4ef0-9637-80e08f97b60c" x="0" y="0" width="802" height="1"/>
				<graphicElement>
					<pen lineStyle="Double"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement uuid="65e7b02a-c1e3-4fe0-a1c8-09623e9f75a7" x="0" y="1" width="70" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Číslo]]></text>
			</staticText>
			<line>
				<reportElement uuid="0c6d2376-d8fa-4691-b9b6-bfaf851ad5b5" x="0" y="21" width="802" height="1"/>
				<graphicElement>
					<pen lineStyle="Double"/>
				</graphicElement>
			</line>
			<staticText>
				<reportElement uuid="4111e50c-2fc5-4b85-9e73-796158afd772" x="70" y="0" width="60" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Datum]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="8fa42d62-21e2-4b5f-b352-c94159122412" x="130" y="0" width="100" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Středisko]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="9092422f-c03c-4fcb-95a6-4013d7df0e17" x="230" y="0" width="100" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Komise]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="aee76e66-a57a-4ad0-8295-60cafca915f5" x="330" y="0" width="66" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Dat. dodání]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="b3f3e621-33a4-4f98-a625-0d8a3678a335" x="397" y="0" width="110" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Popis]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="d1a75f0c-7517-4582-b76e-dbf20ee3870d" x="507" y="0" width="50" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Cena]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="74f3f3cd-c919-42ec-931a-09721241e96a" x="557" y="0" width="140" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Žadatel]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="64c3c995-97cb-49a4-a961-3956a1aea398" x="697" y="1" width="100" height="20"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Stav]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="82" splitType="Stretch">
			<textField>
				<reportElement uuid="8771c2b5-96ac-453e-aa04-e43763e73041" x="0" y="0" width="70" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numser}]]></textFieldExpression>
			</textField>
			<textField pattern="dd.MM.yyyy">
				<reportElement uuid="6c4089fa-da4f-4c00-8e51-9564dcddd8c5" x="70" y="0" width="60" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{reqDate}]]></textFieldExpression>
			</textField>
			<textField pattern="dd.MM.yyyy" isBlankWhenNull="true">
				<reportElement uuid="3bfa0b1f-464f-4f5b-aa69-761d3277094f" x="330" y="0" width="66" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{deliveryDate}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="9ac05563-474b-407a-8074-1a2a0d406e1e" x="230" y="0" width="100" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{workgroup}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="70e918b8-d195-4d6b-b5eb-f156e89db6e4" x="130" y="0" width="100" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[""+$F{centre}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement uuid="1be2e76d-4f9b-425d-adef-5b2d5f497037" x="397" y="0" width="110" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{description}]]></textFieldExpression>
			</textField>
			<textField pattern="###0.00;-###0.00" isBlankWhenNull="true">
				<reportElement uuid="76cf9400-0d39-4061-b897-d59da4b3287b" x="507" y="0" width="50" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{sumTotal}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="100abac3-9ed6-4368-896d-aabc6e70cec6" x="557" y="0" width="140" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[""+$F{ownedBy}]]></textFieldExpression>
			</textField>
			<subreport>
				<reportElement uuid="4bd85a98-44c0-4d17-93af-b13612181418" x="30" y="39" width="772" height="41"/>
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{items})]]></dataSourceExpression>
				<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "requirementItems.jasper"]]></subreportExpression>
			</subreport>
			<textField>
				<reportElement uuid="d20ec05f-4b65-4e5f-8026-e18f323c1a15" x="697" y="0" width="105" height="20"/>
				<textElement>
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{state} == info.bukova.isspst.data.RequirementState.NEW ? "Neschváleno" :
$F{state} == info.bukova.isspst.data.RequirementState.PARTIALLY ? "Částečně schváleno" :
"Schváleno"]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="ddbc957b-4a8d-4f69-ba7a-5135ee2c8de9" x="0" y="19" width="70" height="20">
					<printWhenExpression><![CDATA[$F{state} == info.bukova.isspst.data.RequirementState.APPROVED]]></printWhenExpression>
				</reportElement>
				<textElement verticalAlignment="Middle">
					<font isBold="true" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Schválil:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement uuid="dbb701b8-20ab-4671-b8f6-a0d7e76d6fb6" x="70" y="19" width="100" height="20">
					<printWhenExpression><![CDATA[$F{state} == info.bukova.isspst.data.RequirementState.APPROVED]]></printWhenExpression>
				</reportElement>
				<textElement verticalAlignment="Middle">
					<font pdfEncoding="Cp1250" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{lastApprover}]]></textFieldExpression>
			</textField>
			<textField pattern="dd.MM.yyyy">
				<reportElement uuid="9c8def10-5b0c-4d71-bfbf-31f3ff78be1a" x="170" y="19" width="60" height="20">
					<printWhenExpression><![CDATA[$F{state} == info.bukova.isspst.data.RequirementState.APPROVED]]></printWhenExpression>
				</reportElement>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$F{lastApproveDate}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement uuid="fe25985d-4ac9-4658-a7cb-910b192b1fee" x="0" y="20" width="802" height="1"/>
			</line>
		</band>
	</detail>
	<pageFooter>
		<band height="24" splitType="Stretch">
			<textField>
				<reportElement uuid="4b0dedf5-d888-478f-8a8c-6624bf19d81a" x="772" y="0" width="25" height="20"/>
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="f6eb7d19-80f0-4934-b4dd-a6853c3dc1f1" x="730" y="0" width="42" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[Strana:]]></text>
			</staticText>
		</band>
	</pageFooter>
</jasperReport>
