|
|
@ -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">
|
|
|
|
<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.zoom" value="1.5"/>
|
|
|
|
<property name="ireport.x" value="0"/>
|
|
|
|
<property name="ireport.x" value="0"/>
|
|
|
|
<property name="ireport.y" value="80"/>
|
|
|
|
<property name="ireport.y" value="96"/>
|
|
|
|
<style name="table">
|
|
|
|
<style name="table">
|
|
|
|
<box>
|
|
|
|
<box>
|
|
|
|
<pen lineWidth="1.0" lineColor="#000000"/>
|
|
|
|
<pen lineWidth="1.0" lineColor="#000000"/>
|
|
|
@ -35,9 +35,11 @@
|
|
|
|
<parameter name="P_USER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
<parameter name="P_USER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
<parameter name="P_APPROVE_DATE" class="java.util.Date"/>
|
|
|
|
<parameter name="P_APPROVE_DATE" class="java.util.Date"/>
|
|
|
|
<parameter name="P_APPROVER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
<parameter name="P_APPROVER_SIGNATURE" class="java.lang.String"/>
|
|
|
|
<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
|
|
|
|
<parameter name="P_LOGO" class="java.lang.String"/>
|
|
|
|
<defaultValueExpression><![CDATA["/home/pepa/Dokumenty/dev/java/isspst/"]]></defaultValueExpression>
|
|
|
|
<parameter name="P_MAIN_ADDRESS" class="java.lang.String"/>
|
|
|
|
</parameter>
|
|
|
|
<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="requirement" class="info.bukova.isspst.data.TripRequirement"/>
|
|
|
|
<field name="ownedBy" class="info.bukova.isspst.data.User"/>
|
|
|
|
<field name="ownedBy" class="info.bukova.isspst.data.User"/>
|
|
|
|
<field name="requirement.reqDate" class="java.util.Date"/>
|
|
|
|
<field name="requirement.reqDate" class="java.util.Date"/>
|
|
|
@ -63,19 +65,26 @@
|
|
|
|
</background>
|
|
|
|
</background>
|
|
|
|
<title>
|
|
|
|
<title>
|
|
|
|
<band height="79" splitType="Stretch">
|
|
|
|
<band height="79" splitType="Stretch">
|
|
|
|
<staticText>
|
|
|
|
<image onErrorType="Blank">
|
|
|
|
<reportElement uuid="50f96189-2183-4afd-915d-b5342375e988" x="0" y="30" width="572" height="20"/>
|
|
|
|
<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">
|
|
|
|
<textElement textAlignment="Center">
|
|
|
|
<font size="16" isBold="true" pdfFontName="Helvetica-Bold" isPdfEmbedded="true"/>
|
|
|
|
<font isBold="true" pdfEncoding="Cp1250"/>
|
|
|
|
</textElement>
|
|
|
|
</textElement>
|
|
|
|
<text><![CDATA[Cestovní příkaz]]></text>
|
|
|
|
<textFieldExpression><![CDATA[$P{P_MAIN_ADDRESS}]]></textFieldExpression>
|
|
|
|
</staticText>
|
|
|
|
</textField>
|
|
|
|
<staticText>
|
|
|
|
<staticText>
|
|
|
|
<reportElement uuid="5b2dc2ca-188e-4636-b617-dd5c1132246b" x="0" y="50" width="572" height="20"/>
|
|
|
|
<reportElement uuid="a7a82c52-e8b8-41cf-b13a-ebc54d30d04f" x="101" y="34" width="470" height="45"/>
|
|
|
|
<textElement textAlignment="Center">
|
|
|
|
<textElement textAlignment="Center" verticalAlignment="Bottom">
|
|
|
|
<font size="16" isBold="true" pdfFontName="Helvetica-Bold"/>
|
|
|
|
<font size="14" isBold="true" pdfEncoding="Cp1250"/>
|
|
|
|
</textElement>
|
|
|
|
</textElement>
|
|
|
|
<text><![CDATA[k tuzemské pracovní cestě]]></text>
|
|
|
|
<text><![CDATA[CESTOVNÍ PŘÍKAZ
|
|
|
|
|
|
|
|
k tuzemské pracovní cestě]]></text>
|
|
|
|
</staticText>
|
|
|
|
</staticText>
|
|
|
|
</band>
|
|
|
|
</band>
|
|
|
|
</title>
|
|
|
|
</title>
|
|
|
@ -304,7 +313,7 @@ L - letadlo, P - pěšky, T - taxi]]></text>
|
|
|
|
<textElement textAlignment="Right"/>
|
|
|
|
<textElement textAlignment="Right"/>
|
|
|
|
<textFieldExpression><![CDATA[$F{requirement.downPayment}]]></textFieldExpression>
|
|
|
|
<textFieldExpression><![CDATA[$F{requirement.downPayment}]]></textFieldExpression>
|
|
|
|
</textField>
|
|
|
|
</textField>
|
|
|
|
<image>
|
|
|
|
<image onErrorType="Blank">
|
|
|
|
<reportElement uuid="954e517f-5d23-4166-b776-7c31b4409ddd" x="378" y="69" width="183" height="50">
|
|
|
|
<reportElement uuid="954e517f-5d23-4166-b776-7c31b4409ddd" x="378" y="69" width="183" height="50">
|
|
|
|
<printWhenExpression><![CDATA[$P{P_USER_SIGNATURE} != null]]></printWhenExpression>
|
|
|
|
<printWhenExpression><![CDATA[$P{P_USER_SIGNATURE} != null]]></printWhenExpression>
|
|
|
|
</reportElement>
|
|
|
|
</reportElement>
|
|
|
@ -313,28 +322,28 @@ L - letadlo, P - pěšky, T - taxi]]></text>
|
|
|
|
<textField pattern="dd. MM. yyyy" isBlankWhenNull="true">
|
|
|
|
<textField pattern="dd. MM. yyyy" isBlankWhenNull="true">
|
|
|
|
<reportElement uuid="97daa8a7-dab0-4104-babb-c3889faac21a" x="301" y="399" width="77" height="20"/>
|
|
|
|
<reportElement uuid="97daa8a7-dab0-4104-babb-c3889faac21a" x="301" y="399" width="77" height="20"/>
|
|
|
|
<textElement/>
|
|
|
|
<textElement/>
|
|
|
|
<textFieldExpression><![CDATA[$P{P_APPROVE_DATE}]]></textFieldExpression>
|
|
|
|
<textFieldExpression><![CDATA[$P{P_PREV_APPROVE_DATE}]]></textFieldExpression>
|
|
|
|
</textField>
|
|
|
|
</textField>
|
|
|
|
<image>
|
|
|
|
<image onErrorType="Blank">
|
|
|
|
<reportElement uuid="baf922bc-b6fb-4dbf-abc9-250f448baef3" x="378" y="368" width="183" height="50">
|
|
|
|
<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>
|
|
|
|
</reportElement>
|
|
|
|
<imageExpression><![CDATA[$P{P_APPROVER_SIGNATURE}]]></imageExpression>
|
|
|
|
<imageExpression><![CDATA[$P{P_PREV_APPROVER_SIGNATURE}]]></imageExpression>
|
|
|
|
</image>
|
|
|
|
</image>
|
|
|
|
<textField>
|
|
|
|
<textField>
|
|
|
|
<reportElement uuid="16e5c4e2-a366-4eca-ad27-7db7fef6771c" x="186" y="27" width="375" height="20">
|
|
|
|
<reportElement uuid="16e5c4e2-a366-4eca-ad27-7db7fef6771c" x="186" y="27" width="375" height="20">
|
|
|
|
<printWhenExpression><![CDATA[$F{ownedBy.address} != null]]></printWhenExpression>
|
|
|
|
<printWhenExpression><![CDATA[$F{ownedBy.address} != null]]></printWhenExpression>
|
|
|
|
</reportElement>
|
|
|
|
</reportElement>
|
|
|
|
<textElement/>
|
|
|
|
<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>
|
|
|
|
</textField>
|
|
|
|
<subreport>
|
|
|
|
<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>
|
|
|
|
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{requirement.passengers})]]></dataSourceExpression>
|
|
|
|
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "tripRequirementPassengers.jasper"]]></subreportExpression>
|
|
|
|
<subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "tripRequirementPassengers.jasper"]]></subreportExpression>
|
|
|
|
</subreport>
|
|
|
|
</subreport>
|
|
|
|
<textField isBlankWhenNull="true">
|
|
|
|
<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/>
|
|
|
|
<textElement/>
|
|
|
|
<textFieldExpression><![CDATA[$F{requirement.foreignPersons}]]></textFieldExpression>
|
|
|
|
<textFieldExpression><![CDATA[$F{requirement.foreignPersons}]]></textFieldExpression>
|
|
|
|
</textField>
|
|
|
|
</textField>
|
|
|
|