BBL.xml 1.81 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
<?xml version='1.0' encoding='UTF-8' ?>
<EXPXML name="BBL.xml" fileout="C:/temp/TransferBank/BBL.txt" filetype="txt" processtype="file">
<INIT>
	double sum=0;
	Double d=null;
	Integer i = null;
	int reccount= 0;
</INIT>
<HEAD>
<COL type="string">H</COL><!-- Record type -->
<COL type="data" width="25">dbInq.getString("mcompany","ename").toUpperCase()</COL> <!-- Ǿ˭ : 25 -->
<COL type="data" >DATE</COL><!-- ѺҨҡ˹Ҩ DDMMYY : 6-->
<COL type="data" width="10">dbInq.getString("mbank_company","account")</COL> <!-- ŢѭѺѷ : 10 --> 
<COL type="data" >fs.addBlank(10,"0",sum)</COL><!-- ֧ѡʵҧ  ҡú 10 ˹ ٹҧ˹ : 10-->
<COL type="string">000</COL><!-- Filler   0    3 ˹ -->
<COL type="data">fs.addBlank(4,"0",reccount)</COL>
<COL type="data">fs.repeat("0",21)</COL><!-- Space  0 21 ˹ -->
<COL type="string">newline</COL>
</HEAD>
<DATA>
<COL type="string">I0</COL> <!-- Record type ˭    status  0-->
<COL type="string">000</COL><!-- ú 3  0 ҧ˹Ҩú: 3 -->
<COL type="data">fs.addBlank(10,"0","right",dbInq.getString("employeeid"))</COL><!-- ú 10  0 ҧ˹Ҩú: 10 -->
<COL type="data" width="35">dbInq.getString("memployee","efname").toUpperCase()+" "+dbInq.getString("memployee","elname").toUpperCase()</COL><!-- ʡ  Ǿ˭ ѹ : 35  -->
<COL type="data"  width="10" >dbInq.getString("accountno")</COL>
<COL type="data" >fs.addBlank(10,"0","left",dbInq.getString("amount"))</COL>
<COL type="string" >0000</COL><!-- Filler   0 : 4  -->
<COL type="string">5</COL><!-- Transaction Code => 5  -->
<COL type="string" >00000</COL><!-- Space   0  : 5  -->
<COL type="formula">sum += d.parseDouble(dbInq.getString("amount"))</COL>
<COL type="formula">reccount++</COL>
<COL type="string">newline</COL>
</DATA>
</EXPXML>