public ActionForward toTelMain( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { DynaActionFormDTO TelForm = (DynaActionFormDTO) form; List user = telQueryService.userQuery( "select user_id from sys_user where group_id = 'SYS_GROUP_0000000001' or group_id = 'SYS_GROUP_0000000141'"); request.setAttribute("user", user); return mapping.findForward("query"); }
/** * Method execute * * @param mapping * @param form * @param request * @param response * @return ActionForward */ public ActionForward toTelQuery( ActionMapping map, ActionForm form, HttpServletRequest request, HttpServletResponse response) { DynaActionFormDTO formdto = (DynaActionFormDTO) form; String pageState = null; PageInfo pageInfo = null; pageState = (String) request.getParameter("pagestate"); if (pageState == null) { pageInfo = new PageInfo(); } else { PageTurning pageTurning = (PageTurning) request.getSession().getAttribute("telQueryPageTurning"); pageInfo = pageTurning.getPage(); pageInfo.setState(pageState); formdto = (DynaActionFormDTO) pageInfo.getQl(); } pageInfo.setPageSize(14); List list = new ArrayList(); try { list = telQueryService.telQuery(formdto, pageInfo); // list = telQueryService.getTel(formdto, pageInfo,pageState); } catch (RuntimeException e) { e.printStackTrace(); } int size = telQueryService.getSize(); // System.out.println(size); pageInfo.setRowCount(size); pageInfo.setQl(formdto); request.setAttribute("list", list); PageTurning pt = new PageTurning(pageInfo, "/cc_police_heb/", map, request); request.getSession().setAttribute("telQueryPageTurning", pt); return map.findForward("list"); }