|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<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="tripRequirement" pageWidth="612" pageHeight="792" columnWidth="572" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="0b7fa2d2-d452-4a1f-b1c0-2d8e16a22525">
|
|
|
|
|
<property name="ireport.zoom" value="1.5"/>
|
|
|
|
|
<property name="ireport.x" value="0"/>
|
|
|
|
|
<property name="ireport.y" value="80"/>
|
|
|
|
|
<property name="ireport.y" value="96"/>
|
|
|
|
|
<style name="table">
|
|
|
|
|
<box>
|
|
|
|
|
<pen lineWidth="1.0" lineColor="#000000"/>
|
|
|
|
@ -35,9 +35,11 @@
|
|
|
|
|
<parameter name="P_USER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
|
<parameter name="P_APPROVE_DATE" class="java.util.Date"/>
|
|
|
|
|
<parameter name="P_APPROVER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
|
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
|
|
|
|
|
<defaultValueExpression><![CDATA["/home/pepa/Dokumenty/dev/java/isspst/"]]></defaultValueExpression>
|
|
|
|
|
</parameter>
|
|
|
|
|
<parameter name="P_LOGO" class="java.lang.String"/>
|
|
|
|
|
<parameter name="P_MAIN_ADDRESS" class="java.lang.String"/>
|
|
|
|
|
<parameter name="P_PREV_APPROVE_DATE" class="java.util.Date"/>
|
|
|
|
|
<parameter name="P_PREV_APPROVER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
|
<parameter name="SUBREPORT_DIR" class="java.lang.String"/>
|
|
|
|
|
<field name="requirement" class="info.bukova.isspst.data.TripRequirement"/>
|
|
|
|
|
<field name="ownedBy" class="info.bukova.isspst.data.User"/>
|
|
|
|
|
<field name="requirement.reqDate" class="java.util.Date"/>
|
|
|
|
@ -63,19 +65,26 @@
|
|
|
|
|
</background>
|
|
|
|
|
<title>
|
|
|
|
|
<band height="79" splitType="Stretch">
|
|
|
|
|
<staticText>
|
|
|
|
|
<reportElement uuid="50f96189-2183-4afd-915d-b5342375e988" x="0" y="30" width="572" height="20"/>
|
|
|
|
|
<image onErrorType="Blank">
|
|
|
|
|
<reportElement uuid="ef1dc796-f5c6-4036-99eb-26e7b6b7abbc" x="0" y="0" width="100" height="79" isRemoveLineWhenBlank="true">
|
|
|
|
|
<printWhenExpression><![CDATA[$P{P_LOGO} != null]]></printWhenExpression>
|
|
|
|
|
</reportElement>
|
|
|
|
|
<imageExpression><![CDATA[$P{P_LOGO}]]></imageExpression>
|
|
|
|
|
</image>
|
|
|
|
|
<textField>
|
|
|
|
|
<reportElement uuid="3e2074cd-220c-4c9a-b94c-a0a254cc24a6" x="100" y="0" width="471" height="34"/>
|
|
|
|
|
<textElement textAlignment="Center">
|
|
|
|
|
<font size="16" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="true"/>
|
|
|
|
|
<font isBold="true" pdfEncoding="Cp1250"/>
|
|
|
|
|
</textElement>
|
|
|
|
|
<text><![CDATA[Cestovní příkaz]]></text>
|
|
|
|
|
</staticText>
|
|
|
|
|
<textFieldExpression><![CDATA[$P{P_MAIN_ADDRESS}]]></textFieldExpression>
|
|
|
|
|
</textField>
|
|
|
|
|
<staticText>
|
|
|
|
|
<reportElement uuid="5b2dc2ca-188e-4636-b617-dd5c1132246b" x="0" y="50" width="572" height="20"/>
|
|
|
|
|
<textElement textAlignment="Center">
|
|
|
|
|
<font size="16" isBold="true" pdfFontName="Helvetica-Bold"/>
|
|
|
|
|
<reportElement uuid="a7a82c52-e8b8-41cf-b13a-ebc54d30d04f" x="101" y="34" width="470" height="45"/>
|
|
|
|
|
<textElement textAlignment="Center" verticalAlignment="Bottom">
|
|
|
|
|
<font size="14" isBold="true" pdfEncoding="Cp1250"/>
|
|
|
|
|
</textElement>
|
|
|
|
|
<text><![CDATA[k tuzemské pracovní cestě]]></text>
|
|
|
|
|
<text><![CDATA[CESTOVNÍ PŘÍKAZ
|
|
|
|
|
k tuzemské pracovní cestě]]></text>
|
|
|
|
|
</staticText>
|
|
|
|
|
</band>
|
|
|
|
|
</title>
|
|
|
|
@ -304,7 +313,7 @@ L - letadlo, P - pěšky, T - taxi]]></text>
|
|
|
|
|
<textElement textAlignment="Right"/>
|
|
|
|
|
<textFieldExpression><![CDATA[$F{requirement.downPayment}]]></textFieldExpression>
|
|
|
|
|
</textField>
|
|
|
|
|
<image>
|
|
|
|
|
<image onErrorType="Blank">
|
|
|
|
|
<reportElement uuid="954e517f-5d23-4166-b776-7c31b4409ddd" x="378" y="69" width="183" height="50">
|
|
|
|
|
<printWhenExpression><![CDATA[$P{P_USER_SIGNATURE} != null]]></printWhenExpression>
|
|
|
|
|
</reportElement>
|
|
|
|
@ -313,28 +322,28 @@ L - letadlo, P - pěšky, T - taxi]]></text>
|
|
|
|
|
<textField pattern="dd. MM. yyyy" isBlankWhenNull="true">
|
|
|
|
|
<reportElement uuid="97daa8a7-dab0-4104-babb-c3889faac21a" x="301" y="399" width="77" height="20"/>
|
|
|
|
|
<textElement/>
|
|
|
|
|
<textFieldExpression><![CDATA[$P{P_APPROVE_DATE}]]></textFieldExpression>
|
|
|
|
|
<textFieldExpression><![CDATA[$P{P_PREV_APPROVE_DATE}]]></textFieldExpression>
|
|
|
|
|
</textField>
|
|
|
|
|
<image>
|
|
|
|
|
<image onErrorType="Blank">
|
|
|
|
|
<reportElement uuid="baf922bc-b6fb-4dbf-abc9-250f448baef3" x="378" y="368" width="183" height="50">
|
|
|
|
|
<printWhenExpression><![CDATA[$P{P_APPROVER_SIGNATURE} != null]]></printWhenExpression>
|
|
|
|
|
<printWhenExpression><![CDATA[$P{P_PREV_APPROVER_SIGNATURE} != null]]></printWhenExpression>
|
|
|
|
|
</reportElement>
|
|
|
|
|
<imageExpression><![CDATA[$P{P_APPROVER_SIGNATURE}]]></imageExpression>
|
|
|
|
|
<imageExpression><![CDATA[$P{P_PREV_APPROVER_SIGNATURE}]]></imageExpression>
|
|
|
|
|
</image>
|
|
|
|
|
<textField>
|
|
|
|
|
<reportElement uuid="16e5c4e2-a366-4eca-ad27-7db7fef6771c" x="186" y="27" width="375" height="20">
|
|
|
|
|
<printWhenExpression><![CDATA[$F{ownedBy.address} != null]]></printWhenExpression>
|
|
|
|
|
</reportElement>
|
|
|
|
|
<textElement/>
|
|
|
|
|
<textFieldExpression><![CDATA[$F{ownedBy.address.street} + " " + $F{ownedBy.address.houseNumber} + ", " + $F{ownedBy.address.zipCode} + " " + $F{ownedBy.address.city}]]></textFieldExpression>
|
|
|
|
|
<textFieldExpression><![CDATA[$F{ownedBy.address}]]></textFieldExpression>
|
|
|
|
|
</textField>
|
|
|
|
|
<subreport>
|
|
|
|
|
<reportElement uuid="c98e1094-2d6b-4a11-9030-67d3f3d0eafd" x="144" y="265" width="417" height="20"/>
|
|
|
|
|
<reportElement uuid="b8144a34-f2c4-4b5a-9f48-b74b5dc99e8c" x="143" y="265" width="428" height="20"/>
|
|
|
|
|
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{requirement.passengers})]]></dataSourceExpression>
|
|
|
|
|
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "tripRequirementPassengers.jasper"]]></subreportExpression>
|
|
|
|
|
</subreport>
|
|
|
|
|
<textField isBlankWhenNull="true">
|
|
|
|
|
<reportElement uuid="34904d3e-d889-4396-abd9-bd08036d0fa2" x="144" y="285" width="417" height="20"/>
|
|
|
|
|
<reportElement uuid="f8e2f8b5-373d-46fd-9c61-5a6c1da44351" x="143" y="285" width="428" height="20"/>
|
|
|
|
|
<textElement/>
|
|
|
|
|
<textFieldExpression><![CDATA[$F{requirement.foreignPersons}]]></textFieldExpression>
|
|
|
|
|
</textField>
|
|
|
|
|