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