* 生成卡片树
*
* @param rootMenuId
*/
private String generateCardTrees(Dto pDto) {
Reader sqlRunner = (Reader) SpringBeanLoader.getSpringBean("g4Reader");
HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();
SessionContainer sessionContainer = WebUtils.getSessionContainer(request);
String userid = sessionContainer.getUserInfo().getUserid();
Dto qDto = new BaseDto();
qDto.put("userid", userid);
List cardList = (List) pDto.get("cardList");
String treesString = scriptStart + "Ext.onReady(function(){";
for (int i = 0; i < cardList.size(); i++) {
MenuVo cardVo = (MenuVo) cardList.get(i);
qDto.put("menuid", cardVo.getMenuid());
qDto.put("accountType", pDto.getAsString("accountType"));
List menuList = tagSupportService.getCardTreeList(qDto).getDefaultAList();
String rootName = (String) sqlRunner.queryForObject("Organization.getMenuNameForCNPath", "01");
Dto pathDto = new BaseDto();
pathDto.put("01", rootName);
Dto dto = new BaseDto();
dto.put("menuList", generateMenuPathName(menuList, pathDto));
dto.put("menuid", cardVo.getMenuid());