<?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="842" pageHeight="595" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="824" 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="15"/>
	<property name="ireport.y" value="729"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<style name="table" isDefault="false">
		<box>
			<pen lineWidth="1.0" lineColor="#000000"/>
			<topPen lineWidth="1.0"/>
			<leftPen lineWidth="1.0"/>
			<bottomPen lineWidth="1.0"/>
			<rightPen lineWidth="1.0"/>
		</box>
	</style>
	<style name="table_TH" isDefault="false" mode="Opaque" backcolor="#F0F8FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_CH" isDefault="false" mode="Opaque" backcolor="#BFE1FF">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<style name="table_TD" isDefault="false" mode="Opaque" backcolor="#FFFFFF" pattern="">
		<box>
			<pen lineWidth="0.5" lineColor="#000000"/>
		</box>
	</style>
	<subDataset name="dataset1">
		<queryString language="SQL">
			<![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{dataList})]]>
		</queryString>
		<field name="name" class="java.lang.String"/>
		<field name="description" class="java.lang.String"/>
		<field name="comment" class="java.lang.String"/>
		<field name="Serial Number" class="java.lang.String"/>
		<field name="Model Number" class="java.lang.String"/>
		<field name="Manufacturer" class="java.lang.String"/>
		<field name="ecr" class="java.lang.String"/>
		<field name="Risk Level" class="java.lang.String"/>
		<field name="Safe Work Procedure" class="java.lang.String"/>
		<field name="Regulatory Requirement" class="java.lang.String"/>
		<field name="Maintenance % Completion" class="java.lang.String"/>
		<field name="Registration Required" class="java.lang.String"/>
		<field name="Registration Expiry Date" class="java.lang.String"/>
		<field name="Asset Number" 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="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Documents and Settings\\kromhoutg\\My Documents\\reports\\"]]></defaultValueExpression>
	</parameter>
	<queryString language="SQL">
		<![CDATA[]]>
	</queryString>
	<field name="dataList" class="java.util.List"/>
	<field name="attribTypes" class="java.util.List"/>
	<field name="site" class="java.lang.Object"/>
	<field name="section" class="java.lang.Object"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="57" splitType="Stretch">
			<textField>
				<reportElement key="staticText-1" x="398" y="14" width="340" height="20"/>
				<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>
				<reportElement x="398" y="34" width="340" height="15" isPrintWhenDetailOverflows="true"/>
				<textElement textAlignment="Center">
					<font fontName="Serif" size="10"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Site: "+$F{site}.name+", "+"Section: "+$F{section}.name]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="492" splitType="Immediate">
			<componentElement>
				<reportElement key="table" style="table" x="2" y="2" width="820" height="488"/>
				<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">
					<datasetRun subDataset="dataset1">
						<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{dataList})]]></dataSourceExpression>
					</datasetRun>
					<jr:column width="45">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="45" height="32"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif"/>
								</textElement>
								<text><![CDATA[#]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:columnFooter height="2" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="45" height="2"/>
								<textElement/>
								<text><![CDATA[]]></text>
							</staticText>
						</jr:columnFooter>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField>
								<reportElement x="2" y="0" width="41" height="36"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Asset Number}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="100">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="96" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Asset]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement positionType="Float" stretchType="RelativeToTallestObject" mode="Opaque" x="2" y="0" width="96" height="20" isPrintWhenDetailOverflows="true" backcolor="#D2EFF7"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="10" isBold="true"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
							</textField>
							<textField isStretchWithOverflow="true">
								<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="2" y="20" width="96" height="15" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{description}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="90">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="86" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Comment]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="86" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{comment}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="55">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="51" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Serial Number]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="51" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Serial Number}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="60">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Model Number]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="36" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Model Number}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="65">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement x="2" y="0" width="61" height="32"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Manufacturer]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField>
								<reportElement x="2" y="0" width="61" height="36"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Manufacturer}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="63">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="59" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Equipment Criticality (ecr)]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField>
								<reportElement x="0" y="0" width="63" height="36"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{ecr}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="50">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="46" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Risk Level]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="46" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Risk Level}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="60">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Safe Work Procedure]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Safe Work Procedure}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="50">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="46" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Regulatory Requirement (Y/N)]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="46" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Regulatory Requirement}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="60">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Maintenance % Completion]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Maintenance % Completion}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="60">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Registration Required (Y/N)]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="56" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Registration Required}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="50">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="46" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Registration Expiry Date]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="2" y="0" width="46" height="35" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Registration Expiry Date}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="28" splitType="Prevent">
			<textField pattern="dd-MMM-yyyy">
				<reportElement x="50" y="2" width="200" height="12"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="704" y="14" width="80" height="12"/>
				<textElement textAlignment="Right">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Page "+$V{PAGE_NUMBER}+" of"]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="784" y="14" width="40" height="12"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="2" width="50" height="12"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="50" y="14" width="200" height="12"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="14" width="50" height="12"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<lastPageFooter>
		<band height="28">
			<textField evaluationTime="Report">
				<reportElement x="784" y="14" width="40" height="12"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField pattern="dd-MMM-yyyy">
				<reportElement x="50" y="2" width="200" height="12"/>
				<textElement>
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="2" width="50" height="12"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Generated: "]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="14" width="50" height="12"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["By: "]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="50" y="14" width="200" height="12"/>
				<textElement markup="none">
					<font fontName="Serif" size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{currentUser}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="704" y="14" width="80" height="12"/>
				<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">
			<textField>
				<reportElement x="0" y="30" width="824" height="91"/>
				<textElement>
					<font fontName="Serif"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Asset Extended Attributes: \n"+$F{attribTypes}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="85" splitType="Stretch">
			<textField>
				<reportElement x="0" y="35" width="824" height="50"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Serif" size="12" 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="824" height="35"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Serif" size="18"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{reportTitle}]]></textFieldExpression>
			</textField>
		</band>
	</noData>
</jasperReport>
