Package com.ourlinc.activity

Examples of com.ourlinc.activity.Page


    }
  }

  @Test
  public void testB() {
    Page page = activityService.listActDone(1);
    if (logger.isDebugEnabled()) {
      logger.debug(page.toString());
    }
  }
View Full Code Here


   */
  @RequestMapping(value = "/index.jspx")
  String index(HttpServletRequest request) throws Exception {
    String p = request.getParameter("p");
    int intp = WebUtils.toInt(p);
    Page rp = activityService.listActApply(intp);
    System.out.println("xxx");
    request.setAttribute("list", rp);
    request.setAttribute("act", "listNow");
    return "activity/index";
  }
View Full Code Here

   */
  @RequestMapping(value = "/listover.jspx")
  String listover(HttpServletRequest request) {
    String p = request.getParameter("p");
    int intp = WebUtils.toInt(p);
    Page rp = activityService.listActDone(intp);
    request.setAttribute("list", rp);
    request.setAttribute("act", "listOver");
    return "activity/index";
  }
View Full Code Here

   */
  @RequestMapping(value = "/listcancel.jspx")
  String listcancel(HttpServletRequest request) {
    String p = request.getParameter("p");
    int intp = WebUtils.toInt(p);
    Page rp = activityService.listActCancel(intp);
    request.setAttribute("list", rp);
    request.setAttribute("act", "listCancel");
    return "activity/index";
  }
View Full Code Here

    }
    String condition = "活动名称=" + name + ",年份=" + intYear + ",月份="
        + intMonth;
    String p = request.getParameter("p");
    int intp = WebUtils.toInt(p);
    Page rp = activityService.searchActivity(name, intYear, intMonth, intp);
    request.setAttribute("list", rp);
    request.setAttribute("name", URLEncoder.encode(name, "utf-8"));
    request.setAttribute("year", URLEncoder.encode(year, "utf-8"));
    request.setAttribute("month", URLEncoder.encode(month, "utf-8"));
    request.setAttribute("condition", condition);
View Full Code Here

    act.setStartTime(dStartDate);
    act.setOverTime(dOverDate);
    act.setNote(note);
    activityService.addActivity(act);
    // 把人员添加到活动中
    Page rp = userService.listAllUser(1);
    for (User u : (List<User>) rp.getData()) {
      userService.joinActivity(u.getId(), act.getId());
    }
    // 重定向防止重复提交
    response.sendRedirect("sendemail.jspx?op=add&actId="
        + WebUtils.encodeUrl(String.valueOf(act.getId())));
View Full Code Here

    String actId = request.getParameter("actId");
    String op = request.getParameter("op");
    String[] toAddresses = request.getParameterValues("toAddresses");
    String smtpHost = EmailConfig.getValue("smtpHost");
    String needAuth = EmailConfig.getValue("needAuth");
    Page rp = userService.listAllUser(1);
    Activity act = activityService.getActivity(Integer.valueOf(actId));
    // 返回页面
    if (WebUtils.isEmptyString(email) || null == act) {
      request.setAttribute("actMsg", (null == act) ? "找不到该活动!" : "操作成功!");
      request.setAttribute("email", user.getEmail());
View Full Code Here

      if (null != dUser) {
        userService.cancelJoinActivity(dUser.getId(), act.getId());
      }
    }
    List<User> u = activityService.getActMembers(act.getId());
    Page rp = new Page();
    rp.setData(u);
    int intp = WebUtils.toInt(p);
    rp.setNowpage(intp);
    request.setAttribute("activity", act);
    request.setAttribute("list", rp);
    return "activity/adddeleteuser";
  }
View Full Code Here

    map.put("start", start);
    map.put("end", end);
    map.put("status", status);
    map.put("now", new Date());
    List<Activity> list = activityDao.queryActivity(map);
    Page page = new Page(nowPage, activityDao.queryActivityCount(map), Page.DEFAULT_PAGE_SIZE, list);
    return page;
  }
View Full Code Here

    return page;
  }

  @Override
  public Page listActApply(int nowPage) {
    Page page = list(nowPage, -1);
    if (logger.isDebugEnabled()) {
      logger.debug("IActivityService.listActApply() ==> Page: " + page.toString());
    }
    return page;
  }
View Full Code Here

TOP

Related Classes of com.ourlinc.activity.Page

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.