<?xml version="1.0" encoding="UTF-8"?>
<ER_HT_ROOM desc_thai="ทะเบียนห้องพยาบาล" desc_eng="Room Table" editcheck="true" mainhelp="ER_HT_ROOMHELP" referhelp="ER_HT_ROOMHELP" mainkey="ROOMID" fieldsystem="*" protype="table" deleteflag="true" config_field="">
	<FIELD>
		<ROOMID lang="A" encrypt="N" verify="false" log="false" type="String">
			<KEY>1</KEY>
			<WIDTH>10</WIDTH>
			<DESC_ENG>Room ID</DESC_ENG>
			<DESC_THAI>รหัสห้องพยาบาล</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_THAI>รหัสห้องพยาบาล</ALT_THAI>
				<ALT_ENG>Room ID</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</ROOMID>
		<COMPANYID lang="A" encrypt="false" log="false" type="String">
			<WIDTH>5</WIDTH>
			<DESC_ENG>Company ID</DESC_ENG>
			<DESC_THAI>รหัสสำนักงาน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>5</MAXSIZE>
				<SIZE>5</SIZE>
				<READONLY>true</READONLY>
				<ALT_ENG>Company ID</ALT_ENG>
				<ALT_THAI>รหัสสำนักงาน</ALT_THAI>
			</COMPONENT>
		</COMPANYID>			
		<LOCATIONS lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>250</WIDTH>
			<DESC_ENG>Location</DESC_ENG>
			<DESC_THAI>สถานที่</DESC_THAI>
			<COMPONENT type="textarea">
				<MAXSIZE>250</MAXSIZE>
				<SIZECHAR>50</SIZECHAR>
				<LINES>5</LINES>
				<ALT_THAI>สถานที่</ALT_THAI>
				<ALT_ENG>Location</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</LOCATIONS>
		<TEL lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>30</WIDTH>
			<DESC_ENG>Tel.</DESC_ENG>
			<DESC_THAI>เบอร์โทร</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>100</MAXSIZE>
				<SIZE>30</SIZE>
				<ALT_THAI>เบอร์โทร</ALT_THAI>
				<ALT_ENG>Tel.</ALT_ENG>
				<ONKEYPRESS>phoneIn(); </ONKEYPRESS>
			</COMPONENT>
		</TEL>
		<EMAIL lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>50</WIDTH>
			<DESC_ENG>Email</DESC_ENG>
			<DESC_THAI>อีเมล์</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>100</MAXSIZE>
				<SIZE>50</SIZE>
				<ALT_THAI>อีเมล์</ALT_THAI>
				<ALT_ENG>Email</ALT_ENG>
				<ONKEYPRESS>chkNotThaiChaOnly()</ONKEYPRESS>
				<ONBLUR>chkEmail(this)</ONBLUR>
			</COMPONENT>
		</EMAIL>
		</FIELD>
		<RELATION>
			<ER_HT_DOCTOR mode="-1">
				<PARENT>ER_HT_ROOM.ROOMID</PARENT>
				<CHILD>ER_HT_DOCTOR.ROOMID</CHILD>
			</ER_HT_DOCTOR>
			<ER_HT_ROOM_USE_MASTER mode="-1">
				<PARENT>ER_HT_ROOM.ROOMID</PARENT>
				<CHILD>ER_HT_ROOM_USE_MASTER.ROOMID</CHILD>
			</ER_HT_ROOM_USE_MASTER>
			<ER_HT_ROOM_BED mode="-1">
				<PARENT>ER_HT_ROOM.ROOMID</PARENT>
				<CHILD>ER_HT_ROOM_BED.ROOMID</CHILD>
			</ER_HT_ROOM_BED>			
		</RELATION>
</ER_HT_ROOM>
