<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="PRTR006"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="595"
		 pageHeight="842"
		 columnWidth="535"
		 columnSpacing="0"
		 leftMargin="30"
		 rightMargin="30"
		 topMargin="20"
		 bottomMargin="20"
		 whenNoDataType="NoPages"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<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="sname" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Short Name"]]></defaultValueExpression>
	</parameter>
	<parameter name="REPORTHEADER" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[component]]></parameterDescription>
	</parameter>
	<parameter name="LANG" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[lang]]></parameterDescription>
		<defaultValueExpression ><![CDATA["THA"]]></defaultValueExpression>
	</parameter>
	<parameter name="CRSGRP" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Course Group"]]></defaultValueExpression>
	</parameter>
	<parameter name="PREPARED" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Prepared by"]]></defaultValueExpression>
	</parameter>
	<parameter name="PRINTNAME" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[component]]></parameterDescription>
	</parameter>
	<parameter name="TRAINING" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Training"]]></defaultValueExpression>
	</parameter>
	<parameter name="TOTHOURS" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Total Hour"]]></defaultValueExpression>
	</parameter>
	<parameter name="RECORDS" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Record(s)"]]></defaultValueExpression>
	</parameter>
	<parameter name="Page" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Page"]]></defaultValueExpression>
	</parameter>
	<parameter name="SCREEN" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[component]]></parameterDescription>
		<defaultValueExpression ><![CDATA["TRA0021"]]></defaultValueExpression>
	</parameter>
	<parameter name="APPRISAL" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["APPRISAL"]]></defaultValueExpression>
	</parameter>
	<parameter name="CODE" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["CODE(S)"]]></defaultValueExpression>
	</parameter>
	<parameter name="TOTAL" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Total"]]></defaultValueExpression>
	</parameter>
	<parameter name="COMPANY" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[component]]></parameterDescription>
	</parameter>
	<parameter name="CLASSNAME" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["CLASSNAME"]]></defaultValueExpression>
	</parameter>
	<parameter name="DESCRIPTION" isForPrompting="true" class="java.lang.String">
		<parameterDescription><![CDATA[label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["DESCRIPTION"]]></defaultValueExpression>
	</parameter>
	<parameter name="groupid" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[Label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Group Id"]]></defaultValueExpression>
	</parameter>
	<parameter name="GROUPNAME" isForPrompting="false" class="java.lang.String">
		<parameterDescription><![CDATA[Label]]></parameterDescription>
		<defaultValueExpression ><![CDATA["Group Name"]]></defaultValueExpression>
	</parameter>

	<field name="mcoursegroup__crsgid" class="java.lang.String">
		<fieldDescription><![CDATA[Field returned by mcoursegroup__crsgid]]></fieldDescription>
	</field>
	<field name="mcoursegroup__tdesc" class="java.lang.String">
		<fieldDescription><![CDATA[Field returned by mcoursegroup__tdesc]]></fieldDescription>
	</field>
	<field name="mcoursegroup__edesc" class="java.lang.String">
		<fieldDescription><![CDATA[Field returned by mcoursegroup__edesc]]></fieldDescription>
	</field>
	<field name="mcoursegroup__shortname" class="java.lang.String">
		<fieldDescription><![CDATA[Field returned by mcoursegroup__shortname]]></fieldDescription>
	</field>
	<field name="mcoursegroup__shortename" class="java.lang.String">
		<fieldDescription><![CDATA[Field returned by mcoursegroup__shortename]]></fieldDescription>
	</field>

	<variable name="TEST" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA["A"]]></variableExpression>
		<initialValueExpression><![CDATA["A"]]></initialValueExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="76"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="0"
						y="32"
						width="535"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{REPORTHEADER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="427"
						y="0"
						width="83"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[new com.csc.library.report.ReportUDF().getDDMMYYYY()+" - "+$P{Page}+" "+$V{PAGE_NUMBER} + " / "]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="510"
						y="0"
						width="25"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="109"
						y="16"
						width="306"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{COMPANY}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="0"
						y="0"
						width="79"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"
						isPrintInFirstWholeBand="true"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{SCREEN}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="109"
						y="0"
						width="306"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{TRAINING}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Opaque"
						x="0"
						y="60"
						width="70"
						height="16"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" pdfEncoding ="Identity-H"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{groupid}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Opaque"
						x="70"
						y="60"
						width="288"
						height="16"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" pdfEncoding ="Identity-H"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{GROUPNAME}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Opaque"
						x="358"
						y="60"
						width="177"
						height="16"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="Thin" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" pdfEncoding ="Identity-H"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{sname}]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="16"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="0"
						width="70"
						height="16"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#CCCCCC"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" pdfEncoding ="Identity-H"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{mcoursegroup__crsgid}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="70"
						y="0"
						width="288"
						height="16"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#CCCCCC"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" pdfEncoding ="Identity-H"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{mcoursegroup__tdesc}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="358"
						y="0"
						width="177"
						height="16"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="Thin" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#CCCCCC"/>
					<textElement verticalAlignment="Middle">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" pdfEncoding ="Identity-H"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{mcoursegroup__shortname}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="16"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="0"
						y="0"
						width="535"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"
						isPrintInFirstWholeBand="true"/>
					<box topBorder="Thin" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{PREPARED}+" "+$P{PRINTNAME}]]></textFieldExpression>
				</textField>
			</band>
		</pageFooter>
		<summary>
			<band height="16"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Opaque"
						x="0"
						y="0"
						width="535"
						height="16"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField"/>
					<box topBorder="Thin" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="Thin" bottomBorderColor="#000000"/>
					<textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single">
						<font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{TOTAL}+" "+$V{REPORT_COUNT}+" "+$P{RECORDS}]]></textFieldExpression>
				</textField>
			</band>
		</summary>
</jasperReport>