先看看源代码:
_page=voucher4TestCSharp.queryForPagePDF(admdivcode,styeay,
vtcode,star_voucherno,curPage, pageSize);
if(_page!=null){
list = _page.getResultList();
}
listMap = new ArrayList<Map<String,String>>();
for(VoucherDTO_PDF newVoucherDTO_PDF:list){
Map<String,String> map = null;
map = BeanUtils.describe(newVoucherDTO_PDF);
String voucher_no=newVoucherDTO_PDF.getVoucher_no();
String quhua_code=newVoucherDTO_PDF.getAdmdivcode();
String vt_code=newVoucherDTO_PDF.getVt_code();
String styear=newVoucherDTO_PDF.getStyear();
map.put("download", "<a href=javascript:download('"+voucher_no+"','"+quhua_code+"','"+vt_code+"','"+styear+"')>下凭证载</a>");
listMap.add(map);
}
Map<String,List<Map<String,String>>> resultMap = new HashMap<String,List<Map<String,String>>>();
resultMap.put("data", listMap);
JSONObject jo = JSONObject.fromObject(resultMap);
jo.put("recordCount", _page.getTotalRows());
this.actionWrite(jo.toString());
return null;_page=voucher4TestCSharp.queryForP