|
|
|
@ -165,7 +165,7 @@ public class MenuListMngController {
|
|
|
|
|
/**
|
|
|
|
|
* 처리 분기
|
|
|
|
|
*/
|
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_list";
|
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_list.do";
|
|
|
|
|
String message = null;
|
|
|
|
|
switch (cmd) {
|
|
|
|
|
case "insert": //등록
|
|
|
|
@ -176,7 +176,7 @@ public class MenuListMngController {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
// throw new RuntimeException(xitMessageSource.getMessage("fail.common.insert"));
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_input";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_input.do";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//처리
|
|
|
|
@ -185,10 +185,10 @@ public class MenuListMngController {
|
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
|
message = e.getMessage();
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_input";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_input.do";
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_input";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_input.do";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
@ -199,12 +199,12 @@ public class MenuListMngController {
|
|
|
|
|
listAttchFile = XitAttachFileUtil.fileUpload(request, XitCmmnUtil.setOsPath("/home/tempUpload"), true, 5);
|
|
|
|
|
} catch (RuntimeException | IOException e1) {
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.msg");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs.do";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(XitCmmnUtil.isEmpty(listAttchFile)) {
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.msg");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs.do";
|
|
|
|
|
}else {
|
|
|
|
|
FileInputStream fis = null;
|
|
|
|
|
try {
|
|
|
|
@ -235,7 +235,7 @@ public class MenuListMngController {
|
|
|
|
|
//2020.09.10 주석처리
|
|
|
|
|
// model.addAttribute("message", message);
|
|
|
|
|
// return "forward:/framework/biz/mng/menu/MenuListMng_inputs";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs.do";
|
|
|
|
|
model.addAttribute("message", message);
|
|
|
|
|
if(AjaxUtils.isAjaxRequest(request)){ //ajax 요청시
|
|
|
|
|
//반환 데이터 설정
|
|
|
|
@ -261,7 +261,7 @@ public class MenuListMngController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_inputs.do";
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case "update": //수정
|
|
|
|
@ -272,7 +272,7 @@ public class MenuListMngController {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
|
// throw new RuntimeException(xitMessageSource.getMessage("fail.common.update"));
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit.do";
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
//처리
|
|
|
|
@ -281,10 +281,10 @@ public class MenuListMngController {
|
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
|
message = e.getMessage();
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit.do";
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit.do";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
@ -295,10 +295,10 @@ public class MenuListMngController {
|
|
|
|
|
message = xitMessageSource.getMessage("success.common.delete");
|
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
|
message = e.getMessage();
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit.do";
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit";
|
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/menu/MenuListMng_edit.do";
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|