<?xml version="1.0" encoding="UTF-8"?>
<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">
	<property name="ireport.scriptlethandling" value="0"/>
	<property name="ireport.encoding" value="UTF-8"/>
	<property name="ireport.zoom" value="1.5"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<style name="GroupHeader" isDefault="false" hAlign="Center">
		<box topPadding="0" bottomPadding="0">
			<topPen lineWidth="0.0"/>
			<bottomPen lineWidth="0.0"/>
		</box>
	</style>
	<style name="DetailBorder" isDefault="false">
		<box topPadding="2" leftPadding="1" bottomPadding="2" rightPadding="1">
			<topPen lineWidth="0.5"/>
			<leftPen lineWidth="0.5"/>
			<bottomPen lineWidth="0.5"/>
			<rightPen lineWidth="0.5"/>
		</box>
	</style>
	<subDataset name="dataset1">
		<queryString language="SQL">
			<![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{dataList})]]>
		</queryString>
		<field name="description" class="java.lang.String"/>
		<field name="name" class="java.lang.String"/>
		<field name="comment" class="java.lang.String"/>
		<field name="attribValue" class="java.lang.String"/>
		<field name="attribType" class="java.lang.String"/>
		<group name="assetName">
			<groupExpression><![CDATA[$F{name}]]></groupExpression>
		</group>
	</subDataset>
	<parameter name="reportTitle" class="java.lang.String"/>
	<parameter name="currentUser" class="java.lang.String"/>
	<parameter name="logoUrl" class="java.lang.String"/>
	<parameter name="section" class="java.lang.String"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Documents and Settings\\kromhoutg\\My Documents\\reports\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="site" class="java.lang.String"/>
	<queryString language="SQL">
		<![CDATA[]]>
	</queryString>
	<field name="name" class="java.lang.String"/>
	<field name="description" class="java.lang.String"/>
	<field name="attribValue" class="java.lang.String"/>
	<field name="attribType" class="java.lang.String"/>
	<field name="comment" class="java.lang.String"/>
	<group name="assetName" keepTogether="true">
		<groupExpression><![CDATA[$F{name}]]></groupExpression>
		<groupHeader>
			<band height="52">
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="9" y="24" width="331" height="20" isPrintWhenDetailOverflows="true"/>
					<textElement>
						<font fontName="Serif" size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true">
					<reportElement stretchType="RelativeToTallestObject" mode="Opaque" x="9" y="4" width="331" height="20" isPrintWhenDetailOverflows="true" backcolor="#FFFF33"/>
					<textElement>
						<font fontName="Serif" size="10" isBold="true"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true">
					<reportElement stretchType="RelativeToTallestObject" x="352" y="12" width="203" height="40" isPrintWhenDetailOverflows="true"/>
					<textElement>
						<font fontName="Serif" size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{comment}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band/>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="60" splitType="Stretch">
			<textField isStretchWithOverflow="true">
				<reportElement key="staticText-1" stretchType="RelativeToTallestObject" x="352" y="9" width="225" height="20" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
					<font fontName="Serif" size="14"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression>
			</textField>
			<image>
				<reportElement x="0" y="0" width="340" height="57"/>
				<imageExpression class="java.net.URL"><![CDATA[new URL($P{logoUrl})]]></imageExpression>
			</image>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="352" y="29" width="225" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="Serif" size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Site: "+$P{site}+", "+"Section: "+$P{section}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="24" splitType="Stretch">
			<printWhenExpression><![CDATA[$F{attribValue}]]></printWhenExpression>
			<elementGroup>
				<textField isStretchWithOverflow="true">
					<reportElement style="DetailBorder" stretchType="RelativeToTallestObject" x="138" y="2" width="288" height="20" isPrintWhenDetailOverflows="true"/>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font fontName="Serif" size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{attribValue}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true">
					<reportElement stretchType="RelativeToTallestObject" x="9" y="2" width="129" height="20" isPrintWhenDetailOverflows="true"/>
					<textElement>
						<font fontName="Serif" size="8" isBold="true" isUnderline="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{attribType}+":"]]></textFieldExpression>
				</textField>
			</elementGroup>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="28" splitType="Stretch">
			<textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy">
				<reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" evaluationTime="Report">
				<reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<lastPageFooter>
		<band height="28">
			<textField isStretchWithOverflow="true" evaluationTime="Report">
				<reportElement stretchType="RelativeToTallestObject" x="537" y="14" width="40" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd-MMM-yyyy">
				<reportElement stretchType="RelativeToTallestObject" x="50" y="2" width="200" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="2" width="50" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="0" y="14" width="50" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="50" y="14" width="200" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement stretchType="RelativeToTallestObject" x="457" y="14" width="80" height="12" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Right">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
			</textField>
		</band>
	</lastPageFooter>
	<summary>
		<band height="369">
			<printWhenExpression><![CDATA[""]]></printWhenExpression>
		</band>
	</summary>
	<noData>
		<band height="85" splitType="Stretch">
			<textField>
				<reportElement x="0" y="35" width="555" height="50"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Serif" size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["No data to display. \n"+
"Please run report again."]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement key="staticText-1" x="0" y="0" width="555" height="35"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Serif" size="20"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
