/** * 그룹팝업 화면 * * @param groupVO */ @RequestMapping("/sec/grp/listGroupPopup.do") public String listGroupSearch(@ModelAttribute GroupVO groupVO, ModelMap model) { PaginationInfo paginationInfo = new PaginationInfo(); groupVO.getSearchVO().fillPageInfo(paginationInfo); model.addAttribute("resultList", groupService.selectGroupList(groupVO)); int totCnt = groupService.selectGroupListCnt(groupVO); groupVO.getSearchVO().setTotalRecordCount(totCnt); paginationInfo.setTotalRecordCount(totCnt); model.addAttribute(paginationInfo); return WebUtil.adjustViewName("/sec/grp/GroupSearchPopup"); }
/** * 그룹 수정화면 이동 * * @param groupVO */ @RequestMapping(value = "/sec/grp/editGroup.do") @Secured("ROLE_ADMIN") public String editGroup(GroupVO groupVO, ModelMap model) { model.addAttribute(groupService.selectGroup(groupVO)); return WebUtil.adjustViewName("/sec/grp/GroupEdit"); }
/** * 시스템사용 목적별 그룹 목록 조회 * * @param groupVO */ @IncludedInfo(name = "그룹관리", order = 2030, gid = 20) @RequestMapping(value = "/sec/grp/listGroup.do") @Secured("ROLE_ADMIN") public String listGroup(@ModelAttribute GroupVO groupVO, ModelMap model) { PaginationInfo paginationInfo = new PaginationInfo(); groupVO.getSearchVO().fillPageInfo(paginationInfo); model.addAttribute("resultList", groupService.selectGroupList(groupVO)); int totCnt = groupService.selectGroupListCnt(groupVO); groupVO.getSearchVO().setTotalRecordCount(totCnt); paginationInfo.setTotalRecordCount(totCnt); model.addAttribute(paginationInfo); return WebUtil.adjustViewName("/sec/grp/GroupList"); }
/** * 불필요한 그룹정보 목록을 화면에 조회하여 데이터베이스에서 삭제 * * @param groupIds */ @RequestMapping(value = "/sec/grp/deleteListGroup.do") @Secured("ROLE_ADMIN") public String deleteListGroup(@RequestParam String groupIds, ModelMap model) { groupService.deleteGroups(groupIds); model.addAttribute("message", MessageHelper.getMessage("success.common.delete")); return WebUtil.redirectJsp(model, "/sec/grp/listGroup.do"); }
/** * 그룹 기본정보를 화면에서 입력하여 항목의 정합성을 체크하고 데이터베이스에 저장 * * @param groupVO */ @RequestMapping(value = "/sec/grp/insertGroup.do") @Secured("ROLE_ADMIN") public String insertGroup( @ModelAttribute GroupVO groupVO, BindingResult bindingResult, ModelMap model) { beanValidator.validate(groupVO, bindingResult); // validation 수행 if (bindingResult.hasErrors()) { return WebUtil.adjustViewName("/sec/grp/GroupRegist"); } groupService.insertGroup(groupVO); model.addAttribute("message", MessageHelper.getMessage("success.common.insert")); return WebUtil.redirectJsp(model, "/sec/grp/listGroup.do"); }