Ejemplo n.º 1
0
  /**
   * @Title: authorityPerson @Description: TODO(这里用一句话描述这个方法的作用)
   *
   * @param @return 设定文件
   * @return String 返回类型
   * @date 2014年11月2日 下午7:41:12
   * @throws
   */
  @Action(
      value = "authorityPerson",
      results = {
        @Result(name = "success", location = "/deptDoc/document/authorityPerson.jsp"),
        @Result(name = "error", location = "/404.jsp")
      })
  public String authorityPerson() {
    String deptId =
        StringUtil.getNotNullValueString(
            this.request.getSession().getAttribute(LoginConstant.USER_DEPT_ID));
    List emps = deptDocUtil.getEmps(deptId);
    JSONArray jso = JSONArray.fromObject(emps);
    this.request.setAttribute("empNodes", jso.toString());

    return "success";
  }
Ejemplo n.º 2
0
  /**
   * 文档列表
   *
   * @return
   */
  @Action(
      value = "documents",
      results = {
        @Result(name = "success", location = "/deptDoc/document/documents.jsp"),
        @Result(name = "noright", location = "/deptDoc/document/noright.jsp"),
        @Result(name = "error", location = "/404.jsp")
      })
  public String documents() {
    String loginName =
        (String) this.request.getSession().getAttribute(LoginConstant.SECURITY_LOGIN_NAME);
    String deptId = (String) this.request.getSession().getAttribute(LoginConstant.USER_DEPT_ID);
    vo.setLoginName("ST/" + loginName);
    vo.setParentFolders(deptDocUtil.findParentFolders(vo.getCatalogId()));
    zdocsRightService.initRights(vo, loginName, deptId);
    if (!vo.isRead()) {
      return "noright";
    }

    this.pageResultSet = this.zdocsFileService.list(vo);

    request.setAttribute("vo", vo);
    request.setAttribute("pageResultSet", pageResultSet);
    return "success";
  }