<?xml version="1.0" encoding="UTF-8"?>
<VM_MEMPLOYEE_LEAVESTAT desc_thai="สิทธิการลา" desc_eng="Leave Availibility" editcheck="true" mainhelp="VM_MEMPLOYEE_LEAVESTATHELP" referhelp="VM_MEMPLOYEE_LEAVESTATHELP" mainkey="EMPLOYEEID" log="true" deleteflag="true" fieldsystem="" config_field="">
	<FIELD>
		<EMPLOYEEID lang="A" encrypt="false" verify="false" log="false" type="String">
			<KEY>1</KEY>
			<WIDTH>100</WIDTH>
			<RELATION>MEMPLOYEE</RELATION>
			<DESC_ENG>Employee ID</DESC_ENG>
			<DESC_THAI>Employee ID</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>100</MAXSIZE>
				<SIZE>100</SIZE>
				<ALT_ENG>Employee ID</ALT_ENG>
				<ALT_THAI>Employee ID</ALT_THAI>
			</COMPONENT>
		</EMPLOYEEID>
		<COMPANYID lang="A" encrypt="false" log="false" type="String">
			<KEY>2</KEY>
			<WIDTH>5</WIDTH>
			<DESC_ENG>Company ID</DESC_ENG>
			<DESC_THAI>รหัสบริษัท</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>5</MAXSIZE>
				<SIZE>5</SIZE>
				<ALT_ENG>Company ID</ALT_ENG>
				<ALT_THAI>หัสบริษัท</ALT_THAI>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</COMPANYID>
		<SALATYPE lang="A" encrypt="false" log="true" type="String">
			<WIDTH>5</WIDTH>
			<RELATION>MSALATYPE0</RELATION>
			<DESC_ENG>Salary Type</DESC_ENG>
			<DESC_THAI>กลุ่มการจ่ายเงินเดือน</DESC_THAI>
			<COMPONENT type="Text">
				<MAXSIZE>5</MAXSIZE>
				<SIZE>5</SIZE>
				<ALT_ENG>Salary Type</ALT_ENG>
				<ALT_THAI>กลุ่มการจ่ายเงินเดือน</ALT_THAI>
			</COMPONENT>
		</SALATYPE>
		<BU1 lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MBU1</RELATION>
			<DESC_ENG>Division</DESC_ENG>
			<DESC_THAI>ฝ่าย</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Division</ALT_ENG>
				<ALT_THAI>ฝ่าย</ALT_THAI>
				<SWAPLANG>BU1</SWAPLANG>
			</COMPONENT>
		</BU1>
		<BU2 lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MBU2</RELATION>
			<DESC_ENG>Department</DESC_ENG>
			<DESC_THAI>แผนก</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Department</ALT_ENG>
				<ALT_THAI>แผนก</ALT_THAI>
				<SWAPLANG>BU2</SWAPLANG>
			</COMPONENT>
		</BU2>
		<BU3 lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MBU3</RELATION>
			<DESC_ENG>Section</DESC_ENG>
			<DESC_THAI>ส่วน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Section</ALT_ENG>
				<ALT_THAI>ส่วน</ALT_THAI>
				<SWAPLANG>BU3</SWAPLANG>
			</COMPONENT>
		</BU3>
		<BU4 lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MBU4</RELATION>
			<DESC_ENG>Sub Section #1</DESC_ENG>
			<DESC_THAI>ส่วนย่อย</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Sub Section #1</ALT_ENG>
				<ALT_THAI>ส่วนย่อย</ALT_THAI>
				<SWAPLANG>BU4</SWAPLANG>
			</COMPONENT>
		</BU4>
		<BU5 lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MBU5</RELATION>
			<DESC_ENG>Sub Section #2</DESC_ENG>
			<DESC_THAI>ส่วนย่อย 2</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Sub Section #2</ALT_ENG>
				<ALT_THAI>ส่วนย่อย 2</ALT_THAI>
				<SWAPLANG>BU5</SWAPLANG>
			</COMPONENT>
		</BU5>
		<BRANCH lang="A" encrypt="false" log="true" type="String">
			<WIDTH>5</WIDTH>
			<RELATION>MBRANCH</RELATION>
			<DESC_ENG>Company</DESC_ENG>
			<DESC_THAI>บริษัท</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>5</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Company</ALT_ENG>
				<ALT_THAI>บริษัท</ALT_THAI>
			</COMPONENT>
		</BRANCH>
		<EMP_GROUP lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MGROUP</RELATION>
			<DESC_ENG>Employee Group</DESC_ENG>
			<DESC_THAI>กลุ่มพนักงาน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Employee Group</ALT_ENG>
				<ALT_THAI>กลุ่มพนักงาน</ALT_THAI>
			</COMPONENT>
		</EMP_GROUP>
		<JOB lang="A" encrypt="false" log="ture" type="String">
			<WIDTH>40</WIDTH>
			<RELATION>MJOBCODE</RELATION>
			<DESC_ENG>Job Title</DESC_ENG>
			<DESC_THAI>รหัสงาน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>40</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Job Title</ALT_ENG>
				<ALT_THAI>รหัสงาน</ALT_THAI>
			</COMPONENT>
		</JOB>
		<EMP_POSITION lang="A" encrypt="false" log="false" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MPOSITION</RELATION>
			<DESC_ENG>Position</DESC_ENG>
			<DESC_THAI>ตำแหน่ง</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Position</ALT_ENG>
				<ALT_THAI>ตำแหน่ง</ALT_THAI>
			</COMPONENT>
		</EMP_POSITION>
		<PL lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MPERSONALLEVEL</RELATION>
			<DESC_ENG>PL ID</DESC_ENG>
			<DESC_THAI>รหัส PL</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_THAI>รหัส PL</ALT_THAI>
				<ALT_ENG>PL ID</ALT_ENG>
			</COMPONENT>
		</PL>
		<WORKAREA lang="A" encrypt="false" log="true" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MWORKAREA</RELATION>
			<DESC_ENG>Workinq Area</DESC_ENG>
			<DESC_THAI>สถานที่ทำงาน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Workinq Area</ALT_ENG>
				<ALT_THAI>สถานที่ทำงาน</ALT_THAI>
			</COMPONENT>
		</WORKAREA>
		<EVENTGRPID lang="A" encrypt="false" log="false" type="String">
			<WIDTH>3</WIDTH>
			<RELATION>MEVENTGRP1</RELATION>
			<DESC_ENG>Code</DESC_ENG>
			<DESC_THAI>รหัสประเภทวัน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>3</MAXSIZE>
				<SIZE>3</SIZE>
				<DESC_ENG>Code</DESC_ENG>
			<DESC_THAI>รหัสประเภทวัน</DESC_THAI>
			</COMPONENT>
		</EVENTGRPID>
		<TDESC lang="T" encrypt="false" log="false" type="String">
			<WIDTH>100</WIDTH>
			<DESC_ENG>Desc. (Thai)</DESC_ENG>
			<DESC_THAI>รายละเอียด (ไทย)</DESC_THAI>
			<REFER_LANG>EDESC</REFER_LANG>
			<COMPONENT type="text">
				<MAXSIZE>100</MAXSIZE>
				<SIZE>70</SIZE>
				<ALT_THAI>รายละเอียด (ไทย)</ALT_THAI>
				<ALT_ENG>Desc. (Thai)</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</TDESC>
		<EDESC lang="E" encrypt="false" log="false" type="String">
			<WIDTH>100</WIDTH>
			<DESC_ENG>Desc. (Eng.)</DESC_ENG>
			<DESC_THAI>รายละเอียด (อังกฤษ)</DESC_THAI>
			<REFER_LANG>TDESC</REFER_LANG>
			<COMPONENT type="text">
				<MAXSIZE>100</MAXSIZE>
				<SIZE>70</SIZE>
				<ALT_THAI>รายละเอียด (อังกฤษ)</ALT_THAI>
				<ALT_ENG>Desc. (Eng.)</ALT_ENG>
			</COMPONENT>
		</EDESC>
		<STATUS lang="A" encrypt="false" log="false" type="String">
				<WIDTH>1</WIDTH>
				<RELATION>MEMPL_STATUS</RELATION>
				<DESC_ENG>Employee Status</DESC_ENG>
				<DESC_THAI>สถานภาพพนักงาน</DESC_THAI>
				<COMPONENT type="list">
						<MAXSIZE>1</MAXSIZE>
						<SIZE>1</SIZE>
						<ALT_ENG>Employee Status</ALT_ENG>
						<ALT_THAI>สถานภาพพนักงาน</ALT_THAI>
						<TABLE>MEMPL_STATUSHELP,STATUSCODE,EDESC, ,SORT</TABLE>
						<DEFAULTVALUE>V</DEFAULTVALUE>
				</COMPONENT>
		</STATUS>
		<STARTDATE lang="A" encrypt="false" log="false" type="Date">
				<WIDTH>10</WIDTH>
				<DESC_ENG>Start Date</DESC_ENG>
				<DESC_THAI>วันที่เริ่มทำงาน</DESC_THAI>
				<COMPONENT type="text">
						<MAXSIZE>10</MAXSIZE>
						<SIZE>10</SIZE>
						<ALT_ENG>Start Date</ALT_ENG>
						<ALT_THAI>วันที่เริ่มทำงาน</ALT_THAI>
				</COMPONENT>
		</STARTDATE>
		<RESIGNDATE lang="A" encrypt="false" log="false" type="Date">
				<WIDTH>10</WIDTH>
				<DESC_ENG>Resign Date</DESC_ENG>
				<DESC_THAI>วันที่ลาออก (ตามสัญญา)</DESC_THAI>
				<COMPONENT type="text">
						<MAXSIZE>23</MAXSIZE>
						<SIZE>10</SIZE>
						<ALT_ENG>Resign Date</ALT_ENG>
						<ALT_THAI>วันที่ลาออก (ตามสัญญา)</ALT_THAI>
				</COMPONENT>
		</RESIGNDATE>
	</FIELD>
	<RELATION>
		<MSALATYPE0>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.SALATYPE</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MSALATYPE0.CODEID</CHILD>
			<CHILD>MSALATYPE0.COMPANYID</CHILD>
		</MSALATYPE0>
		<MBU1>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.BU1</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MBU1.BU1ID</CHILD>
			<CHILD>MBU1.COMPANYID</CHILD>
		</MBU1>
		<MBU2>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.BU2</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MBU2.BU2ID</CHILD>
			<CHILD>MBU2.COMPANYID</CHILD>
		</MBU2>
		<MBU3>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.BU3</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MBU3.BU3ID</CHILD>
			<CHILD>MBU3.COMPANYID</CHILD>
		</MBU3>
		<MBU4>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.BU4</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MBU4.BU4ID</CHILD>
			<CHILD>MBU4.COMPANYID</CHILD>
		</MBU4>
		<MBU5>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.BU5</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MBU5.BU5ID</CHILD>
			<CHILD>MBU5.COMPANYID</CHILD>
		</MBU5>
		<MBRANCH>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.BRANCH</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MBRANCH.BRANCHID</CHILD>
			<CHILD>MBRANCH.COMPANYID</CHILD>
		</MBRANCH>
		<MGROUP>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.EMP_GROUP</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MGROUP.GROUPID</CHILD>
			<CHILD>MGROUP.COMPANYID</CHILD>
		</MGROUP>
		<MJOBCODE>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.JOB</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MJOBCODE.JOBCODEID</CHILD>
			<CHILD>MJOBCODE.COMPANYID</CHILD>
		</MJOBCODE>
		<MPOSITION>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.EMP_POSITION</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MPOSITION.POSITIONID</CHILD>
			<CHILD>MPOSITION.COMPANYID</CHILD>
		</MPOSITION>
		<MPERSONALLEVEL>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.PL</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MPERSONALLEVEL.PLID</CHILD>
			<CHILD>MPERSONALLEVEL.COMPANYID</CHILD>
		</MPERSONALLEVEL>
		<MWORKAREA>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.WORKAREA</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MWORKAREA.WORKAREAID</CHILD>
			<CHILD>MWORKAREA.COMPANYID</CHILD>
		</MWORKAREA>
		<MEVENTGRP1>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.EVENTGRPID</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MEVENTGRP1.EVENTGRPID</CHILD>
			<CHILD>MEVENTGRP1.COMPANYID</CHILD>
		</MEVENTGRP1>
		<MEMPL_STATUS>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.STATUS</PARENT>
			<PARENT>VM_MEMPLOYEE_LEAVESTAT.COMPANYID</PARENT>
			<CHILD>MEMPL_STATUS.STATUSCODE</CHILD>
			<CHILD>MEMPL_STATUS.COMPANYID</CHILD>
		</MEMPL_STATUS>
	</RELATION>
</VM_MEMPLOYEE_LEAVESTAT>
