<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD JasperReport//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="ActionsDone" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">
	<property name="ireport.scriptlethandling" value="0"/>
	<property name="ireport.encoding" value="UTF-8"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<parameter name="paramCriteria" class="java.lang.Boolean" isForPrompting="false">
		<parameterDescription><![CDATA[Include criteria?]]></parameterDescription>
		<defaultValueExpression><![CDATA[Boolean.TRUE]]></defaultValueExpression>
	</parameter>
	<parameter name="paramProject" class="java.lang.Boolean" isForPrompting="false">
		<parameterDescription><![CDATA[Include Project/Thought?]]></parameterDescription>
		<defaultValueExpression><![CDATA[Boolean.TRUE]]></defaultValueExpression>
	</parameter>
	<parameter name="paramSuccess" class="java.lang.Boolean" isForPrompting="false">
		<parameterDescription><![CDATA[Include successful outcome?]]></parameterDescription>
		<defaultValueExpression><![CDATA[Boolean.TRUE]]></defaultValueExpression>
	</parameter>
	<parameter name="paramNotes" class="java.lang.Boolean" isForPrompting="false">
		<parameterDescription><![CDATA[Include notes?]]></parameterDescription>
		<defaultValueExpression><![CDATA[Boolean.TRUE]]></defaultValueExpression>
	</parameter>
	<parameter name="paramFrom" class="java.lang.Long" isForPrompting="false">
		<parameterDescription><![CDATA[From date time]]></parameterDescription>
		<defaultValueExpression><![CDATA[Long.valueOf(0)]]></defaultValueExpression>
	</parameter>
	<parameter name="paramDateRangeText" class="java.lang.String" isForPrompting="false">
		<parameterDescription><![CDATA[Date range text]]></parameterDescription>
		<defaultValueExpression><![CDATA["From: the earliest To: the latest"]]></defaultValueExpression>
	</parameter>
	<parameter name="paramTo" class="java.lang.Long" isForPrompting="false">
		<parameterDescription><![CDATA[To date time]]></parameterDescription>
		<defaultValueExpression><![CDATA[Long.valueOf(Long.MAX_VALUE)]]></defaultValueExpression>
	</parameter>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["/Users/jmoore/Development/TR2.1/TR201/au.com.trgtd.tr.reports.done/release/resource/reports/"]]></defaultValueExpression>
	</parameter>
	<queryString language="xPath">
		<![CDATA[/data/actions/action]]>
	</queryString>
	<field name="type" class="java.lang.String">
		<fieldDescription><![CDATA[state/type]]></fieldDescription>
	</field>
	<sortField name="type"/>
	<filterExpression><![CDATA[Boolean.TRUE]]></filterExpression>
	<group name="DoASAP">
		<groupHeader>
			<band height="40">
				<subreport isUsingCache="false">
					<reportElement mode="Opaque" x="2" y="0" width="535" height="40"/>
					<subreportParameter name="REPORT_RESOURCE_BUNDLE"/>
					<subreportParameter name="XML_DATA_DOCUMENT">
						<subreportParameterExpression><![CDATA[$P{XML_DATA_DOCUMENT}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_LOCALE"/>
					<subreportParameter name="REPORT_DATA_SOURCE"/>
					<subreportParameter name="REPORT_CONNECTION"/>
					<subreportParameter name="REPORT_PARAMETERS_MAP"/>
					<subreportParameter name="SUBREPORT_DIR">
						<subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_SCRIPTLET"/>
					<subreportParameter name="REPORT_MAX_COUNT"/>
					<subreportParameter name="paramCriteria">
						<subreportParameterExpression><![CDATA[$P{paramCriteria}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramSuccess">
						<subreportParameterExpression><![CDATA[$P{paramSuccess}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramTo">
						<subreportParameterExpression><![CDATA[$P{paramTo}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramProject">
						<subreportParameterExpression><![CDATA[$P{paramProject}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramNotes">
						<subreportParameterExpression><![CDATA[$P{paramNotes}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramDateRangeText">
						<subreportParameterExpression><![CDATA[$P{paramDateRangeText}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramFrom">
						<subreportParameterExpression><![CDATA[$P{paramFrom}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "ActionsDoneASAP.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</groupHeader>
	</group>
	<group name="Delegated">
		<groupHeader>
			<band height="39">
				<subreport isUsingCache="false">
					<reportElement mode="Transparent" x="0" y="0" width="535" height="39"/>                                        
					<subreportParameter name="REPORT_RESOURCE_BUNDLE"/>
					<subreportParameter name="XML_DATA_DOCUMENT">
						<subreportParameterExpression><![CDATA[$P{XML_DATA_DOCUMENT}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_LOCALE"/>
					<subreportParameter name="REPORT_DATA_SOURCE"/>
					<subreportParameter name="REPORT_CONNECTION"/>
					<subreportParameter name="REPORT_PARAMETERS_MAP"/>
					<subreportParameter name="SUBREPORT_DIR">
						<subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_SCRIPTLET"/>
					<subreportParameter name="REPORT_MAX_COUNT"/>
					<subreportParameter name="paramCriteria">
						<subreportParameterExpression><![CDATA[$P{paramCriteria}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramSuccess">
						<subreportParameterExpression><![CDATA[$P{paramSuccess}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramTo">
						<subreportParameterExpression><![CDATA[$P{paramTo}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramProject">
						<subreportParameterExpression><![CDATA[$P{paramProject}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramNotes">
						<subreportParameterExpression><![CDATA[$P{paramNotes}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramDateRangeText">
						<subreportParameterExpression><![CDATA[$P{paramDateRangeText}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramFrom">
						<subreportParameterExpression><![CDATA[$P{paramFrom}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "ActionsDoneDelegated.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</groupHeader>
		<groupFooter>
			<band/>
		</groupFooter>
	</group>
	<group name="Inactive">
		<groupHeader>
			<band height="41">
				<subreport isUsingCache="false">
					<reportElement mode="Transparent" x="0" y="1" width="535" height="40"/>
					<subreportParameter name="REPORT_RESOURCE_BUNDLE"/>
					<subreportParameter name="paramSuccess">
						<subreportParameterExpression><![CDATA[$P{paramSuccess}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="XML_DATA_DOCUMENT">
						<subreportParameterExpression><![CDATA[$P{XML_DATA_DOCUMENT}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramDateRangeText">
						<subreportParameterExpression><![CDATA[$P{paramDateRangeText}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramProject">
						<subreportParameterExpression><![CDATA[$P{paramProject}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_LOCALE"/>
					<subreportParameter name="REPORT_DATA_SOURCE"/>
					<subreportParameter name="REPORT_CONNECTION"/>
					<subreportParameter name="REPORT_PARAMETERS_MAP"/>
					<subreportParameter name="paramCriteria">
						<subreportParameterExpression><![CDATA[$P{paramCriteria}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramTo">
						<subreportParameterExpression><![CDATA[$P{paramTo}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="SUBREPORT_DIR">
						<subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramNotes">
						<subreportParameterExpression><![CDATA[$P{paramNotes}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_SCRIPTLET"/>
					<subreportParameter name="REPORT_MAX_COUNT"/>
					<subreportParameter name="paramFrom">
						<subreportParameterExpression><![CDATA[$P{paramFrom}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "ActionsDoneInactive.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</groupHeader>
	</group>
	<group name="Scheduledd">
		<groupHeader>
			<band height="42">
				<subreport isUsingCache="false">
					<reportElement mode="Transparent" x="0" y="0" width="535" height="42"/>
					<subreportParameter name="REPORT_RESOURCE_BUNDLE"/>
					<subreportParameter name="paramSuccess">
						<subreportParameterExpression><![CDATA[$P{paramSuccess}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="XML_DATA_DOCUMENT">
						<subreportParameterExpression><![CDATA[$P{XML_DATA_DOCUMENT}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramDateRangeText">
						<subreportParameterExpression><![CDATA[$P{paramDateRangeText}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramProject">
						<subreportParameterExpression><![CDATA[$P{paramProject}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_LOCALE"/>
					<subreportParameter name="REPORT_DATA_SOURCE"/>
					<subreportParameter name="REPORT_CONNECTION"/>
					<subreportParameter name="REPORT_PARAMETERS_MAP"/>
					<subreportParameter name="paramCriteria">
						<subreportParameterExpression><![CDATA[$P{paramCriteria}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramTo">
						<subreportParameterExpression><![CDATA[$P{paramTo}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="SUBREPORT_DIR">
						<subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="paramNotes">
						<subreportParameterExpression><![CDATA[$P{paramNotes}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_SCRIPTLET"/>
					<subreportParameter name="paramFrom">
						<subreportParameterExpression><![CDATA[$P{paramFrom}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="REPORT_MAX_COUNT"/>
					<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "ActionsDoneScheduled.jasper"]]></subreportExpression>
				</subreport>
			</band>
		</groupHeader>
	</group>
	<background>
		<band/>
	</background>
	<title>
		<band/>
	</title>
	<pageHeader>
		<band height="30">
			<staticText>
				<reportElement key="headingStaticText" x="2" y="6" width="108" height="18"/>
				<textElement verticalAlignment="Bottom" rotation="None">
					<font fontName="DejaVu Sans" size="10" isBold="true" isItalic="false" isUnderline="false" pdfFontName="DejaVuSansBold.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Actions Done]]></text>
			</staticText>
			<textField hyperlinkType="None">
				<reportElement x="110" y="6" width="254" height="18"/>
				<textElement verticalAlignment="Bottom" markup="styled">
					<font fontName="DejaVu Sans" size="10" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{paramDateRangeText}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" pattern="EEE dd MMM yyyy" isBlankWhenNull="false" hyperlinkType="None">
				<reportElement key="dateTextField" positionType="FixRelativeToBottom" x="364" y="6" width="167" height="18"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="DejaVu Sans" size="10" isBold="true" pdfFontName="DejaVuSansBold.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="3" y="26" width="527" height="1"/>
			</line>
		</band>
	</pageHeader>
	<columnHeader>
		<band/>
	</columnHeader>
	<detail>
		<band/>
	</detail>
	<columnFooter>
		<band/>
	</columnFooter>
	<pageFooter>
		<band height="18">
			<textField pattern="" isBlankWhenNull="false" hyperlinkType="Reference">
				<reportElement key="homeTextField" x="3" y="6" width="156" height="12"/>
				<textElement>
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["www.thinkingrock.com.au"]]></textFieldExpression>
				<hyperlinkReferenceExpression><![CDATA["http://www.thinkingrock.com.au"]]></hyperlinkReferenceExpression>
			</textField>
			<textField isBlankWhenNull="false" hyperlinkType="None">
				<reportElement key="pageTextField" x="422" y="6" width="88" height="12"/>
				<textElement textAlignment="Right">
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" isBlankWhenNull="false" hyperlinkType="None">
				<reportElement key="pageNbrTextField" x="510" y="6" width="20" height="12"/>
				<textElement>
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" " + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="3" y="2" width="527" height="1" forecolor="#CCCCCC"/>
			</line>
			<textField hyperlinkType="None">
				<reportElement x="171" y="6" width="240" height="12"/>
				<textElement markup="styled">
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["\u2302Topic @Context \u25F7Time \u26A1Energy \u2690Priority"]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band/>
	</summary>
</jasperReport>
