BBL.xml 3.02 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 46 47 48 49 50 51 52
<?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;
    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="10">ACC</COL> <!-- เลขที่บัญชับริษัท : 11 --> 
	<COL type="data" width="25">dbInq.getString("mcompany","ename").toUpperCase()</COL> <!-- ตัวพิมพ์ใหญ่ : 25 -->
	<COL type="data" dateformat="DDMMYY">DATE</COL><!-- รับมาจากหน้าจอ DDMMYY : 6-->
	<COL type="data">fs.repeat(" ",77)</COL> <!-- space  77 ตำแหน่ง -->
	<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">002</COL>><!-- bankcode : 3-->
<COL type="data"  width="10" >dbInq.getString("accountno")</COL>
<COL type="string">C</COL> <!-- transaction code C = Credit Salary-->
<COL type="formula">df.applyPattern("####.00");</COL>
<COL width="10" type="data">fs.addBlank(10,"0",df.format( Double.parseDouble(dbInq.getString("amount")) ).replace(".",""))</COL>
<COL type="string" width="2">02</COL>><!-- Service Type 02 = Salary -->
<COL type="string" width="1">9</COL>><!-- Status -->
<COL type="data"  >fs.repeat(" ",33)</COL> <!-- ref NO. -->
<COL type="data"  width="3" >fs.repeat("0",3)</COL> <!-- space -->
<COL type="data"  width="10" >fs.repeat("0",10)</COL> <!-- space -->
<COL type="data"  width="13" >fs.repeat(" ",13)</COL> <!-- space -->
<COL type="data" width="35">fs.addBlank(35," ","left",dbInq.getString("mprefix","tdesc")+dbInq.getString("memployee","fname")+" "+dbInq.getString("memployee","lname"))</COL><!-- ชื่อสกุล  ตัวพิมพ์ใหญ่ รวมกัน : 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="10">ACC</COL> <!-- เลขที่บัญชับริษัท : 10 --> 
<COL type="data"  width="7" >fs.repeat("0",7)</COL> <!-- space -->
<COL type="data"  width="13" >fs.repeat("0",13)</COL> <!-- space -->
<COL type="data" >fs.addBlank(7,"0",reccount)</COL> <!-- No. of credit trans : 7-->
<COL type="formula">df.applyPattern("####.00");</COL>
<COL width="13" type="data">fs.addBlank(13,"0",df.format( sum ).replace(".",""))</COL>
<COL type="data"  width="68" >fs.repeat("0",68)</COL> <!--  space :68-->
</FOOT>
</EXPXML>