[668] | 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"/> |
---|
[670] | 7 | <property name="ireport.y" value="0"/> |
---|
| 8 | <import value="net.sf.jasperreports.engine.*"/> |
---|
[669] | 9 | <import value="java.util.*"/> |
---|
[668] | 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> |
---|
[675] | 61 | <style name="horizontalBorder" isDefault="false"> |
---|
[668] | 62 | <box> |
---|
| 63 | <leftPen lineWidth="0.0"/> |
---|
| 64 | <bottomPen lineWidth="0.5"/> |
---|
| 65 | <rightPen lineWidth="0.0"/> |
---|
| 66 | </box> |
---|
| 67 | </style> |
---|
| 68 | <subDataset name="dataset1"> |
---|
| 69 | <field name="name" class="java.lang.String"/> |
---|
| 70 | <field name="unitsInStock" class="java.lang.Integer"/> |
---|
| 71 | <field name="inventoryLocation" class="java.lang.Object"/> |
---|
| 72 | <field name="unitOfMeasure" class="java.lang.Object"/> |
---|
| 73 | <field name="description" class="java.lang.String"/> |
---|
| 74 | <field name="estimatedUnitPriceAmount" class="java.math.BigDecimal"/> |
---|
| 75 | <field name="estimatedUnitPriceCurrency" class="java.lang.String"/> |
---|
| 76 | <variable name="totalValue" class="java.math.BigDecimal" calculation="Sum"> |
---|
| 77 | <variableExpression><![CDATA[$F{estimatedUnitPriceAmount}]]></variableExpression> |
---|
| 78 | </variable> |
---|
| 79 | </subDataset> |
---|
| 80 | <subDataset name="dataset2_inventoryTypes"> |
---|
| 81 | <field name="name" class="java.lang.String"/> |
---|
| 82 | </subDataset> |
---|
| 83 | <subDataset name="dataset3_inventoryGroups"> |
---|
| 84 | <field name="name" class="java.lang.String"/> |
---|
| 85 | </subDataset> |
---|
| 86 | <parameter name="reportTitle" class="java.lang.String"/> |
---|
| 87 | <parameter name="currentUser" class="java.lang.String"/> |
---|
| 88 | <parameter name="logoUrl" class="java.lang.String"/> |
---|
| 89 | <queryString language="SQL"> |
---|
| 90 | <![CDATA[]]> |
---|
| 91 | </queryString> |
---|
| 92 | <field name="inventoryItemList" class="java.util.List"/> |
---|
| 93 | <field name="summaryOfCalculationMethod" class="java.lang.String"/> |
---|
| 94 | <field name="inventoryItemCount" class="java.lang.Integer"/> |
---|
| 95 | <field name="errorMessage" class="java.lang.String"/> |
---|
| 96 | <field name="inventoryItemTotalValue" class="java.math.BigDecimal"/> |
---|
| 97 | <field name="currency" class="java.lang.String"/> |
---|
| 98 | <field name="inventoryTypes" class="java.util.List"/> |
---|
| 99 | <field name="site" class="java.lang.Object"/> |
---|
| 100 | <field name="inventoryGroups" class="java.util.List"/> |
---|
| 101 | <background> |
---|
| 102 | <band splitType="Stretch"/> |
---|
| 103 | </background> |
---|
| 104 | <pageHeader> |
---|
| 105 | <band height="54" splitType="Stretch"> |
---|
| 106 | <textField> |
---|
| 107 | <reportElement key="staticText-1" mode="Transparent" x="400" y="6" width="350" height="20" backcolor="#FFFFFF"/> |
---|
| 108 | <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> |
---|
[670] | 109 | <font fontName="Serif" size="14"/> |
---|
[668] | 110 | </textElement> |
---|
| 111 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
| 112 | </textField> |
---|
| 113 | <image> |
---|
| 114 | <reportElement x="0" y="0" width="340" height="50"/> |
---|
| 115 | <imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression> |
---|
| 116 | </image> |
---|
| 117 | <textField> |
---|
| 118 | <reportElement x="400" y="26" width="350" height="18"/> |
---|
| 119 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 120 | <font fontName="Serif"/> |
---|
| 121 | </textElement> |
---|
| 122 | <textFieldExpression class="java.lang.String"><![CDATA["Site: "+$F{site}.name]]></textFieldExpression> |
---|
| 123 | </textField> |
---|
| 124 | </band> |
---|
| 125 | </pageHeader> |
---|
| 126 | <columnHeader> |
---|
| 127 | <band splitType="Stretch"/> |
---|
| 128 | </columnHeader> |
---|
| 129 | <detail> |
---|
| 130 | <band height="438" splitType="Stretch"> |
---|
[670] | 131 | <textField isStretchWithOverflow="true" isBlankWhenNull="true"> |
---|
| 132 | <reportElement x="0" y="27" width="105" height="17" isPrintWhenDetailOverflows="true"/> |
---|
| 133 | <textElement verticalAlignment="Middle" markup="none"> |
---|
| 134 | <font fontName="Serif" size="12" isBold="false"/> |
---|
| 135 | </textElement> |
---|
| 136 | <textFieldExpression class="java.lang.String"><![CDATA["Total Value("+$F{currency}+"): "]]></textFieldExpression> |
---|
| 137 | </textField> |
---|
| 138 | <textField isStretchWithOverflow="true" pattern="# ##0" isBlankWhenNull="true"> |
---|
| 139 | <reportElement x="105" y="44" width="235" height="17" isPrintWhenDetailOverflows="true"/> |
---|
| 140 | <textElement verticalAlignment="Middle" markup="none"> |
---|
| 141 | <font fontName="Serif"/> |
---|
| 142 | </textElement> |
---|
| 143 | <textFieldExpression class="java.lang.Integer"><![CDATA[$F{inventoryItemCount}]]></textFieldExpression> |
---|
| 144 | </textField> |
---|
| 145 | <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true"> |
---|
| 146 | <reportElement x="105" y="27" width="235" height="17" isPrintWhenDetailOverflows="true"/> |
---|
| 147 | <textElement verticalAlignment="Middle" markup="none"> |
---|
| 148 | <font fontName="Serif" size="12" isBold="false"/> |
---|
| 149 | </textElement> |
---|
| 150 | <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{inventoryItemTotalValue}]]></textFieldExpression> |
---|
| 151 | </textField> |
---|
| 152 | <textField isStretchWithOverflow="true" isBlankWhenNull="true"> |
---|
| 153 | <reportElement x="0" y="44" width="105" height="17" isPrintWhenDetailOverflows="true"/> |
---|
| 154 | <textElement verticalAlignment="Middle" markup="none"> |
---|
| 155 | <font fontName="Serif"/> |
---|
| 156 | </textElement> |
---|
| 157 | <textFieldExpression class="java.lang.String"><![CDATA["Inventory Items: "]]></textFieldExpression> |
---|
| 158 | </textField> |
---|
| 159 | <textField isStretchWithOverflow="true"> |
---|
| 160 | <reportElement x="0" y="105" width="340" height="31"/> |
---|
| 161 | <textElement> |
---|
| 162 | <font fontName="Serif"/> |
---|
| 163 | </textElement> |
---|
| 164 | <textFieldExpression class="java.lang.String"><![CDATA[$F{summaryOfCalculationMethod}]]></textFieldExpression> |
---|
| 165 | </textField> |
---|
| 166 | <textField> |
---|
| 167 | <reportElement mode="Opaque" x="0" y="72" width="340" height="29" forecolor="#FF0000" backcolor="#FFCCCC"> |
---|
| 168 | <printWhenExpression><![CDATA[$F{errorMessage} != null ? true:false]]></printWhenExpression> |
---|
| 169 | </reportElement> |
---|
| 170 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 171 | <font fontName="Serif" size="12" isBold="true"/> |
---|
| 172 | </textElement> |
---|
| 173 | <textFieldExpression class="java.lang.String"><![CDATA[$F{errorMessage}]]></textFieldExpression> |
---|
| 174 | </textField> |
---|
| 175 | <textField> |
---|
[675] | 176 | <reportElement style="horizontalBorder" x="175" y="173" width="160" height="17"/> |
---|
[670] | 177 | <textElement verticalAlignment="Middle"> |
---|
| 178 | <font fontName="Serif" size="12" isBold="false"/> |
---|
| 179 | </textElement> |
---|
| 180 | <textFieldExpression class="java.lang.String"><![CDATA["Inventory Types"]]></textFieldExpression> |
---|
| 181 | </textField> |
---|
[668] | 182 | <componentElement> |
---|
[670] | 183 | <reportElement stretchType="RelativeToTallestObject" x="175" y="190" width="160" height="17" isPrintWhenDetailOverflows="true"/> |
---|
| 184 | <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"> |
---|
| 185 | <datasetRun subDataset="dataset2_inventoryTypes"> |
---|
| 186 | <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{inventoryTypes})]]></dataSourceExpression> |
---|
| 187 | </datasetRun> |
---|
| 188 | <jr:listContents height="17" width="160"> |
---|
| 189 | <textField> |
---|
[675] | 190 | <reportElement style="horizontalBorder" x="0" y="0" width="160" height="17"/> |
---|
[670] | 191 | <textElement verticalAlignment="Middle"> |
---|
| 192 | <font fontName="Serif"/> |
---|
| 193 | </textElement> |
---|
| 194 | <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> |
---|
| 195 | </textField> |
---|
| 196 | </jr:listContents> |
---|
| 197 | </jr:list> |
---|
| 198 | </componentElement> |
---|
| 199 | <textField> |
---|
[675] | 200 | <reportElement style="horizontalBorder" x="0" y="173" width="160" height="17"/> |
---|
[670] | 201 | <textElement verticalAlignment="Middle"> |
---|
| 202 | <font fontName="Serif" size="12" isBold="false"/> |
---|
| 203 | </textElement> |
---|
| 204 | <textFieldExpression class="java.lang.String"><![CDATA["Inventory Groups"]]></textFieldExpression> |
---|
| 205 | </textField> |
---|
| 206 | <componentElement> |
---|
| 207 | <reportElement stretchType="RelativeToTallestObject" x="0" y="190" width="160" height="17" isPrintWhenDetailOverflows="true"/> |
---|
| 208 | <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"> |
---|
| 209 | <datasetRun subDataset="dataset3_inventoryGroups"> |
---|
| 210 | <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{inventoryGroups})]]></dataSourceExpression> |
---|
| 211 | </datasetRun> |
---|
| 212 | <jr:listContents height="17" width="160"> |
---|
| 213 | <textField> |
---|
[675] | 214 | <reportElement style="horizontalBorder" x="0" y="0" width="160" height="17"/> |
---|
[670] | 215 | <textElement verticalAlignment="Middle"> |
---|
| 216 | <font fontName="Serif"/> |
---|
| 217 | </textElement> |
---|
| 218 | <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> |
---|
| 219 | </textField> |
---|
| 220 | </jr:listContents> |
---|
| 221 | </jr:list> |
---|
| 222 | </componentElement> |
---|
| 223 | <textField isStretchWithOverflow="true"> |
---|
| 224 | <reportElement x="0" y="147" width="335" height="20"/> |
---|
| 225 | <textElement verticalAlignment="Middle"> |
---|
| 226 | <font fontName="Serif" size="12" isUnderline="false"/> |
---|
| 227 | </textElement> |
---|
| 228 | <textFieldExpression class="java.lang.String"><![CDATA["Included:"]]></textFieldExpression> |
---|
| 229 | </textField> |
---|
| 230 | </band> |
---|
| 231 | <band height="489"> |
---|
| 232 | <componentElement> |
---|
[668] | 233 | <reportElement key="table 1" x="0" y="0" width="782" height="438"/> |
---|
| 234 | <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"> |
---|
| 235 | <datasetRun subDataset="dataset1"> |
---|
| 236 | <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{inventoryItemList})]]></dataSourceExpression> |
---|
| 237 | </datasetRun> |
---|
| 238 | <jr:column width="127"> |
---|
| 239 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 240 | <textField isStretchWithOverflow="true"> |
---|
| 241 | <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 242 | <textElement verticalAlignment="Middle"> |
---|
| 243 | <font fontName="Serif" size="10" isBold="true"/> |
---|
| 244 | </textElement> |
---|
| 245 | <textFieldExpression class="java.lang.String"><![CDATA["Inventory Item"]]></textFieldExpression> |
---|
| 246 | </textField> |
---|
| 247 | </jr:columnHeader> |
---|
[669] | 248 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
| 249 | <textField> |
---|
| 250 | <reportElement x="0" y="2" width="117" height="20"/> |
---|
| 251 | <textElement verticalAlignment="Middle"> |
---|
| 252 | <font fontName="Serif"/> |
---|
| 253 | </textElement> |
---|
| 254 | <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> |
---|
| 255 | </textField> |
---|
[668] | 256 | </jr:detailCell> |
---|
| 257 | </jr:column> |
---|
| 258 | <jr:column width="237"> |
---|
| 259 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 260 | <textField isStretchWithOverflow="true"> |
---|
| 261 | <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="237" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 262 | <textElement verticalAlignment="Middle"> |
---|
| 263 | <font fontName="Serif" size="10" isBold="true"/> |
---|
| 264 | </textElement> |
---|
[669] | 265 | <textFieldExpression class="java.lang.String"><![CDATA["Description"]]></textFieldExpression> |
---|
[668] | 266 | </textField> |
---|
| 267 | </jr:columnHeader> |
---|
[669] | 268 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
[668] | 269 | <textField isStretchWithOverflow="true"> |
---|
[669] | 270 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="237" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 271 | <textElement verticalAlignment="Middle"> |
---|
| 272 | <font fontName="Serif"/> |
---|
[668] | 273 | </textElement> |
---|
| 274 | <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> |
---|
| 275 | </textField> |
---|
| 276 | </jr:detailCell> |
---|
| 277 | </jr:column> |
---|
| 278 | <jr:column width="90"> |
---|
| 279 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 280 | <staticText> |
---|
| 281 | <reportElement x="0" y="0" width="90" height="20"/> |
---|
| 282 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 283 | <font fontName="Serif" isBold="true"/> |
---|
| 284 | </textElement> |
---|
| 285 | <text><![CDATA[Location]]></text> |
---|
| 286 | </staticText> |
---|
| 287 | </jr:columnHeader> |
---|
[669] | 288 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
| 289 | <textField isStretchWithOverflow="true"> |
---|
| 290 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="90" height="20" isPrintWhenDetailOverflows="true"/> |
---|
[668] | 291 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 292 | <font fontName="Serif" size="8"/> |
---|
| 293 | </textElement> |
---|
| 294 | <textFieldExpression class="java.lang.String"><![CDATA[$F{inventoryLocation}.name+ " in "+$F{inventoryLocation}.inventoryStore.name]]></textFieldExpression> |
---|
| 295 | </textField> |
---|
| 296 | </jr:detailCell> |
---|
| 297 | </jr:column> |
---|
| 298 | <jr:column width="104"> |
---|
| 299 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 300 | <textField isStretchWithOverflow="true"> |
---|
| 301 | <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="104" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 302 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 303 | <font fontName="Serif" size="10" isBold="true"/> |
---|
| 304 | </textElement> |
---|
| 305 | <textFieldExpression class="java.lang.String"><![CDATA["In Stock"]]></textFieldExpression> |
---|
| 306 | </textField> |
---|
| 307 | </jr:columnHeader> |
---|
[669] | 308 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
[668] | 309 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
| 310 | <leftPen lineWidth="0.0"/> |
---|
| 311 | <rightPen lineWidth="0.0"/> |
---|
| 312 | </box> |
---|
| 313 | <textField isStretchWithOverflow="true"> |
---|
[669] | 314 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="104" height="20" isPrintWhenDetailOverflows="true"/> |
---|
[668] | 315 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 316 | <font fontName="Serif" size="8"/> |
---|
| 317 | </textElement> |
---|
| 318 | <textFieldExpression class="java.lang.String"><![CDATA[$F{unitsInStock}+" "+$F{unitOfMeasure}.name]]></textFieldExpression> |
---|
| 319 | </textField> |
---|
| 320 | </jr:detailCell> |
---|
| 321 | </jr:column> |
---|
| 322 | <jr:column width="90"> |
---|
| 323 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 324 | <textField isStretchWithOverflow="true"> |
---|
| 325 | <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="90" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 326 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 327 | <font fontName="Serif" size="10" isBold="true"/> |
---|
| 328 | </textElement> |
---|
| 329 | <textFieldExpression class="java.lang.String"><![CDATA["Unit Price"]]></textFieldExpression> |
---|
| 330 | </textField> |
---|
| 331 | </jr:columnHeader> |
---|
[669] | 332 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
[668] | 333 | <textField isStretchWithOverflow="true" pattern="# ##0.00"> |
---|
[669] | 334 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="90" height="20" isPrintWhenDetailOverflows="true"/> |
---|
[668] | 335 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 336 | <font fontName="Serif" size="8"/> |
---|
| 337 | </textElement> |
---|
| 338 | <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{estimatedUnitPriceAmount}]]></textFieldExpression> |
---|
| 339 | </textField> |
---|
| 340 | </jr:detailCell> |
---|
| 341 | </jr:column> |
---|
| 342 | <jr:column width="82"> |
---|
| 343 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 344 | <textField isStretchWithOverflow="true"> |
---|
| 345 | <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="82" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 346 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 347 | <font fontName="Serif" size="10" isBold="true"/> |
---|
| 348 | </textElement> |
---|
| 349 | <textFieldExpression class="java.lang.String"><![CDATA["Total"]]></textFieldExpression> |
---|
| 350 | </textField> |
---|
| 351 | </jr:columnHeader> |
---|
[669] | 352 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
[668] | 353 | <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> |
---|
| 354 | <leftPen lineWidth="0.0"/> |
---|
| 355 | <rightPen lineWidth="0.0"/> |
---|
| 356 | </box> |
---|
[669] | 357 | <textField isStretchWithOverflow="true" pattern="# ##0.00"> |
---|
| 358 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="82" height="20" isPrintWhenDetailOverflows="true"/> |
---|
[668] | 359 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 360 | <font fontName="Serif" size="8"/> |
---|
| 361 | </textElement> |
---|
| 362 | <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{estimatedUnitPriceAmount}.multiply( $F{unitsInStock} )]]></textFieldExpression> |
---|
| 363 | </textField> |
---|
| 364 | </jr:detailCell> |
---|
| 365 | </jr:column> |
---|
| 366 | <jr:column width="52"> |
---|
| 367 | <jr:columnHeader style="table_CH" height="20" rowSpan="1"> |
---|
| 368 | <textField isStretchWithOverflow="true"> |
---|
| 369 | <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="51" height="20" isPrintWhenDetailOverflows="true"/> |
---|
| 370 | <textElement verticalAlignment="Middle"> |
---|
| 371 | <font fontName="Serif" size="10" isBold="true"/> |
---|
| 372 | </textElement> |
---|
| 373 | <textFieldExpression class="java.lang.String"><![CDATA["Currency"]]></textFieldExpression> |
---|
| 374 | </textField> |
---|
| 375 | </jr:columnHeader> |
---|
[669] | 376 | <jr:detailCell style="table_TD" height="24" rowSpan="1"> |
---|
| 377 | <textField isStretchWithOverflow="true"> |
---|
| 378 | <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="51" height="20" isPrintWhenDetailOverflows="true"/> |
---|
[668] | 379 | <textElement textAlignment="Center" verticalAlignment="Middle"> |
---|
| 380 | <font fontName="Serif" size="8"/> |
---|
| 381 | </textElement> |
---|
| 382 | <textFieldExpression class="java.lang.String"><![CDATA[$F{estimatedUnitPriceCurrency}]]></textFieldExpression> |
---|
| 383 | </textField> |
---|
| 384 | </jr:detailCell> |
---|
| 385 | </jr:column> |
---|
| 386 | </jr:table> |
---|
| 387 | </componentElement> |
---|
| 388 | </band> |
---|
| 389 | </detail> |
---|
| 390 | <columnFooter> |
---|
| 391 | <band splitType="Stretch"/> |
---|
| 392 | </columnFooter> |
---|
| 393 | <pageFooter> |
---|
| 394 | <band height="28" splitType="Stretch"> |
---|
| 395 | <textField> |
---|
| 396 | <reportElement x="0" y="14" width="50" height="12"/> |
---|
| 397 | <textElement markup="none"> |
---|
| 398 | <font fontName="Serif" size="8"/> |
---|
| 399 | </textElement> |
---|
| 400 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
| 401 | </textField> |
---|
| 402 | <textField> |
---|
| 403 | <reportElement x="0" y="2" width="50" height="12"/> |
---|
| 404 | <textElement markup="none"> |
---|
| 405 | <font fontName="Serif" size="8"/> |
---|
| 406 | </textElement> |
---|
| 407 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
| 408 | </textField> |
---|
| 409 | <textField> |
---|
| 410 | <reportElement x="50" y="14" width="200" height="12"/> |
---|
| 411 | <textElement markup="none"> |
---|
| 412 | <font fontName="Serif" size="8"/> |
---|
| 413 | </textElement> |
---|
| 414 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
| 415 | </textField> |
---|
| 416 | <textField pattern="dd-MMM-yyyy"> |
---|
| 417 | <reportElement x="50" y="2" width="200" height="12"/> |
---|
| 418 | <textElement> |
---|
| 419 | <font fontName="Serif" size="8"/> |
---|
| 420 | </textElement> |
---|
| 421 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
| 422 | </textField> |
---|
| 423 | <textField> |
---|
| 424 | <reportElement x="662" y="14" width="80" height="12"/> |
---|
| 425 | <textElement textAlignment="Right"> |
---|
| 426 | <font fontName="Serif" size="8"/> |
---|
| 427 | </textElement> |
---|
| 428 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
| 429 | </textField> |
---|
| 430 | <textField evaluationTime="Report"> |
---|
| 431 | <reportElement x="742" y="14" width="40" height="12"/> |
---|
| 432 | <textElement> |
---|
| 433 | <font fontName="Serif" size="8"/> |
---|
| 434 | </textElement> |
---|
| 435 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
| 436 | </textField> |
---|
| 437 | </band> |
---|
| 438 | </pageFooter> |
---|
| 439 | <lastPageFooter> |
---|
| 440 | <band height="28"> |
---|
| 441 | <textField> |
---|
| 442 | <reportElement x="50" y="14" width="200" height="12"/> |
---|
| 443 | <textElement markup="none"> |
---|
| 444 | <font fontName="Serif" size="8"/> |
---|
| 445 | </textElement> |
---|
| 446 | <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> |
---|
| 447 | </textField> |
---|
| 448 | <textField> |
---|
| 449 | <reportElement x="0" y="2" width="50" height="12"/> |
---|
| 450 | <textElement markup="none"> |
---|
| 451 | <font fontName="Serif" size="8"/> |
---|
| 452 | </textElement> |
---|
| 453 | <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> |
---|
| 454 | </textField> |
---|
| 455 | <textField> |
---|
| 456 | <reportElement x="0" y="14" width="50" height="12"/> |
---|
| 457 | <textElement markup="none"> |
---|
| 458 | <font fontName="Serif" size="8"/> |
---|
| 459 | </textElement> |
---|
| 460 | <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> |
---|
| 461 | </textField> |
---|
| 462 | <textField pattern="dd-MMM-yyyy"> |
---|
| 463 | <reportElement x="50" y="2" width="200" height="12"/> |
---|
| 464 | <textElement> |
---|
| 465 | <font fontName="Serif" size="8"/> |
---|
| 466 | </textElement> |
---|
| 467 | <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> |
---|
| 468 | </textField> |
---|
| 469 | <textField evaluationTime="Report"> |
---|
| 470 | <reportElement x="742" y="14" width="40" height="12"/> |
---|
| 471 | <textElement> |
---|
| 472 | <font fontName="Serif" size="8"/> |
---|
| 473 | </textElement> |
---|
| 474 | <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> |
---|
| 475 | </textField> |
---|
| 476 | <textField> |
---|
| 477 | <reportElement x="662" y="14" width="80" height="12"/> |
---|
| 478 | <textElement textAlignment="Right"> |
---|
| 479 | <font fontName="Serif" size="8"/> |
---|
| 480 | </textElement> |
---|
| 481 | <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> |
---|
| 482 | </textField> |
---|
| 483 | </band> |
---|
| 484 | </lastPageFooter> |
---|
| 485 | <noData> |
---|
| 486 | <band height="85" splitType="Stretch"> |
---|
| 487 | <textField> |
---|
| 488 | <reportElement x="0" y="35" width="782" height="50"/> |
---|
| 489 | <textElement textAlignment="Center" markup="none"> |
---|
| 490 | <font fontName="Serif" size="14" isBold="true"/> |
---|
| 491 | </textElement> |
---|
| 492 | <textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+ |
---|
| 493 | "Please run report again."]]></textFieldExpression> |
---|
| 494 | </textField> |
---|
| 495 | <textField> |
---|
| 496 | <reportElement key="staticText-1" x="0" y="0" width="782" height="35"/> |
---|
| 497 | <textElement textAlignment="Center" markup="none"> |
---|
| 498 | <font fontName="Serif" size="20"/> |
---|
| 499 | </textElement> |
---|
| 500 | <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> |
---|
| 501 | </textField> |
---|
| 502 | </band> |
---|
| 503 | </noData> |
---|
| 504 | </jasperReport> |
---|