<?xml version="1.0" encoding="UTF-8"?>
<MQUESTION desc_eng="ทะเบียนคำถาม" desc_thai="ทะเบียนคำถาม" editcheck="true" fieldsystem="*" mainhelp="MQUESTIONHELP" referhelp="MQUESTIONHELP" mainkey="QUESTIONID" protype="table" deleteflag="true" config_field="">
	<FIELD>
		<QUESTIONID lang="A" encrypt="false" log="false" type="String">
			<KEY>1</KEY>
			<WIDTH>10</WIDTH>
			<DESC_ENG>Question ID</DESC_ENG>
			<DESC_THAI>รหัสคำถาม</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>10</SIZE>
				<MAXSIZE>10</MAXSIZE>
				<ALT_ENG>Question ID</ALT_ENG>
				<ALT_THAI>รหัสคำถาม</ALT_THAI>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</QUESTIONID>
		<QUESTION lang="A" encrypt="false" log="false" type="String">
			<WIDTH>8000</WIDTH>
			<DESC_ENG>Question</DESC_ENG>
			<DESC_THAI>คำถาม</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>8000</MAXSIZE>
				<SIZE>70</SIZE>
				<ALT_THAI>คำถาม</ALT_THAI>
				<ALT_ENG>Question</ALT_ENG>
			</COMPONENT>
		</QUESTION>
		<QUESTION_FORMAT lang="A" encrypt="false" log="false" type="String">
			<WIDTH>8000</WIDTH>
			<DESC_ENG>คำถาม</DESC_ENG>
			<DESC_THAI>คำถาม</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>8000</MAXSIZE>
				<SIZE>70</SIZE>
				<ALT_THAI>คำถาม</ALT_THAI>
				<ALT_ENG>คำถาม</ALT_ENG>
			</COMPONENT>
		</QUESTION_FORMAT>
		<TITLE_TYPE lang="A" encrypt="false" log="false" type="String">
			<WIDTH>1</WIDTH>
			<DESC_ENG>Title Type</DESC_ENG>
			<DESC_THAI>ประเภทหัวข้อ</DESC_THAI>
			<COMPONENT type="radio">
				<MAXSIZE>1</MAXSIZE>
				<SIZE>1</SIZE>
				<ALT_THAI>ประเภทหัวข้อ</ALT_THAI>
				<ALT_ENG>Title Type</ALT_ENG>
				<VALIDCODE>TITLE_TYPE</VALIDCODE>
				<DEFAULTVALUE>0</DEFAULTVALUE>
			</COMPONENT>
		</TITLE_TYPE>
		<QUERY_TYPE lang="A" encrypt="false" log="false" type="String">
			<WIDTH>1</WIDTH>
			<DESC_ENG>Query Type</DESC_ENG>
			<DESC_THAI>ประเภทแบบสอบถาม</DESC_THAI>
			<COMPONENT type="radio">
				<MAXSIZE>1</MAXSIZE>
				<SIZE>1</SIZE>
				<ALT_THAI>ประเภทแบบสอบถาม</ALT_THAI>
				<ALT_ENG>Query Type</ALT_ENG>
				<VALIDCODE>QUERY_TYPE</VALIDCODE>
				<DEFAULTVALUE>0</DEFAULTVALUE>
			</COMPONENT>
		</QUERY_TYPE>
		<SCORE lang="A" encrypt="false" log="false" type="String">
			<WIDTH>6</WIDTH>
			<DESC_ENG>Score</DESC_ENG>
			<DESC_THAI>คะแนน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>6</MAXSIZE>
				<SIZE>3</SIZE>
				<ALT_THAI>คะแนน</ALT_THAI>
				<ALT_ENG>Score</ALT_ENG>
				<ONKEYPRESS>chkInteger();</ONKEYPRESS>
				<DEFAULTVALUE>1</DEFAULTVALUE>
			</COMPONENT>
		</SCORE>
		<ACTIVE_STATUS lang="A" encrypt="false" log="false" type="String">
			<WIDTH>1</WIDTH>
			<DESC_ENG>Status</DESC_ENG>
			<DESC_THAI>สถานะการใช้งาน</DESC_THAI>
			<COMPONENT type="radio">
				<MAXSIZE>1</MAXSIZE>
				<SIZE>1</SIZE>
				<ALT_THAI>สถานะการใช้งาน</ALT_THAI>
				<ALT_ENG>Status</ALT_ENG>
				<VALIDCODE>ACTIVE_STATUS_APS</VALIDCODE>
				<DEFAULTVALUE>1</DEFAULTVALUE>
			</COMPONENT>
		</ACTIVE_STATUS>
		<ANSWERID lang="A" encrypt="false" log="false" type="String">
			<WIDTH>10</WIDTH>
			<RELATION>MQUESTION_ANSWER0</RELATION>
			<DESC_ENG>Answer ID</DESC_ENG>
			<DESC_THAI>กลุ่มคำตอบ</DESC_THAI>
			<COMPONENT type="Text">
				<SIZE>10</SIZE>
				<MAXSIZE>10</MAXSIZE>
				<ALT_ENG>Answer ID</ALT_ENG>
				<ALT_THAI>กลุ่มคำตอบ</ALT_THAI>
			</COMPONENT>
		</ANSWERID>
		<ANSWER_TYPE lang="A" encrypt="false" log="false" type="String">
			<WIDTH>1</WIDTH>
			<DESC_ENG>Answer Type</DESC_ENG>
			<DESC_THAI>ประเภทกลุ่มคำตอบ</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>1</MAXSIZE>
				<SIZE>1</SIZE>
				<ALT_THAI>ประเภทกลุ่มคำตอบ</ALT_THAI>
				<ALT_ENG>Answer Type</ALT_ENG>
				<!-- <VALIDCODE>QUESTION_ANSWER_TYPE</VALIDCODE>
				<DEFAULTVALUE>1</DEFAULTVALUE> -->
			</COMPONENT>
		</ANSWER_TYPE>
	</FIELD>
	<RELATION>
		<MQUESTION_DETAIL>
			<PARENT>MQUESTION.QUESTIONID</PARENT>
			<CHILD>MQUESTION_DETAIL.QUESTIONID</CHILD>
		</MQUESTION_DETAIL>
		<MSUB_GROUP_DETAIL>
			<PARENT>MQUESTION.QUESTIONID</PARENT>
			<CHILD>MSUB_GROUP_DETAIL.QUESTIONID</CHILD>
		</MSUB_GROUP_DETAIL>
		<MQUESTIONSET1_DETAIL>
			<PARENT>MQUESTION.QUESTIONID</PARENT>
			<CHILD>MQUESTIONSET1_DETAIL.QUESTIONID</CHILD>
		</MQUESTIONSET1_DETAIL>
		<MQUESTIONSET2_DETAIL>
			<PARENT>MQUESTION.QUESTIONID</PARENT>
			<CHILD>MQUESTIONSET2_DETAIL.QUESTIONID</CHILD>
		</MQUESTIONSET2_DETAIL>
		<MQUESTIONSET3_DETAIL>
			<PARENT>MQUESTION.QUESTIONID</PARENT>
			<CHILD>MQUESTIONSET3_DETAIL.QUESTIONID</CHILD>
		</MQUESTIONSET3_DETAIL>
		<MQUESTIONSET4_DETAIL>
			<PARENT>MQUESTION.QUESTIONID</PARENT>
			<CHILD>MQUESTIONSET4_DETAIL.QUESTIONID</CHILD>
		</MQUESTIONSET4_DETAIL>
	</RELATION>
</MQUESTION>