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="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="782" leftMargin="30" rightMargin="30" topMargin="12" bottomMargin="12" 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.0"/> |
---|
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="Crosstab Data Text" isDefault="false" hAlign="Center"/> |
---|
12 | <style name="table" isDefault="false" fill="Solid" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"> |
---|
13 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
14 | <pen lineWidth="0.0" lineColor="#000000"/> |
---|
15 | <topPen lineWidth="0.0"/> |
---|
16 | <leftPen lineWidth="0.0"/> |
---|
17 | <bottomPen lineWidth="0.0"/> |
---|
18 | <rightPen lineWidth="0.0"/> |
---|
19 | </box> |
---|
20 | </style> |
---|
21 | <style name="table_TH" isDefault="false" mode="Opaque" backcolor="#C7C7C7" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"> |
---|
22 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
23 | <pen lineWidth="1.0" lineColor="#000000"/> |
---|
24 | <topPen lineWidth="1.0"/> |
---|
25 | <leftPen lineWidth="0.0"/> |
---|
26 | <bottomPen lineWidth="1.0"/> |
---|
27 | <rightPen lineWidth="0.0"/> |
---|
28 | </box> |
---|
29 | </style> |
---|
30 | <style name="table_CH" isDefault="false" mode="Opaque" backcolor="#FFFFFF" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"> |
---|
31 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
32 | <pen lineWidth="1.0" lineColor="#000000"/> |
---|
33 | <topPen lineWidth="0.0"/> |
---|
34 | <leftPen lineWidth="0.0"/> |
---|
35 | <bottomPen lineWidth="1.0"/> |
---|
36 | <rightPen lineWidth="0.0"/> |
---|
37 | </box> |
---|
38 | </style> |
---|
39 | <style name="table_TD" isDefault="false" mode="Opaque" backcolor="#FFFFFF" fontSize="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"> |
---|
40 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
41 | <pen lineWidth="1.0" lineColor="#000000"/> |
---|
42 | <topPen lineWidth="1.0"/> |
---|
43 | <leftPen lineWidth="0.0"/> |
---|
44 | <bottomPen lineWidth="1.0"/> |
---|
45 | <rightPen lineWidth="0.0"/> |
---|
46 | </box> |
---|
47 | <conditionalStyle> |
---|
48 | <conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==0)]]></conditionExpression> |
---|
49 | <style isDefault="false" style="table_TD" backcolor="#F7F7F7"/> |
---|
50 | </conditionalStyle> |
---|
51 | </style> |
---|
52 | <style name="table_CF" isDefault="false" mode="Opaque" backcolor="#EDEDED" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"> |
---|
53 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
54 | <pen lineWidth="1.0"/> |
---|
55 | <topPen lineWidth="1.0"/> |
---|
56 | <leftPen lineWidth="0.0"/> |
---|
57 | <bottomPen lineWidth="1.0"/> |
---|
58 | <rightPen lineWidth="0.0"/> |
---|
59 | </box> |
---|
60 | </style> |
---|
61 | <subDataset name="dataset1"> |
---|
62 | <field name="name" class="java.lang.String"/> |
---|
63 | <field name="unitsInStock" class="java.lang.Integer"/> |
---|
64 | <field name="inventoryLocation" class="java.lang.Object"/> |
---|
65 | <field name="picture" class="java.lang.Object"/> |
---|
66 | <field name="unitOfMeasure" class="java.lang.Object"/> |
---|
67 | <field name="description" class="java.lang.String"/> |
---|
68 | <group name="group1"> |
---|
69 | <groupExpression><![CDATA[$F{inventoryLocation}.name]]></groupExpression> |
---|
70 | </group> |
---|
71 | </subDataset> |
---|
72 | <parameter name="reportTitle" class="java.lang.String"/> |
---|
73 | <parameter name="currentUser" class="java.lang.String"/> |
---|
74 | <parameter name="logoUrl" class="java.lang.String"/> |
---|
75 | <parameter name="startDateString" class="java.lang.String"/> |
---|
76 | <parameter name="endDateString" class="java.lang.String"/> |
---|
77 | <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> |
---|
78 | <defaultValueExpression><![CDATA["C:\\Documents and Settings\\kromhoutg\\My Documents\\reports\\"]]></defaultValueExpression> |
---|
79 | </parameter> |
---|
80 | <queryString language="SQL"> |
---|
81 | <![CDATA[]]> |
---|
82 | </queryString> |
---|
83 | <field name="inventoryItemList" class="java.util.List"/> |
---|
84 | <field name="summaryOfCalculationMethod" class="java.lang.String"/> |
---|
85 | <field name="inventoryItemCount" class="java.lang.Integer"/> |
---|
86 | <field name="locations" class="java.lang.String"/> |
---|
87 | <background> |
---|
88 | <band splitType="Stretch"/> |
---|
89 | </background> |
---|
90 | <pageHeader> |
---|
91 | <band height="93" splitType="Stretch"> |
---|
92 | <textField> |
---|
93 | <reportElement key="staticText-1" mode="Transparent" x="0" y="50" width="340" height="25" backcolor="#FFFFFF"/> |
---|
94 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
---|
95 | <font size="20"/> |
---|
96 | </textElement> |
---|
97 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
98 | </textField> |
---|
99 | <image> |
---|
100 | <reportElement x="0" y="0" width="340" height="50"/> |
---|
101 | <imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression> |
---|
102 | </image> |
---|
103 | <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy" isBlankWhenNull="true"> |
---|
104 | <reportElement x="0" y="75" width="340" height="17"/> |
---|
105 | <textElement textAlignment="Center" verticalAlignment="Middle" markup="none"/> |
---|
106 | <textFieldExpression class="java.lang.String"><![CDATA["Inventory Items: "+$F{inventoryItemCount}+", Locations: "+$F{locations}+"."]]></textFieldExpression> |
---|
107 | </textField> |
---|
108 | </band> |
---|
109 | </pageHeader> |
---|
110 | <columnHeader> |
---|
111 | <band splitType="Stretch"/> |
---|
112 | </columnHeader> |
---|
113 | <detail> |
---|
114 | <band height="438" splitType="Stretch"> |
---|
115 | <componentElement> |
---|
116 | <reportElement key="table 1" x="0" y="0" width="782" height="438"/> |
---|
117 | <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> |
---|
118 | <datasetRun subDataset="dataset1"> |
---|
119 | <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{inventoryItemList})]]></dataSourceExpression> |
---|
120 | </datasetRun> |
---|
121 | <jr:column width="127"> |
---|
122 | <jr:groupHeader groupName="group1"> |
---|
123 | <jr:cell height="20" rowSpan="1"> |
---|
124 | <textField> |
---|
125 | <reportElement x="0" y="0" width="127" height="20"/> |
---|
126 | <textElement verticalAlignment="Middle"> |
---|
127 | <font size="12" isBold="true"/> |
---|
128 | </textElement> |
---|
129 | <textFieldExpression class="java.lang.String"><![CDATA[$F{inventoryLocation}.name+" in "+$F{inventoryLocation}.inventoryStore.name]]></textFieldExpression> |
---|
130 | </textField> |
---|
131 | </jr:cell> |
---|
132 | </jr:groupHeader> |
---|
133 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"/> |
---|
134 | <jr:detailCell style="table_TD" height="51" rowSpan="1"> |
---|
135 | <image> |
---|
136 | <reportElement x="39" y="0" width="88" height="51"/> |
---|
137 | <imageExpression class="java.awt.Image"><![CDATA[net.sf.jasperreports.engine.util.JRImageLoader.loadImage($F{picture}.images.first().data)]]></imageExpression> |
---|
138 | </image> |
---|
139 | </jr:detailCell> |
---|
140 | </jr:column> |
---|
141 | <jr:column width="237"> |
---|
142 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
143 | <textField> |
---|
144 | <reportElement x="0" y="0" width="237" height="20"/> |
---|
145 | <textElement verticalAlignment="Middle"> |
---|
146 | <font isBold="true"/> |
---|
147 | </textElement> |
---|
148 | <textFieldExpression class="java.lang.String"><![CDATA["Inventory Item"]]></textFieldExpression> |
---|
149 | </textField> |
---|
150 | </jr:columnHeader> |
---|
151 | <jr:detailCell style="table_TD" height="51" rowSpan="1"> |
---|
152 | <textField isStretchWithOverflow="true"> |
---|
153 | <reportElement x="0" y="0" width="237" height="25"/> |
---|
154 | <textElement verticalAlignment="Top"/> |
---|
155 | <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> |
---|
156 | </textField> |
---|
157 | <textField isStretchWithOverflow="true"> |
---|
158 | <reportElement x="0" y="25" width="237" height="25"/> |
---|
159 | <textElement/> |
---|
160 | <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> |
---|
161 | </textField> |
---|
162 | </jr:detailCell> |
---|
163 | </jr:column> |
---|
164 | <jr:column width="104"> |
---|
165 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
166 | <textField> |
---|
167 | <reportElement x="0" y="0" width="104" height="20"/> |
---|
168 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
169 | <font isBold="true"/> |
---|
170 | </textElement> |
---|
171 | <textFieldExpression class="java.lang.String"><![CDATA["In Stock"]]></textFieldExpression> |
---|
172 | </textField> |
---|
173 | </jr:columnHeader> |
---|
174 | <jr:detailCell style="table_TD" height="51" rowSpan="1"> |
---|
175 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
176 | <leftPen lineWidth="0.0"/> |
---|
177 | <rightPen lineWidth="0.0"/> |
---|
178 | </box> |
---|
179 | <textField isStretchWithOverflow="true"> |
---|
180 | <reportElement x="0" y="0" width="104" height="51"/> |
---|
181 | <textElement textAlignment="Center" verticalAlignment="Middle"/> |
---|
182 | <textFieldExpression class="java.lang.String"><![CDATA[$F{unitsInStock}+" "+$F{unitOfMeasure}.name]]></textFieldExpression> |
---|
183 | </textField> |
---|
184 | </jr:detailCell> |
---|
185 | </jr:column> |
---|
186 | <jr:column width="90"> |
---|
187 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
188 | <textField> |
---|
189 | <reportElement x="0" y="0" width="90" height="20"/> |
---|
190 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
191 | <font isBold="true"/> |
---|
192 | </textElement> |
---|
193 | <textFieldExpression class="java.lang.String"><![CDATA["Actual Stock"]]></textFieldExpression> |
---|
194 | </textField> |
---|
195 | </jr:columnHeader> |
---|
196 | <jr:detailCell style="table_TD" height="51" rowSpan="1"> |
---|
197 | <rectangle> |
---|
198 | <reportElement x="5" y="8" width="80" height="35"/> |
---|
199 | </rectangle> |
---|
200 | </jr:detailCell> |
---|
201 | </jr:column> |
---|
202 | <jr:column width="82"> |
---|
203 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
204 | <textField isStretchWithOverflow="true"> |
---|
205 | <reportElement x="0" y="0" width="82" height="20"/> |
---|
206 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
207 | <font isBold="true"/> |
---|
208 | </textElement> |
---|
209 | <textFieldExpression class="java.lang.String"><![CDATA["Correction Required"]]></textFieldExpression> |
---|
210 | </textField> |
---|
211 | </jr:columnHeader> |
---|
212 | <jr:detailCell style="table_TD" height="51" rowSpan="1"> |
---|
213 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
214 | <leftPen lineWidth="0.0"/> |
---|
215 | <rightPen lineWidth="0.0"/> |
---|
216 | </box> |
---|
217 | <rectangle radius="10"> |
---|
218 | <reportElement x="31" y="15" width="30" height="20"/> |
---|
219 | </rectangle> |
---|
220 | </jr:detailCell> |
---|
221 | </jr:column> |
---|
222 | <jr:column width="139"> |
---|
223 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
224 | <textField> |
---|
225 | <reportElement x="0" y="0" width="139" height="20"/> |
---|
226 | <textElement verticalAlignment="Middle"> |
---|
227 | <font isBold="true"/> |
---|
228 | </textElement> |
---|
229 | <textFieldExpression class="java.lang.String"><![CDATA["Notes"]]></textFieldExpression> |
---|
230 | </textField> |
---|
231 | </jr:columnHeader> |
---|
232 | <jr:detailCell style="table_TD" height="51" rowSpan="1"/> |
---|
233 | </jr:column> |
---|
234 | </jr:table> |
---|
235 | </componentElement> |
---|
236 | </band> |
---|
237 | </detail> |
---|
238 | <columnFooter> |
---|
239 | <band splitType="Stretch"/> |
---|
240 | </columnFooter> |
---|
241 | <pageFooter> |
---|
242 | <band height="34" splitType="Stretch"> |
---|
243 | <textField pattern="dd-MMM-yyyy"> |
---|
244 | <reportElement x="82" y="0" width="200" height="17"/> |
---|
245 | <textElement/> |
---|
246 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
247 | </textField> |
---|
248 | <textField> |
---|
249 | <reportElement x="662" y="14" width="80" height="20"/> |
---|
250 | <textElement textAlignment="Right"/> |
---|
251 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
252 | </textField> |
---|
253 | <textField evaluationTime="Report"> |
---|
254 | <reportElement x="742" y="14" width="40" height="20"/> |
---|
255 | <textElement/> |
---|
256 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
257 | </textField> |
---|
258 | <textField> |
---|
259 | <reportElement x="0" y="0" width="82" height="17"/> |
---|
260 | <textElement markup="none"/> |
---|
261 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
262 | </textField> |
---|
263 | <textField> |
---|
264 | <reportElement x="82" y="17" width="200" height="17"/> |
---|
265 | <textElement markup="none"/> |
---|
266 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
267 | </textField> |
---|
268 | <textField> |
---|
269 | <reportElement x="0" y="17" width="82" height="17"/> |
---|
270 | <textElement markup="none"/> |
---|
271 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
272 | </textField> |
---|
273 | </band> |
---|
274 | </pageFooter> |
---|
275 | <lastPageFooter> |
---|
276 | <band height="34"> |
---|
277 | <textField evaluationTime="Report"> |
---|
278 | <reportElement x="742" y="14" width="40" height="20"/> |
---|
279 | <textElement/> |
---|
280 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
281 | </textField> |
---|
282 | <textField pattern="dd-MMM-yyyy"> |
---|
283 | <reportElement x="82" y="0" width="200" height="17"/> |
---|
284 | <textElement/> |
---|
285 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
286 | </textField> |
---|
287 | <textField> |
---|
288 | <reportElement x="0" y="0" width="82" height="17"/> |
---|
289 | <textElement markup="none"/> |
---|
290 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
291 | </textField> |
---|
292 | <textField> |
---|
293 | <reportElement x="0" y="17" width="82" height="17"/> |
---|
294 | <textElement markup="none"/> |
---|
295 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
296 | </textField> |
---|
297 | <textField> |
---|
298 | <reportElement x="82" y="17" width="200" height="17"/> |
---|
299 | <textElement markup="none"/> |
---|
300 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
301 | </textField> |
---|
302 | <textField> |
---|
303 | <reportElement x="662" y="14" width="80" height="20"/> |
---|
304 | <textElement textAlignment="Right"/> |
---|
305 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
306 | </textField> |
---|
307 | </band> |
---|
308 | </lastPageFooter> |
---|
309 | <summary> |
---|
310 | <band height="369"> |
---|
311 | <textField> |
---|
312 | <reportElement key="staticText-1" x="221" y="12" width="340" height="30"/> |
---|
313 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
---|
314 | <font size="20"/> |
---|
315 | </textElement> |
---|
316 | <textFieldExpression class="java.lang.String"><![CDATA["Summary"]]></textFieldExpression> |
---|
317 | </textField> |
---|
318 | <textField> |
---|
319 | <reportElement x="0" y="60" width="782" height="309"/> |
---|
320 | <textElement/> |
---|
321 | <textFieldExpression class="java.lang.String"><![CDATA[$F{summaryOfCalculationMethod}]]></textFieldExpression> |
---|
322 | </textField> |
---|
323 | </band> |
---|
324 | </summary> |
---|
325 | <noData> |
---|
326 | <band height="85" splitType="Stretch"> |
---|
327 | <textField> |
---|
328 | <reportElement x="0" y="35" width="782" height="50"/> |
---|
329 | <textElement textAlignment="Center" markup="none"> |
---|
330 | <font size="14" isBold="true"/> |
---|
331 | </textElement> |
---|
332 | <textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+ |
---|
333 | "Please run report again."]]></textFieldExpression> |
---|
334 | </textField> |
---|
335 | <textField> |
---|
336 | <reportElement key="staticText-1" x="0" y="0" width="782" height="35"/> |
---|
337 | <textElement textAlignment="Center" markup="none"> |
---|
338 | <font size="20"/> |
---|
339 | </textElement> |
---|
340 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
341 | </textField> |
---|
342 | </band> |
---|
343 | </noData> |
---|
344 | </jasperReport> |
---|