KTB.xml 1.91 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
<?xml version='1.0' encoding='TIS-620' ?>
<EXPXML name="KTB.xml" fileout="C:/temp/TransferBank/KTB.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">H000001</COL><!--ӴѺͧ  000001 : 6-->
<COL type="string">006</COL><!-- BANK CODE -->
<COL type="data" width="10">dbInq.getString("mbank_company","account")</COL><!-- ŢѭѺѷ : 10 --> 
<COL type="data" width="25">dbInq.getString("mcompany","ename")</COL><!-- ͸Ҥ :25 -->
<COL type="string" width ='1'></COL>
<COL type="data">fs.repeat("0",76)</COL><!--  0     :76-->
<COL type="string">newline</COL>
</HEAD>
<DATA>
<COL type="string">D</COL>
<COL type="data">fs.addBlank(6,"0",reccount++)</COL>
<COL type="string">006</COL><!-- BANK CODE -->
<COL type="data" >dbInq.getString("accountno")+" "</COL><!-- : 10 -->
<COL type="string">C</COL>
<COL type="data" >fs.addBlank(10,"0","left",dbInq.getString("amount"))</COL><!-- ȹ 2 ˹ -->
<COL type="string">029</COL><!-- ʺԡ02 status 9-->
<COL type="data">fs.repeat("0",94)</COL>
<COL type="formula">sum += d.parseDouble(dbInq.getString("amount"))</COL>
<COL type="formula">reccount++</COL>
<COL type="formula">tmpInt++</COL>
<COL type="string">newline</COL> 
</DATA>
<FOOT>
<COL type="string">T</COL>
<COL type="data">fs.addBlank(6,"0",tmpInt)</COL><!--ӴѺͧ : 6 -->
<COL type="string">006</COL><!-- BANK CODE -->
<COL type="data" width="10">dbInq.getString("mbank_company","account")</COL><!-- ŢѭѺѷ : 10 --> 
<COL type="data">fs.repeat("0",18)</COL>
<COL type="data" >fs.addBlank(7,"0",reccount)</COL><!-- ҡú 7 ˹ ٹҧ˹ Total Record  : 7-->
<COL type="data" width="15">fs.addBlank(15,"0",dbInq.getString("sum"))</COL><!-- ӹǹԹ : 15 -->
<COL type="data">fs.repeat("0",68)</COL><!--  0     :68-->
</FOOT>
</EXPXML>