|
|
|
|
@ -339,7 +339,8 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/EgovMenuInfoAjax.do")
|
|
|
|
|
public ModelAndView EgovMenuInfoAjax(@ModelAttribute("menuManageVO") MenuManageJTreeVO menuManageVO, @RequestParam("menuNo") String menuNo ,
|
|
|
|
|
@ModelAttribute("searchVO") ComDefaultVO searchVO , ModelMap model) throws Exception {
|
|
|
|
|
@ModelAttribute("searchVO") ComDefaultVO searchVO , ModelMap model
|
|
|
|
|
,HttpServletResponse response , HttpServletRequest request) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
|
|
|
|
|
@ -389,7 +390,8 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
*/
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/EgovMenuInfoInsertAjax.do")
|
|
|
|
|
public ModelAndView insertEgovMenuInfoAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ProgrmManageVO progrmManageVO , ModelMap model) throws Exception {
|
|
|
|
|
public ModelAndView insertEgovMenuInfoAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ProgrmManageVO progrmManageVO , ModelMap model
|
|
|
|
|
, HttpServletResponse response , HttpServletRequest request) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
try{//최초 들어올때 임의의 menuManageVO 생성
|
|
|
|
|
@ -478,7 +480,8 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
*/
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@RequestMapping(value = "/sym/mnu/mcm/EgovMenuInfoDeleteAjax.do")
|
|
|
|
|
public ModelAndView deleteEgovMenuInfoDeleteAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ProgrmManageVO progrmManageVO , MenuCreatVO menuCreatVO, ModelMap model) throws Exception {
|
|
|
|
|
public ModelAndView deleteEgovMenuInfoDeleteAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ProgrmManageVO progrmManageVO , MenuCreatVO menuCreatVO, ModelMap model
|
|
|
|
|
, HttpServletResponse response , HttpServletRequest request) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
try{
|
|
|
|
|
@ -537,12 +540,11 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
MenuCreatVO menuCreatVO ,
|
|
|
|
|
ProgrmManageVO progrmManageVO ,
|
|
|
|
|
@ModelAttribute("searchVO") ComDefaultVO searchVO ,
|
|
|
|
|
ModelMap model) throws Exception {
|
|
|
|
|
ModelMap model
|
|
|
|
|
, HttpServletResponse response , HttpServletRequest request) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
int cnt = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
try{
|
|
|
|
|
if(!menuManageVO.getTmp_Id().equals(menuManageVO.getMenuNo()+"")){ //매뉴번호 변경시
|
|
|
|
|
@ -605,7 +607,7 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
menuManageVO.setProgrmFileNm(progrmManageVO.getProgrmFileNm());
|
|
|
|
|
progrmManageVO.setProgrmFileNm(menuManageVO.getProgrmFileNm());
|
|
|
|
|
progrmManageService.updateProgrm(progrmManageVO);
|
|
|
|
|
menuCreateManageDAO.updateMenuNo(menuCreatVO);
|
|
|
|
|
// menuCreateManageDAO.updateMenuNo(menuCreatVO);
|
|
|
|
|
}else{ //중복프로그램 조회 > del > insert
|
|
|
|
|
if(menuManageVO.getMenuType().equals("M")){ //프로그램에서 매뉴로 바꿀시 lettnmenuinfo 만 업데이트 / lettnprogrmlist 삭제
|
|
|
|
|
menuManageService.updateMenuManageJtree(menuManageVO);
|
|
|
|
|
@ -660,14 +662,14 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
menuManageVO.setTmp_Id(menuCreatVO.getMenuNo()+"");
|
|
|
|
|
menuManageService.deleteMenuManageBef(menuManageVO); //이전 메뉴 삭제
|
|
|
|
|
}else{
|
|
|
|
|
menuCreateManageDAO.deleteMenuCreatAuthNo(menuCreatVO);
|
|
|
|
|
// menuCreateManageDAO.deleteMenuCreatAuthNo(menuCreatVO);
|
|
|
|
|
cnt = menuManageService.updateMenuManageJtree(menuManageVO);
|
|
|
|
|
menuCreatVO.setMenuNo(menuManageVO.getMenuNo());
|
|
|
|
|
menuCreateManageDAO.insertMenuCreat(menuCreatVO);
|
|
|
|
|
// menuCreateManageDAO.insertMenuCreat(menuCreatVO);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(menuManageVO.getUpperMenuId()!=0){ //최상위는 제외
|
|
|
|
|
if(menuManageVO.getUpperMenuId()!=0 || menuManageVO.getUpperMenuId()!=1){ //최상위는 제외(관리자메뉴, 사용자메뉴)
|
|
|
|
|
menuManageService.resortMenuManage(menuManageVO);
|
|
|
|
|
}
|
|
|
|
|
if(delFlag){
|
|
|
|
|
@ -711,6 +713,20 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
modelAndView.addObject("status", "fail");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
//선택한 menuNo 모든 권한을 삭제
|
|
|
|
|
menuCreateManageService.deleteMenu(menuManageVO);
|
|
|
|
|
for(String author : menuManageVO.getAuthorChkList()) {
|
|
|
|
|
menuManageVO.setAuthorCode(author);
|
|
|
|
|
menuCreateManageService.insertMenu(menuManageVO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
modelAndView.addObject("status", "authorFail");
|
|
|
|
|
return modelAndView;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return modelAndView;
|
|
|
|
|
}
|
|
|
|
|
@ -724,7 +740,8 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
* @throws Exception
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/EgovMenuInfoNmUpdateAjax.do")
|
|
|
|
|
public ModelAndView EgovMenuInfoNmUpdateAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ModelMap model) throws Exception {
|
|
|
|
|
public ModelAndView EgovMenuInfoNmUpdateAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO, ModelMap model
|
|
|
|
|
, HttpServletResponse response , HttpServletRequest request) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
try{
|
|
|
|
|
@ -739,7 +756,8 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/EgovMenuInfoMoveAjax.do")
|
|
|
|
|
public ModelAndView EgovMenuInfoMoveAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO,
|
|
|
|
|
@ModelAttribute("searchVO") ComDefaultVO searchVO ,ModelMap model) throws Exception {
|
|
|
|
|
@ModelAttribute("searchVO") ComDefaultVO searchVO ,ModelMap model
|
|
|
|
|
, HttpServletResponse response , HttpServletRequest request) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
try{
|
|
|
|
|
@ -804,6 +822,7 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
public ModelAndView updateQuickMenuMngUpdateAjax(@RequestParam Map<?, ?> commandMap,
|
|
|
|
|
@ModelAttribute("menuManageVO") MenuManageJTreeVO menuManageVO,
|
|
|
|
|
@ModelAttribute("searchVO") CmmnDetailCodeVO searchVO
|
|
|
|
|
, HttpServletResponse response , HttpServletRequest request
|
|
|
|
|
)throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
@ -828,7 +847,7 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/MenuBbsSelectAjax.do")
|
|
|
|
|
public ModelAndView MenuAddBbsInsertAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO,
|
|
|
|
|
BoardMasterVO boardMasterVO,
|
|
|
|
|
|
|
|
|
|
HttpServletResponse response , HttpServletRequest request,
|
|
|
|
|
ModelMap model) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
@ -849,7 +868,7 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/MenuBbsInsertAjax.do")
|
|
|
|
|
public ModelAndView MenuBbsInsertAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO,
|
|
|
|
|
BoardMasterVO boardMasterVO,
|
|
|
|
|
|
|
|
|
|
HttpServletResponse response , HttpServletRequest request,
|
|
|
|
|
ModelMap model) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
@ -869,6 +888,7 @@ public class EgovMenuCreateManageController {
|
|
|
|
|
@RequestMapping("/sym/mnu/mcm/HtmlComfirmAjax.do")
|
|
|
|
|
public ModelAndView HtmlComfirmAjax(@ModelAttribute("menuManageVO") MenuManageVO menuManageVO,
|
|
|
|
|
@ModelAttribute("cntManageVO") CntManageVO cntManageVO,
|
|
|
|
|
HttpServletResponse response , HttpServletRequest request,
|
|
|
|
|
ModelMap model) throws Exception {
|
|
|
|
|
ModelAndView modelAndView = new ModelAndView();
|
|
|
|
|
modelAndView.setViewName("jsonView");
|
|
|
|
|
|