-
Notifications
You must be signed in to change notification settings - Fork 0
/
elements.jrxml
135 lines (135 loc) · 7.58 KB
/
elements.jrxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?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="elements_report" pageWidth="595" pageHeight="842" columnWidth="515" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
<property name="ireport.zoom" value="1.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<template><![CDATA[$P{REPORT_PATH}+"style.jrtx"]]></template>
<subDataset name="PropertiesDataset">
<field name="this" class="com.archimatetool.model.IProperty"/>
<field name="key" class="java.lang.String"/>
<field name="value" class="java.lang.String"/>
</subDataset>
<parameter name="properties_report" class="net.sf.jasperreports.engine.JasperReport"/>
<parameter name="TITLE" class="java.lang.String"/>
<parameter name="VIEW_DETAILED" class="java.lang.String">
<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
</parameter>
<parameter name="REPORT_PATH" class="java.lang.String"/>
<field name="this" class="com.archimatetool.model.IArchimateElement"/>
<field name="name" class="java.lang.String"/>
<field name="type" class="java.lang.String"/>
<field name="documentation" class="java.lang.String"/>
<field name="relation_source" class="java.lang.String"/>
<field name="relation_target" class="java.lang.String"/>
<title>
<band height="38">
<printWhenExpression><![CDATA[$P{VIEW_DETAILED}.equals("true")]]></printWhenExpression>
<textField>
<reportElement style="Title 3" positionType="Float" x="1" y="0" width="514" height="35"/>
<textElement verticalAlignment="Bottom"/>
<textFieldExpression><![CDATA[$R{text.elements}]]></textFieldExpression>
</textField>
</band>
</title>
<detail>
<band height="34">
<textField isStretchWithOverflow="true">
<reportElement style="Normal" positionType="Float" x="0" y="0" width="515" height="16">
<property name="net.sf.jasperreports.export.pdf.tag.h2"/>
</reportElement>
<textElement>
<font size="13"/>
</textElement>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Table header" positionType="Float" x="0" y="18" width="150" height="16" isRemoveLineWhenBlank="true"/>
<textElement markup="none"/>
<textFieldExpression><![CDATA[$R{text.type}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Table row" positionType="Float" x="150" y="18" width="365" height="16"/>
<textElement/>
<textFieldExpression><![CDATA[$F{type}]]></textFieldExpression>
</textField>
</band>
<band height="32">
<printWhenExpression><![CDATA[$F{relation_source} != null]]></printWhenExpression>
<textField isStretchWithOverflow="true">
<reportElement style="Table row" positionType="Float" x="150" y="0" width="365" height="16"/>
<textElement/>
<textFieldExpression><![CDATA[$F{relation_source}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement style="Table row" positionType="Float" x="150" y="16" width="365" height="16"/>
<textElement/>
<textFieldExpression><![CDATA[$F{relation_target}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Table header" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="150" height="16" isRemoveLineWhenBlank="true"/>
<textElement markup="none"/>
<textFieldExpression><![CDATA[$R{text.source}]]></textFieldExpression>
</textField>
<textField>
<reportElement style="Table header" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="16" width="150" height="16" isRemoveLineWhenBlank="true"/>
<textElement markup="none"/>
<textFieldExpression><![CDATA[$R{text.target}]]></textFieldExpression>
</textField>
</band>
<band height="16" splitType="Prevent">
<printWhenExpression><![CDATA[!$P{VIEW_DETAILED}.equals("true")]]></printWhenExpression>
<componentElement>
<reportElement positionType="Float" x="0" y="0" width="515" height="16" isRemoveLineWhenBlank="true"/>
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
<datasetRun subDataset="PropertiesDataset">
<dataSourceExpression><![CDATA[((com.archimatetool.jasperreports.data.ElementsDataSource)$P{REPORT_DATA_SOURCE}).getPropertiesDataSource()]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="16" width="515">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement style="Table header" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="150" height="16" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$F{key}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement style="Table row" positionType="Float" stretchType="RelativeToBandHeight" x="150" y="0" width="365" height="16" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$F{value}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</band>
<band height="16" splitType="Prevent">
<printWhenExpression><![CDATA[$P{VIEW_DETAILED}.equals("true")]]></printWhenExpression>
<componentElement>
<reportElement positionType="Float" x="0" y="0" width="515" height="16" isRemoveLineWhenBlank="true"/>
<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">
<datasetRun subDataset="PropertiesDataset">
<dataSourceExpression><![CDATA[((com.archimatetool.jasperreports.data.ViewChildrenDataSource)$P{REPORT_DATA_SOURCE}).getPropertiesDataSource()]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="16" width="515">
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement style="Table header" positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="150" height="16" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$F{key}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement style="Table row" positionType="Float" stretchType="RelativeToBandHeight" x="150" y="0" width="365" height="16" isRemoveLineWhenBlank="true"/>
<textElement/>
<textFieldExpression><![CDATA[$F{value}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</band>
<band height="26">
<printWhenExpression><![CDATA[$F{documentation} != null]]></printWhenExpression>
<textField isStretchWithOverflow="true">
<reportElement style="Documentation" positionType="Float" x="1" y="8" width="514" height="18"/>
<textElement/>
<textFieldExpression><![CDATA[$F{documentation}]]></textFieldExpression>
</textField>
</band>
<band height="16"/>
</detail>
</jasperReport>