<?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" isIgnorePagination="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="644"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<style name="table" isDefault="false">
		<pen lineWidth="0.5"/>
		<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>
	<style name="table_GH" isDefault="false" mode="Opaque" backcolor="#D2EFF7"/>
	<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="assetName" class="java.lang.String"/>
		<field name="Asset Number" class="java.lang.String"/>
		<field name="Location Description" class="java.lang.String"/>
		<field name="Asset Condition" class="java.lang.String"/>
		<group name="assetName">
			<groupExpression><![CDATA[$F{assetName}]]></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.lang.String"/>
	<field name="assetsWithoutEquipment" class="java.lang.String"/>
	<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">
			<printWhenExpression><![CDATA[false]]></printWhenExpression>
			<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="0" y="0" width="824" height="492"/>
				<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" size="10"/>
								</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="0" y="0" width="45" 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="0" y="0" width="100" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" isBold="false"/>
								</textElement>
								<text><![CDATA[Asset]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement positionType="Float" mode="Transparent" x="0" y="0" width="100" height="36" isPrintWhenDetailOverflows="true" backcolor="#D2EFF7"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" isBold="false"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{assetName}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="90">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="90" height="32"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Description]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField>
								<reportElement x="0" y="0" width="90" height="36">
									<printWhenExpression><![CDATA[$F{name}.equals('   Asset Details')]]></printWhenExpression>
								</reportElement>
								<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="100">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="100" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Sub Asset]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement positionType="Float" mode="Transparent" x="0" y="0" width="100" height="36" isPrintWhenDetailOverflows="true" backcolor="#D2EFF7">
									<printWhenExpression><![CDATA[!$F{name}.equals('   Asset Details')]]></printWhenExpression>
								</reportElement>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8" isBold="false"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="70">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="70" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8" isBold="false"/>
								</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="0" y="0" width="70" height="36" 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="0" y="0" width="60" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8" isBold="false"/>
								</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="0" y="0" width="60" 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="75">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="75" height="32" isPrintWhenDetailOverflows="true"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8" isBold="false"/>
								</textElement>
								<text><![CDATA[Manufacturer]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField isStretchWithOverflow="true">
								<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="75" height="36" isPrintWhenDetailOverflows="true"/>
								<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 x="0" y="0" width="63" height="32"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Location]]></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{Location Description}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
					<jr:column width="70">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="70" height="32"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Equipment Criticality]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField>
								<reportElement x="0" y="0" width="70" 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="60">
						<jr:columnHeader style="table_CH" height="32" rowSpan="1">
							<staticText>
								<reportElement x="0" y="0" width="60" height="32"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<text><![CDATA[Condition]]></text>
							</staticText>
						</jr:columnHeader>
						<jr:detailCell style="table_TD" height="36" rowSpan="1">
							<textField>
								<reportElement x="0" y="0" width="60" height="36"/>
								<textElement textAlignment="Center" verticalAlignment="Middle">
									<font fontName="Serif" size="8"/>
								</textElement>
								<textFieldExpression class="java.lang.String"><![CDATA[$F{Asset Condition}]]></textFieldExpression>
							</textField>
						</jr:detailCell>
					</jr:column>
				</jr:table>
			</componentElement>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="28" splitType="Prevent">
			<printWhenExpression><![CDATA[false]]></printWhenExpression>
			<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">
			<printWhenExpression><![CDATA[false]]></printWhenExpression>
			<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">
			<printWhenExpression><![CDATA[false]]></printWhenExpression>
			<textField isStretchWithOverflow="true">
				<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="13" y="36" width="824" height="36" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font fontName="Serif"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["AssetSubItem Extended Attributes: \n"+$F{attribTypes}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement key="staticText-1" x="242" y="0" width="340" height="30"/>
				<textElement textAlignment="Center" verticalAlignment="Top" markup="none">
					<font size="20"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Summary"]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="13" y="100" width="824" height="26" isPrintWhenDetailOverflows="true"/>
				<textElement>
					<font fontName="Serif"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{assetsWithoutEquipment}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="13" y="81" width="824" height="19" isPrintWhenDetailOverflows="true" forecolor="#000000">
					<printWhenExpression><![CDATA[$F{assetsWithoutEquipment}]]></printWhenExpression>
				</reportElement>
				<textElement>
					<font fontName="Serif"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["The following assets have no sub assets (equipment):"]]></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>
