PR147.xml 2.01 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
<?xml version="1.0" encoding="UTF-8"?>
<MAILMERGE>
	<INIT>
	String emplamount="";
	String compamount="";
	String  totalamount="";
	String count_la="",count_ne="",count_re="",count_le="",count_cu="";
	String  datef="", dayf="",monthf="",yearf="";
	</INIT>
	<VARIABLE>
		<INTERPRET>

				nFormat.applyPattern("###,###.00");	
				nFormat.setMaximumIntegerDigits(309);
				
				emplamount = nFormat.format(dbInq.getDouble("emplamount"));
				compamount = nFormat.format(dbInq.getDouble("compamount"));
				totalamount = nFormat.format(dbInq.getDouble("emplamount")+dbInq.getDouble("compamount"));
				datef= dbInq.getChild("tpvf_tran").getString("gendate");			
				yearf= datef.substring(0,datef.indexOf("-"));
				monthf= datef.substring(datef.indexOf("-")+1,datef.lastIndexOf("-"));
				dayf= datef.substring(datef.lastIndexOf("-")+1);
				yearf=String.valueOf(Integer.parseInt(yearf)+543);
				datef=dayf+"-"+monthf+"-"+yearf; 
				nFormat.applyPattern("###,##0");	
				nFormat.setMaximumIntegerDigits(309);
				count_la = nFormat.format(dbInq.getDouble("count_la"));
				count_ne = nFormat.format(dbInq.getDouble("count_ne"));
				count_re = nFormat.format(dbInq.getDouble("count_re"));
				count_le = nFormat.format(dbInq.getDouble("count_le"));
				count_cu = nFormat.format(dbInq.getDouble("count_cu"));

		</INTERPRET>
		<month method="data" >monthf</month>
		<year method="data" >yearf</year>
		<count_la method="data" >count_la</count_la>
		<count_ne method="data" >count_ne</count_ne>
		<count_re method="data" >count_re</count_re>
		<count_le method="data" >count_le</count_le>
		<count_cu method="data" >count_cu</count_cu>
		<empl method="data" >emplamount</empl>
		<comp method="data" >compamount</comp>
		<amou method="data" >totalamount</amou>
		<registerno method="getString" >"registerno"</registerno>
		<tdesc method="getString" >"tdesc"</tdesc>
		<com_id method="getString" >"companyid"</com_id>
		<com_name method="data" size='50' blank='_' align='center'>dbInq.getChild("mcompany").getString("tname")</com_name>
	</VARIABLE>
</MAILMERGE>