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="reportName" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="NoDataSection" columnWidth="577" leftMargin="9" rightMargin="9" topMargin="9" bottomMargin="9" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true"> |
---|
3 | <property name="ireport.scriptlethandling" value="0"/> |
---|
4 | <property name="ireport.encoding" value="UTF-8"/> |
---|
5 | <property name="ireport.zoom" value="1.5"/> |
---|
6 | <property name="ireport.x" value="0"/> |
---|
7 | <property name="ireport.y" value="0"/> |
---|
8 | <import value="net.sf.jasperreports.engine.*"/> |
---|
9 | <import value="java.util.*"/> |
---|
10 | <import value="net.sf.jasperreports.engine.data.*"/> |
---|
11 | <style name="GroupHeader" isDefault="false" hAlign="Center"> |
---|
12 | <box topPadding="0" bottomPadding="0"> |
---|
13 | <topPen lineWidth="0.0"/> |
---|
14 | <bottomPen lineWidth="0.0"/> |
---|
15 | </box> |
---|
16 | </style> |
---|
17 | <style name="DetailBorder" isDefault="false"> |
---|
18 | <box topPadding="2" leftPadding="1" bottomPadding="2" rightPadding="1"> |
---|
19 | <topPen lineWidth="0.5"/> |
---|
20 | <leftPen lineWidth="0.5"/> |
---|
21 | <bottomPen lineWidth="0.5"/> |
---|
22 | <rightPen lineWidth="0.5"/> |
---|
23 | </box> |
---|
24 | </style> |
---|
25 | <subDataset name="dataset1"> |
---|
26 | <queryString language="SQL"> |
---|
27 | <![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{dataList})]]> |
---|
28 | </queryString> |
---|
29 | <field name="description" class="java.lang.String"/> |
---|
30 | <field name="name" class="java.lang.String"/> |
---|
31 | <field name="comment" class="java.lang.String"/> |
---|
32 | <field name="attribValue" class="java.lang.String"/> |
---|
33 | <field name="attribType" class="java.lang.String"/> |
---|
34 | <group name="assetName"> |
---|
35 | <groupExpression><![CDATA[$F{name}]]></groupExpression> |
---|
36 | </group> |
---|
37 | </subDataset> |
---|
38 | <parameter name="reportTitle" class="java.lang.String"/> |
---|
39 | <parameter name="currentUser" class="java.lang.String"/> |
---|
40 | <parameter name="logoUrl" class="java.lang.String"/> |
---|
41 | <parameter name="asset" class="java.lang.String"/> |
---|
42 | <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> |
---|
43 | <defaultValueExpression><![CDATA["C:\\Documents and Settings\\kromhoutg\\My Documents\\reports\\"]]></defaultValueExpression> |
---|
44 | </parameter> |
---|
45 | <queryString language="SQL"> |
---|
46 | <![CDATA[]]> |
---|
47 | </queryString> |
---|
48 | <field name="name" class="java.lang.String"/> |
---|
49 | <field name="description" class="java.lang.String"/> |
---|
50 | <field name="attribValue" class="java.lang.String"/> |
---|
51 | <field name="attribType" class="java.lang.String"/> |
---|
52 | <field name="comment" class="java.lang.String"/> |
---|
53 | <group name="assetName" keepTogether="true"> |
---|
54 | <groupExpression><![CDATA[$F{name}]]></groupExpression> |
---|
55 | <groupHeader> |
---|
56 | <band height="52"> |
---|
57 | <textField isStretchWithOverflow="true" isBlankWhenNull="true"> |
---|
58 | <reportElement stretchType="RelativeToTallestObject" x="9" y="24" width="331" height="20" isPrintWhenDetailOverflows="true"/> |
---|
59 | <textElement> |
---|
60 | <font fontName="Serif" size="8"/> |
---|
61 | </textElement> |
---|
62 | <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> |
---|
63 | </textField> |
---|
64 | <textField isStretchWithOverflow="true"> |
---|
65 | <reportElement stretchType="RelativeToTallestObject" mode="Opaque" x="9" y="4" width="331" height="20" isPrintWhenDetailOverflows="true" backcolor="#FFFF33"/> |
---|
66 | <textElement> |
---|
67 | <font fontName="Serif" size="10" isBold="true"/> |
---|
68 | </textElement> |
---|
69 | <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> |
---|
70 | </textField> |
---|
71 | <textField isStretchWithOverflow="true"> |
---|
72 | <reportElement stretchType="RelativeToTallestObject" x="352" y="12" width="203" height="40" isPrintWhenDetailOverflows="true"/> |
---|
73 | <textElement> |
---|
74 | <font fontName="Serif" size="8"/> |
---|
75 | </textElement> |
---|
76 | <textFieldExpression class="java.lang.String"><![CDATA[$F{comment}]]></textFieldExpression> |
---|
77 | </textField> |
---|
78 | </band> |
---|
79 | </groupHeader> |
---|
80 | <groupFooter> |
---|
81 | <band/> |
---|
82 | </groupFooter> |
---|
83 | </group> |
---|
84 | <background> |
---|
85 | <band splitType="Stretch"/> |
---|
86 | </background> |
---|
87 | <pageHeader> |
---|
88 | <band height="93" splitType="Stretch"> |
---|
89 | <textField isStretchWithOverflow="true"> |
---|
90 | <reportElement key="staticText-1" stretchType="RelativeToTallestObject" x="0" y="57" width="340" height="20" isPrintWhenDetailOverflows="true"/> |
---|
91 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
---|
92 | <font fontName="Serif" size="14"/> |
---|
93 | </textElement> |
---|
94 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
95 | </textField> |
---|
96 | <image> |
---|
97 | <reportElement x="0" y="0" width="340" height="57"/> |
---|
98 | <imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression> |
---|
99 | </image> |
---|
100 | <textField isStretchWithOverflow="true"> |
---|
101 | <reportElement stretchType="RelativeToTallestObject" x="0" y="77" width="340" height="12" isPrintWhenDetailOverflows="true"> |
---|
102 | <printWhenExpression><![CDATA[$P{asset}.equals( "All" )]]></printWhenExpression> |
---|
103 | </reportElement> |
---|
104 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
105 | <font fontName="Serif" size="8"/> |
---|
106 | </textElement> |
---|
107 | <textFieldExpression class="java.lang.String"><![CDATA["For All Assets"]]></textFieldExpression> |
---|
108 | </textField> |
---|
109 | </band> |
---|
110 | </pageHeader> |
---|
111 | <columnHeader> |
---|
112 | <band splitType="Stretch"/> |
---|
113 | </columnHeader> |
---|
114 | <detail> |
---|
115 | <band height="24" splitType="Stretch"> |
---|
116 | <printWhenExpression><![CDATA[$F{attribValue}]]></printWhenExpression> |
---|
117 | <elementGroup> |
---|
118 | <textField isStretchWithOverflow="true"> |
---|
119 | <reportElement style="DetailBorder" stretchType="RelativeToTallestObject" x="138" y="2" width="288" height="20" isPrintWhenDetailOverflows="true"/> |
---|
120 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
121 | <font fontName="Serif" size="8"/> |
---|
122 | </textElement> |
---|
123 | <textFieldExpression class="java.lang.String"><![CDATA[$F{attribValue}]]></textFieldExpression> |
---|
124 | </textField> |
---|
125 | <textField isStretchWithOverflow="true"> |
---|
126 | <reportElement stretchType="RelativeToTallestObject" x="9" y="2" width="129" height="20" isPrintWhenDetailOverflows="true"/> |
---|
127 | <textElement> |
---|
128 | <font fontName="Serif" size="8" isBold="true" isUnderline="false"/> |
---|
129 | </textElement> |
---|
130 | <textFieldExpression class="java.lang.String"><![CDATA[$F{attribType}+":"]]></textFieldExpression> |
---|
131 | </textField> |
---|
132 | </elementGroup> |
---|
133 | </band> |
---|
134 | </detail> |
---|
135 | <columnFooter> |
---|
136 | <band splitType="Stretch"/> |
---|
137 | </columnFooter> |
---|
138 | <pageFooter> |
---|
139 | <band height="28" splitType="Stretch"> |
---|
140 | <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy"> |
---|
141 | <reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
---|
142 | <textElement> |
---|
143 | <font fontName="Serif" size="8"/> |
---|
144 | </textElement> |
---|
145 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
146 | </textField> |
---|
147 | <textField isStretchWithOverflow="true" evaluationTime="Report"> |
---|
148 | <reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/> |
---|
149 | <textElement> |
---|
150 | <font fontName="Serif" size="8"/> |
---|
151 | </textElement> |
---|
152 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
153 | </textField> |
---|
154 | <textField isStretchWithOverflow="true"> |
---|
155 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
---|
156 | <textElement markup="none"> |
---|
157 | <font fontName="Serif" size="8"/> |
---|
158 | </textElement> |
---|
159 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
160 | </textField> |
---|
161 | <textField isStretchWithOverflow="true"> |
---|
162 | <reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
---|
163 | <textElement markup="none"> |
---|
164 | <font fontName="Serif" size="8"/> |
---|
165 | </textElement> |
---|
166 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
167 | </textField> |
---|
168 | <textField isStretchWithOverflow="true"> |
---|
169 | <reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
---|
170 | <textElement markup="none"> |
---|
171 | <font fontName="Serif" size="8"/> |
---|
172 | </textElement> |
---|
173 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
174 | </textField> |
---|
175 | <textField isStretchWithOverflow="true"> |
---|
176 | <reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/> |
---|
177 | <textElement textAlignment="Right"> |
---|
178 | <font fontName="Serif" size="8"/> |
---|
179 | </textElement> |
---|
180 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
181 | </textField> |
---|
182 | </band> |
---|
183 | </pageFooter> |
---|
184 | <lastPageFooter> |
---|
185 | <band height="28"> |
---|
186 | <textField isStretchWithOverflow="true" evaluationTime="Report"> |
---|
187 | <reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/> |
---|
188 | <textElement> |
---|
189 | <font fontName="Serif" size="8"/> |
---|
190 | </textElement> |
---|
191 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
192 | </textField> |
---|
193 | <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy"> |
---|
194 | <reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
---|
195 | <textElement> |
---|
196 | <font fontName="Serif" size="8"/> |
---|
197 | </textElement> |
---|
198 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
199 | </textField> |
---|
200 | <textField isStretchWithOverflow="true"> |
---|
201 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
---|
202 | <textElement markup="none"> |
---|
203 | <font fontName="Serif" size="8"/> |
---|
204 | </textElement> |
---|
205 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
206 | </textField> |
---|
207 | <textField isStretchWithOverflow="true"> |
---|
208 | <reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
---|
209 | <textElement markup="none"> |
---|
210 | <font fontName="Serif" size="8"/> |
---|
211 | </textElement> |
---|
212 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
213 | </textField> |
---|
214 | <textField isStretchWithOverflow="true"> |
---|
215 | <reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
---|
216 | <textElement markup="none"> |
---|
217 | <font fontName="Serif" size="8"/> |
---|
218 | </textElement> |
---|
219 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
220 | </textField> |
---|
221 | <textField isStretchWithOverflow="true"> |
---|
222 | <reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/> |
---|
223 | <textElement textAlignment="Right"> |
---|
224 | <font fontName="Serif" size="8"/> |
---|
225 | </textElement> |
---|
226 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
227 | </textField> |
---|
228 | </band> |
---|
229 | </lastPageFooter> |
---|
230 | <summary> |
---|
231 | <band height="369"> |
---|
232 | <printWhenExpression><![CDATA[""]]></printWhenExpression> |
---|
233 | </band> |
---|
234 | </summary> |
---|
235 | <noData> |
---|
236 | <band height="85" splitType="Stretch"> |
---|
237 | <textField> |
---|
238 | <reportElement x="0" y="35" width="555" height="50"/> |
---|
239 | <textElement textAlignment="Center" markup="none"> |
---|
240 | <font fontName="Serif" size="14" isBold="true"/> |
---|
241 | </textElement> |
---|
242 | <textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+ |
---|
243 | "Please run report again."]]></textFieldExpression> |
---|
244 | </textField> |
---|
245 | <textField> |
---|
246 | <reportElement key="staticText-1" x="0" y="0" width="555" height="35"/> |
---|
247 | <textElement textAlignment="Center" markup="none"> |
---|
248 | <font fontName="Serif" size="20"/> |
---|
249 | </textElement> |
---|
250 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
251 | </textField> |
---|
252 | </band> |
---|
253 | </noData> |
---|
254 | </jasperReport> |
---|