/**
   * 기 등록 된 지식정보평가 정보를 수정 한다.
   *
   * @param AppraisalknoAps - 지식정보평가 model
   * @return String - 리턴 Url
   * @param knoAps
   */
  @RequestMapping(value = "/dam/app/EgovComDamAppraisalModify.do")
  public String updateKnoAppraisal(
      @ModelAttribute("knoId") KnoAppraisal knoAppraisal,
      BindingResult bindingResult,
      Map commandMap,
      ModelMap model)
      throws Exception {

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    String sCmd = commandMap.get("cmd") == null ? "" : (String) commandMap.get("cmd");
    if (sCmd.equals("")) {
      KnoAppraisal vo = knoAppraisalService.selectKnoAppraisal(knoAppraisal);
      model.addAttribute("knoAppraisal", vo);
      return "egovframework/com/dam/app/EgovComDamAppraisalModify";
    } else if (sCmd.equals("Modify")) {
      beanValidator.validate(knoAppraisal, bindingResult);
      if (bindingResult.hasErrors()) {
        KnoAppraisal vo = knoAppraisalService.selectKnoAppraisal(knoAppraisal);
        model.addAttribute("knoAppraisal", vo);
        return "egovframework/com/dam/app/EgovComDamAppraisalModify";
      }

      // 아이디 설정
      // knoAppraisal.setFrstRegisterId((String)loginVO.getUniqId());
      // knoAppraisal.setLastUpdusrId((String)loginVO.getUniqId());
      knoAppraisal.setSpeId((String) loginVO.getUniqId());

      knoAppraisalService.updateKnoAppraisal(knoAppraisal);
      return "forward:/dam/app/EgovComDamAppraisalList.do";
    } else {
      return "forward:/dam/app/EgovComDamAppraisalList.do";
    }
  }
  /**
   * 등록된 지식정보평가 정보를 조회 한다.
   *
   * @param KnoAppraisalVO -app 지식정보평가 VO
   * @return String - 리턴 Url
   * @param KnoAppraisalVO
   */
  @IncludedInfo(
      name = "지식평가관리",
      listUrl = "/dam/app/EgovComDamAppraisalList.do",
      order = 1290,
      gid = 80)
  @RequestMapping(value = "/dam/app/EgovComDamAppraisalList.do")
  public String selectKnoAppraisalList(
      @ModelAttribute("searchVO") KnoAppraisalVO searchVO, ModelMap model) throws Exception {

    // Spring Security 사용자권한 처리
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();
    if (!isAuthenticated) {
      model.addAttribute("message", egovMessageSource.getMessage("fail.common.login"));
      return "egovframework/com/uat/uia/EgovLoginUsr";
    }

    // 로그인 객체 선언
    LoginVO loginVO = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();

    /** EgovPropertyService.mapMaterial */
    searchVO.setPageUnit(propertiesService.getInt("pageUnit"));
    searchVO.setPageSize(propertiesService.getInt("pageSize"));

    /** paging */
    PaginationInfo paginationInfo = new PaginationInfo();
    paginationInfo.setCurrentPageNo(searchVO.getPageIndex());
    paginationInfo.setRecordCountPerPage(searchVO.getPageUnit());
    paginationInfo.setPageSize(searchVO.getPageSize());

    searchVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
    searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
    searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());

    searchVO.setEmplyrId((String) loginVO.getUniqId());
    List KnoAppraisalList = knoAppraisalService.selectKnoAppraisalList(searchVO);
    model.addAttribute("resultList", KnoAppraisalList);

    int totCnt = knoAppraisalService.selectKnoAppraisalTotCnt(searchVO);
    paginationInfo.setTotalRecordCount(totCnt);
    model.addAttribute("paginationInfo", paginationInfo);

    return "egovframework/com/dam/app/EgovComDamAppraisalList";
  }
 /**
  * 지식정보평가 상세 정보를 조회 한다.
  *
  * @param KnoAppraisalVO - 지식정보평가 VO
  * @return String - 리턴 Url
  * @param KnoAppraisalVO
  */
 @RequestMapping(value = "/dam/app/EgovComDamAppraisal.do")
 public String selectKnoAppraisal(
     @ModelAttribute("loginVO") LoginVO loginVO,
     KnoAppraisal knoAppraisal,
     ModelMap model,
     Map commandMap)
     throws Exception {
   KnoAppraisal vo = knoAppraisalService.selectKnoAppraisal(knoAppraisal);
   model.addAttribute("result", vo);
   return "egovframework/com/dam/app/EgovComDamAppraisalDetail";
 }