<?xml version="1.0" encoding="UTF-8"?>
<REPORTXML>
	<DATAMANAGER>TAR171</DATAMANAGER>
	<REPORTHEADER tdesc="รายงานกะดึก" edesc="Night Shift Report"/>
	<REFER_LANG>true</REFER_LANG>
	<LINKTABLE>
		<FIELD>TTIME_CURRENT1</FIELD>		
		<FIELD>MEMPLOYEE</FIELD>	
	</LINKTABLE>
	<HELP>
	</HELP>
	<FIXFILTER>
		<FIELD tablename="TTIME_CURRENT1" value="eventgrp ='T' and time0id in (SELECT time0id from mtime0 where night_shift='1') and  (m_tm_bg !='0' OR m_tm_en!=0) and (source_in !='A' AND source_out!='A') and hour_d ='8' "/>
	</FIXFILTER>
	<VFIELD>
		<FIELD type="String" size="100">Memployee.fulllname</FIELD>		
	</VFIELD>
	<GROUP >			
		<FIELD DESC="mbranch.edesc" LABEL="BRANCH CODE">ttime_current1.branch</FIELD>
		<FIELD DESC="mbu1.edesc" LABEL="BU1 CODE">ttime_current1.bu1</FIELD>
		<FIELD DESC="mbu2.edesc" LABEL="BU2 CODE">ttime_current1.bu2</FIELD>
		<FIELD DESC="mbu3.edesc" LABEL="BU3 CODE">ttime_current1.bu3</FIELD>
		<FIELD DESC="mbu4.edesc" LABEL="BU4 CODE">ttime_current1.bu4</FIELD>
		<FIELD DESC="mbu5.edesc" LABEL="BU5 CODE">ttime_current1.bu5</FIELD>
		<FIELD DESC="mgroup.edesc" LABEL="GROUP CODE">ttime_current1.emp_group</FIELD>
	</GROUP>
	<TEMPLATE>
		<FIELD name="TAR171.jasper"  tdesc="รายงานกะดึก" edesc="Night Shift Report"/>
		<FIELD name="TAR171_EXCEL.jasper"  tdesc="รายงานกะดึก-Excel" edesc="Night Shift Report Excel"/>
	</TEMPLATE>
   <COMPONENT link="TAR171_OPTION">
	</COMPONENT>
</REPORTXML>