Beispiel #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";
 }
Beispiel #2
0
 // 岗位级别联动菜单
 public String getStates() throws Exception {
   try {
     String code = getRequest().getParameter("code");
     Dictvalue dictvalue = dictvalueManager.findByCode(code);
     List list = new ArrayList(dictvalue.getDictvalues());
     JsonConfig cfg = new JsonConfig();
     cfg.setJsonPropertyFilter(
         new PropertyFilter() {
           public boolean apply(Object source, String name, Object value) {
             if (name.equals("code") || name.equals("value")) {
               return false;
             } else {
               return true;
             }
           }
         });
     String ss = JSONArray.fromObject(list, cfg).toString();
     StringBuffer returnstr = new StringBuffer("");
     returnstr.append(ss);
     super.renderHtmlUTF(returnstr.toString());
   } catch (Exception e) {
     e.printStackTrace();
   }
   return null;
 }
 public String findSchool() {
   OrganizationQuery orgQuery = new OrganizationQuery();
   orgQuery.setPageNumber(query.getPageNumber());
   orgQuery.setPageSize(query.getPageSize());
   orgQuery.setName(query.getName());
   Page page = this.organizationManager.findPage(orgQuery);
   super.saveCurrentPage(page, query);
   return "schoollist";
 }
Beispiel #4
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;
  }
Beispiel #5
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";
 }
Beispiel #6
0
  /**
   * 发起测评 -- 跨单位
   *
   * @return
   */
  public String outUserList() {
    Page page = this.userManager.findOutPage(query, this.getCurrUser().getDeptIDs());
    String userId = query.getId();
    List<User> userList = page.getResult();

    for (User user : userList) {
      String uId = user.getId();
      if (!isNullOrEmptyString(userId)) {
        if (userId.indexOf(uId) != -1) {
          user.setChecked("1");
        }
      }
    }

    super.saveCurrentPage(page, query);
    return "outUserList";
  }