- Timestamp:
- Oct 3, 2010, 9:54:30 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/InventoryReportService.groovy
r669 r670 183 183 184 184 result.site = Site.get(params.site.id.toLong()) 185 result.inventoryTypes = params.inventoryTypes.collect { InventoryType.get(it.toInteger()) } 186 result.inventoryGroups = params.inventoryGroups.collect { InventoryGroup.get(it.toInteger()) } 185 186 if(params.inventoryTypes) { 187 result.inventoryTypes = params.inventoryTypes.collect { InventoryType.get(it.toInteger()) } 188 } 189 else 190 result.inventoryTypes = InventoryType.findAllByIsActive(true, [max:254, sort:'name']) 191 192 if(params.inventoryGroups) { 193 result.inventoryGroups = params.inventoryGroups.collect { InventoryGroup.get(it.toInteger()) } 194 } 195 else 196 result.inventoryGroups = InventoryGroup.findAllByIsActive(true, [max:254, sort:'name']) 187 197 188 198 def fail = { Map m -> -
trunk/web-app/reports/inventoryValue.jrxml
r669 r670 5 5 <property name="ireport.zoom" value="1.0"/> 6 6 <property name="ireport.x" value="0"/> 7 <property name="ireport.y" value="144"/> 7 <property name="ireport.y" value="0"/> 8 <import value="net.sf.jasperreports.engine.*"/> 8 9 <import value="java.util.*"/> 9 <import value="net.sf.jasperreports.engine.*"/>10 10 <import value="net.sf.jasperreports.engine.data.*"/> 11 11 <style name="Crosstab Data Text" isDefault="false" hAlign="Center"/> … … 107 107 <reportElement key="staticText-1" mode="Transparent" x="400" y="6" width="350" height="20" backcolor="#FFFFFF"/> 108 108 <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> 109 <font fontName="Serif" size="1 2"/>109 <font fontName="Serif" size="14"/> 110 110 </textElement> 111 111 <textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression> … … 129 129 <detail> 130 130 <band height="438" splitType="Stretch"> 131 <componentElement> 132 <reportElement key="table 1" x="0" y="0" width="782" height="438"/> 133 <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"> 134 <datasetRun subDataset="dataset1"> 135 <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{inventoryItemList})]]></dataSourceExpression> 136 </datasetRun> 137 <jr:column width="127"> 138 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 139 <textField isStretchWithOverflow="true"> 140 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="117" height="20" isPrintWhenDetailOverflows="true"/> 141 <textElement verticalAlignment="Middle"> 142 <font fontName="Serif" size="10" isBold="true"/> 143 </textElement> 144 <textFieldExpression class="java.lang.String"><![CDATA["Inventory Item"]]></textFieldExpression> 145 </textField> 146 </jr:columnHeader> 147 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 148 <textField> 149 <reportElement x="0" y="2" width="117" height="20"/> 150 <textElement verticalAlignment="Middle"> 151 <font fontName="Serif"/> 152 </textElement> 153 <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> 154 </textField> 155 </jr:detailCell> 156 </jr:column> 157 <jr:column width="237"> 158 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 159 <textField isStretchWithOverflow="true"> 160 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="237" height="20" isPrintWhenDetailOverflows="true"/> 161 <textElement verticalAlignment="Middle"> 162 <font fontName="Serif" size="10" isBold="true"/> 163 </textElement> 164 <textFieldExpression class="java.lang.String"><![CDATA["Description"]]></textFieldExpression> 165 </textField> 166 </jr:columnHeader> 167 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 168 <textField isStretchWithOverflow="true"> 169 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="237" height="20" isPrintWhenDetailOverflows="true"/> 170 <textElement verticalAlignment="Middle"> 171 <font fontName="Serif"/> 172 </textElement> 173 <textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression> 174 </textField> 175 </jr:detailCell> 176 </jr:column> 177 <jr:column width="90"> 178 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 179 <staticText> 180 <reportElement x="0" y="0" width="90" height="20"/> 181 <textElement textAlignment="Center" verticalAlignment="Middle"> 182 <font fontName="Serif" isBold="true"/> 183 </textElement> 184 <text><![CDATA[Location]]></text> 185 </staticText> 186 </jr:columnHeader> 187 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 188 <textField isStretchWithOverflow="true"> 189 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="90" height="20" isPrintWhenDetailOverflows="true"/> 190 <textElement textAlignment="Center" verticalAlignment="Middle"> 191 <font fontName="Serif" size="8"/> 192 </textElement> 193 <textFieldExpression class="java.lang.String"><![CDATA[$F{inventoryLocation}.name+ " in "+$F{inventoryLocation}.inventoryStore.name]]></textFieldExpression> 194 </textField> 195 </jr:detailCell> 196 </jr:column> 197 <jr:column width="104"> 198 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 199 <textField isStretchWithOverflow="true"> 200 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="104" height="20" isPrintWhenDetailOverflows="true"/> 201 <textElement textAlignment="Center" verticalAlignment="Middle"> 202 <font fontName="Serif" size="10" isBold="true"/> 203 </textElement> 204 <textFieldExpression class="java.lang.String"><![CDATA["In Stock"]]></textFieldExpression> 205 </textField> 206 </jr:columnHeader> 207 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 208 <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> 209 <leftPen lineWidth="0.0"/> 210 <rightPen lineWidth="0.0"/> 211 </box> 212 <textField isStretchWithOverflow="true"> 213 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="104" height="20" isPrintWhenDetailOverflows="true"/> 214 <textElement textAlignment="Center" verticalAlignment="Middle"> 215 <font fontName="Serif" size="8"/> 216 </textElement> 217 <textFieldExpression class="java.lang.String"><![CDATA[$F{unitsInStock}+" "+$F{unitOfMeasure}.name]]></textFieldExpression> 218 </textField> 219 </jr:detailCell> 220 </jr:column> 221 <jr:column width="90"> 222 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 223 <textField isStretchWithOverflow="true"> 224 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="90" height="20" isPrintWhenDetailOverflows="true"/> 225 <textElement textAlignment="Center" verticalAlignment="Middle"> 226 <font fontName="Serif" size="10" isBold="true"/> 227 </textElement> 228 <textFieldExpression class="java.lang.String"><![CDATA["Unit Price"]]></textFieldExpression> 229 </textField> 230 </jr:columnHeader> 231 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 232 <textField isStretchWithOverflow="true" pattern="# ##0.00"> 233 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="90" height="20" isPrintWhenDetailOverflows="true"/> 234 <textElement textAlignment="Center" verticalAlignment="Middle"> 235 <font fontName="Serif" size="8"/> 236 </textElement> 237 <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{estimatedUnitPriceAmount}]]></textFieldExpression> 238 </textField> 239 </jr:detailCell> 240 </jr:column> 241 <jr:column width="82"> 242 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 243 <textField isStretchWithOverflow="true"> 244 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="82" height="20" isPrintWhenDetailOverflows="true"/> 245 <textElement textAlignment="Center" verticalAlignment="Middle"> 246 <font fontName="Serif" size="10" isBold="true"/> 247 </textElement> 248 <textFieldExpression class="java.lang.String"><![CDATA["Total"]]></textFieldExpression> 249 </textField> 250 </jr:columnHeader> 251 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 252 <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> 253 <leftPen lineWidth="0.0"/> 254 <rightPen lineWidth="0.0"/> 255 </box> 256 <textField isStretchWithOverflow="true" pattern="# ##0.00"> 257 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="82" height="20" isPrintWhenDetailOverflows="true"/> 258 <textElement textAlignment="Center" verticalAlignment="Middle"> 259 <font fontName="Serif" size="8"/> 260 </textElement> 261 <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{estimatedUnitPriceAmount}.multiply( $F{unitsInStock} )]]></textFieldExpression> 262 </textField> 263 </jr:detailCell> 264 </jr:column> 265 <jr:column width="52"> 266 <jr:columnHeader style="table_CH" height="20" rowSpan="1"> 267 <textField isStretchWithOverflow="true"> 268 <reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="51" height="20" isPrintWhenDetailOverflows="true"/> 269 <textElement verticalAlignment="Middle"> 270 <font fontName="Serif" size="10" isBold="true"/> 271 </textElement> 272 <textFieldExpression class="java.lang.String"><![CDATA["Currency"]]></textFieldExpression> 273 </textField> 274 </jr:columnHeader> 275 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 276 <textField isStretchWithOverflow="true"> 277 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="51" height="20" isPrintWhenDetailOverflows="true"/> 278 <textElement textAlignment="Center" verticalAlignment="Middle"> 279 <font fontName="Serif" size="8"/> 280 </textElement> 281 <textFieldExpression class="java.lang.String"><![CDATA[$F{estimatedUnitPriceCurrency}]]></textFieldExpression> 282 </textField> 283 </jr:detailCell> 284 </jr:column> 285 </jr:table> 286 </componentElement> 287 </band> 288 </detail> 289 <columnFooter> 290 <band splitType="Stretch"/> 291 </columnFooter> 292 <pageFooter> 293 <band height="28" splitType="Stretch"> 294 <textField> 295 <reportElement x="0" y="14" width="50" height="12"/> 296 <textElement markup="none"> 297 <font fontName="Serif" size="8"/> 298 </textElement> 299 <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> 300 </textField> 301 <textField> 302 <reportElement x="0" y="2" width="50" height="12"/> 303 <textElement markup="none"> 304 <font fontName="Serif" size="8"/> 305 </textElement> 306 <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> 307 </textField> 308 <textField> 309 <reportElement x="50" y="14" width="200" height="12"/> 310 <textElement markup="none"> 311 <font fontName="Serif" size="8"/> 312 </textElement> 313 <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> 314 </textField> 315 <textField pattern="dd-MMM-yyyy"> 316 <reportElement x="50" y="2" width="200" height="12"/> 317 <textElement> 318 <font fontName="Serif" size="8"/> 319 </textElement> 320 <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> 321 </textField> 322 <textField> 323 <reportElement x="662" y="14" width="80" height="12"/> 324 <textElement textAlignment="Right"> 325 <font fontName="Serif" size="8"/> 326 </textElement> 327 <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> 328 </textField> 329 <textField evaluationTime="Report"> 330 <reportElement x="742" y="14" width="40" height="12"/> 331 <textElement> 332 <font fontName="Serif" size="8"/> 333 </textElement> 334 <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> 335 </textField> 336 </band> 337 </pageFooter> 338 <lastPageFooter> 339 <band height="28"> 340 <textField> 341 <reportElement x="50" y="14" width="200" height="12"/> 342 <textElement markup="none"> 343 <font fontName="Serif" size="8"/> 344 </textElement> 345 <textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression> 346 </textField> 347 <textField> 348 <reportElement x="0" y="2" width="50" height="12"/> 349 <textElement markup="none"> 350 <font fontName="Serif" size="8"/> 351 </textElement> 352 <textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression> 353 </textField> 354 <textField> 355 <reportElement x="0" y="14" width="50" height="12"/> 356 <textElement markup="none"> 357 <font fontName="Serif" size="8"/> 358 </textElement> 359 <textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression> 360 </textField> 361 <textField pattern="dd-MMM-yyyy"> 362 <reportElement x="50" y="2" width="200" height="12"/> 363 <textElement> 364 <font fontName="Serif" size="8"/> 365 </textElement> 366 <textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression> 367 </textField> 368 <textField evaluationTime="Report"> 369 <reportElement x="742" y="14" width="40" height="12"/> 370 <textElement> 371 <font fontName="Serif" size="8"/> 372 </textElement> 373 <textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression> 374 </textField> 375 <textField> 376 <reportElement x="662" y="14" width="80" height="12"/> 377 <textElement textAlignment="Right"> 378 <font fontName="Serif" size="8"/> 379 </textElement> 380 <textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression> 381 </textField> 382 </band> 383 </lastPageFooter> 384 <summary> 385 <band height="369"> 386 <textField> 387 <reportElement key="staticText-1" x="0" y="0" width="340" height="27"/> 388 <textElement textAlignment="Center" verticalAlignment="Top" markup="none"> 389 <font fontName="Serif" size="20"/> 390 </textElement> 391 <textFieldExpression class="java.lang.String"><![CDATA["Summary"]]></textFieldExpression> 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> 392 158 </textField> 393 159 <textField isStretchWithOverflow="true"> 394 <reportElement x="0" y="1 31" width="340" height="38"/>160 <reportElement x="0" y="105" width="340" height="31"/> 395 161 <textElement> 396 162 <font fontName="Serif"/> … … 398 164 <textFieldExpression class="java.lang.String"><![CDATA[$F{summaryOfCalculationMethod}]]></textFieldExpression> 399 165 </textField> 400 <textField isStretchWithOverflow="true" isBlankWhenNull="true"> 401 <reportElement x="0" y="72" width="105" height="17" isPrintWhenDetailOverflows="true"/> 402 <textElement verticalAlignment="Middle" markup="none"> 403 <font fontName="Serif"/> 404 </textElement> 405 <textFieldExpression class="java.lang.String"><![CDATA["Inventory Items: "]]></textFieldExpression> 406 </textField> 407 <textField isStretchWithOverflow="true" isBlankWhenNull="true"> 408 <reportElement x="0" y="55" width="105" height="17" isPrintWhenDetailOverflows="true"/> 409 <textElement verticalAlignment="Middle" markup="none"> 410 <font fontName="Serif" size="12" isBold="false"/> 411 </textElement> 412 <textFieldExpression class="java.lang.String"><![CDATA["Total Value("+$F{currency}+"): "]]></textFieldExpression> 413 </textField> 414 <textField isStretchWithOverflow="true" pattern="# ##0.00" isBlankWhenNull="true"> 415 <reportElement x="105" y="55" width="235" height="17" isPrintWhenDetailOverflows="true"/> 416 <textElement verticalAlignment="Middle" markup="none"> 417 <font fontName="Serif" size="12" isBold="false"/> 418 </textElement> 419 <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{inventoryItemTotalValue}]]></textFieldExpression> 420 </textField> 421 <textField> 422 <reportElement mode="Opaque" x="0" y="98" width="340" height="29" forecolor="#FF0000" backcolor="#FFCCCC"> 166 <textField> 167 <reportElement mode="Opaque" x="0" y="72" width="340" height="29" forecolor="#FF0000" backcolor="#FFCCCC"> 423 168 <printWhenExpression><![CDATA[$F{errorMessage} != null ? true:false]]></printWhenExpression> 424 169 </reportElement> … … 428 173 <textFieldExpression class="java.lang.String"><![CDATA[$F{errorMessage}]]></textFieldExpression> 429 174 </textField> 430 <textField isStretchWithOverflow="true" pattern="# ##0" isBlankWhenNull="true"> 431 <reportElement x="105" y="72" width="235" height="17" isPrintWhenDetailOverflows="true"/> 432 <textElement verticalAlignment="Middle" markup="none"> 433 <font fontName="Serif"/> 434 </textElement> 435 <textFieldExpression class="java.lang.Integer"><![CDATA[$F{inventoryItemCount}]]></textFieldExpression> 436 </textField> 437 <textField> 438 <reportElement style="vertColumns" x="0" y="176" width="160" height="17"/> 175 <textField> 176 <reportElement style="vertColumns" x="175" y="173" width="160" height="17"/> 439 177 <textElement verticalAlignment="Middle"> 440 178 <font fontName="Serif" size="12" isBold="false"/> … … 443 181 </textField> 444 182 <componentElement> 445 <reportElement stretchType="RelativeToTallestObject" x="175" y="19 3" width="160" height="17" isPrintWhenDetailOverflows="true"/>183 <reportElement stretchType="RelativeToTallestObject" x="175" y="190" width="160" height="17" isPrintWhenDetailOverflows="true"/> 446 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"> 447 185 <datasetRun subDataset="dataset2_inventoryTypes"> … … 460 198 </componentElement> 461 199 <textField> 462 <reportElement style="vertColumns" x=" 175" y="176" width="160" height="17"/>200 <reportElement style="vertColumns" x="0" y="173" width="160" height="17"/> 463 201 <textElement verticalAlignment="Middle"> 464 202 <font fontName="Serif" size="12" isBold="false"/> … … 467 205 </textField> 468 206 <componentElement> 469 <reportElement stretchType="RelativeToTallestObject" x="0" y="19 3" width="160" height="17" isPrintWhenDetailOverflows="true"/>207 <reportElement stretchType="RelativeToTallestObject" x="0" y="190" width="160" height="17" isPrintWhenDetailOverflows="true"/> 470 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"> 471 209 <datasetRun subDataset="dataset3_inventoryGroups"> … … 483 221 </jr:list> 484 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> 485 230 </band> 486 </summary> 231 <band height="489"> 232 <componentElement> 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> 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> 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> 265 <textFieldExpression class="java.lang.String"><![CDATA["Description"]]></textFieldExpression> 266 </textField> 267 </jr:columnHeader> 268 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 269 <textField isStretchWithOverflow="true"> 270 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="237" height="20" isPrintWhenDetailOverflows="true"/> 271 <textElement verticalAlignment="Middle"> 272 <font fontName="Serif"/> 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> 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"/> 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> 308 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 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"> 314 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="104" height="20" isPrintWhenDetailOverflows="true"/> 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> 332 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 333 <textField isStretchWithOverflow="true" pattern="# ##0.00"> 334 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="90" height="20" isPrintWhenDetailOverflows="true"/> 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> 352 <jr:detailCell style="table_TD" height="24" rowSpan="1"> 353 <box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0"> 354 <leftPen lineWidth="0.0"/> 355 <rightPen lineWidth="0.0"/> 356 </box> 357 <textField isStretchWithOverflow="true" pattern="# ##0.00"> 358 <reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="82" height="20" isPrintWhenDetailOverflows="true"/> 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> 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"/> 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> 487 485 <noData> 488 486 <band height="85" splitType="Stretch">
Note: See TracChangeset
for help on using the changeset viewer.