<?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="TAR150" columnCount="1" printOrder="Vertical" orientation="Landscape" pageWidth="842" pageHeight="595" 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.*" /> <import value="com.csc.library.utilities.*" /> <import value="com.csc.library.report.*" /> <import value="com.csc.library.utilities.CscCalendar" /> <import value="com.csc.library.utility.DHMConvert" /> <parameter name="TOTAL" isForPrompting="true" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Total"]]></defaultValueExpression> </parameter> <parameter name="PAGE" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["PAGE"]]></defaultValueExpression> </parameter> <parameter name="VPAGE" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["TAR150"]]></defaultValueExpression> </parameter> <parameter name="HEAD1" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["TIME ATTENDANCE"]]></defaultValueExpression> </parameter> <parameter name="COMPANY" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> <defaultValueExpression ><![CDATA[""]]></defaultValueExpression> </parameter> <parameter name="no" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["No."]]></defaultValueExpression> </parameter> <parameter name="absentid" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Absent ID"]]></defaultValueExpression> </parameter> <parameter name="startdate" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Start Date"]]></defaultValueExpression> </parameter> <parameter name="ENDDATE__T1" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["End Date"]]></defaultValueExpression> </parameter> <parameter name="remark" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["REMARK"]]></defaultValueExpression> </parameter> <parameter name="DATE" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["DATE"]]></defaultValueExpression> </parameter> <parameter name="TIME" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["TIME"]]></defaultValueExpression> </parameter> <parameter name="VPAGE1" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["TAR150"]]></defaultValueExpression> </parameter> <parameter name="RECORD" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Record(s)"]]></defaultValueExpression> </parameter> <parameter name="EMPNAME" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["EMPNAME"]]></defaultValueExpression> </parameter> <parameter name="wf_status" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["WF STATUS"]]></defaultValueExpression> </parameter> <parameter name="lang" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[lang]]></parameterDescription> <defaultValueExpression ><![CDATA["THAI"]]></defaultValueExpression> </parameter> <parameter name="REPORTHEADER" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> <defaultValueExpression ><![CDATA[""]]></defaultValueExpression> </parameter> <parameter name="starttime" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Start Time"]]></defaultValueExpression> </parameter> <parameter name="endtime" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["End Time"]]></defaultValueExpression> </parameter> <parameter name="lv_type" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["Leave Type"]]></defaultValueExpression> </parameter> <parameter name="LANG" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[Language]]></parameterDescription> <defaultValueExpression ><![CDATA["THA"]]></defaultValueExpression> </parameter> <parameter name="RUN_NO" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[label]]></parameterDescription> <defaultValueExpression ><![CDATA["RTA2002"]]></defaultValueExpression> </parameter> <parameter name="DATETHAI" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> <defaultValueExpression ><![CDATA[""]]></defaultValueExpression> </parameter> <parameter name="DATEENG" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> <defaultValueExpression ><![CDATA[""]]></defaultValueExpression> </parameter> <parameter name="ACTORNAME" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component ]]></parameterDescription> <defaultValueExpression ><![CDATA[""]]></defaultValueExpression> </parameter> <parameter name="GROUPBY" isForPrompting="false" class="java.lang.String"> <parameterDescription><![CDATA[component]]></parameterDescription> <defaultValueExpression ><![CDATA[""]]></defaultValueExpression> </parameter> <field name="memployee__employeeid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__employeeid]]></fieldDescription> </field> <field name="tabsent_nstda__absentid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__absentid]]></fieldDescription> </field> <field name="tabsent_nstda__type_absent" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__type_absent]]></fieldDescription> </field> <field name="tabsent_nstda__employeeid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__employeeid]]></fieldDescription> </field> <field name="tabsent_nstda__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__companyid]]></fieldDescription> </field> <field name="tabsent_nstda__start_date" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__start_date]]></fieldDescription> </field> <field name="tabsent_nstda__end_date" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__end_date]]></fieldDescription> </field> <field name="tabsent_nstda__start_time" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__start_time]]></fieldDescription> </field> <field name="tabsent_nstda__end_time" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__end_time]]></fieldDescription> </field> <field name="tabsent_nstda__status" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__status]]></fieldDescription> </field> <field name="tabsent_nstda__runno" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__runno]]></fieldDescription> </field> <field name="tabsent_nstda__remark" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__remark]]></fieldDescription> </field> <field name="tabsent_nstda__edit_by" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__edit_by]]></fieldDescription> </field> <field name="tabsent_nstda__edit_date" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__edit_date]]></fieldDescription> </field> <field name="tabsent_nstda__edit_time" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__edit_time]]></fieldDescription> </field> <field name="tabsent_nstda__approve" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__approve]]></fieldDescription> </field> <field name="tabsent_nstda__wf_status" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__wf_status]]></fieldDescription> </field> <field name="tabsent_nstda__verified" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__verified]]></fieldDescription> </field> <field name="tabsent_nstda__cause_absent" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__cause_absent]]></fieldDescription> </field> <field name="tabsent_nstda__leave_format" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__leave_format]]></fieldDescription> </field> <field name="tabsent_nstda__leave_hour" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__leave_hour]]></fieldDescription> </field> <field name="tabsent_nstda__leave_day" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__leave_day]]></fieldDescription> </field> <field name="tabsent_nstda__branch" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__branch]]></fieldDescription> </field> <field name="tabsent_nstda__bu1" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__bu1]]></fieldDescription> </field> <field name="tabsent_nstda__bu2" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__bu2]]></fieldDescription> </field> <field name="tabsent_nstda__bu3" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__bu3]]></fieldDescription> </field> <field name="tabsent_nstda__bu4" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__bu4]]></fieldDescription> </field> <field name="tabsent_nstda__bu5" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__bu5]]></fieldDescription> </field> <field name="tabsent_nstda__emp_group" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__emp_group]]></fieldDescription> </field> <field name="tabsent_nstda__docref" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tabsent_nstda__docref]]></fieldDescription> </field> <field name="memployee__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__companyid]]></fieldDescription> </field> <field name="memployee__fname" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__fname]]></fieldDescription> </field> <field name="memployee__lname" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__lname]]></fieldDescription> </field> <field name="memployee__efname" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__efname]]></fieldDescription> </field> <field name="memployee__elname" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__elname]]></fieldDescription> </field> <field name="memployee__fullname" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__fullname]]></fieldDescription> </field> <field name="memployee__edit_by" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__edit_by]]></fieldDescription> </field> <field name="memployee__edit_date" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__edit_date]]></fieldDescription> </field> <field name="memployee__edit_time" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__edit_time]]></fieldDescription> </field> <field name="memployee__approve" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__approve]]></fieldDescription> </field> <field name="memployee__verified" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__verified]]></fieldDescription> </field> <field name="memployee__status" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__status]]></fieldDescription> </field> <field name="memployee__salatype" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by memployee__salatype]]></fieldDescription> </field> <field name="meventgrp__eventgrpid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__eventgrpid]]></fieldDescription> </field> <field name="meventgrp__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__tdesc]]></fieldDescription> </field> <field name="meventgrp__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__edesc]]></fieldDescription> </field> <field name="meventgrp__datebeforerequest" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__datebeforerequest]]></fieldDescription> </field> <field name="meventgrp__runno" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__runno]]></fieldDescription> </field> <field name="meventgrp__edit_by" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__edit_by]]></fieldDescription> </field> <field name="meventgrp__edit_date" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__edit_date]]></fieldDescription> </field> <field name="meventgrp__edit_time" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__edit_time]]></fieldDescription> </field> <field name="meventgrp__approve" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__approve]]></fieldDescription> </field> <field name="meventgrp__verified" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by meventgrp__verified]]></fieldDescription> </field> <field name="mbranch__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbranch__companyid]]></fieldDescription> </field> <field name="mbranch__branchid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbranch__branchid]]></fieldDescription> </field> <field name="mbranch__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbranch__tdesc]]></fieldDescription> </field> <field name="mbranch__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbranch__edesc]]></fieldDescription> </field> <field name="mbu1__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu1__companyid]]></fieldDescription> </field> <field name="mbu1__bu1id" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu1__bu1id]]></fieldDescription> </field> <field name="mbu1__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu1__tdesc]]></fieldDescription> </field> <field name="mbu1__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu1__edesc]]></fieldDescription> </field> <field name="mbu2__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu2__companyid]]></fieldDescription> </field> <field name="mbu2__bu2id" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu2__bu2id]]></fieldDescription> </field> <field name="mbu2__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu2__tdesc]]></fieldDescription> </field> <field name="mbu2__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu2__edesc]]></fieldDescription> </field> <field name="mbu3__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu3__companyid]]></fieldDescription> </field> <field name="mbu3__bu3id" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu3__bu3id]]></fieldDescription> </field> <field name="mbu3__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu3__tdesc]]></fieldDescription> </field> <field name="mbu3__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu3__edesc]]></fieldDescription> </field> <field name="mbu4__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu4__companyid]]></fieldDescription> </field> <field name="mbu4__bu4id" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu4__bu4id]]></fieldDescription> </field> <field name="mbu4__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu4__tdesc]]></fieldDescription> </field> <field name="mbu4__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu4__edesc]]></fieldDescription> </field> <field name="mbu5__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu5__companyid]]></fieldDescription> </field> <field name="mbu5__bu5id" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu5__bu5id]]></fieldDescription> </field> <field name="mbu5__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu5__tdesc]]></fieldDescription> </field> <field name="mbu5__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mbu5__edesc]]></fieldDescription> </field> <field name="mgroup__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mgroup__companyid]]></fieldDescription> </field> <field name="mgroup__groupid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mgroup__groupid]]></fieldDescription> </field> <field name="mgroup__tdesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mgroup__tdesc]]></fieldDescription> </field> <field name="mgroup__edesc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by mgroup__edesc]]></fieldDescription> </field> <field name="tleave_summary__companyid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tleave_summary__companyid]]></fieldDescription> </field> <field name="tleave_summary__docid" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tleave_summary__docid]]></fieldDescription> </field> <field name="tleave_summary__m_lv" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tleave_summary__m_lv]]></fieldDescription> </field> <field name="tleave_summary__hour_s" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by tleave_summary__hour_s]]></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> <field name="orderby2" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby2]]></fieldDescription> </field> <field name="orderby2desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby2desc]]></fieldDescription> </field> <field name="orderby3" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby3]]></fieldDescription> </field> <field name="orderby3desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby3desc]]></fieldDescription> </field> <field name="orderby4" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby4]]></fieldDescription> </field> <field name="orderby4desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby4desc]]></fieldDescription> </field> <field name="orderby5" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby5]]></fieldDescription> </field> <field name="orderby5desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby5desc]]></fieldDescription> </field> <field name="orderby6" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby6]]></fieldDescription> </field> <field name="orderby6desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby6desc]]></fieldDescription> </field> <field name="orderby7" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby7]]></fieldDescription> </field> <field name="orderby7desc" class="java.lang.String"> <fieldDescription><![CDATA[Field returned by orderby7desc]]></fieldDescription> </field> <variable name="count" class="java.lang.Integer" resetType="Group" resetGroup="absent" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="countAll" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_GROUP" class="java.lang.Integer" resetType="Group" resetGroup="group" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_BU1" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_BU2" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_BU3" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_BU4" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_BU5" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="COUNT_MGROUP" class="java.lang.Integer" resetType="Report" calculation="Count"> <variableExpression><![CDATA[$F{tabsent_nstda__absentid}]]></variableExpression> </variable> <variable name="LeaveHR" class="java.lang.String" resetType="Report" calculation="Nothing"> <variableExpression><![CDATA[(new CheckNull().chkNullStringToDouble($F{tabsent_nstda__leave_hour}) > 0)? ($F{tabsent_nstda__leave_hour}.indexOf('.')>-1)? $F{tabsent_nstda__leave_hour}.substring(0,$F{tabsent_nstda__leave_hour}.indexOf('.')).length() == 1? '0'+$F{tabsent_nstda__leave_hour}.substring(0,$F{tabsent_nstda__leave_hour}.indexOf('.')) :$F{tabsent_nstda__leave_hour}.substring(0,$F{tabsent_nstda__leave_hour}.indexOf('.')) :($F{tabsent_nstda__leave_hour}.length() == 1)?'0'+$F{tabsent_nstda__leave_hour}:$F{tabsent_nstda__leave_hour} :"00"]]></variableExpression> </variable> <variable name="NetHours" class="java.lang.String" resetType="Report" calculation="Nothing"> <variableExpression><![CDATA[($F{tabsent_nstda__leave_day}.length() == 1)?"0"+$F{tabsent_nstda__leave_day}:$F{tabsent_nstda__leave_day} +":"+$V{LeaveHR}+":"+$V{LeaveMin}]]></variableExpression> </variable> <variable name="LeaveMin" class="java.lang.String" resetType="Report" calculation="Nothing"> <variableExpression><![CDATA[(new CheckNull().chkNullStringToDouble($F{tabsent_nstda__leave_hour}) > 0)? ($F{tabsent_nstda__leave_hour}.indexOf('.')>-1)? $F{tabsent_nstda__leave_hour}.substring($F{tabsent_nstda__leave_hour}.indexOf('.')+1,$F{tabsent_nstda__leave_hour}.length()).length() == 1? '0'+$F{tabsent_nstda__leave_hour}.substring($F{tabsent_nstda__leave_hour}.indexOf('.')+1,$F{tabsent_nstda__leave_hour}.length()) :$F{tabsent_nstda__leave_hour}.substring($F{tabsent_nstda__leave_hour}.indexOf('.')+1,$F{tabsent_nstda__leave_hour}.length()) :"00" :"00"]]></variableExpression> </variable> <group name="group" > <groupExpression><![CDATA[$P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BRANCH") ? $F{tabsent_nstda__branch}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU1") ? $F{tabsent_nstda__bu1}+$F{tabsent_nstda__branch}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU2") ? $F{tabsent_nstda__bu2}+$F{tabsent_nstda__bu1}+$F{tabsent_nstda__branch}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU3") ? $F{tabsent_nstda__bu3}+$F{tabsent_nstda__bu2}+$F{tabsent_nstda__bu1}+$F{tabsent_nstda__branch}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU4") ? $F{tabsent_nstda__bu4}+$F{tabsent_nstda__bu3}+$F{tabsent_nstda__bu2}+$F{tabsent_nstda__bu1}+$F{tabsent_nstda__branch}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU5") ? $F{tabsent_nstda__bu5}+$F{tabsent_nstda__bu4}+$F{tabsent_nstda__bu3}+$F{tabsent_nstda__bu2}+$F{tabsent_nstda__bu1}+$F{tabsent_nstda__branch}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.EMP_GROUP") ? $F{tabsent_nstda__emp_group}+$F{tabsent_nstda__bu5}+$F{tabsent_nstda__bu4}+$F{tabsent_nstda__bu3}+$F{tabsent_nstda__bu2}+$F{tabsent_nstda__bu1}+$F{tabsent_nstda__branch}: ""]]></groupExpression> <groupHeader> <band height="15" isSplitAllowed="true" > <printWhenExpression><![CDATA[new java.lang.Boolean(!$P{GROUPBY}.equals("") && !$P{GROUPBY}.equals("0"))]]></printWhenExpression> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="1" width="781" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="3" rightBorder="None" rightBorderColor="#000000" rightPadding="3" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" 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{LANG}.equalsIgnoreCase("tha")? $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BRANCH") ? $F{mbranch__tdesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU1") ? $F{mbu1__tdesc} + ", " + $F{mbranch__tdesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU2") ? $F{mbu2__tdesc} + ", " + $F{mbu1__tdesc} + ", " + $F{mbranch__tdesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU3") ? $F{mbu3__tdesc} + ", " + $F{mbu2__tdesc} + ", " + $F{mbu1__tdesc} + ", " + $F{mbranch__tdesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU4") ? $F{mbu4__tdesc} + ", " + $F{mbu3__tdesc} + ", " + $F{mbu2__tdesc} + ", " + $F{mbu1__tdesc} + ", " + $F{mbranch__tdesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU5") ? $F{mbu5__tdesc} + ", " + $F{mbu4__tdesc} + ", " + $F{mbu3__tdesc} + ", " + $F{mbu2__tdesc} + ", " + $F{mbu1__tdesc} + ", " + $F{mbranch__tdesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.EMP_GROUP") ? $F{mgroup__tdesc} + ", " + $F{mbu5__tdesc} + ", " + $F{mbu4__tdesc} + ", " + $F{mbu3__tdesc} + ", " + $F{mbu2__tdesc} + ", " + $F{mbu1__tdesc} + ", " + $F{mbranch__tdesc}: "" : $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BRANCH") ? $F{mbranch__edesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU1") ? $F{mbu1__edesc} + ", " + $F{mbranch__edesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU2") ? $F{mbu2__edesc} + ", " + $F{mbu1__edesc} + ", " + $F{mbranch__edesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU3") ? $F{mbu3__edesc} + ", " + $F{mbu2__edesc} + ", " + $F{mbu1__edesc} + ", " + $F{mbranch__edesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU4") ? $F{mbu4__edesc} + ", " + $F{mbu3__edesc} + ", " + $F{mbu2__edesc} + ", " + $F{mbu1__edesc} + ", " + $F{mbranch__edesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.BU5") ? $F{mbu5__edesc} + ", " + $F{mbu4__edesc} + ", " + $F{mbu3__edesc} + ", " + $F{mbu2__edesc} + ", " + $F{mbu1__edesc} + ", " + $F{mbranch__edesc}: $P{GROUPBY}.toUpperCase().equalsIgnoreCase("MEMPLOYEE.EMP_GROUP") ? $F{mgroup__edesc} + ", " + $F{mbu5__edesc} + ", " + $F{mbu4__edesc} + ", " + $F{mbu3__edesc} + ", " + $F{mbu2__edesc} + ", " + $F{mbu1__edesc} + ", " + $F{mbranch__edesc}: ""]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band height="16" isSplitAllowed="true" > <printWhenExpression><![CDATA[new java.lang.Boolean(!$P{GROUPBY}.equals("") && !$P{GROUPBY}.equals("0"))]]></printWhenExpression> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="15" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line-8"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="0" width="780" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-8"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="3" rightBorder="None" rightBorderColor="#000000" rightPadding="3" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" 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{COUNT_GROUP}+" "+$P{RECORD}]]></textFieldExpression> </textField> </band> </groupFooter> </group> <group name="absent" > <groupExpression><![CDATA[$F{tabsent_nstda__employeeid}]]></groupExpression> <groupHeader> <band height="16" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="38" y="1" width="475" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{tabsent_nstda__employeeid}+" "+$F{memployee__fullname}]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band height="2" isSplitAllowed="true" > <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="1" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line-13"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="0" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="110" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="5" y="92" width="74" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{no}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="79" y="92" width="119" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "เลขที่การลา":"Absent ID"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="198" y="92" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{startdate}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="278" y="92" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "วันที่สิ้นสุด":"End Date"]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="90" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="88" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="109" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="107" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="622" y="92" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "ประเภทการลา":"Leave Type"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="358" y="92" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-15"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "เวลาเริ่มต้น":"Start Time"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="438" y="92" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-16"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? "เวลาสิ้นสุด":"End Time"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="518" y="92" width="104" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-24"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[($P{LANG}.equalsIgnoreCase("THA"))?"จำนวนชั่วโมงลา":"Leave Hour[DD:MM:NN]"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="702" y="92" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-26"/> <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="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[($P{LANG}.equalsIgnoreCase("THA"))?"เอกสารอ้างอิง":"Doc.Ref"]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="728" y="47" width="20" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-29"/> <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="750" y="47" width="27" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-30"/> <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="0" y="0" width="383" height="27" forecolor="#000000" backcolor="#FFFFFF" key="textField-31"/> <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="728" y="30" width="52" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-32"/> <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="55" y="44" width="329" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-33"/> <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="55" y="61" width="329" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-34"/> <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="0" y="44" width="50" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-35"/> <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="0" y="61" width="50" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-36"/> <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="681" y="30" width="45" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-37"/> <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="681" y="47" width="45" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-38"/> <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="55" y="27" width="329" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-39"/> <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{REPORTHEADER}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="27" width="50" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-40"/> <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> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="681" y="67" width="95" height="17" forecolor="#000000" backcolor="#FFFFFF" key="textField-41"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")?"หน่วย : ชั่วโมง.นาที":"Unit : HH.MM"]]></textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="15" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="5" y="1" width="74" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-17"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[String.valueOf($V{count})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="79" y="1" width="119" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-18"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{tabsent_nstda__absentid}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="198" y="1" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-19"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha") ? new CscCalendar $F{tabsent_nstda__start_date}.getThaiDDMMYYYY(): new CscCalendar $F{tabsent_nstda__start_date}.getDDMMYYYY()]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="278" y="1" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-20"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha") ? new CscCalendar $F{tabsent_nstda__end_date}.getThaiDDMMYYYY(): new CscCalendar $F{tabsent_nstda__end_date}.getDDMMYYYY()]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="622" y="1" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-21"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{LANG}.equalsIgnoreCase("tha")? $F{meventgrp__tdesc}: $F{meventgrp__edesc}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="00.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="358" y="1" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-22"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[Double.valueOf(new CheckNull().chkNullStringToDouble($F{tabsent_nstda__start_time}))]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="00.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="438" y="1" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-23"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.Double"><![CDATA[Double.valueOf(new CheckNull().chkNullStringToDouble($F{tabsent_nstda__end_time}))]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="00.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="518" y="1" width="104" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-25"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[new DHMConvert(new CheckNull().chkNullStringToDouble($F{tleave_summary__m_lv}),new CheckNull().chkNullStringToDouble($F{tleave_summary__hour_s})).parseDHM() ]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="00.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="702" y="1" width="80" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField-27"/> <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="12" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="true" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{tabsent_nstda__docref}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="21" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="2" width="780" height="14" forecolor="#000000" backcolor="#FFFFFF" key="textField"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="3" rightBorder="None" rightBorderColor="#000000" rightPadding="3" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left" verticalAlignment="Top" 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{countAll}+" "+$P{RECORD}]]></textFieldExpression> </textField> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="1" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="17" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <line direction="TopDown"> <reportElement mode="Opaque" x="0" y="19" width="782" height="1" forecolor="#000000" backcolor="#FFFFFF" key="line"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> </band> </summary> </jasperReport>