/**
   * 휴가관리정보 승인 처리를 위해 신청된 휴가관리 목록을 조회한다.
   *
   * @param vcatnManageVO - 휴가관리 VO
   * @return String - 리턴 Url
   */
  @IncludedInfo(name = "휴가승인관리", order = 901, gid = 50)
  @RequestMapping(value = "/uss/ion/vct/EgovVcatnConfmList.do")
  public String selectVcatnManageConfmList(
      @ModelAttribute("vcatnManageVO") VcatnManageVO vcatnManageVO, ModelMap model)
      throws Exception {

    java.util.Calendar cal = java.util.Calendar.getInstance();
    String[] yearList = new String[5];
    for (int x = 0; x < 5; x++) {
      yearList[x] = Integer.toString(cal.get(java.util.Calendar.YEAR) - x);
    }

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

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

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    vcatnManageVO.setSanctnerId(user.getUniqId()); // 사용자가 승인권자인지 조건값 setting

    vcatnManageVO.setSearchKeyword(vcatnManageVO.getSearchYear() + vcatnManageVO.getSearchMonth());
    vcatnManageVO.setVcatnManageList(
        egovVcatnManageService.selectVcatnManageConfmList(vcatnManageVO));

    model.addAttribute("vcatnManageList", vcatnManageVO.getVcatnManageList());

    int totCnt = egovVcatnManageService.selectVcatnManageConfmListTotCnt(vcatnManageVO);
    paginationInfo.setTotalRecordCount(totCnt);
    model.addAttribute("yearList", yearList);
    model.addAttribute("paginationInfo", paginationInfo);

    model.addAttribute("message", egovMessageSource.getMessage("success.common.select"));

    return "egovframework/com/uss/ion/vct/EgovVcatnConfmList";
  }