<?xml version="1.0" encoding="UTF-8"?>
<ER_HT_DOCTOR desc_thai="ทะเบียนแพทย์/พยาบาล" desc_eng="Doctor table" editcheck="true" mainhelp="ER_HT_DOCTORHELP" referhelp="ER_HT_DOCTORHELP" mainkey="DOCTORID" fieldsystem="*" protype="table" deleteflag="true" config_field="">
	<FIELD>
		<DOCTORID lang="A" encrypt="N" verify="false" log="false" type="String">
			<KEY>1</KEY>
			<WIDTH>10</WIDTH>
			<DESC_ENG>Doctor ID</DESC_ENG>
			<DESC_THAI>รหัสแพทย์/พยาบาล</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_THAI>รหัสแพทย์/พยาบาล</ALT_THAI>
				<ALT_ENG>Doctor ID</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</DOCTORID>
		<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>			
		<DOCTOR_NAME lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>70</WIDTH>
			<DESC_ENG>Doctor Name</DESC_ENG>
			<DESC_THAI>ชื่อแพทย์/พยาบาล</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>250</MAXSIZE>
				<SIZE>70</SIZE>
				<ALT_THAI>ชื่อแพทย์/พยาบาล</ALT_THAI>
				<ALT_ENG>Doctor Name</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</DOCTOR_NAME>
		<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>
		<ROOMID lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>10</WIDTH>
			<DESC_ENG>Room ID</DESC_ENG>
			<DESC_THAI>ห้องพยาบาล</DESC_THAI>
			<RELATION>ER_HT_ROOM</RELATION>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_THAI>ห้องพยาบาล</ALT_THAI>
				<ALT_ENG>Room ID</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</ROOMID>			
		<STATUS lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>2</WIDTH>
			<DESC_ENG>Status</DESC_ENG>
			<DESC_THAI>สถานะ</DESC_THAI>
			<COMPONENT type="list">
				<MAXSIZE>2</MAXSIZE>
				<VALUE>1</VALUE>
				<SIZE>1</SIZE>
				<ALT_ENG>Status</ALT_ENG>
				<ALT_THAI>สถานะ</ALT_THAI>
				<VALIDCODE>ER-ROOM_STATUS</VALIDCODE>
			</COMPONENT>
		</STATUS>
		<IMAGES lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>20</WIDTH>
			<DESC_ENG>Image</DESC_ENG>
			<DESC_THAI>รูปภาพ</DESC_THAI>
			<COMPONENT type="fileupload">
				<MAXSIZE>100</MAXSIZE>
				<SIZE>20</SIZE>
				<ALT_ENG>Image</ALT_ENG>
				<ALT_THAI>รูปภาพ</ALT_THAI>
			</COMPONENT>
		</IMAGES>
		</FIELD>
		<RELATION>
			<ER_HT_DOCTOR_WORKE mode="-1">
				<PARENT>ER_HT_DOCTOR.DOCTORID</PARENT>
				<CHILD>ER_HT_DOCTOR_WORKE.DOCTORID</CHILD>
			</ER_HT_DOCTOR_WORKE>
			<ER_HT_DOCTOR_TIME mode="-1">
				<PARENT>ER_HT_DOCTOR.DOCTORID</PARENT>
				<CHILD>ER_HT_DOCTOR_TIME.DOCTORID</CHILD>
			</ER_HT_DOCTOR_TIME>			
		</RELATION>
</ER_HT_DOCTOR>
