|
|
|
@ -24,10 +24,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
import org.springframework.web.bind.support.SessionStatus;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
|
|
|
|
|
import kr.xit.framework.biz.cmm.model.XitAuthorInfoVO;
|
|
|
|
|
import kr.xit.framework.biz.cmm.service.XitFrameCrudService;
|
|
|
|
|
import kr.xit.framework.biz.mng.auth.model.XitAuthUsrMngSearchVO;
|
|
|
|
|
import kr.xit.framework.biz.mng.auth.model.XitAuthUsrMngVO;
|
|
|
|
@ -54,7 +52,7 @@ import kr.xit.framework.support.util.AjaxUtils;
|
|
|
|
|
public class AuthUserMgtController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private AuthUserMgtService xitAuthUsrMngService;
|
|
|
|
|
private AuthUserMgtService service;
|
|
|
|
|
@Resource
|
|
|
|
|
private XitFrameCrudService xitFrameCrudService;
|
|
|
|
|
@Autowired
|
|
|
|
@ -70,10 +68,7 @@ public class AuthUserMgtController {
|
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping(value = "/mngAuthUserMgtForm")
|
|
|
|
|
public ModelAndView mngAuthUserMgtForm(@ModelAttribute("authorGroupVO") XitAuthUsrMngSearchVO searchVO) {
|
|
|
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
mav.addObject("authorManageList", xitFrameCrudService.findXitAuthorInfos(new XitAuthorInfoVO()));
|
|
|
|
|
return mav;
|
|
|
|
|
public void mngAuthUserMgtForm(@ModelAttribute("authorGroupVO") XitAuthUsrMngSearchVO searchVO) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -100,7 +95,7 @@ public class AuthUserMgtController {
|
|
|
|
|
/**
|
|
|
|
|
* 조회
|
|
|
|
|
*/
|
|
|
|
|
int totCnt = xitAuthUsrMngService.findListTotCnt(searchVO);
|
|
|
|
|
int totCnt = service.findListTotCnt(searchVO);
|
|
|
|
|
paginationInfo.setTotalRecordCount(totCnt);
|
|
|
|
|
/**
|
|
|
|
|
* 반환값 설정
|
|
|
|
@ -111,7 +106,7 @@ public class AuthUserMgtController {
|
|
|
|
|
resultMap.put("result", true); //[tui Grid] result
|
|
|
|
|
resultMap.put("message", xitMessageSource.getMessage("success.common.select")); //[tui Grid] result message
|
|
|
|
|
Map<String, Object> data = new HashMap<String, Object>();
|
|
|
|
|
data.put("contents", xitAuthUsrMngService.findList(searchVO)); //[tui Grid] data-contents
|
|
|
|
|
data.put("contents", service.findList(searchVO)); //[tui Grid] data-contents
|
|
|
|
|
Map<String, Integer> pagination = new HashMap<String, Integer>();
|
|
|
|
|
pagination.put("page", searchVO.getPage());
|
|
|
|
|
pagination.put("totalCount", totCnt);
|
|
|
|
@ -195,9 +190,9 @@ public class AuthUserMgtController {
|
|
|
|
|
searchVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
|
|
|
|
searchVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
|
|
|
|
|
|
|
|
|
list = xitAuthUsrMngService.findListGroup(searchVO);
|
|
|
|
|
list = service.findListGroup(searchVO);
|
|
|
|
|
|
|
|
|
|
totCnt = xitAuthUsrMngService.findListGroupTotCnt(searchVO);
|
|
|
|
|
totCnt = service.findListGroupTotCnt(searchVO);
|
|
|
|
|
|
|
|
|
|
paginationInfo.setTotalRecordCount(totCnt);
|
|
|
|
|
model.addAttribute("groupList", list);
|
|
|
|
@ -265,9 +260,9 @@ public class AuthUserMgtController {
|
|
|
|
|
vo.setAuthorCode(strAuthorCodes[i]);
|
|
|
|
|
vo.setMberTyCode(strMberTyCode[i]);
|
|
|
|
|
if("N".equals(strRegYns[i]))
|
|
|
|
|
xitAuthUsrMngService.addProc(vo);
|
|
|
|
|
service.addProc(vo);
|
|
|
|
|
else
|
|
|
|
|
xitAuthUsrMngService.modifyProc(vo);
|
|
|
|
|
service.modifyProc(vo);
|
|
|
|
|
}
|
|
|
|
|
status.setComplete();
|
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
@ -292,7 +287,7 @@ public class AuthUserMgtController {
|
|
|
|
|
case "deletes": //다건 삭제
|
|
|
|
|
//처리
|
|
|
|
|
try {
|
|
|
|
|
xitAuthUsrMngService.removesProc(userIds, groupIds);
|
|
|
|
|
service.removesProc(userIds, groupIds);
|
|
|
|
|
status.setComplete();
|
|
|
|
|
message = xitMessageSource.getMessage("success.common.delete");
|
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
|