|
|
|
@ -46,7 +46,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
public class MenuCreateMngController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private MenuCreateMngService xitMenuCreateMngService;
|
|
|
|
|
private MenuCreateMngService menuCreateMngService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private XitBeanValidator beanValidator;
|
|
|
|
|
@Resource(name = "xitMessageSource")
|
|
|
|
@ -60,14 +60,6 @@ public class MenuCreateMngController {
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping(value = "/mngMenuCreateMgtForm")
|
|
|
|
|
public void mngMenuCreateMgtForm() {
|
|
|
|
|
System.out.println("aaaatest1111111111");
|
|
|
|
|
System.out.println("auto merge off");
|
|
|
|
|
System.out.println("auto merge off2");
|
|
|
|
|
System.out.println("auto merge off2");
|
|
|
|
|
System.out.println("auto merge off2");
|
|
|
|
|
System.out.println("auto merge off2");
|
|
|
|
|
System.out.println("auto merge off2");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -83,27 +75,26 @@ public class MenuCreateMngController {
|
|
|
|
|
@GetMapping(value = "/MenuCreateMng_list.ajax")
|
|
|
|
|
public ModelAndView findsMenuCreate(@RequestParam Map<String,Object> paramMap) {
|
|
|
|
|
|
|
|
|
|
return ResultResponse.of(xitMenuCreateMngService.findList(paramMap, MybatisUtils.getPagingInfo(paramMap)));
|
|
|
|
|
return ResultResponse.of(menuCreateMngService.findList(paramMap, MybatisUtils.getPagingInfo(paramMap)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <pre>메소드 설명: 요청 페이지로 이동 한다.</pre>
|
|
|
|
|
* @param page
|
|
|
|
|
* @param tilesDef 타일즈 적용 Type(none: tiles 미적용)
|
|
|
|
|
* @param model
|
|
|
|
|
* @return String 요청처리 후 응답객체
|
|
|
|
|
* @author: 박민규
|
|
|
|
|
* @date: 2020. 3. 26.
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping(value = "/MenuCreateMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String MenuCreateMng_page(@PathVariable String cmd
|
|
|
|
|
@RequestMapping(value = "/mngMenuCreateMgt_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
|
public String mngMenuCreateMgt_page(@PathVariable String cmd
|
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
|
, @ModelAttribute("menuCreatVO") MenuCreateMngVO vo, ModelMap model) {
|
|
|
|
|
switch (cmd) {
|
|
|
|
|
case "input": //등록 페이지
|
|
|
|
|
List<MenuCreateMngVO> list_menulist = xitMenuCreateMngService.findListOfMenuInfo(vo);
|
|
|
|
|
List<MenuCreateMngVO> list_menulist = menuCreateMngService.findListOfMenuInfo(vo);
|
|
|
|
|
model.addAttribute("list_menulist", list_menulist);
|
|
|
|
|
model.addAttribute("resultVO", vo);
|
|
|
|
|
break;
|
|
|
|
@ -117,7 +108,7 @@ public class MenuCreateMngController {
|
|
|
|
|
|
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/create/XitMenuCreateMng_"+cmd+tilesDef;
|
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/mngMenuCreateMgt_"+cmd+tilesDef;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -146,7 +137,7 @@ public class MenuCreateMngController {
|
|
|
|
|
/**
|
|
|
|
|
* 처리 분기
|
|
|
|
|
*/
|
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/menu/MenuCreateMng_list.do";
|
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/menu/mngMenuCreateMgtForm.do";
|
|
|
|
|
String message = null;
|
|
|
|
|
switch (cmd) {
|
|
|
|
|
// case "insert": //등록
|
|
|
|
@ -155,14 +146,14 @@ public class MenuCreateMngController {
|
|
|
|
|
case "inserts": //다건 등록
|
|
|
|
|
//처리
|
|
|
|
|
try {
|
|
|
|
|
xitMenuCreateMngService.addsProc(checkedAuthorForInsert, checkedMenuNoForInsert);
|
|
|
|
|
menuCreateMngService.addsProc(checkedAuthorForInsert, checkedMenuNoForInsert);
|
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
|
message = e.getMessage();
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
|
}
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuCreateMng_input.do?tilesDef=popup";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/mngMenuCreateMgt_input.do?tilesDef=popup";
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
// case "update": //수정
|
|
|
|
|