SMBC.xml 2.65 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
<?xml version='1.0' encoding='UTF-8' ?>
<EXPXML name="SMBC.xml" fileout="C:/temp/TransferBank/SMBC.txt" filetype="txt" processtype="file">
<INIT>
	double sum=0;
	Double d=null;
	Integer i = null;
	int reccount = 0;
	int rectmp= 1;
</INIT>  <!-- еǤ蹴 comma (,) -->
<HEAD>
<COL type="string" width="1">H</COL> <!-- File Type  -->
<COL type="data" width="11">dbInq.getString("mbank_company","account")</COL><!-- ŢѭѺѷ : 11 --> 
<COL type="data" width="8">DATE</COL> <!-- Value Date : DDMMYYYY -->
<COL type="data" width="5">fs.addBlank(5,"0",reccount)</COL>
<COL type="data" width="12">fs.addBlank(12,"0",dbInq.getString("sum"))</COL><!-- ӹǹԹ : 12 -->
<COL type="string" width="5"></COL> <!-- Fax Area Code Ex. 038 rayong or 02 Bangkok : 5 -->
<COL type="string" width="10"></COL> <!-- Fax No.  Ex. 038123456 , 0263698521 : 10 -->
<COL type="string" width="70"></COL> <!-- Payer's E-mail address  : 70 -->
<COL type="string" width="50"></COL> <!-- English Capital Letter : 50 -->
<COL type="string">newline</COL>
</HEAD>
<DATA>
<COL type="string" width="1">P</COL> <!-- File Type  -->
<COL type="data">fs.addBlank(5,"0",rectmp++)</COL> <!-- running number start 00001 : 5 -->
<COL type="string" width="1">3</COL> <!-- Transaction type '3' = meadia clearing service   -->
<COL type="string" width="1">3</COL> <!-- Issue WHTTAX certificate flag  '3'  -->
<COL type="data" width="3">dbInq.getString("mbank_company","bankid") </COL><!-- bankcode: 3 -->
<COL type="data" width="4">dbInq.getString("accountno").substring(0,3)</COL><!--ҢҸҤ : 4  ҡ 3 á ͧŢѭ ѡҹ*-->
<COL type="data" width="50">dbInq.getString("mbankbran","tdesc")</COL><!-- ҢҸҤ : 50-->
<COL type="data" width="11">dbInq.getString("accountno")</COL> <!-- : 11-->
<COL type="data" width="35">dbInq.getString("memployee","efname")+" "+dbInq.getString("memployee","elname")</COL>
<COL type="string" width="2">01</COL><!-- service type : 2      01= salary  -->
<COL type="data" width ="12" decimalformat="###.00" blank="0" align="right">dbInq.getString("amount")</COL><!--ըش(.)ȹ2˹觴 -->
<COL type="string">,</COL><!-- REMARK : 200-->
<COL type="string">,</COL><!--  PAYEE NAME -1 : 80 -->
<COL type="string">,</COL><!--  PAYEE NAME -2 : 80 -->
<COL type="string" width ="2">01</COL><!--  NOTICE BY  : 2   '01' = No ,do not notice beneficiary-->
<COL type="data">fs.repeat(",",19)</COL><!--  ,     :19-->
<COL type="string">A</COL><!--  COMMISSION CHARGE TO : 1   A= Applicant pays for bank charge -->
<COL type="formula">sum += d.parseDouble(dbInq.getString("amount"))</COL>
<COL type="formula">reccount++</COL>
<COL type="string">newline</COL>
</DATA>
</EXPXML>