<?xml version="1.0" encoding="UTF-8"?>
<TTRANSPORTRATE desc_eng="TTransport Rate Table" desc_thai="อัตราค่าเดินทางเหมาจ่าย" editcheck="true" mainhelp="TTRANSPORTRATEHELP" referhelp="TTRANSPORTRATEHELP" mainkey="TRAN_START" fieldsystem="*" protype="table" deleteflag="true" config_field="">
<FIELD>
		<TRAN_START lang="A" encrypt="false" log="false" type="String">
			<KEY>1</KEY>
			<WIDTH>10</WIDTH>
		   <RELATION>MTRANSPORTRATE</RELATION>
			<DESC_ENG>Start Location</DESC_ENG>
			<DESC_THAI>สถานที่เริ่มต้น</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>10</SIZE>
				<MAXSIZE>10</MAXSIZE>
				<ALT_ENG>Start Location</ALT_ENG>
				<ALT_THAI>สถานที่เริ่มต้น</ALT_THAI>
			</COMPONENT>
		<REQUIRE>true</REQUIRE>
		</TRAN_START>
		<TRAN_TERMINATE lang="A" encrypt="false" log="false" type="String">
			<KEY>2</KEY>
			<WIDTH>10</WIDTH>
 		 	<RELATION>VMTRANSPORTRATE</RELATION> 
			<DESC_ENG>Terminate Location</DESC_ENG>
			<DESC_THAI>สถานที่สิ้นสุด</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>10</SIZE>
				<MAXSIZE>10</MAXSIZE>
				<ALT_ENG>Terminate Location</ALT_ENG>
				<ALT_THAI>สถานที่สิ้นสุด</ALT_THAI>
			</COMPONENT>
		<REQUIRE>true</REQUIRE>
		</TRAN_TERMINATE>
		<COMPANYID lang="A" encrypt="false" log="false" type="String">
			<KEY>3</KEY>
			<WIDTH>10</WIDTH>
		
			<RELATION>MCOMPANY</RELATION>
			<DESC_ENG>Company ID</DESC_ENG>
			<DESC_THAI>รหัสบริษัท</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>5</SIZE>
				<MAXSIZE>5</MAXSIZE>
				<ALT_ENG>Company ID</ALT_ENG>
				<ALT_THAI>รหัสบริษัท</ALT_THAI>
				<READONLY>TRUE</READONLY>
			</COMPONENT>

	</COMPANYID>
		<TRAN_COST lang="A" encrypt="false" log="false" type="String">
			<WIDTH>10</WIDTH>
			<DESC_ENG>Cost</DESC_ENG>
			<DESC_THAI>ค่าเดินทางไปกลับ</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<READONLY>false</READONLY>
				<ALT_THAI>ค่าเดินทางไปกลับ</ALT_THAI>
				<ALT_ENG>Cost</ALT_ENG>
				<ONKEYPRESS>checkWordNumber(this.value);</ONKEYPRESS>
				<ONBLUR>checkNumFloat(this,999999999,0);</ONBLUR>
				<ONKEYUP>checkComma(this,2);</ONKEYUP>
				<ONFOCUS>callDelComma(this);</ONFOCUS>
			</COMPONENT>
		</TRAN_COST>
</FIELD>
	<RELATION>
		<MTRANSPORTRATE>
			<PARENT>TTRANSPORTRATE.TRAN_START</PARENT>
			<PARENT>TTRANSPORTRATE.COMPANYID</PARENT> 
			<CHILD>MTRANSPORTRATE.TRANID</CHILD>
 			<CHILD>MTRANSPORTRATE.COMPANYID</CHILD> 
		</MTRANSPORTRATE>


		<VMTRANSPORTRATE  rtablename="MTRANSPORTRATE" mode="-1">
			<PARENT>TTRANSPORTRATE.TRAN_TERMINATE</PARENT>
			<PARENT>TTRANSPORTRATE.COMPANYID</PARENT> 
			<CHILD>VMTRANSPORTRATE.TRANID</CHILD>
 			<CHILD>VMTRANSPORTRATE.COMPANYID</CHILD> 
		</VMTRANSPORTRATE>


	</RELATION>
</TTRANSPORTRATE>
   
