<?xml version="1.0" encoding="UTF-8"?>
<MWORKAREA desc_eng="Working Area Table" desc_thai="ทะเบียนสถานที่ทำงาน" editcheck="true" mainhelp="MWORKAREAHELP" referhelp="MWORKAREAHELP" mainkey="WORKAREAID" fieldsystem="*" dependlevel="true" protype="table" deleteflag="true" config_field="">
	<FIELD>
		<WORKAREAID lang="A" encrypt="false" log="false" type="String">
			<KEY>1</KEY>
			<WIDTH>10</WIDTH>
			<DESC_ENG>Working Area Code</DESC_ENG>
			<DESC_THAI>รหัสสถานที่ทำงาน</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>10</SIZE>
				<MAXSIZE>10</MAXSIZE>
				<ALT_ENG>Working Area Code</ALT_ENG>
				<ALT_THAI>รหัสสถานที่ทำงาน</ALT_THAI>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</WORKAREAID>
		<COMPANYID lang="A" encrypt="false" log="false" type="String">
			<KEY>2</KEY>
			<WIDTH>5</WIDTH>
			<RELATION>MCOMPANY</RELATION>
			<DESC_ENG>CompanyID</DESC_ENG>
			<DESC_THAI>รหัสบริษัท</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>5</SIZE>
				<MAXSIZE>5</MAXSIZE>
				<ALT_ENG>CompanyID</ALT_ENG>
				<ALT_THAI>รหัสบริษัท</ALT_THAI>
			</COMPONENT>
		</COMPANYID>
		<EDESC lang="E" encrypt="false" log="false" type="String">
			<WIDTH>100</WIDTH>
			<REFER_LANG>TDESC</REFER_LANG>
			<DESC_ENG>Desc. (Eng.)</DESC_ENG>
			<DESC_THAI>รายละเอียด (อังกฤษ)</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>70</SIZE>
				<MAXSIZE>100</MAXSIZE>
				<ALT_ENG>Desc. (Eng.)</ALT_ENG>
				<ALT_THAI>รายละเอียด (อังกฤษ)</ALT_THAI>
			</COMPONENT>
		</EDESC>
		<TDESC lang="T" encrypt="false" log="false" type="String">
			<WIDTH>100</WIDTH>
			<REFER_LANG>EDESC</REFER_LANG>
			<DESC_ENG>Desc. (Thai)</DESC_ENG>
			<DESC_THAI>รายละเอียด (ไทย)</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>70</SIZE>
				<MAXSIZE>100</MAXSIZE>
				<ALT_ENG>Desc. (Thai)</ALT_ENG>
				<ALT_THAI>รายละเอียด (ไทย)</ALT_THAI>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</TDESC>
		<WEB lang="A" encrypt="false" verify="false" log="false" type="String">
			<WIDTH>256</WIDTH>
			<DESC_ENG>Website</DESC_ENG>
			<DESC_THAI>เว็บไซต์</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>256</MAXSIZE>
				<SIZE>30</SIZE>
				<ALT_ENG>Website</ALT_ENG>
				<ALT_THAI>เว็บไซต์</ALT_THAI>
				<ONBLUE>checkWeb(data);</ONBLUE>
				<ONKEYPRESS>chkNotThaiChaOnly();</ONKEYPRESS>
			</COMPONENT>
		</WEB>
		<MAIL lang="A" encrypt="false" verify="false" log="false" type="String">
			<WIDTH>256</WIDTH>
			<DESC_ENG>E-mail</DESC_ENG>
			<DESC_THAI>อีเมล์</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>256</MAXSIZE>
				<SIZE>30</SIZE>
				<ALT_ENG>E-mail</ALT_ENG>
				<ALT_THAI>อีเมล์</ALT_THAI>
				<ONBLUR>chkEmail(this);</ONBLUR>
				<ONKEYPRESS>chkNotThaiChaOnly();</ONKEYPRESS>
			</COMPONENT>
		</MAIL>
		<DATEST lang="A" encrypt="false" verify="false" log="false" type="Date">
			<WIDTH>12</WIDTH>
			<DESC_ENG>Start date</DESC_ENG>
			<DESC_THAI>วันที่เริ่มใช้</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>8</MAXSIZE>
				<SIZE>10</SIZE>
				<!--
ONCHANGE>isValidDate(this.value);</ONCHANGE
				-->
				<ONKEYPRESS>chkIntegerOfDate(this.value);</ONKEYPRESS>
				<ONKEYUP>formatDate(this);</ONKEYUP>
				<ONBLUR>chkInputDate2(this,__dateen);</ONBLUR>
				<ALT_ENG>Start date</ALT_ENG>
				<ALT_THAI>วันที่เริ่มใช้</ALT_THAI>
				<REQUIRE>true</REQUIRE>
			</COMPONENT>
		</DATEST>
		<DATEEN lang="A" encrypt="false" verify="false" log="false" type="Date">
			<WIDTH>12</WIDTH>
			<DESC_ENG>End date</DESC_ENG>
			<DESC_THAI>วันที่สิ้นสุด</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>8</MAXSIZE>
				<DEFAULTVALUE>05-02-2050</DEFAULTVALUE>
				<!--
ONCHANGE>isValidDate(this.value);</ONCHANGE
				-->
				<ONKEYPRESS>chkIntegerOfDate(this.value);</ONKEYPRESS>
				<ONKEYUP>formatDate(this);</ONKEYUP>
				<ONBLUR>chkInputDate2(__datest,this);</ONBLUR>
				<SIZE>10</SIZE>
				<ALT_ENG>End date</ALT_ENG>
				<ALT_THAI>วันที่สิ้นสุด</ALT_THAI>
			</COMPONENT>
		</DATEEN>
		<OBJECTIVE lang="A" encrypt="false" verify="false" log="false" type="String">
			<WIDTH>4000</WIDTH>
			<DESC_ENG>Objective</DESC_ENG>
			<DESC_THAI>วัตถุประสงค์</DESC_THAI>
			<COMPONENT type="textarea">
				<LINES>5</LINES>
				<SIZECHAR>50</SIZECHAR>
				<ALT_ENG>Objective</ALT_ENG>
				<ALT_THAI>วัตถุประสงค์</ALT_THAI>
			</COMPONENT>
		</OBJECTIVE>
		<REMARKS lang="A" encrypt="false" verify="false" log="false" type="String">
			<WIDTH>4000</WIDTH>
			<DESC_ENG>Remark</DESC_ENG>
			<DESC_THAI>หมายเหตุ</DESC_THAI>
			<COMPONENT type="textarea">
				<LINES>5</LINES>
				<SIZECHAR>50</SIZECHAR>
				<ALT_ENG>Remark</ALT_ENG>
				<ALT_THAI>หมายเหตุ</ALT_THAI>
			</COMPONENT>
		</REMARKS>
		<CONSOLIDATE lang="A" encrypt="false" verify="false" log="false" type="String">
			<WIDTH>10</WIDTH>
			<DESC_ENG>Consolidate</DESC_ENG>
			<DESC_THAI>Consolidate</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Consolidate</ALT_ENG>
				<ALT_THAI>Consolidate</ALT_THAI>
				<REQUIRE>true</REQUIRE>
			</COMPONENT>
		</CONSOLIDATE>
	</FIELD>
	<RELATION>
		<MEMPLOYEE mode="0">
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>MEMPLOYEE.WORKAREA</CHILD>
			<CHILD>MEMPLOYEE.COMPANYID</CHILD>
		</MEMPLOYEE>
		<TREQUEST>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TREQUEST.WORKAREA</CHILD>
			<CHILD>TREQUEST.COMPANYID</CHILD>
		</TREQUEST>
		<TTRAINEEREQ>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TTRAINEEREQ.WORKAREA</CHILD>
			<CHILD>TTRAINEEREQ.COMPANYID</CHILD>
		</TTRAINEEREQ>
		<TTRAINTRNEE>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TTRAINTRNEE.WORKAREA</CHILD>
			<CHILD>TTRAINTRNEE.COMPANYID</CHILD>
		</TTRAINTRNEE>
		<!--
<TTRAINTRNER>			<PARENT>MWORKAREA.WORKAREAID</PARENT>			<PARENT>MWORKAREA.COMPANYID</PARENT>			<CHILD>TTRAINTRNER.WORKAREA</CHILD>			<CHILD>TTRAINTRNER.COMPANYID</CHILD>		</TTRAINTRNER>
		-->
		<HTRAINTRNEE>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>HTRAINTRNEE.WORKAREA</CHILD>
			<CHILD>HTRAINTRNEE.COMPANYID</CHILD>
		</HTRAINTRNEE>
		<!--
<HTRAINTRNER>			<PARENT>MWORKAREA.WORKAREAID</PARENT>			<PARENT>MWORKAREA.COMPANYID</PARENT>			<CHILD>HTRAINTRNER.WORKAREA</CHILD>			<CHILD>HTRAINTRNER.COMPANYID</CHILD>		</HTRAINTRNER>
		-->
		<MWORKAREA_PHONE>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>MWORKAREA_PHONE.WORKPLACEID</CHILD>
			<CHILD>MWORKAREA_PHONE.COMPANYID</CHILD>
		</MWORKAREA_PHONE>
		<MSLEEP_PATTERN>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>MSLEEP_PATTERN.WORKAREA</CHILD>
			<CHILD>MSLEEP_PATTERN.COMPANYID</CHILD>
		</MSLEEP_PATTERN>
		<TTIME_CURRENT1>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TTIME_CURRENT1.WORKAREA</CHILD>
			<CHILD>TTIME_CURRENT1.COMPANYID</CHILD>
		</TTIME_CURRENT1>
		<TTIME_CURRENT>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TTIME_CURRENT.WORKAREA</CHILD>
			<CHILD>TTIME_CURRENT.COMPANYID</CHILD>
		</TTIME_CURRENT>
		<TOT mode="0">
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TOT.OT_WORKAREA</CHILD>
			<CHILD>TOT.COMPANYID</CHILD>
		</TOT>
		<TOT1 mode="0">
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TOT1.OT_WORKAREA</CHILD>
			<CHILD>TOT1.COMPANYID</CHILD>
		</TOT1>
		<TOT_M_DATE1 mode="0">
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TOT_M_DATE1.OT_WORKAREA</CHILD>
			<CHILD>TOT_M_DATE1.COMPANYID</CHILD>
		</TOT_M_DATE1>
		<TTIMETEMP>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TTIMETEMP.WORKAREA</CHILD>
			<CHILD>TTIMETEMP.COMPANYID</CHILD>
		</TTIMETEMP>
		<TTIMETEMP_HISTORY>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TTIMETEMP_HISTORY.WORKAREA</CHILD>
			<CHILD>TTIMETEMP_HISTORY.COMPANYID</CHILD>
		</TTIMETEMP_HISTORY>
		<HADJBONUS>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>HADJBONUS.WORKAREA</CHILD>
			<CHILD>HADJBONUS.COMPANYID</CHILD>
		</HADJBONUS>
		<SIMHADJPOSITION rtablename="HADJPOSITION" mode="0">
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>SIMHADJPOSITION.WORKAREA</CHILD>
			<CHILD>SIMHADJPOSITION.COMPANYID</CHILD>
		</SIMHADJPOSITION>
		<SIMHADJPOSITION rtablename="HADJPOSITION" mode="0">
			<PARENT>V1MWORKAREA.WORKAREAID</PARENT>
			<PARENT>V1MWORKAREA.COMPANYID</PARENT>
			<CHILD>SIMHADJPOSITION.OLD_WORKAREA</CHILD>
			<CHILD>SIMHADJPOSITION.COMPANYID</CHILD>
		</SIMHADJPOSITION>
		<!--
<MBUDGETPLAN>	 		<PARENT>MBRANCH.WORKAREAID</PARENT>			<PARENT>MBRANCH.COMPANYID</PARENT>			<CHILD>MBUDGETPLAN.WORKAREA</CHILD>			<CHILD>MBUDGETPLAN.COMPANYID</CHILD>		</MBUDGETPLAN>
		-->
		<MWELFARE_FORMULA>
			<PARENT>MBRANCH.WORKAREAID</PARENT>
			<PARENT>MBRANCH.COMPANYID</PARENT>
			<CHILD>MWELFARE_FORMULA.WORKAREA</CHILD>
			<CHILD>MWELFARE_FORMULA.COMPANYID</CHILD>
		</MWELFARE_FORMULA>
		<TFORGETCARD0>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TFORGETCARD0.WORKAREA</CHILD>
			<CHILD>TFORGETCARD0.COMPANYID</CHILD>
		</TFORGETCARD0>
		<TOT_M_DATE0>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TOT_M_DATE0.WORKAREA</CHILD>
			<CHILD>TOT_M_DATE0.COMPANYID</CHILD>
		</TOT_M_DATE0>
		<TRESERVER>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TRESERVER.WORKAREA</CHILD>
			<CHILD>TRESERVER.COMPANYID</CHILD>
		</TRESERVER>
		<!-- Start by Nut Freedom 28-11-2013-->
		<TOT_MPAYMENT1 mode="0">
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TOT_MPAYMENT1.OT_WORKAREA</CHILD>
			<CHILD>TOT_MPAYMENT1.COMPANYID</CHILD>
		</TOT_MPAYMENT1>
		<!-- End by Nut Freedom 28-11-2013-->
		<TEXTEND>
			<PARENT>MWORKAREA.WORKAREAID</PARENT>
			<PARENT>MWORKAREA.COMPANYID</PARENT>
			<CHILD>TEXTEND.WORKAREA</CHILD>
			<CHILD>TEXTEND.COMPANYID</CHILD>
		</TEXTEND>
	</RELATION>
</MWORKAREA>
