|
|
@ -59,7 +59,7 @@ import kr.xit.framework.support.util.AjaxUtils;
|
|
|
|
* @version 1.0 Copyright(c) XIT All rights reserved.
|
|
|
|
* @version 1.0 Copyright(c) XIT All rights reserved.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Controller
|
|
|
|
@Controller
|
|
|
|
@RequestMapping("/_mng_/bbs/basic/")
|
|
|
|
@RequestMapping("/framework/biz/mng/bbs/")
|
|
|
|
public class XitBasicBbsMngController {
|
|
|
|
public class XitBasicBbsMngController {
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
@ -92,7 +92,7 @@ public class XitBasicBbsMngController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{bbsId}_list.do", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{bbsId}_list", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String BasicBbsMng_list(@ModelAttribute("searchVO") XitBasicBbsMngSearchVO searchVO, ModelMap model
|
|
|
|
public String BasicBbsMng_list(@ModelAttribute("searchVO") XitBasicBbsMngSearchVO searchVO, ModelMap model
|
|
|
|
,@PathVariable String bbsId
|
|
|
|
,@PathVariable String bbsId
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
@ -108,7 +108,7 @@ public class XitBasicBbsMngController {
|
|
|
|
// 방명록이면 방명록 URL로 forward
|
|
|
|
// 방명록이면 방명록 URL로 forward
|
|
|
|
//-------------------------------
|
|
|
|
//-------------------------------
|
|
|
|
if (master.getBbsTyCode().equals("BBST04")) {
|
|
|
|
if (master.getBbsTyCode().equals("BBST04")) {
|
|
|
|
return "forward:/cop/bbs/selectGuestList.do";
|
|
|
|
return "forward:/cop/bbs/selectGuestList";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
////-----------------------------
|
|
|
|
////-----------------------------
|
|
|
|
|
|
|
|
|
|
|
@ -148,7 +148,7 @@ public class XitBasicBbsMngController {
|
|
|
|
|
|
|
|
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/basic/XitBasicBbsMng_list"+tilesDef;
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/XitBasicBbsMng_list"+tilesDef;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -223,7 +223,7 @@ public class XitBasicBbsMngController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{bbsId}_{cmd}.do", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{bbsId}_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String BasicBbsMng_page(@PathVariable String cmd
|
|
|
|
public String BasicBbsMng_page(@PathVariable String cmd
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @ModelAttribute("vo") XitBasicBbsMngVO vo
|
|
|
|
, @ModelAttribute("vo") XitBasicBbsMngVO vo
|
|
|
@ -395,7 +395,7 @@ public class XitBasicBbsMngController {
|
|
|
|
|
|
|
|
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/basic/XitBasicBbsMng_"+cmd+tilesDef;
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/XitBasicBbsMng_"+cmd+tilesDef;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -408,7 +408,7 @@ public class XitBasicBbsMngController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{cmd}_popup.do", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String BasicBbsMng_page_popup(@PathVariable String cmd
|
|
|
|
public String BasicBbsMng_page_popup(@PathVariable String cmd
|
|
|
|
, @ModelAttribute XitBasicBbsMngSearchVO searchVO
|
|
|
|
, @ModelAttribute XitBasicBbsMngSearchVO searchVO
|
|
|
|
, @ModelAttribute XitBasicBbsMngVO vo, ModelMap model) {
|
|
|
|
, @ModelAttribute XitBasicBbsMngVO vo, ModelMap model) {
|
|
|
@ -420,7 +420,7 @@ public class XitBasicBbsMngController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/basic/XitBasicBbsMng_"+cmd+"_popup"+TILES_TYPE.POPUP.getVal();
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/bbs/XitBasicBbsMng_"+cmd+"_popup"+TILES_TYPE.POPUP.getVal();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -433,7 +433,7 @@ public class XitBasicBbsMngController {
|
|
|
|
* @throws ServletException
|
|
|
|
* @throws ServletException
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{cmd}_proc.do", method=RequestMethod.POST)
|
|
|
|
@RequestMapping(value = "BasicBbsMng_{cmd}_proc", method=RequestMethod.POST)
|
|
|
|
public void BasicBbsMng_cmd_proc(HttpServletRequest req
|
|
|
|
public void BasicBbsMng_cmd_proc(HttpServletRequest req
|
|
|
|
,@PathVariable String cmd
|
|
|
|
,@PathVariable String cmd
|
|
|
|
,@ModelAttribute("vo") XitBasicBbsMngVO vo
|
|
|
|
,@ModelAttribute("vo") XitBasicBbsMngVO vo
|
|
|
@ -450,7 +450,7 @@ public class XitBasicBbsMngController {
|
|
|
|
* 처리 분기
|
|
|
|
* 처리 분기
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
|
|
|
XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
|
|
|
String sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_list.do";
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_list";
|
|
|
|
String message = null;
|
|
|
|
String message = null;
|
|
|
|
/* ----------------------
|
|
|
|
/* ----------------------
|
|
|
|
* 첨부파일 관련 변수 선언
|
|
|
|
* 첨부파일 관련 변수 선언
|
|
|
@ -467,7 +467,7 @@ public class XitBasicBbsMngController {
|
|
|
|
// beanValidator.validate("board", vo, bindingResult);
|
|
|
|
// beanValidator.validate("board", vo, bindingResult);
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -497,10 +497,10 @@ public class XitBasicBbsMngController {
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -514,7 +514,7 @@ public class XitBasicBbsMngController {
|
|
|
|
// beanValidator.validate("board", vo, bindingResult);
|
|
|
|
// beanValidator.validate("board", vo, bindingResult);
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -547,10 +547,10 @@ public class XitBasicBbsMngController {
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_input";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -561,7 +561,7 @@ public class XitBasicBbsMngController {
|
|
|
|
// beanValidator.validate("board", vo, bindingResult);
|
|
|
|
// beanValidator.validate("board", vo, bindingResult);
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_edit.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_edit";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -595,13 +595,13 @@ public class XitBasicBbsMngController {
|
|
|
|
xitBasicBbsMngService.modifyProc(vo);
|
|
|
|
xitBasicBbsMngService.modifyProc(vo);
|
|
|
|
status.setComplete();
|
|
|
|
status.setComplete();
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_view.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_view";
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_edit.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_edit.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -615,10 +615,10 @@ public class XitBasicBbsMngController {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_edit.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
sLocationUrl = "forward:/_mng_/bbs/basic/BasicBbsMng_"+vo.getBbsId()+"_edit.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/bbs/BasicBbsMng_"+vo.getBbsId()+"_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|