|
|
|
@ -74,28 +74,6 @@ public class ProgramMngController {
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "/mngProgramMgtFrom", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public void mngProgramMgtFrom() {
|
|
|
|
|
// 내역 조회
|
|
|
|
|
|
|
|
|
|
//searchVO.setPageUnit(Integer.parseInt(XitProperties.getProperty("Globals.Xit.Pagination.PageUnit")));
|
|
|
|
|
//searchVO.setPageSize(Integer.parseInt(XitProperties.getProperty("Globals.Xit.Pagination.PageSize")));
|
|
|
|
|
|
|
|
|
|
/** pageing */
|
|
|
|
|
//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());
|
|
|
|
|
|
|
|
|
|
//model.addAttribute("list_progrmmanage", xitProgramMngService.findList(searchVO));
|
|
|
|
|
//model.addAttribute("searchVO", searchVO);
|
|
|
|
|
|
|
|
|
|
//int totCnt = xitProgramMngService.findListTotCnt(searchVO);
|
|
|
|
|
//paginationInfo.setTotalRecordCount(totCnt);
|
|
|
|
|
//model.addAttribute("paginationInfo", paginationInfo);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
@ -124,10 +102,34 @@ public class ProgramMngController {
|
|
|
|
|
return ResultResponse.of(programMngService.findPrograms(paramMap, MybatisUtils.getPagingInfo(paramMap)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "/updateProgram")
|
|
|
|
|
@PostMapping(value = "/addProgram")
|
|
|
|
|
public ModelAndView addProgram(
|
|
|
|
|
@ModelAttribute("progrmMngVO") final ProgramMngVO vo
|
|
|
|
|
, final BindingResult bindingResult
|
|
|
|
|
) {
|
|
|
|
|
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
|
|
|
|
|
|
|
|
|
|
//유효성 확인
|
|
|
|
|
//2020.11.24. 주석처리
|
|
|
|
|
beanValidator.validate(vo, bindingResult);
|
|
|
|
|
// beanValidator.validate("progrmMngVO", vo, bindingResult);
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
throw BizRuntimeException.create(MessageKey.CMM_INSERT_FAIL);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
if (vo.getProgrmDc() == null || vo.getProgrmDc().equals("")) {
|
|
|
|
|
vo.setProgrmDc(" ");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
programMngService.addProgram(vo);
|
|
|
|
|
|
|
|
|
|
AjaxMessageMapRenderer.success(mav, MessageKey.CMM_INSERT_SUCCESS);
|
|
|
|
|
return mav;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "/modifyProgram")
|
|
|
|
|
public ModelAndView modifyProgram(
|
|
|
|
|
@ModelAttribute("progrmMngVO") final ProgramMngVO vo
|
|
|
|
|
, @RequestParam(value="checkedProgrmFileNmForDel", required=false, defaultValue="") String checkedProgrmFileNmForDel
|
|
|
|
|
, final BindingResult bindingResult
|
|
|
|
|
) {
|
|
|
|
|
ModelAndView mav = new ModelAndView(FrameworkConstants.JSON_VIEW);
|
|
|
|
@ -151,7 +153,6 @@ public class ProgramMngController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>메소드 설명: 요청 페이지로 이동 한다.</pre>
|
|
|
|
|
* @param cmd
|
|
|
|
|