[533] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
[545] | 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"> |
---|
[533] | 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"/> |
---|
[545] | 8 | <import value="net.sf.jasperreports.engine.*"/> |
---|
[533] | 9 | <import value="java.util.*"/> |
---|
| 10 | <import value="net.sf.jasperreports.engine.data.*"/> |
---|
[545] | 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"> |
---|
[533] | 23 | <pen lineWidth="1.0" lineColor="#000000"/> |
---|
[545] | 24 | <topPen lineWidth="1.0"/> |
---|
| 25 | <leftPen lineWidth="0.0"/> |
---|
| 26 | <bottomPen lineWidth="1.0"/> |
---|
| 27 | <rightPen lineWidth="0.0"/> |
---|
[533] | 28 | </box> |
---|
| 29 | </style> |
---|
[545] | 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"/> |
---|
[533] | 37 | </box> |
---|
| 38 | </style> |
---|
[545] | 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"/> |
---|
[533] | 46 | </box> |
---|
[545] | 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> |
---|
[533] | 51 | </style> |
---|
[545] | 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"/> |
---|
[533] | 59 | </box> |
---|
| 60 | </style> |
---|
[545] | 61 | <subDataset name="dataset1"> |
---|
| 62 | <field name="description" class="java.lang.String"/> |
---|
| 63 | </subDataset> |
---|
[533] | 64 | <parameter name="reportTitle" class="java.lang.String"/> |
---|
| 65 | <parameter name="currentUser" class="java.lang.String"/> |
---|
[545] | 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"/> |
---|
[533] | 77 | <background> |
---|
| 78 | <band splitType="Stretch"/> |
---|
| 79 | </background> |
---|
| 80 | <pageHeader> |
---|
[545] | 81 | <band height="121" splitType="Stretch"> |
---|
[533] | 82 | <textField> |
---|
[545] | 83 | <reportElement key="staticText-1" x="0" y="57" width="340" height="30"/> |
---|
| 84 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
---|
[682] | 85 | <font fontName="Serif" size="20"/> |
---|
[533] | 86 | </textElement> |
---|
| 87 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
| 88 | </textField> |
---|
[545] | 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"/> |
---|
[682] | 95 | <textElement textAlignment="Center" verticalAlignment="Middle" markup="none"> |
---|
| 96 | <font fontName="Serif"/> |
---|
| 97 | </textElement> |
---|
[545] | 98 | <textFieldExpression class="java.lang.String"><![CDATA[$P{startDateString}+" to "+$P{endDateString}]]></textFieldExpression> |
---|
| 99 | </textField> |
---|
[533] | 100 | </band> |
---|
| 101 | </pageHeader> |
---|
| 102 | <columnHeader> |
---|
[545] | 103 | <band splitType="Stretch"/> |
---|
[533] | 104 | </columnHeader> |
---|
| 105 | <detail> |
---|
[545] | 106 | <band height="268" splitType="Stretch"> |
---|
| 107 | <componentElement> |
---|
| 108 | <reportElement x="0" y="0" width="662" height="26"/> |
---|
| 109 | <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"> |
---|
| 110 | <datasetRun subDataset="dataset1"> |
---|
| 111 | <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{dataList})]]></dataSourceExpression> |
---|
| 112 | </datasetRun> |
---|
| 113 | <jr:listContents height="26" width="662"> |
---|
| 114 | <textField> |
---|
| 115 | <reportElement x="0" y="0" width="400" height="20"/> |
---|
[682] | 116 | <textElement> |
---|
| 117 | <font fontName="Serif"/> |
---|
| 118 | </textElement> |
---|
[545] | 119 | <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> |
---|
| 120 | </textField> |
---|
| 121 | </jr:listContents> |
---|
| 122 | </jr:list> |
---|
| 123 | </componentElement> |
---|
[533] | 124 | </band> |
---|
| 125 | </detail> |
---|
| 126 | <columnFooter> |
---|
[545] | 127 | <band splitType="Stretch"/> |
---|
[533] | 128 | </columnFooter> |
---|
| 129 | <pageFooter> |
---|
| 130 | <band height="40" splitType="Stretch"> |
---|
| 131 | <textField pattern="dd-MMM-yyyy"> |
---|
| 132 | <reportElement x="82" y="0" width="200" height="20"/> |
---|
[682] | 133 | <textElement> |
---|
| 134 | <font fontName="Serif"/> |
---|
| 135 | </textElement> |
---|
[533] | 136 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
| 137 | </textField> |
---|
| 138 | <textField> |
---|
[545] | 139 | <reportElement x="662" y="20" width="80" height="20"/> |
---|
[682] | 140 | <textElement textAlignment="Right"> |
---|
| 141 | <font fontName="Serif"/> |
---|
| 142 | </textElement> |
---|
[533] | 143 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
| 144 | </textField> |
---|
| 145 | <textField evaluationTime="Report"> |
---|
[545] | 146 | <reportElement x="742" y="20" width="40" height="20"/> |
---|
[682] | 147 | <textElement> |
---|
| 148 | <font fontName="Serif"/> |
---|
| 149 | </textElement> |
---|
[533] | 150 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
| 151 | </textField> |
---|
| 152 | <textField> |
---|
| 153 | <reportElement x="0" y="0" width="82" height="20"/> |
---|
[682] | 154 | <textElement markup="none"> |
---|
| 155 | <font fontName="Serif"/> |
---|
| 156 | </textElement> |
---|
[533] | 157 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
| 158 | </textField> |
---|
| 159 | <textField> |
---|
| 160 | <reportElement x="82" y="20" width="200" height="20"/> |
---|
[682] | 161 | <textElement markup="none"> |
---|
| 162 | <font fontName="Serif"/> |
---|
| 163 | </textElement> |
---|
[533] | 164 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
| 165 | </textField> |
---|
| 166 | <textField> |
---|
| 167 | <reportElement x="0" y="20" width="82" height="20"/> |
---|
[682] | 168 | <textElement markup="none"> |
---|
| 169 | <font fontName="Serif"/> |
---|
| 170 | </textElement> |
---|
[533] | 171 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
| 172 | </textField> |
---|
| 173 | </band> |
---|
| 174 | </pageFooter> |
---|
[545] | 175 | <lastPageFooter> |
---|
| 176 | <band height="40"> |
---|
| 177 | <textField evaluationTime="Report"> |
---|
| 178 | <reportElement x="742" y="20" width="40" height="20"/> |
---|
[682] | 179 | <textElement> |
---|
| 180 | <font fontName="Serif"/> |
---|
| 181 | </textElement> |
---|
[545] | 182 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
| 183 | </textField> |
---|
| 184 | <textField pattern="dd-MMM-yyyy"> |
---|
| 185 | <reportElement x="82" y="0" width="200" height="20"/> |
---|
[682] | 186 | <textElement> |
---|
| 187 | <font fontName="Serif"/> |
---|
| 188 | </textElement> |
---|
[545] | 189 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
| 190 | </textField> |
---|
| 191 | <textField> |
---|
| 192 | <reportElement x="0" y="0" width="82" height="20"/> |
---|
[682] | 193 | <textElement markup="none"> |
---|
| 194 | <font fontName="Serif"/> |
---|
| 195 | </textElement> |
---|
[545] | 196 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
| 197 | </textField> |
---|
| 198 | <textField> |
---|
| 199 | <reportElement x="0" y="20" width="82" height="20"/> |
---|
[682] | 200 | <textElement markup="none"> |
---|
| 201 | <font fontName="Serif"/> |
---|
| 202 | </textElement> |
---|
[545] | 203 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
| 204 | </textField> |
---|
| 205 | <textField> |
---|
| 206 | <reportElement x="82" y="20" width="200" height="20"/> |
---|
[682] | 207 | <textElement markup="none"> |
---|
| 208 | <font fontName="Serif"/> |
---|
| 209 | </textElement> |
---|
[545] | 210 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
| 211 | </textField> |
---|
| 212 | <textField> |
---|
| 213 | <reportElement x="662" y="20" width="80" height="20"/> |
---|
[682] | 214 | <textElement textAlignment="Right"> |
---|
| 215 | <font fontName="Serif"/> |
---|
| 216 | </textElement> |
---|
[545] | 217 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
| 218 | </textField> |
---|
| 219 | </band> |
---|
| 220 | </lastPageFooter> |
---|
| 221 | <summary> |
---|
| 222 | <band height="369"> |
---|
| 223 | <textField> |
---|
| 224 | <reportElement key="staticText-1" x="221" y="12" width="340" height="30"/> |
---|
| 225 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
---|
[682] | 226 | <font fontName="Serif" size="20"/> |
---|
[545] | 227 | </textElement> |
---|
| 228 | <textFieldExpression class="java.lang.String"><![CDATA["Summary of Calculation Method"]]></textFieldExpression> |
---|
| 229 | </textField> |
---|
| 230 | <textField> |
---|
| 231 | <reportElement x="0" y="50" width="782" height="311"/> |
---|
[682] | 232 | <textElement> |
---|
| 233 | <font fontName="Serif"/> |
---|
| 234 | </textElement> |
---|
[545] | 235 | <textFieldExpression class="java.lang.String"><![CDATA[$F{summaryOfCalculationMethod}]]></textFieldExpression> |
---|
| 236 | </textField> |
---|
| 237 | </band> |
---|
| 238 | </summary> |
---|
[533] | 239 | <noData> |
---|
| 240 | <band height="85" splitType="Stretch"> |
---|
| 241 | <textField> |
---|
| 242 | <reportElement x="0" y="35" width="782" height="50"/> |
---|
| 243 | <textElement textAlignment="Center" markup="none"> |
---|
[682] | 244 | <font fontName="Serif" size="14" isBold="true"/> |
---|
[533] | 245 | </textElement> |
---|
| 246 | <textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+ |
---|
| 247 | "Please run report again."]]></textFieldExpression> |
---|
| 248 | </textField> |
---|
| 249 | <textField> |
---|
| 250 | <reportElement key="staticText-1" x="0" y="0" width="782" height="35"/> |
---|
| 251 | <textElement textAlignment="Center" markup="none"> |
---|
[682] | 252 | <font fontName="Serif" size="20"/> |
---|
[533] | 253 | </textElement> |
---|
| 254 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
| 255 | </textField> |
---|
| 256 | </band> |
---|
| 257 | </noData> |
---|
| 258 | </jasperReport> |
---|