comparison artifacts/doc/conf/jasper/sqrelation_en.jrxml @ 8578:4eb1a3c71579

(issue1753) Implement PDF export of SQ Measurement data. The SQRelationExporter now consists of two reports (to avoid subreport woes). The old SQReleation PDF only takes the Page count of the Measurement attachment as argument to correctly print the page numbers. Otherwise it is unchanged. The new SQMeasurements report lists the measured data points on which the calculation was based.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 16 Mar 2015 11:35:19 +0100
parents
children
comparison
equal deleted inserted replaced
8577:3fae08a8cb90 8578:4eb1a3c71579
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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="flysreport" language="groovy" pageWidth="595" pageHeight="842" columnWidth="515" leftMargin="60" rightMargin="20" topMargin="20" bottomMargin="20">
3 <property name="ireport.zoom" value="1.5"/>
4 <property name="ireport.x" value="0"/>
5 <property name="ireport.y" value="43"/>
6 <parameter name="MEASUREMENT_PAGE_NUM" class="java.lang.Integer"/>
7 <field name="river" class="java.lang.String"/>
8 <field name="periods" class="java.lang.String"/>
9 <field name="outliertest" class="java.lang.String"/>
10 <field name="date" class="java.lang.String"/>
11 <field name="outliers" class="java.lang.String"/>
12 <field name="calculation" class="java.lang.String"/>
13 <field name="total" class="java.lang.String"/>
14 <field name="out" class="java.lang.String"/>
15 <field name="location" class="java.lang.String"/>
16 <field name="sd" class="java.lang.String"/>
17 <field name="a" class="java.lang.String"/>
18 <field name="b" class="java.lang.String"/>
19 <field name="km" class="java.lang.String"/>
20 <field name="param" class="java.lang.String"/>
21 <field name="qmax" class="java.lang.String"/>
22 <field name="cduan" class="java.lang.String"/>
23 <field name="cferg" class="java.lang.String"/>
24 <field name="r2" class="java.lang.String"/>
25 <field name="msGauge" class="java.lang.String"/>
26 <field name="msName" class="java.lang.String"/>
27 <background>
28 <band splitType="Stretch"/>
29 </background>
30 <title>
31 <band height="231" splitType="Stretch">
32 <staticText>
33 <reportElement x="0" y="1" width="177" height="30"/>
34 <textElement>
35 <font size="18"/>
36 </textElement>
37 <text><![CDATA[Calculation result]]></text>
38 </staticText>
39 <textField>
40 <reportElement x="177" y="0" width="338" height="31"/>
41 <textElement>
42 <font size="18"/>
43 </textElement>
44 <textFieldExpression><![CDATA[$F{river}]]></textFieldExpression>
45 </textField>
46 <textField>
47 <reportElement x="0" y="31" width="515" height="26"/>
48 <textElement>
49 <font size="14"/>
50 </textElement>
51 <textFieldExpression><![CDATA[$F{calculation}]]></textFieldExpression>
52 </textField>
53 <staticText>
54 <reportElement x="0" y="70" width="123" height="20"/>
55 <textElement verticalAlignment="Middle"/>
56 <text><![CDATA[River:]]></text>
57 </staticText>
58 <textField>
59 <reportElement x="123" y="70" width="392" height="20"/>
60 <textElement verticalAlignment="Middle"/>
61 <textFieldExpression><![CDATA[$F{river}]]></textFieldExpression>
62 </textField>
63 <staticText>
64 <reportElement x="0" y="90" width="123" height="20"/>
65 <textElement verticalAlignment="Middle"/>
66 <text><![CDATA[Location]]></text>
67 </staticText>
68 <textField>
69 <reportElement x="123" y="90" width="392" height="20"/>
70 <textElement verticalAlignment="Middle"/>
71 <textFieldExpression><![CDATA[$F{location}]]></textFieldExpression>
72 </textField>
73 <staticText>
74 <reportElement x="0" y="150" width="123" height="20"/>
75 <textElement verticalAlignment="Middle"/>
76 <text><![CDATA[Date of creation:]]></text>
77 </staticText>
78 <textField>
79 <reportElement x="123" y="150" width="392" height="20"/>
80 <textElement verticalAlignment="Middle"/>
81 <textFieldExpression><![CDATA[$F{date}]]></textFieldExpression>
82 </textField>
83 <staticText>
84 <reportElement x="0" y="170" width="123" height="20"/>
85 <textElement verticalAlignment="Middle"/>
86 <text><![CDATA[Periods:]]></text>
87 </staticText>
88 <textField>
89 <reportElement x="123" y="170" width="392" height="20"/>
90 <textElement verticalAlignment="Middle"/>
91 <textFieldExpression><![CDATA[$F{periods}]]></textFieldExpression>
92 </textField>
93 <staticText>
94 <reportElement x="0" y="190" width="123" height="20"/>
95 <textElement verticalAlignment="Middle"/>
96 <text><![CDATA[Outliertest:]]></text>
97 </staticText>
98 <textField>
99 <reportElement x="123" y="190" width="392" height="20"/>
100 <textElement verticalAlignment="Middle"/>
101 <textFieldExpression><![CDATA[$F{outliertest}]]></textFieldExpression>
102 </textField>
103 <staticText>
104 <reportElement x="0" y="210" width="123" height="20"/>
105 <textElement verticalAlignment="Middle"/>
106 <text><![CDATA[Outliers:]]></text>
107 </staticText>
108 <textField>
109 <reportElement x="123" y="210" width="392" height="20"/>
110 <textElement verticalAlignment="Middle"/>
111 <textFieldExpression><![CDATA[$F{outliers}]]></textFieldExpression>
112 </textField>
113 <textField isBlankWhenNull="false">
114 <reportElement x="123" y="110" width="392" height="20" isRemoveLineWhenBlank="true"/>
115 <textElement verticalAlignment="Middle"/>
116 <textFieldExpression><![CDATA[$F{msName}]]></textFieldExpression>
117 </textField>
118 <staticText>
119 <reportElement x="0" y="130" width="123" height="20"/>
120 <textElement verticalAlignment="Middle"/>
121 <text><![CDATA[hdyr. Reference Gauge:]]></text>
122 </staticText>
123 <staticText>
124 <reportElement x="0" y="110" width="123" height="20"/>
125 <textElement verticalAlignment="Middle"/>
126 <text><![CDATA[Measurement Station:]]></text>
127 </staticText>
128 <textField isBlankWhenNull="false">
129 <reportElement x="123" y="130" width="392" height="20" isRemoveLineWhenBlank="true"/>
130 <textElement verticalAlignment="Middle"/>
131 <textFieldExpression><![CDATA[$F{msGauge}]]></textFieldExpression>
132 </textField>
133 </band>
134 </title>
135 <columnHeader>
136 <band height="25" splitType="Stretch">
137 <line>
138 <reportElement x="0" y="19" width="515" height="1"/>
139 </line>
140 <staticText>
141 <reportElement x="94" y="0" width="60" height="20"/>
142 <textElement verticalAlignment="Middle"/>
143 <text><![CDATA[a]]></text>
144 </staticText>
145 <staticText>
146 <reportElement x="391" y="0" width="44" height="20"/>
147 <textElement verticalAlignment="Middle" markup="styled"/>
148 <text><![CDATA[n <sub>outlier</sub>]]></text>
149 </staticText>
150 <staticText>
151 <reportElement x="470" y="0" width="45" height="20"/>
152 <textElement verticalAlignment="Middle" markup="styled"/>
153 <text><![CDATA[C <sub>Ferguson</sub>]]></text>
154 </staticText>
155 <staticText>
156 <reportElement x="435" y="0" width="35" height="20"/>
157 <textElement verticalAlignment="Middle" markup="styled"/>
158 <text><![CDATA[C<sub>Duan</sub>]]></text>
159 </staticText>
160 <staticText>
161 <reportElement x="265" y="0" width="60" height="20"/>
162 <textElement verticalAlignment="Middle" markup="styled"/>
163 <text><![CDATA[Q<sub>max,measured</sub>]]></text>
164 </staticText>
165 <staticText>
166 <reportElement x="0" y="0" width="39" height="20"/>
167 <textElement verticalAlignment="Middle"/>
168 <text><![CDATA[R-km ]]></text>
169 </staticText>
170 <staticText>
171 <reportElement x="325" y="0" width="26" height="20"/>
172 <textElement verticalAlignment="Middle" markup="styled"/>
173 <text><![CDATA[r²]]></text>
174 </staticText>
175 <staticText>
176 <reportElement x="351" y="0" width="40" height="20"/>
177 <textElement verticalAlignment="Middle" markup="styled"/>
178 <text><![CDATA[n<sub>total</sub>]]></text>
179 </staticText>
180 <staticText>
181 <reportElement x="189" y="0" width="76" height="20"/>
182 <textElement verticalAlignment="Middle" markup="styled"/>
183 <text><![CDATA[Standard err]]></text>
184 </staticText>
185 <staticText>
186 <reportElement x="154" y="0" width="35" height="20"/>
187 <textElement verticalAlignment="Middle"/>
188 <text><![CDATA[b]]></text>
189 </staticText>
190 <staticText>
191 <reportElement x="39" y="0" width="55" height="20"/>
192 <textElement verticalAlignment="Middle"/>
193 <text><![CDATA[Parameter]]></text>
194 </staticText>
195 </band>
196 </columnHeader>
197 <detail>
198 <band height="14" splitType="Stretch">
199 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
200 <reportElement stretchType="RelativeToBandHeight" x="435" y="0" width="35" height="14"/>
201 <textElement verticalAlignment="Middle"/>
202 <textFieldExpression><![CDATA[$F{cduan}]]></textFieldExpression>
203 </textField>
204 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
205 <reportElement stretchType="RelativeToBandHeight" x="391" y="0" width="44" height="14"/>
206 <textElement verticalAlignment="Middle"/>
207 <textFieldExpression><![CDATA[$F{out}]]></textFieldExpression>
208 </textField>
209 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
210 <reportElement stretchType="RelativeToBandHeight" x="154" y="0" width="35" height="14"/>
211 <textElement verticalAlignment="Middle"/>
212 <textFieldExpression><![CDATA[$F{b}]]></textFieldExpression>
213 </textField>
214 <textField isBlankWhenNull="true">
215 <reportElement x="39" y="0" width="55" height="14"/>
216 <textElement verticalAlignment="Middle"/>
217 <textFieldExpression><![CDATA[$F{param}]]></textFieldExpression>
218 </textField>
219 <textField isBlankWhenNull="true">
220 <reportElement x="0" y="0" width="39" height="14"/>
221 <textElement verticalAlignment="Middle"/>
222 <textFieldExpression><![CDATA[$F{km}]]></textFieldExpression>
223 </textField>
224 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
225 <reportElement stretchType="RelativeToBandHeight" x="470" y="0" width="45" height="14"/>
226 <textElement verticalAlignment="Middle"/>
227 <textFieldExpression><![CDATA[$F{cferg}]]></textFieldExpression>
228 </textField>
229 <textField isBlankWhenNull="true">
230 <reportElement x="94" y="0" width="60" height="14"/>
231 <textElement verticalAlignment="Middle"/>
232 <textFieldExpression><![CDATA[$F{a}]]></textFieldExpression>
233 </textField>
234 <textField isBlankWhenNull="true">
235 <reportElement x="189" y="0" width="76" height="14"/>
236 <textElement verticalAlignment="Middle"/>
237 <textFieldExpression><![CDATA[$F{sd}]]></textFieldExpression>
238 </textField>
239 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
240 <reportElement stretchType="RelativeToBandHeight" x="265" y="0" width="60" height="14"/>
241 <textElement verticalAlignment="Middle"/>
242 <textFieldExpression><![CDATA[$F{qmax}]]></textFieldExpression>
243 </textField>
244 <textField isStretchWithOverflow="true" isBlankWhenNull="true">
245 <reportElement stretchType="RelativeToBandHeight" x="351" y="0" width="40" height="14" isPrintWhenDetailOverflows="true"/>
246 <textElement verticalAlignment="Middle"/>
247 <textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
248 </textField>
249 <textField isBlankWhenNull="true">
250 <reportElement x="325" y="0" width="26" height="14"/>
251 <textElement verticalAlignment="Middle"/>
252 <textFieldExpression><![CDATA[$F{r2}]]></textFieldExpression>
253 </textField>
254 </band>
255 </detail>
256 <pageFooter>
257 <band height="29" splitType="Stretch">
258 <textField evaluationTime="Report">
259 <reportElement x="458" y="9" width="57" height="20"/>
260 <textElement/>
261 <textFieldExpression><![CDATA[" / " + ($V{PAGE_NUMBER} + $P{MEASUREMENT_PAGE_NUM})]]></textFieldExpression>
262 </textField>
263 <textField>
264 <reportElement x="403" y="9" width="55" height="20"/>
265 <textElement textAlignment="Right"/>
266 <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
267 </textField>
268 </band>
269 </pageFooter>
270 <summary>
271 <band height="42" splitType="Stretch"/>
272 </summary>
273 </jasperReport>

http://dive4elements.wald.intevation.org