<?xml version='1.0' encoding='UTF-8' ?>
<EXPXML name="BBL_MC.xml" fileout="C:/temp/TransferBank/BBL_MC.txt" filetype="txt" processtype="file">
<INIT>
	double sum=0;
	Double d=null;
	Integer i = null;
	int reccount= 0;
    int tmpInt = 2;
</INIT>
<HEAD>
<COL type="string">H</COL><!-- Record type -->
<COL type="string">000001</COL><!--�ӴѺ���ͧ������ �������� 000001 : 6-->
<COL type="string" width="3">002</COL>><!-- bankcode : 3-->
<COL type="data" width="4">dbInq.getString("mbank_company","bankbranc")</COL>><!-- sendingBR : 4-->
<COL type="data" width="11">dbInq.getString("mbank_company","account")</COL> <!-- �Ţ���ѭ�Ѻ���ѷ : 11 --> 
<COL type="data" width="25">dbInq.getString("mcompany","ename").toUpperCase()</COL> <!-- ��Ǿ�����˭� : 25 -->
<COL type="data" >DATE</COL><!-- �Ѻ�Ҩҡ˹�Ҩ� DDMMYY : 6-->
<COL type="string">U</COL><!-- Input type : T=Tape,D=Disk,U=Upload-->
<COL type="string">Y</COL><!-- Advice form -->
<COL type="string">1</COL><!-- Commission type -->
<COL type="string">D</COL><!-- Input type : T=Tape,D=Download-->
<COL type="string" width="68"></COL><!-- Space  68 ���˹� -->
<COL type="string">newline</COL>
</HEAD>
<DATA>
<COL type="string">D</COL> <!-- Record type -->
<COL type="data" >fs.addBlank(6,"0",tmpInt++)</COL><!--�ӴѺ���ͧ������ ��ͨҡ Data  : 6 -->
<COL type="string" width="3"></COL>><!-- recieving bank code : 3-->
<COL type="string" width="4">0000</COL>><!-- recieving branch code : 4-->
<COL type="data"  width="11" >dbInq.getString("accountno")</COL>
<COL type="string">01</COL> <!-- transaction code -->
<COL type="data" >fs.addBlank(12,"0","left",dbInq.getString("amount"))</COL>
<COL type="data" width="35">dbInq.getString("memployee","efname").toUpperCase()+" "+dbInq.getString("memployee","elname").toUpperCase()</COL><!-- ����ʡ��  ��Ǿ�����˭� ����ѹ : 30  -->
<COL type="string"  width="20" ></COL> <!-- ref NO. -->
<COL type="string"  width="8" ></COL> <!-- space -->
<COL type="data">fs.repeat("0",30)</COL><!-- �������� 0   : 30-->
<COL type="formula">sum += d.parseDouble(dbInq.getString("amount"))</COL>
<COL type="formula">reccount++</COL>
<COL type="string">newline</COL>
</DATA>
<FOOT>
<COL type="string">T</COL> <!-- Record type -->
<COL type="data" >fs.addBlank(6,"0",tmpInt)</COL> <!-- LAST SEQ. : 6-->
<COL type="string" width="3">002</COL>><!-- bankcode : 3-->
<COL type="data" width="11">dbInq.getString("mbank_company","account")</COL> <!-- �Ţ���ѭ�Ѻ���ѷ : 11 --> 
<COL type="string"  width="20" ></COL> <!--  space :20-->
<COL type="data" >fs.addBlank(7,"0",reccount)</COL> <!-- No. of credit trans : 7-->
<COL type="data">fs.addBlank(13,"0",dbInq.getString("sum"))</COL> <!-- �֧��ѡʵҧ����ú 13 ����ٹ���ҧ˹�� : 13-->
<COL type="string"  width="67" ></COL> <!--  space :67-->
</FOOT>
</EXPXML>