source: trunk/web-app/reports/templateLandscape.jrxml @ 545

Last change on this file since 545 was 545, checked in by gav, 14 years ago

Update report templates, add downloadTemplate action and general tidy up of reports.

File size: 10.2 KB
Line 
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="20" bottomMargin="20" 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="description" class="java.lang.String"/>
63        </subDataset>
64        <parameter name="reportTitle" class="java.lang.String"/>
65        <parameter name="currentUser" class="java.lang.String"/>
66        <parameter name="logoUrl" class="java.lang.String"/>
67        <parameter name="startDateString" class="java.lang.String"/>
68        <parameter name="endDateString" class="java.lang.String"/>
69        <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
70                <defaultValueExpression><![CDATA["C:\\Documents and Settings\\kromhoutg\\My Documents\\reports\\"]]></defaultValueExpression>
71        </parameter>
72        <queryString language="SQL">
73                <![CDATA[]]>
74        </queryString>
75        <field name="summaryOfCalculationMethod" class="java.lang.String"/>
76        <field name="dataList" class="java.util.List"/>
77        <background>
78                <band splitType="Stretch"/>
79        </background>
80        <pageHeader>
81                <band height="121" splitType="Stretch">
82                        <textField>
83                                <reportElement key="staticText-1" x="0" y="57" width="340" height="30"/>
84                                <textElement textAlignment="Center" verticalAlignment="Top" markup="none">
85                                        <font size="20"/>
86                                </textElement>
87                                <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression>
88                        </textField>
89                        <image>
90                                <reportElement x="0" y="0" width="340" height="57"/>
91                                <imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression>
92                        </image>
93                        <textField pattern="dd-MMM-yyyy" isBlankWhenNull="true">
94                                <reportElement x="0" y="87" width="340" height="20"/>
95                                <textElement textAlignment="Center" verticalAlignment="Middle" markup="none"/>
96                                <textFieldExpression class="java.lang.String"><![CDATA[$P{startDateString}+" to "+$P{endDateString}]]></textFieldExpression>
97                        </textField>
98                </band>
99        </pageHeader>
100        <columnHeader>
101                <band splitType="Stretch"/>
102        </columnHeader>
103        <detail>
104                <band height="268" splitType="Stretch">
105                        <componentElement>
106                                <reportElement x="0" y="0" width="662" height="26"/>
107                                <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">
108                                        <datasetRun subDataset="dataset1">
109                                                <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{dataList})]]></dataSourceExpression>
110                                        </datasetRun>
111                                        <jr:listContents height="26" width="662">
112                                                <textField>
113                                                        <reportElement x="0" y="0" width="400" height="20"/>
114                                                        <textElement/>
115                                                        <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression>
116                                                </textField>
117                                        </jr:listContents>
118                                </jr:list>
119                        </componentElement>
120                </band>
121        </detail>
122        <columnFooter>
123                <band splitType="Stretch"/>
124        </columnFooter>
125        <pageFooter>
126                <band height="40" splitType="Stretch">
127                        <textField pattern="dd-MMM-yyyy">
128                                <reportElement x="82" y="0" width="200" height="20"/>
129                                <textElement/>
130                                <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
131                        </textField>
132                        <textField>
133                                <reportElement x="662" y="20" width="80" height="20"/>
134                                <textElement textAlignment="Right"/>
135                                <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
136                        </textField>
137                        <textField evaluationTime="Report">
138                                <reportElement x="742" y="20" width="40" height="20"/>
139                                <textElement/>
140                                <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
141                        </textField>
142                        <textField>
143                                <reportElement x="0" y="0" width="82" height="20"/>
144                                <textElement markup="none"/>
145                                <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
146                        </textField>
147                        <textField>
148                                <reportElement x="82" y="20" width="200" height="20"/>
149                                <textElement markup="none"/>
150                                <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
151                        </textField>
152                        <textField>
153                                <reportElement x="0" y="20" width="82" height="20"/>
154                                <textElement markup="none"/>
155                                <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
156                        </textField>
157                </band>
158        </pageFooter>
159        <lastPageFooter>
160                <band height="40">
161                        <textField evaluationTime="Report">
162                                <reportElement x="742" y="20" width="40" height="20"/>
163                                <textElement/>
164                                <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
165                        </textField>
166                        <textField pattern="dd-MMM-yyyy">
167                                <reportElement x="82" y="0" width="200" height="20"/>
168                                <textElement/>
169                                <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
170                        </textField>
171                        <textField>
172                                <reportElement x="0" y="0" width="82" height="20"/>
173                                <textElement markup="none"/>
174                                <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
175                        </textField>
176                        <textField>
177                                <reportElement x="0" y="20" width="82" height="20"/>
178                                <textElement markup="none"/>
179                                <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
180                        </textField>
181                        <textField>
182                                <reportElement x="82" y="20" width="200" height="20"/>
183                                <textElement markup="none"/>
184                                <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
185                        </textField>
186                        <textField>
187                                <reportElement x="662" y="20" width="80" height="20"/>
188                                <textElement textAlignment="Right"/>
189                                <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
190                        </textField>
191                </band>
192        </lastPageFooter>
193        <summary>
194                <band height="369">
195                        <textField>
196                                <reportElement key="staticText-1" x="221" y="12" width="340" height="30"/>
197                                <textElement textAlignment="Center" verticalAlignment="Top" markup="none">
198                                        <font size="20"/>
199                                </textElement>
200                                <textFieldExpression class="java.lang.String"><![CDATA["Summary of Calculation Method"]]></textFieldExpression>
201                        </textField>
202                        <textField>
203                                <reportElement x="0" y="50" width="782" height="311"/>
204                                <textElement/>
205                                <textFieldExpression class="java.lang.String"><![CDATA[$F{summaryOfCalculationMethod}]]></textFieldExpression>
206                        </textField>
207                </band>
208        </summary>
209        <noData>
210                <band height="85" splitType="Stretch">
211                        <textField>
212                                <reportElement x="0" y="35" width="782" height="50"/>
213                                <textElement textAlignment="Center" markup="none">
214                                        <font size="14" isBold="true"/>
215                                </textElement>
216                                <textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+
217"Please run report again."]]></textFieldExpression>
218                        </textField>
219                        <textField>
220                                <reportElement key="staticText-1" x="0" y="0" width="782" height="35"/>
221                                <textElement textAlignment="Center" markup="none">
222                                        <font size="20"/>
223                                </textElement>
224                                <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression>
225                        </textField>
226                </band>
227        </noData>
228</jasperReport>
Note: See TracBrowser for help on using the repository browser.