<?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("###,##0.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>