| 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="section" 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 | <parameter name="site" class="java.lang.String"/> |
|---|
| 46 | <queryString language="SQL"> |
|---|
| 47 | <![CDATA[]]> |
|---|
| 48 | </queryString> |
|---|
| 49 | <field name="name" class="java.lang.String"/> |
|---|
| 50 | <field name="description" class="java.lang.String"/> |
|---|
| 51 | <field name="attribValue" class="java.lang.String"/> |
|---|
| 52 | <field name="attribType" class="java.lang.String"/> |
|---|
| 53 | <field name="comment" class="java.lang.String"/> |
|---|
| 54 | <group name="assetName" keepTogether="true"> |
|---|
| 55 | <groupExpression><![CDATA[$F{name}]]></groupExpression> |
|---|
| 56 | <groupHeader> |
|---|
| 57 | <band height="52"> |
|---|
| 58 | <textField isStretchWithOverflow="true" isBlankWhenNull="true"> |
|---|
| 59 | <reportElement stretchType="RelativeToTallestObject" x="9" y="24" width="331" height="20" isPrintWhenDetailOverflows="true"/> |
|---|
| 60 | <textElement> |
|---|
| 61 | <font fontName="Serif" size="8"/> |
|---|
| 62 | </textElement> |
|---|
| 63 | <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> |
|---|
| 64 | </textField> |
|---|
| 65 | <textField isStretchWithOverflow="true"> |
|---|
| 66 | <reportElement stretchType="RelativeToTallestObject" mode="Opaque" x="9" y="4" width="331" height="20" isPrintWhenDetailOverflows="true" backcolor="#FFFF33"/> |
|---|
| 67 | <textElement> |
|---|
| 68 | <font fontName="Serif" size="10" isBold="true"/> |
|---|
| 69 | </textElement> |
|---|
| 70 | <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> |
|---|
| 71 | </textField> |
|---|
| 72 | <textField isStretchWithOverflow="true"> |
|---|
| 73 | <reportElement stretchType="RelativeToTallestObject" x="352" y="12" width="203" height="40" isPrintWhenDetailOverflows="true"/> |
|---|
| 74 | <textElement> |
|---|
| 75 | <font fontName="Serif" size="8"/> |
|---|
| 76 | </textElement> |
|---|
| 77 | <textFieldExpression class="java.lang.String"><![CDATA[$F{comment}]]></textFieldExpression> |
|---|
| 78 | </textField> |
|---|
| 79 | </band> |
|---|
| 80 | </groupHeader> |
|---|
| 81 | <groupFooter> |
|---|
| 82 | <band/> |
|---|
| 83 | </groupFooter> |
|---|
| 84 | </group> |
|---|
| 85 | <background> |
|---|
| 86 | <band splitType="Stretch"/> |
|---|
| 87 | </background> |
|---|
| 88 | <pageHeader> |
|---|
| 89 | <band height="60" splitType="Stretch"> |
|---|
| 90 | <textField isStretchWithOverflow="true"> |
|---|
| 91 | <reportElement key="staticText-1" stretchType="RelativeToTallestObject" x="352" y="9" width="225" height="20" isPrintWhenDetailOverflows="true"/> |
|---|
| 92 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
|---|
| 93 | <font fontName="Serif" size="14"/> |
|---|
| 94 | </textElement> |
|---|
| 95 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
|---|
| 96 | </textField> |
|---|
| 97 | <image> |
|---|
| 98 | <reportElement x="0" y="0" width="340" height="57"/> |
|---|
| 99 | <imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression> |
|---|
| 100 | </image> |
|---|
| 101 | <textField isStretchWithOverflow="true"> |
|---|
| 102 | <reportElement stretchType="RelativeToTallestObject" x="352" y="29" width="225" height="15" isPrintWhenDetailOverflows="true"/> |
|---|
| 103 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
|---|
| 104 | <font fontName="Serif" size="10"/> |
|---|
| 105 | </textElement> |
|---|
| 106 | <textFieldExpression class="java.lang.String"><![CDATA["Site: "+$P{site}+", "+"Section: "+$P{section}]]></textFieldExpression> |
|---|
| 107 | </textField> |
|---|
| 108 | </band> |
|---|
| 109 | </pageHeader> |
|---|
| 110 | <columnHeader> |
|---|
| 111 | <band splitType="Stretch"/> |
|---|
| 112 | </columnHeader> |
|---|
| 113 | <detail> |
|---|
| 114 | <band height="24" splitType="Stretch"> |
|---|
| 115 | <printWhenExpression><![CDATA[$F{attribValue}]]></printWhenExpression> |
|---|
| 116 | <elementGroup> |
|---|
| 117 | <textField isStretchWithOverflow="true"> |
|---|
| 118 | <reportElement style="DetailBorder" stretchType="RelativeToTallestObject" x="138" y="2" width="288" height="20" isPrintWhenDetailOverflows="true"/> |
|---|
| 119 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
|---|
| 120 | <font fontName="Serif" size="8"/> |
|---|
| 121 | </textElement> |
|---|
| 122 | <textFieldExpression class="java.lang.String"><![CDATA[$F{attribValue}]]></textFieldExpression> |
|---|
| 123 | </textField> |
|---|
| 124 | <textField isStretchWithOverflow="true"> |
|---|
| 125 | <reportElement stretchType="RelativeToTallestObject" x="9" y="2" width="129" height="20" isPrintWhenDetailOverflows="true"/> |
|---|
| 126 | <textElement> |
|---|
| 127 | <font fontName="Serif" size="8" isBold="true" isUnderline="false"/> |
|---|
| 128 | </textElement> |
|---|
| 129 | <textFieldExpression class="java.lang.String"><![CDATA[$F{attribType}+":"]]></textFieldExpression> |
|---|
| 130 | </textField> |
|---|
| 131 | </elementGroup> |
|---|
| 132 | </band> |
|---|
| 133 | </detail> |
|---|
| 134 | <columnFooter> |
|---|
| 135 | <band splitType="Stretch"/> |
|---|
| 136 | </columnFooter> |
|---|
| 137 | <pageFooter> |
|---|
| 138 | <band height="28" splitType="Stretch"> |
|---|
| 139 | <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy"> |
|---|
| 140 | <reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 141 | <textElement> |
|---|
| 142 | <font fontName="Serif" size="8"/> |
|---|
| 143 | </textElement> |
|---|
| 144 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
|---|
| 145 | </textField> |
|---|
| 146 | <textField isStretchWithOverflow="true" evaluationTime="Report"> |
|---|
| 147 | <reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 148 | <textElement> |
|---|
| 149 | <font fontName="Serif" size="8"/> |
|---|
| 150 | </textElement> |
|---|
| 151 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
|---|
| 152 | </textField> |
|---|
| 153 | <textField isStretchWithOverflow="true"> |
|---|
| 154 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 155 | <textElement markup="none"> |
|---|
| 156 | <font fontName="Serif" size="8"/> |
|---|
| 157 | </textElement> |
|---|
| 158 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
|---|
| 159 | </textField> |
|---|
| 160 | <textField isStretchWithOverflow="true"> |
|---|
| 161 | <reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 162 | <textElement markup="none"> |
|---|
| 163 | <font fontName="Serif" size="8"/> |
|---|
| 164 | </textElement> |
|---|
| 165 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
|---|
| 166 | </textField> |
|---|
| 167 | <textField isStretchWithOverflow="true"> |
|---|
| 168 | <reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 169 | <textElement markup="none"> |
|---|
| 170 | <font fontName="Serif" size="8"/> |
|---|
| 171 | </textElement> |
|---|
| 172 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
|---|
| 173 | </textField> |
|---|
| 174 | <textField isStretchWithOverflow="true"> |
|---|
| 175 | <reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 176 | <textElement textAlignment="Right"> |
|---|
| 177 | <font fontName="Serif" size="8"/> |
|---|
| 178 | </textElement> |
|---|
| 179 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
|---|
| 180 | </textField> |
|---|
| 181 | </band> |
|---|
| 182 | </pageFooter> |
|---|
| 183 | <lastPageFooter> |
|---|
| 184 | <band height="28"> |
|---|
| 185 | <textField isStretchWithOverflow="true" evaluationTime="Report"> |
|---|
| 186 | <reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 187 | <textElement> |
|---|
| 188 | <font fontName="Serif" size="8"/> |
|---|
| 189 | </textElement> |
|---|
| 190 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
|---|
| 191 | </textField> |
|---|
| 192 | <textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy"> |
|---|
| 193 | <reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 194 | <textElement> |
|---|
| 195 | <font fontName="Serif" size="8"/> |
|---|
| 196 | </textElement> |
|---|
| 197 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
|---|
| 198 | </textField> |
|---|
| 199 | <textField isStretchWithOverflow="true"> |
|---|
| 200 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 201 | <textElement markup="none"> |
|---|
| 202 | <font fontName="Serif" size="8"/> |
|---|
| 203 | </textElement> |
|---|
| 204 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
|---|
| 205 | </textField> |
|---|
| 206 | <textField isStretchWithOverflow="true"> |
|---|
| 207 | <reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 208 | <textElement markup="none"> |
|---|
| 209 | <font fontName="Serif" size="8"/> |
|---|
| 210 | </textElement> |
|---|
| 211 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
|---|
| 212 | </textField> |
|---|
| 213 | <textField isStretchWithOverflow="true"> |
|---|
| 214 | <reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 215 | <textElement markup="none"> |
|---|
| 216 | <font fontName="Serif" size="8"/> |
|---|
| 217 | </textElement> |
|---|
| 218 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
|---|
| 219 | </textField> |
|---|
| 220 | <textField isStretchWithOverflow="true"> |
|---|
| 221 | <reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/> |
|---|
| 222 | <textElement textAlignment="Right"> |
|---|
| 223 | <font fontName="Serif" size="8"/> |
|---|
| 224 | </textElement> |
|---|
| 225 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
|---|
| 226 | </textField> |
|---|
| 227 | </band> |
|---|
| 228 | </lastPageFooter> |
|---|
| 229 | <summary> |
|---|
| 230 | <band height="369"> |
|---|
| 231 | <printWhenExpression><![CDATA[""]]></printWhenExpression> |
|---|
| 232 | </band> |
|---|
| 233 | </summary> |
|---|
| 234 | <noData> |
|---|
| 235 | <band height="85" splitType="Stretch"> |
|---|
| 236 | <textField> |
|---|
| 237 | <reportElement x="0" y="35" width="555" height="50"/> |
|---|
| 238 | <textElement textAlignment="Center" markup="none"> |
|---|
| 239 | <font fontName="Serif" size="14" isBold="true"/> |
|---|
| 240 | </textElement> |
|---|
| 241 | <textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+ |
|---|
| 242 | "Please run report again."]]></textFieldExpression> |
|---|
| 243 | </textField> |
|---|
| 244 | <textField> |
|---|
| 245 | <reportElement key="staticText-1" x="0" y="0" width="555" height="35"/> |
|---|
| 246 | <textElement textAlignment="Center" markup="none"> |
|---|
| 247 | <font fontName="Serif" size="20"/> |
|---|
| 248 | </textElement> |
|---|
| 249 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
|---|
| 250 | </textField> |
|---|
| 251 | </band> |
|---|
| 252 | </noData> |
|---|
| 253 | </jasperReport> |
|---|