BBL_MC.xml 3.08 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
<?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="4">dbInq.getString("mbank_company","bankbranc")</COL>><!-- sendingBR : 4-->
<COL type="data" width="11">dbInq.getString("mbank_company","account")</COL> <!-- เลขที่บัญชับริษัท : 11 --> 
<COL type="data" width="25">dbInq.getString("mcompany","ename").toUpperCase()</COL> <!-- ตัวพิมพ์ใหญ่ : 25 -->
<COL type="data" >DATE</COL><!-- รับมาจากหน้าจอ DDMMYY : 6-->
<COL type="string">U</COL><!-- Input type : T=Tape,D=Disk,U=Upload-->
<COL type="string">Y</COL><!-- Advice form -->
<COL type="string">1</COL><!-- Commission type -->
<COL type="string">D</COL><!-- Input type : T=Tape,D=Download-->
<COL type="string" width="68"></COL><!-- Space  68 ตำแหน่ง -->
<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"></COL>><!-- recieving bank code : 3-->
<COL type="string" width="4">0000</COL>><!-- recieving branch code : 4-->
<COL type="data"  width="11" >dbInq.getString("accountno")</COL>
<COL type="string">01</COL> <!-- transaction code -->
<COL type="data" >fs.addBlank(12,"0","left",dbInq.getString("amount"))</COL>
<COL type="data" width="35">dbInq.getString("memployee","efname").toUpperCase()+" "+dbInq.getString("memployee","elname").toUpperCase()</COL><!-- ชื่อสกุล  ตัวพิมพ์ใหญ่ รวมกัน : 30  -->
<COL type="string"  width="20" ></COL> <!-- ref NO. -->
<COL type="string"  width="8" ></COL> <!-- space -->
<COL type="data">fs.repeat("0",30)</COL><!-- ให้ใส่ค่า 0   : 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="11">dbInq.getString("mbank_company","account")</COL> <!-- เลขที่บัญชับริษัท : 11 --> 
<COL type="string"  width="20" ></COL> <!--  space :20-->
<COL type="data" >fs.addBlank(7,"0",reccount)</COL> <!-- No. of credit trans : 7-->
<COL type="data">fs.addBlank(13,"0",dbInq.getString("sum"))</COL> <!-- ถึงหลักสตางคไม่ครบ 13 เติมศูนย์ข้างหน้า : 13-->
<COL type="string"  width="67" ></COL> <!--  space :67-->
</FOOT>
</EXPXML>