<?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="TRRE020" columnCount="1" printOrder="Vertical" orientation="Landscape" pageWidth="842" pageHeight="595" columnWidth="782" 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.*" /> <import value="com.csc.library.utilities.CscCalendar" /> <parameter name="DESCRIPTION" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["DESCRIPTION"]]></defaultValueExpression> </parameter> <parameter name="CLASSNAME" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["CLASSNAME"]]></defaultValueExpression> </parameter> <parameter name="COMPANY" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> </parameter> <parameter name="TOTAL" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Total"]]></defaultValueExpression> </parameter> <parameter name="CODE" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["CODE(S)"]]></defaultValueExpression> </parameter> <parameter name="APPRISAL" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["APPRISAL"]]></defaultValueExpression> </parameter> <parameter name="SCREEN" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> <defaultValueExpression ><![CDATA["TRA044"]]></defaultValueExpression> </parameter> <parameter name="Page" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Page"]]></defaultValueExpression> </parameter> <parameter name="RECORDS" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Record(s)"]]></defaultValueExpression> </parameter> <parameter name="TOTHOURS" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Total Hour"]]></defaultValueExpression> </parameter> <parameter name="TRAINING" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Training"]]></defaultValueExpression> </parameter> <parameter name="PRINTNAME" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> </parameter> <parameter name="PREPARED" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Prepared by"]]></defaultValueExpression> </parameter> <parameter name="LANG" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[lang]]></parameterDescription> <defaultValueExpression ><![CDATA["THA"]]></defaultValueExpression> </parameter> <parameter name="REPORTHEADER" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> </parameter> <parameter name="tr_id" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Training ID"]]></defaultValueExpression> </parameter> <parameter name="crs" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Course ID"]]></defaultValueExpression> </parameter> <parameter name="title" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Training Title"]]></defaultValueExpression> </parameter> <parameter name="between" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Between Date"]]></defaultValueExpression> </parameter> <parameter name="am_trnee" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Trainee"]]></defaultValueExpression> </parameter> <parameter name="am_reserver" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Reserver"]]></defaultValueExpression> </parameter> <parameter name="tr_time" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Train Time"]]></defaultValueExpression> </parameter> <parameter name="am_hour" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Hour"]]></defaultValueExpression> </parameter> <parameter name="TRAIN_TYPE" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Train Type"]]></defaultValueExpression> </parameter> <parameter name="RUN_NO" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["RTR3003"]]></defaultValueExpression> </parameter> <parameter name="ACTORNAME" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> </parameter> <parameter name="DATEENG" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> </parameter> <parameter name="DATETHAI" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> </parameter> <field name="htraining__trainingid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__trainingid]]></fieldDescription> </field> <field name="htraining__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__companyid]]></fieldDescription> </field> <field name="htraining__trtitle" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__trtitle]]></fieldDescription> </field> <field name="htraining__status" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__status]]></fieldDescription> </field> <field name="htraining__crsid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__crsid]]></fieldDescription> </field> <field name="htraining__classdatefrm" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__classdatefrm]]></fieldDescription> </field> <field name="htraining__classdateto" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__classdateto]]></fieldDescription> </field> <field name="htraining__timestart" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__timestart]]></fieldDescription> </field> <field name="htraining__timestop" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__timestop]]></fieldDescription> </field> <field name="htraining__classhour" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__classhour]]></fieldDescription> </field> <field name="htraining__instid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__instid]]></fieldDescription> </field> <field name="htraining__locid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__locid]]></fieldDescription> </field> <field name="htraining__roomid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__roomid]]></fieldDescription> </field> <field name="htraining__budyear" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__budyear]]></fieldDescription> </field> <field name="htraining__trtyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__trtyid]]></fieldDescription> </field> <field name="htraining__budplaned" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__budplaned]]></fieldDescription> </field> <field name="htraining__budused" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__budused]]></fieldDescription> </field> <field name="mcourse__crsid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mcourse__crsid]]></fieldDescription> </field> <field name="mcourse__crsdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mcourse__crsdesc]]></fieldDescription> </field> <field name="mcourse__crsedesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mcourse__crsedesc]]></fieldDescription> </field> <field name="mtraintype__trtyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mtraintype__trtyid]]></fieldDescription> </field> <field name="mtraintype__trtydesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mtraintype__trtydesc]]></fieldDescription> </field> <field name="mtraintype__trtyedesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mtraintype__trtyedesc]]></fieldDescription> </field> <field name="htraining__amount_trainee" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by htraining__amount_trainee]]></fieldDescription> </field> <field name="orderby1" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby1]]></fieldDescription> </field> <field name="orderby1desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby1desc]]></fieldDescription> </field> <variable name="TEST" class="java.lang.String" resetType="Report" calculation="Nothing"> <variableExpression><![CDATA["A"]]></variableExpression> <initialValueExpression><![CDATA["A"]]></initialValueExpression> </variable> <variable name="trainingid_count" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{htraining__trainingid}]]></variableExpression> </variable> <group name="course" isReprintHeaderOnEachPage="true" > <groupExpression><![CDATA[$F{mcourse__crsid}]]></groupExpression> <groupHeader> <band height="16" isSplitAllowed="true" > <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="782" height="16" key="textField-67" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="Thin" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#999999"/> <textElement textAlignment="Left" 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[$F{mcourse__crsdesc}]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="0" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="97" isSplitAllowed="true" > <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="60" y="81" width="256" height="16" key="textField-49"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ชื่อรุ่น": "Training Title"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="563" y="81" width="95" height="16" key="textField-50"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ระหว่างวันที่": "Between Date"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="658" y="81" width="54" height="16" key="textField-51"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "เวลา": "Training Time"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="712" y="81" width="30" height="16" key="textField-52"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{am_hour}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="742" y="81" width="40" height="16" key="textField-53"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="Thin" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{am_trnee}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="81" width="60" height="16" key="textField-65"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{tr_id}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="316" y="81" width="97" height="16" key="textField-68"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ประเภทการอบรม": "Training Type"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="413" y="81" width="75" height="16" key="textField-70"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ประมาณการแพลน": "EXC. VAT"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="488" y="81" width="75" height="16" key="textField-71"/> <box topBorder="Thin" topBorderColor="#000000" leftBorder="Thin" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#666666"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ค่าใช้จ่ายจริง": "INC. VAT"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="730" y="62" width="20" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-74"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Right" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="14" 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="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="752" y="62" width="27" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-75"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="14" 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="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="1" y="1" width="383" height="27" forecolor="#000000" backcolor="#FFFFFF" key="textField-76"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="24" isBold="true" 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="730" y="45" width="52" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-77"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="14" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{RUN_NO}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="79" y="45" width="329" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-78"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="14" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? $P{DATETHAI}:$P{DATEENG}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="79" y="62" width="329" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-79"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="14" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? $P{ACTORNAME}:$P{ACTORNAME}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="1" y="45" width="76" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-80"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "วันที่พิมพ์ : ":"Print date : "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="1" y="62" width="76" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-81"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "พิมพ์โดย : ":"Print by : "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="683" y="45" width="45" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-82"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "อ้างอิง # ":"Ref # "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="683" y="62" width="45" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-83"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "หน้า":"Page"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="79" y="28" width="329" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-84"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{REPORTHEADER}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="1" y="28" width="76" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-85"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "รายงาน : ":"Report Name : "]]></textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="16" isSplitAllowed="true" > <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="60" y="0" width="256" height="16" key="textField-56" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{htraining__trtitle}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="563" y="0" width="95" height="16" key="textField-57" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha") ? new CscCalendar $F{htraining__classdatefrm}.getThaiDDMMYYYY()+" - "+new CscCalendar$F{htraining__classdateto}.getThaiDDMMYYYY(): new CscCalendar $F{htraining__classdatefrm}.getDDMMYYYY()+" - "+new CscCalendar$F{htraining__classdateto}.getDDMMYYYY()]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="658" y="0" width="24" height="16" key="textField-58" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[Double.valueOf($F{htraining__timestart})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="712" y="0" width="30" height="16" key="textField-59" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[Double.valueOf($F{htraining__classhour})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="742" y="0" width="40" height="16" key="textField-60" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="Thin" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Right" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.Integer"><![CDATA[Integer.valueOf($F{htraining__amount_trainee})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="687" y="0" width="24" height="16" key="textField-61" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[Double.valueOf($F{htraining__timestop})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="682" y="0" width="6" height="16" key="textField-62" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["-"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="60" height="16" key="textField-64" stretchType="RelativeToTallestObject" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trainingid}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{htraining__trainingid}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="316" y="0" width="97" height="16" key="textField-69" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__trtitle}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{htraining__trtitle}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="413" y="0" width="75" height="16" key="textField-72" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__budplaned}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{htraining__budplaned}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="488" y="0" width="75" height="16" key="textField-73" stretchType="RelativeToTallestObject" isPrintWhenDetailOverflows="true"> <printWhenExpression><![CDATA[Boolean.valueOf(!$F{htraining__budused}.equals(""))]]></printWhenExpression> </reportElement> <box topBorder="Thin" topBorderColor="#CCCCCC" leftBorder="Thin" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="Thin" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Middle" rotation="None"> <font fontName="Cordia New" pdfFontName="CORDIA.TTF" size="12" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{htraining__budused}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="59" isSplitAllowed="true" > <line direction="TopDown"> <reportElement x="161" y="19" width="188" height="1" key="line-4"/> <graphicElement stretchType="NoStretch"/> </line> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="193" y="21" width="125" height="20" key="textField-86"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isPdfEmbedded ="true" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ผู้จัดทำ": "Prepared By"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="463" y="21" width="125" height="20" key="textField-87"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Cordia New" pdfFontName="CORDIAB.TTF" size="14" isBold="true" isPdfEmbedded ="true" pdfEncoding ="Identity-H"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ผู้อนุมัติ": "Approved By"]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement x="434" y="19" width="188" height="1" key="line-5"/> <graphicElement stretchType="NoStretch"/> </line> </band> </lastPageFooter> <summary> <band height="23" isSplitAllowed="true" > <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="0" width="782" 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{trainingid_count}+" "+$P{RECORDS}]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement x="0" y="18" width="783" height="0" key="line-3"/> <graphicElement stretchType="NoStretch"/> </line> </band> </summary> </jasperReport>