<?xml version='1.0' encoding='UTF-8' ?>
<EXPXML name="HSBC.xml" fileout="C:/temp/TransferBank/HSBC.txt" filetype="txt" processtype="file">
<INIT>
	double sum=0;
	Double d=null;
	Integer i = null;
	int reccount = 0;
</INIT>  
<HEAD>
<COL type="string">1THHSBC</COL> <!--  -->
<COL type="data" width="12">dbInq.getString("mbank_company","account")</COL><!-- �Ţ���ѭ�Ѻ���ѷ : 12 -->
<COL type="string" >P01</COL> <!--  -->
<COL type="data" width="6">fs.addBlank(6,"0",reccount)</COL>
<COL type="data" width ="17" decimalformat="###.00" blank="0" align="right">sum</COL><!--�ըش(.)�ȹ���2���˹觴��� -->
<COL type="data" width="8">DATE</COL> <!-- Value Date: YYYYMMDD -->
<COL type="string" width="3">APO</COL> <!--  -->
<COL type="data" width="78">dbInq.getString("mcompany","ename")</COL><!-- ���ͺ���ѷ :78 -->
<COL type="string" width="1">1</COL> <!--  -->
<COL type="string">newline</COL>
</HEAD>
<DATA>
<COL type="string" width="1">2</COL> <!-- Record Type  -->
<COL type="data" width="12">dbInq.getString("employeeid")</COL> <!-- ���ʾ�ѡ�ҹ: 12-->
<COL type="string" width="4"></COL> <!-- Space : 4-->
<COL type="data" width="16">fs.addBlank(16,"0",fs.getFixDot(2,dbInq.getString("amount")))</COL><!--  ������ú 16 ��� 0 ��ҹ˹�� 000xxxx.xx  �ըش(.)�ȹ���2���˹觴��� -->
<COL type="string" width="8"></COL> <!-- Space : 8-->
<COL type="data" width="3">dbInq.getString("mbank_company","bankid") </COL><!-- bankcode: 3 -->
<COL type="string" width="1">0</COL> <!--  -->
<COL type="data" width="3">dbInq.getString("accountno").substring(0,3)</COL> <!--�����ҢҸ�Ҥ�� : 3  ( �������á�ͧ�Ţ���ѭ�� ��ѡ�ҹ )-->
<COL type="string" width="1"></COL> <!-- Space : 1 -->
<COL type="data" width="20">dbInq.getString("accountno")</COL> <!-- : 20-->
<COL type="string" width="8"></COL> <!-- value date Space : 8 -->
<COL type="data" width="20">dbInq.getString("memployee","efname").toUpperCase()+" "+dbInq.getString("memployee","elname").toUpperCase()</COL><!-- ����ʡ��  ��Ǿ�����˭� ����ѹ :  20  -->
<COL type="string" width="38"></COL> <!-- value date Space : 38 -->
<COL type="formula">sum += d.parseDouble(dbInq.getString("amount"))</COL>
<COL type="formula">reccount++</COL>
<COL type="string">newline</COL>
</DATA>
</EXPXML>