|
|
@ -67,8 +67,8 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "EntUserRegMng_list", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "entUserRegMng_list", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String EntUserRegMng_list(@ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO, ModelMap model) {
|
|
|
|
public String entUserRegMng_list(@ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO, ModelMap model) {
|
|
|
|
|
|
|
|
|
|
|
|
// 내역 조회
|
|
|
|
// 내역 조회
|
|
|
|
|
|
|
|
|
|
|
@ -102,9 +102,9 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
* @author: 최유수
|
|
|
|
* @author: 최유수
|
|
|
|
* @date: 2020. 7. 29.
|
|
|
|
* @date: 2020. 7. 29.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "EntUserRegMng_list.ajax", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "entUserRegMng_list.ajax", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public Map<String, Object> EntUserRegMng_listAjax(HttpServletRequest req, @ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO, ModelMap model) throws IOException, SQLException, RuntimeException {
|
|
|
|
public Map<String, Object> entUserRegMng_listAjax(HttpServletRequest req, @ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO, ModelMap model) throws IOException, SQLException, RuntimeException {
|
|
|
|
|
|
|
|
|
|
|
|
/** paging */
|
|
|
|
/** paging */
|
|
|
|
PaginationInfo paginationInfo = new PaginationInfo();
|
|
|
|
PaginationInfo paginationInfo = new PaginationInfo();
|
|
|
@ -162,8 +162,8 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "EntUserRegMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "entUserRegMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String EntUserRegMng_page(@PathVariable String cmd
|
|
|
|
public String entUserRegMng_page(@PathVariable String cmd
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO
|
|
|
|
, @ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO
|
|
|
|
, @ModelAttribute("entrprsManageVO") XitEntUserRegMngVO vo
|
|
|
|
, @ModelAttribute("entrprsManageVO") XitEntUserRegMngVO vo
|
|
|
@ -220,8 +220,8 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "EntUserRegMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "entUserRegMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String EntUserRegMng_page_popup(
|
|
|
|
public String entUserRegMng_page_popup(
|
|
|
|
@PathVariable String cmd
|
|
|
|
@PathVariable String cmd
|
|
|
|
, @ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO
|
|
|
|
, @ModelAttribute("userSearchVO") XitEntUserRegMngSearchVO searchVO
|
|
|
|
, @ModelAttribute("entrprsManageVO") XitEntUserRegMngVO vo
|
|
|
|
, @ModelAttribute("entrprsManageVO") XitEntUserRegMngVO vo
|
|
|
@ -251,8 +251,8 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
* @throws ServletException
|
|
|
|
* @throws ServletException
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
* @date: 2020. 4. 8.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "EntUserRegMng_{cmd}_proc", method=RequestMethod.POST)
|
|
|
|
@RequestMapping(name = "", value = "entUserRegMng_{cmd}_proc", method=RequestMethod.POST)
|
|
|
|
public void EntUserRegMng_cmd_proc(@PathVariable String cmd
|
|
|
|
public void entUserRegMng_cmd_proc(@PathVariable String cmd
|
|
|
|
,@ModelAttribute("entrprsManageVO") XitEntUserRegMngVO vo
|
|
|
|
,@ModelAttribute("entrprsManageVO") XitEntUserRegMngVO vo
|
|
|
|
,@RequestParam(value="checkedIdForDel", required=false, defaultValue="") String checkedIdForDel
|
|
|
|
,@RequestParam(value="checkedIdForDel", required=false, defaultValue="") String checkedIdForDel
|
|
|
|
,@RequestParam(value="isViewPage", required=false, defaultValue="N") String isViewPage
|
|
|
|
,@RequestParam(value="isViewPage", required=false, defaultValue="N") String isViewPage
|
|
|
@ -266,7 +266,7 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 처리 분기
|
|
|
|
* 처리 분기
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/usr/EntUserRegMng_list";
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/usr/entUserRegMng_list";
|
|
|
|
String message = null;
|
|
|
|
String message = null;
|
|
|
|
switch (cmd) {
|
|
|
|
switch (cmd) {
|
|
|
|
case "insert": //등록
|
|
|
|
case "insert": //등록
|
|
|
@ -277,7 +277,7 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
// throw new RuntimeException(xitMessageSource.getMessage("fail.common.insert"));
|
|
|
|
// throw new RuntimeException(xitMessageSource.getMessage("fail.common.insert"));
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/usr/EntUserRegMng_input";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/usr/entUserRegMng_input";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//처리
|
|
|
|
//처리
|
|
|
@ -286,10 +286,10 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
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:/framework/biz/mng/usr/EntUserRegMng_input";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/usr/entUserRegMng_input";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/usr/EntUserRegMng_input";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/usr/entUserRegMng_input";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -303,20 +303,20 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
// beanValidator.validate("entrprsManageVO", vo, bindingResult);
|
|
|
|
// beanValidator.validate("entrprsManageVO", 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/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//처리
|
|
|
|
//처리
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
xitEntUserRegMngService.modifyProc(vo);
|
|
|
|
xitEntUserRegMngService.modifyProc(vo);
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -329,13 +329,13 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
xitEntUserRegMngService.modifyPwdProc(uniqId, vo.getEntrprsmberId(), oldPassword, newPassword, newPassword2);
|
|
|
|
xitEntUserRegMngService.modifyPwdProc(uniqId, vo.getEntrprsmberId(), oldPassword, newPassword, newPassword2);
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -347,10 +347,10 @@ public class XitEntUserRegMngController extends AbstractController {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/EntUserRegMng_view":"forward:/framework/biz/mng/usr/EntUserRegMng_edit";
|
|
|
|
sLocationUrl = "Y".equals(isViewPage)?"forward:/framework/biz/mng/usr/entUserRegMng_view":"forward:/framework/biz/mng/usr/entUserRegMng_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|