Esempio n. 1
0
 /** 查询草稿箱列表 */
 public String draftList() {
   query.setStatus("0"); // 未发送
   query.setSponsorId(this.getCurrUser().getUserID()); // 发送人id
   Page page = this.messageManager.findPage(query);
   super.saveCurrentPage(page, query);
   return "drafList";
 }
Esempio n. 2
0
  /** 查询未读列表 */
  public String list() {
    BeanUtils.copyProperties(reQuery, query);
    if (this.getRequest().getParameter("query.state") == null) {
      query.setState("0");
    }
    query.setStatus("1");
    query.setReceiverId(this.getCurrUser().getUserID()); // 接收人id
    Page page = this.messageManager.findPage(query);

    super.saveCurrentPage(page, query);
    return LIST_JSP;
  }
Esempio n. 3
0
 /**
  * 查询用户列表
  *
  * @return
  */
 public String userList() {
   // 将query中的分页数据放入ouRelationQuery中
   ouRelationQuery.setPageNumber(query.getPageNumber());
   ouRelationQuery.setPageSize(query.getPageSize());
   String username = getRequest().getParameter("username");
   String orgName = getRequest().getParameter("orgName");
   ouRelationQuery.setUsername(username);
   ouRelationQuery.setOrgname(orgName);
   Page page = this.organizationUserRelationManager.findPage(ouRelationQuery);
   super.saveCurrentPage(page, ouRelationQuery);
   getRequest().setAttribute("username", username);
   getRequest().setAttribute("orgName", orgName);
   getRequest().setAttribute("teacher", getRequest().getParameter("teacher")); // 传值,教师的id
   return "userList";
 }