<?xml version="1.0" encoding="UTF-8"?>
<ER_HT_DRUG_BUY_DETAIL desc_thai="ทะเบียนรายละเอียดการซื้อยา" desc_eng="Drug Buy Detail Table" editcheck="true" mainhelp="ER_HT_DRUG_BUY_DETAILHELP" referhelp="ER_HT_DRUG_BUY_DETAILHELP" mainkey="DRUGID" fieldsystem="*" protype="table" deleteflag="true" config_field="">
	<FIELD>
		<CODEID lang="A" encrypt="N" verify="false" log="false" type="AutoNumber" table="ER_HT_DRUG_BUY_DETAIL">
			<KEY>1</KEY>
			<WIDTH>10</WIDTH>
			<DESC_ENG>Code ID</DESC_ENG>
			<DESC_THAI>รหัส</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_THAI>รหัส</ALT_THAI>
				<ALT_ENG>Code ID</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</CODEID>
		<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>			
		<BUY_DATE lang="A" encrypt="N" verify="false" log="false" type="Date">		
			<WIDTH>10</WIDTH>			
			<DESC_ENG>Buy Date</DESC_ENG>
			<DESC_THAI>วันที่ซื้อ</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Buy Date</ALT_ENG>
				<ALT_THAI>วันที่ซื้อ</ALT_THAI>
				<ONKEYUP>formatDate(this);</ONKEYUP>
				<ONKEYPRESS>chkInteger();</ONKEYPRESS>
				<ONFOCUS>this.select();</ONFOCUS>					
			</COMPONENT>
		</BUY_DATE>
		<DRUGID lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>10</WIDTH>
			<DESC_ENG>Drug ID</DESC_ENG>
			<DESC_THAI>รหัสยา</DESC_THAI>
			<RELATION>ER_HT_DRUG</RELATION>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_THAI>รหัสยา</ALT_THAI>
				<ALT_ENG>Drug ID</ALT_ENG>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</DRUGID>
		<QTY lang="A" encrypt="N" verify="false" log="false" type="Integer">
			<WIDTH>10</WIDTH>
			<DESC_ENG>Qty</DESC_ENG>
			<DESC_THAI>จำนวน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>Qty</ALT_ENG>
				<ALT_THAI>จำนวน</ALT_THAI>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</QTY>
		<PRICE lang="A" encrypt="N" verify="false" log="false" type="Double">
			<WIDTH>13</WIDTH>
			<DESC_ENG>Price</DESC_ENG>
			<DESC_THAI>จำนวนเงิน</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>13</MAXSIZE>
				<SIZE>13</SIZE>
				<ALT_ENG>Price</ALT_ENG>
				<ALT_THAI>จำนวนเงิน</ALT_THAI>
			</COMPONENT>
			<REQUIRE>true</REQUIRE>
		</PRICE>		
		<REMARKS lang="A" encrypt="N" verify="false" log="false" type="String">
			<WIDTH>400</WIDTH>
			<DESC_ENG>Remark</DESC_ENG>
			<DESC_THAI>หมายเหตุ</DESC_THAI>
			<COMPONENT type="textarea">
				<MAXSIZE>400</MAXSIZE>
				<SIZECHAR>50</SIZECHAR>
				<LINES>5</LINES>
				<ALT_THAI>หมายเหตุ</ALT_THAI>
				<ALT_ENG>Remark</ALT_ENG>
			</COMPONENT>
		</REMARKS>
		<EXPIRE_DATE lang="A" encrypt="N" verify="false" log="false"
			type="Date">		
			<WIDTH>10</WIDTH>
			<DESC_ENG>EXPIRE Date</DESC_ENG>
			<DESC_THAI>วันที่หมดอายุ</DESC_THAI>
			<COMPONENT type="text">
				<MAXSIZE>10</MAXSIZE>
				<SIZE>10</SIZE>
				<ALT_ENG>EXPIRE Date</ALT_ENG>
				<ALT_THAI>วันที่หมดอายุ</ALT_THAI>
				<ONKEYUP>formatDate(this);</ONKEYUP>
				<ONBLUR>chkInputDate(this);</ONBLUR>
				<ONKEYPRESS>chkInteger();</ONKEYPRESS>
				<ONFOCUS>this.select();</ONFOCUS>					
			</COMPONENT>
		</EXPIRE_DATE>		
		<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>50</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_DRUG_BUY_DETAIL>
