fix : 오타 수정

main
이범준 2 years ago
parent d3af060732
commit 97636f4fbc

@ -53,9 +53,9 @@ public class XitLoginPolicyMngController extends AbstractController {
* @author: * @author:
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
*/ */
@RequestMapping(name = "", value = "LoginPolicyMng_list", method={RequestMethod.GET, RequestMethod.POST}) @RequestMapping(name = "", value = "loginPolicyMng_list", method={RequestMethod.GET, RequestMethod.POST})
public String LoginPolicyMng_list(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) { public String loginPolicyMng_list(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) {
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_list"; return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_list";
} }
/** /**
@ -64,9 +64,9 @@ public class XitLoginPolicyMngController extends AbstractController {
* @author: * @author:
* @date: 2020. 8.04. * @date: 2020. 8.04.
*/ */
@RequestMapping(name = "", value = "LoginPolicyMng_list.ajax", method={RequestMethod.GET, RequestMethod.POST}) @RequestMapping(name = "", value = "loginPolicyMng_list.ajax", method={RequestMethod.GET, RequestMethod.POST})
@ResponseBody @ResponseBody
public Map<String, Object> LoginPolicyMng_listAjax(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) { public Map<String, Object> loginPolicyMng_listAjax(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) {
/** paging */ /** paging */
PaginationInfo paginationInfo = new PaginationInfo(); PaginationInfo paginationInfo = new PaginationInfo();
@ -124,8 +124,8 @@ public class XitLoginPolicyMngController extends AbstractController {
* @author: * @author:
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
*/ */
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST}) @RequestMapping(name = "", value = "loginPolicyMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
public String LoginPolicyMng_page(@PathVariable String cmd public String loginPolicyMng_page(@PathVariable String cmd
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef , @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
, @ModelAttribute("vo") XitLoginPolicyMngVO vo , @ModelAttribute("vo") XitLoginPolicyMngVO vo
, @ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO , @ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO
@ -133,7 +133,7 @@ public class XitLoginPolicyMngController extends AbstractController {
) { ) {
if(!"".equals(tilesDef)) if(!"".equals(tilesDef))
tilesDef = "."+tilesDef; tilesDef = "."+tilesDef;
String returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_"+cmd+tilesDef; String returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_"+cmd+tilesDef;
switch (cmd) { switch (cmd) {
case "input": //등록 페이지 case "input": //등록 페이지
@ -146,7 +146,7 @@ public class XitLoginPolicyMngController extends AbstractController {
model.addAttribute("loginPolicy", result); model.addAttribute("loginPolicy", result);
model.addAttribute("message", xitMessageSource.getMessage("success.common.select")); model.addAttribute("message", xitMessageSource.getMessage("success.common.select"));
if("N".equals(result.getRegYn())) if("N".equals(result.getRegYn()))
returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_input"+tilesDef; returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_input"+tilesDef;
break; break;
default: default:
throw new RuntimeException("유효하지 않은 요청 입니다."); throw new RuntimeException("유효하지 않은 요청 입니다.");
@ -168,7 +168,7 @@ public class XitLoginPolicyMngController extends AbstractController {
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
*/ */
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST}) @RequestMapping(name = "", value = "LoginPolicyMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST})
public String LoginPolicyMng_page_popup(@PathVariable String cmd public String loginPolicyMng_page_popup(@PathVariable String cmd
, @ModelAttribute XitLoginPolicyMngSearchVO searchVO , @ModelAttribute XitLoginPolicyMngSearchVO searchVO
, @ModelAttribute XitLoginPolicyMngVO vo, ModelMap model) { , @ModelAttribute XitLoginPolicyMngVO vo, ModelMap model) {
switch (cmd) { switch (cmd) {
@ -179,7 +179,7 @@ public class XitLoginPolicyMngController extends AbstractController {
} }
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_"+cmd+"_popup"+ FrameworkConstants.TILES_TYPE.POPUP.getVal(); return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_"+cmd+"_popup"+ FrameworkConstants.TILES_TYPE.POPUP.getVal();
} }
@ -192,8 +192,8 @@ public class XitLoginPolicyMngController extends AbstractController {
* @throws ServletException * @throws ServletException
* @date: 2020. 4. 16. * @date: 2020. 4. 16.
*/ */
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}_proc", method=RequestMethod.POST) @RequestMapping(name = "", value = "loginPolicyMng_{cmd}_proc", method=RequestMethod.POST)
public void LoginPolicyMng_cmd_proc(@PathVariable String cmd public void loginPolicyMng_cmd_proc(@PathVariable String cmd
,@ModelAttribute("vo") XitLoginPolicyMngVO vo ,@ModelAttribute("vo") XitLoginPolicyMngVO vo
,@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO ,@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO
,@RequestParam(value="emplyrIds", required=false, defaultValue="") String emplyrIds ,@RequestParam(value="emplyrIds", required=false, defaultValue="") String emplyrIds
@ -208,7 +208,7 @@ public class XitLoginPolicyMngController extends AbstractController {
* *
*/ */
XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser(); XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
String sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_list.do"; String sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_list.do";
String message = null; String message = null;
switch (cmd) { switch (cmd) {
case "insert": //등록 case "insert": //등록
@ -218,7 +218,7 @@ public class XitLoginPolicyMngController extends AbstractController {
// beanValidator.validate("loginPolicy", vo, bindingResult); // beanValidator.validate("loginPolicy", vo, bindingResult);
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
message = xitMessageSource.getMessage("fail.common.insert"); message = xitMessageSource.getMessage("fail.common.insert");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_input.do"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do";
break; break;
} }
//처리 //처리
@ -227,13 +227,13 @@ public class XitLoginPolicyMngController extends AbstractController {
xitLoginPolicyMngService.addProc(vo); xitLoginPolicyMngService.addProc(vo);
status.setComplete(); status.setComplete();
message = xitMessageSource.getMessage("success.common.insert"); message = xitMessageSource.getMessage("success.common.insert");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit.do"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit.do";
} catch (RuntimeException e) { } catch (RuntimeException e) {
message = e.getMessage(); message = e.getMessage();
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_input.do"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do";
} catch (Exception e) { } catch (Exception e) {
message = xitMessageSource.getMessage("fail.common.insert"); message = xitMessageSource.getMessage("fail.common.insert");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_input.do"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do";
} }
break; break;
@ -247,7 +247,7 @@ public class XitLoginPolicyMngController extends AbstractController {
// beanValidator.validate("loginPolicy", vo, bindingResult); // beanValidator.validate("loginPolicy", vo, bindingResult);
if (bindingResult.hasErrors()) { if (bindingResult.hasErrors()) {
message = xitMessageSource.getMessage("fail.common.update"); message = xitMessageSource.getMessage("fail.common.update");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
break; break;
} }
//처리 //처리
@ -256,13 +256,13 @@ public class XitLoginPolicyMngController extends AbstractController {
xitLoginPolicyMngService.modifyProc(vo); xitLoginPolicyMngService.modifyProc(vo);
status.setComplete(); status.setComplete();
message = xitMessageSource.getMessage("success.common.update"); message = xitMessageSource.getMessage("success.common.update");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
} catch (RuntimeException e) { } catch (RuntimeException e) {
message = e.getMessage(); message = e.getMessage();
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
} catch (Exception e) { } catch (Exception e) {
message = xitMessageSource.getMessage("fail.common.update"); message = xitMessageSource.getMessage("fail.common.update");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
} }
break; break;
@ -276,10 +276,10 @@ public class XitLoginPolicyMngController extends AbstractController {
break; break;
} catch (RuntimeException e) { } catch (RuntimeException e) {
message = e.getMessage(); message = e.getMessage();
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
} catch (Exception e) { } catch (Exception e) {
message = xitMessageSource.getMessage("fail.common.delete"); message = xitMessageSource.getMessage("fail.common.delete");
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit"; sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
} }
break; break;

@ -124,7 +124,7 @@
//목록 버튼 Event 설정 //목록 버튼 Event 설정
$('#btnList').on({ $('#btnList').on({
click : function(){ click : function(){
document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/LoginPolicyMng_list.do'/>"; document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/loginPolicyMng_list.do'/>";
document.loginPolicy.submit(); document.loginPolicy.submit();
} }
}); });
@ -162,7 +162,7 @@
if (confirm('<spring:message code="common.update.msg" />')) { if (confirm('<spring:message code="common.update.msg" />')) {
var param = $(document.loginPolicy).serialize(); var param = $(document.loginPolicy).serialize();
$.ajax({ $.ajax({
url : "/framework/biz/mng/auth/LoginPolicyMng_update_proc.do", url : "/framework/biz/mng/auth/loginPolicyMng_update_proc.do",
data : param, data : param,
type : "post", type : "post",
dataType : "json", dataType : "json",
@ -180,7 +180,7 @@
}else{ }else{
/* submit 처리 Pattern */ /* submit 처리 Pattern */
if (confirm('<spring:message code="common.update.msg" />')) { if (confirm('<spring:message code="common.update.msg" />')) {
document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/LoginPolicyMng_update_proc.do'/>"; document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/loginPolicyMng_update_proc.do'/>";
document.loginPolicy.submit(); document.loginPolicy.submit();
} }
} }
@ -201,7 +201,7 @@
if (confirm('<spring:message code="common.delete.msg" />')) { if (confirm('<spring:message code="common.delete.msg" />')) {
var param = $(document.loginPolicy).serialize(); var param = $(document.loginPolicy).serialize();
$.ajax({ $.ajax({
url : "/framework/biz/mng/auth/LoginPolicyMng_delete_proc.do", url : "/framework/biz/mng/auth/loginPolicyMng_delete_proc.do",
data : param, data : param,
type : "post", type : "post",
dataType : "json", dataType : "json",
@ -219,7 +219,7 @@
}else{ }else{
/* submit 처리 Pattern */ /* submit 처리 Pattern */
if (confirm('<spring:message code="common.delete.msg" />')) { if (confirm('<spring:message code="common.delete.msg" />')) {
document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/LoginPolicyMng_delete_proc.do'/>"; document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/loginPolicyMng_delete_proc.do'/>";
document.loginPolicy.submit(); document.loginPolicy.submit();
} }
} }

@ -11,7 +11,7 @@
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script> <script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="loginPolicy" staticJavascript="false" xhtml="true" cdata="false"/> <validator:javascript formName="loginPolicy" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form modelAttribute="loginPolicy" name="loginPolicy" method="post" action="${pageContext.request.contextPath}/framework/biz/mng/auth/LoginPolicyMng_insert_proc.do"> <form:form modelAttribute="loginPolicy" name="loginPolicy" method="post" action="${pageContext.request.contextPath}/framework/biz/mng/auth/loginPolicyMng_insert_proc.do">
<!-- 검색조건 유지 --> <!-- 검색조건 유지 -->
<input type="hidden" name="dplctYn" value="Y" > <input type="hidden" name="dplctYn" value="Y" >
<input type="hidden" name="searchCondition" value="<c:out value='${searchVO.searchCondition}'/>" > <input type="hidden" name="searchCondition" value="<c:out value='${searchVO.searchCondition}'/>" >
@ -112,7 +112,7 @@
//목록 버튼 Event 설정 //목록 버튼 Event 설정
$('#btnList').on({ $('#btnList').on({
click : function(){ click : function(){
document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/LoginPolicyMng_list.do'/>"; document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/loginPolicyMng_list.do'/>";
document.loginPolicy.submit(); document.loginPolicy.submit();
} }
}); });
@ -145,7 +145,7 @@
if (confirm('<spring:message code="common.update.msg" />')) { if (confirm('<spring:message code="common.update.msg" />')) {
var param = $(document.loginPolicy).serialize(); var param = $(document.loginPolicy).serialize();
$.ajax({ $.ajax({
url : "/framework/biz/mng/auth/LoginPolicyMng_insert_proc.do", url : "/framework/biz/mng/auth/loginPolicyMng_insert_proc.do",
data : param, data : param,
type : "post", type : "post",
dataType : "json", dataType : "json",
@ -163,7 +163,7 @@
}else{ }else{
/* submit 처리 Pattern */ /* submit 처리 Pattern */
if (confirm('<spring:message code="common.update.msg" />')) { if (confirm('<spring:message code="common.update.msg" />')) {
document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/LoginPolicyMng_insert_proc.do'/>"; document.loginPolicy.action = "<c:url value='/framework/biz/mng/auth/loginPolicyMng_insert_proc.do'/>";
document.loginPolicy.submit(); document.loginPolicy.submit();
} }
} }

@ -166,11 +166,11 @@ var XitLoginPolicyMng_list = {
params += "emplyrId=" + rowData.emplyrId; params += "emplyrId=" + rowData.emplyrId;
if(regYn == 'N') { if(regYn == 'N') {
if(confirm("등록된 로그인정책 정보가 없습니다. 등록페이지로 이동하시겠습니까?")) { if(confirm("등록된 로그인정책 정보가 없습니다. 등록페이지로 이동하시겠습니까?")) {
XitLoginPolicyMng_list.pagePopup('insert', '<c:url value="/framework/biz/mng/auth/LoginPolicyMng_input.do"/>', params); XitLoginPolicyMng_list.pagePopup('insert', '<c:url value="/framework/biz/mng/auth/loginPolicyMng_input.do"/>', params);
} }
return; return;
}else{ }else{
XitLoginPolicyMng_list.pagePopup('insert', '<c:url value="/framework/biz/mng/auth/LoginPolicyMng_edit.do"/>', params); XitLoginPolicyMng_list.pagePopup('insert', '<c:url value="/framework/biz/mng/auth/loginPolicyMng_edit.do"/>', params);
} }
} }
} }
@ -210,7 +210,7 @@ GridConfig.setOptDataSource({ //DataSource
----------------------- */ ----------------------- */
api: { api: {
readData : { readData : {
url: '<c:url value="/framework/biz/mng/auth/LoginPolicyMng_list.ajax"/>', method: 'GET' url: '<c:url value="/framework/biz/mng/auth/loginPolicyMng_list.ajax"/>', method: 'GET'
,initParams: {} ,initParams: {}
,serializer: function(params) { ,serializer: function(params) {
var form = document.frmSearch; var form = document.frmSearch;
Loading…
Cancel
Save