Exemplo n.º 1
0
 /** 查询信息随访模板维护 */
 public String execute() {
   HttpSession session = ServletActionContext.getRequest().getSession();
   Employee employee = (Employee) session.getAttribute("employee");
   map.put("operateEmpolyeeCode", employee.getJobnum());
   page.setParams(map);
   page.setList(SessionData.getDepartmentCode());
   Map userMap = new HashMap();
   userMap.put("rows", flupModuleService.getFlupModule(page));
   userMap.put("totalRecord", page.getTotalRecord());
   userMap.put("totalPage", page.getTotalPage());
   userMap.put("pageNo", page.getPageNo());
   JSON json = JSONArray.fromObject(userMap);
   HttpServletResponse response = ServletActionContext.getResponse();
   try {
     PrintWriter out = response.getWriter();
     out.print(json.toString());
   } catch (IOException e) {
     e.printStackTrace();
   }
   return null;
 }
Exemplo n.º 2
0
  /** 查询疾病指标 */
  public String execute() {
    // 加载表格数据
    List<Department> list = new ArrayList<Department>();

    if (map.get("deptCode") != null && !map.get("deptCode").equals("")) {
      Department department = new Department();
      department.setDeptCode(map.get("deptCode"));
      list.add(department);
      page.setList(list);
    } else {
      list = SessionData.getDepartmentCode();
    }
    page.setList(list);
    page.setParams(map);
    Map userMap = new HashMap();
    userMap.put("rows", diseaseNameDictService.getDiseaseNameDict(page));
    userMap.put("totalRecord", page.getTotalRecord());
    userMap.put("totalPage", page.getTotalPage());
    userMap.put("pageNo", page.getPageNo());
    JSON json = JSONArray.fromObject(userMap);
    HttpServletResponse response = ServletActionContext.getResponse();
    HttpServletRequest request = ServletActionContext.getRequest();
    try {
      PrintWriter out = response.getWriter();
      out.print(json.toString());
    } catch (IOException e) {
      e.printStackTrace();
    }
    return null;
  }