refactor: 파일명(..Mng.. > ..Mgt..) 변경 적용

main
Jonguk. Lim 2 years ago
parent 5a149a7f8d
commit 1e4166b686

@ -31,7 +31,7 @@ import kr.xit.framework.biz.mng.user.model.XitUserRegMngSearchVO;
import kr.xit.framework.biz.mng.user.model.XitUserRegMngVO; import kr.xit.framework.biz.mng.user.model.XitUserRegMngVO;
import kr.xit.framework.biz.mng.user.service.XitEntUserRegMngService; import kr.xit.framework.biz.mng.user.service.XitEntUserRegMngService;
import kr.xit.framework.biz.mng.user.service.XitGnrUserRegMngService; import kr.xit.framework.biz.mng.user.service.XitGnrUserRegMngService;
import kr.xit.framework.biz.mng.user.service.XitUserRegMngService; import kr.xit.framework.biz.mng.user.service.UserMgtService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE; import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE;
import kr.xit.framework.core.constants.FrameworkConstants.USER_SE; import kr.xit.framework.core.constants.FrameworkConstants.USER_SE;
@ -62,7 +62,7 @@ public class XitFrameAnonymousController {
@Resource @Resource
private XitEntUserRegMngService xitEntUserRegMngService; private XitEntUserRegMngService xitEntUserRegMngService;
@Resource @Resource
private XitUserRegMngService xitUserRegMngService; private UserMgtService xitUserRegMngService;
@Resource @Resource
private XitFrameUnitService xitFrameUnitService; private XitFrameUnitService xitFrameUnitService;
@Autowired @Autowired

@ -22,7 +22,7 @@ import org.apache.ibatis.session.RowBounds;
* @version 1.0 Copyright(c) XIT All rights reserved. * @version 1.0 Copyright(c) XIT All rights reserved.
*/ */
@Mapper @Mapper
public interface MenuListMngMapper { public interface MenuListMgtMapper {
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -19,7 +19,7 @@ import kr.xit.framework.biz.mng.menu.model.ProgramMngVO;
* @version 1.0 Copyright(c) XIT All rights reserved. * @version 1.0 Copyright(c) XIT All rights reserved.
*/ */
@Mapper @Mapper
public interface ProgramMngMapper { public interface ProgramMgtMapper {
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -17,7 +17,7 @@ import org.apache.ibatis.session.RowBounds;
* @since 2002. 2. 2. * @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved. * @version 1.0 Copyright(c) XIT All rights reserved.
*/ */
public interface MenuCreateMngService { public interface MenuCreateMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -18,7 +18,7 @@ import org.apache.ibatis.session.RowBounds;
* @since 2002. 2. 2. * @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved. * @version 1.0 Copyright(c) XIT All rights reserved.
*/ */
public interface MenuListMngService { public interface MenuListMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -17,7 +17,7 @@ import kr.xit.framework.biz.mng.menu.model.ProgramMngVO;
* @since 2002. 2. 2. * @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved. * @version 1.0 Copyright(c) XIT All rights reserved.
*/ */
public interface ProgramMngService { public interface ProgramMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -7,8 +7,8 @@ import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import kr.xit.framework.biz.mng.menu.mapper.MenuListMngMapper; import kr.xit.framework.biz.mng.menu.mapper.MenuListMgtMapper;
import kr.xit.framework.biz.mng.menu.service.MenuCreateMngService; import kr.xit.framework.biz.mng.menu.service.MenuCreateMgtService;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -19,10 +19,10 @@ import kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
@Service @Service
public class MenuCreateMngServiceImpl implements MenuCreateMngService { public class MenuCreateMngServiceImpl implements MenuCreateMgtService {
@Resource @Resource
private MenuListMngMapper menuListMngMapper; private MenuListMgtMapper menuListMngMapper;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource(name = "xitMessageSource") @Resource(name = "xitMessageSource")

@ -20,27 +20,27 @@ import egovframework.rte.fdl.excel.EgovExcelService;
import kr.xit.framework.biz.cmm.model.XitMenuInfoVO; import kr.xit.framework.biz.cmm.model.XitMenuInfoVO;
import kr.xit.framework.biz.cmm.model.ProgrmListVO; import kr.xit.framework.biz.cmm.model.ProgrmListVO;
import kr.xit.framework.biz.cmm.service.XitFrameCrudService; import kr.xit.framework.biz.cmm.service.XitFrameCrudService;
import kr.xit.framework.biz.mng.menu.mapper.ProgramMngMapper; import kr.xit.framework.biz.mng.menu.mapper.ProgramMgtMapper;
import kr.xit.framework.biz.mng.menu.model.MenuListMngVO; import kr.xit.framework.biz.mng.menu.model.MenuListMngVO;
import kr.xit.framework.biz.mng.menu.service.MenuListMngService; import kr.xit.framework.biz.mng.menu.service.MenuListMgtService;
import kr.xit.framework.biz.mng.menu.mapper.MenuListMngMapper; import kr.xit.framework.biz.mng.menu.mapper.MenuListMgtMapper;
import kr.xit.framework.biz.mng.menu.model.MenuListMngSearchVO; import kr.xit.framework.biz.mng.menu.model.MenuListMngSearchVO;
import kr.xit.framework.biz.mng.menu.model.ProgramMngVO; import kr.xit.framework.biz.mng.menu.model.ProgramMngVO;
import kr.xit.framework.biz.mng.menu.service.ProgramMngService; import kr.xit.framework.biz.mng.menu.service.ProgramMgtService;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
@Service @Service
public class MenuListMngServiceImpl implements MenuListMngService { public class MenuListMngServiceImpl implements MenuListMgtService {
private static final Logger logger = LoggerFactory.getLogger(MenuListMngServiceImpl.class); private static final Logger logger = LoggerFactory.getLogger(MenuListMngServiceImpl.class);
@Resource @Resource
private MenuListMngMapper menuListMngMapper; private MenuListMgtMapper menuListMngMapper;
@Resource @Resource
private ProgramMngMapper programMngMapper; private ProgramMgtMapper programMngMapper;
@Resource @Resource
private ProgramMngService programMngService; private ProgramMgtService programMngService;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource @Resource

@ -5,24 +5,23 @@ import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import kr.xit.framework.biz.mng.menu.service.ProgramMngService; import kr.xit.framework.biz.mng.menu.service.ProgramMgtService;
import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import kr.xit.framework.biz.mng.menu.mapper.ProgramMngMapper; import kr.xit.framework.biz.mng.menu.mapper.ProgramMgtMapper;
import kr.xit.framework.biz.mng.menu.model.ProgramMngVO; import kr.xit.framework.biz.mng.menu.model.ProgramMngVO;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
import kr.xit.framework.support.exception.BizRuntimeException; import kr.xit.framework.support.exception.BizRuntimeException;
import kr.xit.framework.support.util.constants.MessageKey;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
@Slf4j @Slf4j
@Service @Service
public class ProgramMngServiceImpl implements ProgramMngService { public class ProgramMngServiceImpl implements ProgramMgtService {
@Resource @Resource
private ProgramMngMapper programMngMapper; private ProgramMgtMapper programMngMapper;
@Override @Override
public List<ProgramMngVO> findPrograms(final Map<String, Object> paraMap, final RowBounds rowBounds) { public List<ProgramMngVO> findPrograms(final Map<String, Object> paraMap, final RowBounds rowBounds) {

@ -19,9 +19,8 @@ import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import kr.xit.framework.biz.mng.menu.model.MenuCreateMngSearchVO;
import kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO; import kr.xit.framework.biz.mng.menu.model.MenuCreateMngVO;
import kr.xit.framework.biz.mng.menu.service.MenuCreateMngService; import kr.xit.framework.biz.mng.menu.service.MenuCreateMgtService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
@ -43,10 +42,10 @@ import org.springframework.web.servlet.ModelAndView;
@Controller @Controller
//@RequestMapping(value = "/_mng_/menu/create/") //@RequestMapping(value = "/_mng_/menu/create/")
@RequestMapping(value = "/framework/biz/mng/menu") @RequestMapping(value = "/framework/biz/mng/menu")
public class MenuCreateMngController { public class MenuCreateMgtController {
@Resource @Resource
private MenuCreateMngService menuCreateMngService; private MenuCreateMgtService menuCreateMngService;
@Autowired @Autowired
private XitBeanValidator beanValidator; private XitBeanValidator beanValidator;
@Resource(name = "xitMessageSource") @Resource(name = "xitMessageSource")

@ -24,7 +24,7 @@ import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import kr.xit.framework.biz.mng.menu.model.MenuListMngVO; import kr.xit.framework.biz.mng.menu.model.MenuListMngVO;
import kr.xit.framework.biz.mng.menu.service.MenuListMngService; import kr.xit.framework.biz.mng.menu.service.MenuListMgtService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE; import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
@ -49,12 +49,12 @@ import org.springframework.web.servlet.ModelAndView;
@Controller @Controller
//@RequestMapping(value = "/_mng_/menu/list/") //@RequestMapping(value = "/_mng_/menu/list/")
@RequestMapping(value = "/framework/biz/mng/menu/") @RequestMapping(value = "/framework/biz/mng/menu/")
public class MenuListMngController { public class MenuListMgtController {
private static final Logger logger = LoggerFactory.getLogger(MenuListMngController.class); private static final Logger logger = LoggerFactory.getLogger(MenuListMgtController.class);
@Resource @Resource
private MenuListMngService menuListMngService; private MenuListMgtService menuListMngService;
@Autowired @Autowired
private XitBeanValidator beanValidator; private XitBeanValidator beanValidator;
@Resource(name = "xitMessageSource") @Resource(name = "xitMessageSource")

@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import kr.xit.framework.biz.mng.menu.model.ProgramMngVO; import kr.xit.framework.biz.mng.menu.model.ProgramMngVO;
import kr.xit.framework.biz.mng.menu.service.ProgramMngService; import kr.xit.framework.biz.mng.menu.service.ProgramMgtService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.model.ResultResponse; import kr.xit.framework.core.model.ResultResponse;
import kr.xit.framework.support.mybatis.MybatisUtils; import kr.xit.framework.support.mybatis.MybatisUtils;
@ -37,9 +37,9 @@ import kr.xit.framework.support.util.constants.MessageKey;
@Controller @Controller
//@RequestMapping(value = "/_mng_/menu/program/") //@RequestMapping(value = "/_mng_/menu/program/")
@RequestMapping(value = "/framework/biz/mng/menu") @RequestMapping(value = "/framework/biz/mng/menu")
public class ProgramMngController { public class ProgramMgtController {
@Resource @Resource
private ProgramMngService programMngService; private ProgramMgtService programMngService;
@Value("#{prop['Globals.Xit.Pagination.PageUnit']}") @Value("#{prop['Globals.Xit.Pagination.PageUnit']}")
private int PAGE_UNIT; private int PAGE_UNIT;
@ -62,7 +62,7 @@ public class ProgramMngController {
* @return ModelAndView * @return ModelAndView
*/ */
@GetMapping(value = "/mngProgramMgtPopup") @GetMapping(value = "/mngProgramMgtPopup")
public ModelAndView mngProgramMgtPopup(@RequestParam(required = false) String progrmFileNm) { public ModelAndView mngProgramMgtPopup(final String progrmFileNm) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/mngProgramMgtPopup.popup"); mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/menu/mngProgramMgtPopup.popup");

@ -27,6 +27,7 @@ public interface XitUserRegMngMapper {
* <pre> : </pre> * <pre> : </pre>
*/ */
List<XitUserRegMngVO> selectUsers(final Map<String,Object> paraMap, final RowBounds rowBounds); List<XitUserRegMngVO> selectUsers(final Map<String,Object> paraMap, final RowBounds rowBounds);
XitUserRegMngVO selectUser(final String userId);
/** /**
* <pre> : </pre> * <pre> : </pre>
@ -45,4 +46,6 @@ public interface XitUserRegMngMapper {
* @date: 2020. 3. 26. * @date: 2020. 3. 26.
*/ */
public XitUserRegMngVO findView(XitUserRegMngVO vo) throws SQLException; public XitUserRegMngVO findView(XitUserRegMngVO vo) throws SQLException;
} }

@ -18,7 +18,7 @@ import kr.xit.framework.biz.mng.user.model.XitUserRegMngSearchVO;
* @since 2002. 2. 2. * @since 2002. 2. 2.
* @version 1.0 Copyright(c) XIT All rights reserved. * @version 1.0 Copyright(c) XIT All rights reserved.
*/ */
public interface XitUserRegMngService { public interface UserMgtService {
/** /**
* <pre> : </pre> * <pre> : </pre>
@ -27,7 +27,8 @@ public interface XitUserRegMngService {
* @author: * @author:
* @date: 2020. 4. 8. * @date: 2020. 4. 8.
*/ */
public List<XitUserRegMngVO> findUsers(final Map<String, Object> paraMap, final RowBounds rowBounds); List<XitUserRegMngVO> findUsers(final Map<String, Object> paraMap, final RowBounds rowBounds);
XitUserRegMngVO findUser(final String userId);
/** /**
* <pre> : </pre> * <pre> : </pre>

@ -23,13 +23,13 @@ import kr.xit.framework.biz.cmm.model.XitLoginVO;
import kr.xit.framework.biz.mng.user.mapper.XitUserRegMngMapper; import kr.xit.framework.biz.mng.user.mapper.XitUserRegMngMapper;
import kr.xit.framework.biz.mng.user.model.XitUserRegMngSearchVO; import kr.xit.framework.biz.mng.user.model.XitUserRegMngSearchVO;
import kr.xit.framework.biz.mng.user.model.XitUserRegMngVO; import kr.xit.framework.biz.mng.user.model.XitUserRegMngVO;
import kr.xit.framework.biz.mng.user.service.XitUserRegMngService; import kr.xit.framework.biz.mng.user.service.UserMgtService;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
import kr.xit.framework.core.utils.XitScrtyUtil; import kr.xit.framework.core.utils.XitScrtyUtil;
@Service @Service
public class XitUserRegMngServiceImpl implements XitUserRegMngService { public class UserMgtServiceImpl implements UserMgtService {
@Resource @Resource
private XitUserRegMngMapper mapper; private XitUserRegMngMapper mapper;
@Resource @Resource
@ -46,6 +46,11 @@ public class XitUserRegMngServiceImpl implements XitUserRegMngService {
return mapper.selectUsers(paraMap, rowBounds); return mapper.selectUsers(paraMap, rowBounds);
} }
@Override
public XitUserRegMngVO findUser(final String userId) {
return mapper.selectUser(userId);
}
@Override @Override
public int findListTotCnt(XitUserRegMngSearchVO searchVO) { public int findListTotCnt(XitUserRegMngSearchVO searchVO) {
int result = 0; int result = 0;

@ -21,7 +21,7 @@ import kr.xit.framework.biz.mng.user.mapper.XitEntUserRegMngMapper;
import kr.xit.framework.biz.mng.user.model.XitEntUserRegMngSearchVO; import kr.xit.framework.biz.mng.user.model.XitEntUserRegMngSearchVO;
import kr.xit.framework.biz.mng.user.model.XitEntUserRegMngVO; import kr.xit.framework.biz.mng.user.model.XitEntUserRegMngVO;
import kr.xit.framework.biz.mng.user.service.XitEntUserRegMngService; import kr.xit.framework.biz.mng.user.service.XitEntUserRegMngService;
import kr.xit.framework.biz.mng.user.service.XitUserRegMngService; import kr.xit.framework.biz.mng.user.service.UserMgtService;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
import kr.xit.framework.core.utils.XitScrtyUtil; import kr.xit.framework.core.utils.XitScrtyUtil;
@ -33,7 +33,7 @@ public class XitEntUserRegMngServiceImpl implements XitEntUserRegMngService {
@Resource @Resource
private XitEntUserRegMngMapper xitEntUserRegMngMapper; private XitEntUserRegMngMapper xitEntUserRegMngMapper;
@Resource @Resource
private XitUserRegMngService xitUserRegMngService; private UserMgtService xitUserRegMngService;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource @Resource

@ -21,7 +21,7 @@ import kr.xit.framework.biz.mng.user.mapper.XitGnrUserRegMngMapper;
import kr.xit.framework.biz.mng.user.model.XitGnrUserRegMngSearchVO; import kr.xit.framework.biz.mng.user.model.XitGnrUserRegMngSearchVO;
import kr.xit.framework.biz.mng.user.model.XitGnrUserRegMngVO; import kr.xit.framework.biz.mng.user.model.XitGnrUserRegMngVO;
import kr.xit.framework.biz.mng.user.service.XitGnrUserRegMngService; import kr.xit.framework.biz.mng.user.service.XitGnrUserRegMngService;
import kr.xit.framework.biz.mng.user.service.XitUserRegMngService; import kr.xit.framework.biz.mng.user.service.UserMgtService;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
import kr.xit.framework.core.utils.XitCmmnUtil; import kr.xit.framework.core.utils.XitCmmnUtil;
import kr.xit.framework.core.utils.XitScrtyUtil; import kr.xit.framework.core.utils.XitScrtyUtil;
@ -33,7 +33,7 @@ public class XitGnrUserRegMngServiceImpl implements XitGnrUserRegMngService{
@Resource @Resource
private XitGnrUserRegMngMapper xitGnrUserRegMngMapper; private XitGnrUserRegMngMapper xitGnrUserRegMngMapper;
@Resource @Resource
private XitUserRegMngService xitUserRegMngService; private UserMgtService xitUserRegMngService;
@Resource @Resource
private XitFrameCrudService xitFrameCrudService; private XitFrameCrudService xitFrameCrudService;
@Resource @Resource

@ -1,7 +1,6 @@
package kr.xit.framework.biz.mng.user.web; package kr.xit.framework.biz.mng.user.web;
import java.io.IOException; import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@ -22,14 +21,12 @@ import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import kr.xit.framework.biz.cmm.service.XitFrameCodeService; import kr.xit.framework.biz.cmm.service.XitFrameCodeService;
import kr.xit.framework.biz.mng.user.model.XitUserRegMngSearchVO; import kr.xit.framework.biz.mng.user.model.XitUserRegMngSearchVO;
import kr.xit.framework.biz.mng.user.model.XitUserRegMngVO; import kr.xit.framework.biz.mng.user.model.XitUserRegMngVO;
import kr.xit.framework.biz.mng.user.service.XitUserRegMngService; import kr.xit.framework.biz.mng.user.service.UserMgtService;
import kr.xit.framework.core.constants.FrameworkConstants; import kr.xit.framework.core.constants.FrameworkConstants;
import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE; import kr.xit.framework.core.constants.FrameworkConstants.TILES_TYPE;
import kr.xit.framework.core.message.XitMessageSource; import kr.xit.framework.core.message.XitMessageSource;
@ -38,6 +35,7 @@ import kr.xit.framework.core.utils.XitCmmnUtil;
import kr.xit.framework.core.validation.XitBeanValidator; import kr.xit.framework.core.validation.XitBeanValidator;
import kr.xit.framework.support.mybatis.MybatisUtils; import kr.xit.framework.support.mybatis.MybatisUtils;
import kr.xit.framework.support.util.AjaxUtils; import kr.xit.framework.support.util.AjaxUtils;
import kr.xit.framework.support.util.Checks;
/** /**
* *
@ -51,9 +49,9 @@ import kr.xit.framework.support.util.AjaxUtils;
*/ */
@Controller @Controller
@RequestMapping("/framework/biz/mng/usr") @RequestMapping("/framework/biz/mng/usr")
public class XitUserRegMngController { public class UserMgtController {
@Resource @Resource
private XitUserRegMngService service; private UserMgtService service;
@Autowired @Autowired
private XitBeanValidator beanValidator; private XitBeanValidator beanValidator;
@Resource(name = "xitMessageSource") @Resource(name = "xitMessageSource")
@ -67,8 +65,19 @@ public class XitUserRegMngController {
private int PAGE_SIZE; private int PAGE_SIZE;
@GetMapping(value = "/mngUserRegMgtForm") @GetMapping(value = "/mngUserMgtForm")
public void mngUserRegMgtForm() { public void mngUserMgtForm() {
}
@GetMapping(value = "/mngUserMgtPopup")
public ModelAndView mngUserMgtPopup(final String uniqId) {
ModelAndView mav = new ModelAndView();
mav.setViewName(FrameworkConstants.FRAMEWORK_JSP_BASE_PATH + "mng/usr/mngUserMgtPopup.popup");
if (Checks.isEmpty(uniqId)) mav.addObject("userManageVO", new XitUserRegMngVO());
else mav.addObject("progrmMngVO", service.findUser(uniqId));
return mav;
} }
/** /**
@ -187,10 +196,10 @@ public class XitUserRegMngController {
,@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
,@RequestParam Map<String, Object> commandMap ,@RequestParam Map<String, Object> commandMap
,BindingResult bindingResult , BindingResult bindingResult
,Model model , Model model
,HttpServletRequest request ,HttpServletRequest request
,HttpServletResponse response , HttpServletResponse response
) throws ServletException, IOException { ) throws ServletException, IOException {
/** /**

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuListMngMapper"> <mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuListMgtMapper">
<sql id="findList_SELECT"> <sql id="findList_SELECT">
SELECT A.AUTHOR_CODE AS "authorCode" SELECT A.AUTHOR_CODE AS "authorCode"

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuListMngMapper"> <mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuListMgtMapper">
<select id="findMenuList" resultType="kr.xit.framework.biz.mng.menu.model.MenuListMngVO"> <select id="findMenuList" resultType="kr.xit.framework.biz.mng.menu.model.MenuListMngVO">
/** XitMenuListMngMapper.findList */ /** XitMenuListMngMapper.findList */

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuListMngMapper"> <mapper namespace="kr.xit.framework.biz.mng.menu.mapper.MenuListMgtMapper">
<select id="findList" resultType="kr.xit.framework.biz.mng.menu.model.MenuListMngVO"> <select id="findList" resultType="kr.xit.framework.biz.mng.menu.model.MenuListMngVO">
/** XitMenuListMngMapper.findList */ /** XitMenuListMngMapper.findList */

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.ProgramMngMapper"> <mapper namespace="kr.xit.framework.biz.mng.menu.mapper.ProgramMgtMapper">
<select id="selectPrograms" resultType="kr.xit.framework.biz.mng.menu.model.ProgramMngVO"> <select id="selectPrograms" resultType="kr.xit.framework.biz.mng.menu.model.ProgramMngVO">
/* program-mysql-mapper|selectPrograms-프로그램 목록 조회|julim */ /* program-mysql-mapper|selectPrograms-프로그램 목록 조회|julim */

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.xit.framework.biz.mng.menu.mapper.ProgramMngMapper"> <mapper namespace="kr.xit.framework.biz.mng.menu.mapper.ProgramMgtMapper">
<!-- SQL 페이징 코드 --> <!-- SQL 페이징 코드 -->
<sql id="pageBefore"> <sql id="pageBefore">
SELECT * FROM SELECT * FROM

@ -40,7 +40,7 @@
</select> </select>
<select id="findUser" resultType="kr.xit.framework.biz.mng.user.model.XitUserRegMngVO"> <select id="selectUser" resultType="kr.xit.framework.biz.mng.user.model.XitUserRegMngVO">
/* user-mysql-mapper|selectUser-사용자 정보 조회|julim */ /* user-mysql-mapper|selectUser-사용자 정보 조회|julim */
SELECT esntl_id AS uniqId SELECT esntl_id AS uniqId
, 'USR03' AS userTy , 'USR03' AS userTy

@ -1,423 +0,0 @@
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp"%>
<script type="text/javascript" src="<c:url value="/_cmmn_/util/validator.do"/>"></script>
<validator:javascript formName="userManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<form:form commandName="userManageVO" action="${pageContext.request.contextPath}/framework/biz/mng/usr/UserRegMng_edit.do" name="userManageVO" id="userManageVO" method="post" >
<input type="hidden" name="searchCondition" value="<c:out value='${userSearchVO.searchCondition}'/>"/>
<input type="hidden" name="searchKeyword" value="<c:out value='${userSearchVO.searchKeyword}'/>"/>
<input type="hidden" name="sbscrbSttus" value="<c:out value='${userSearchVO.sbscrbSttus}'/>"/>
<input type="hidden" name="pageIndex" value="<c:out value='${userSearchVO.pageIndex}'/>"/>
<input type="hidden" name="zip_url" value="<c:url value='/_cmmn_/popup/ZipSearchList.do'/>" />
<!-- 상세정보 사용자 삭제시 prameter 전달용 input -->
<input type="hidden" name="checkedIdForDel" id="checkedIdForDel" value="<c:out value='${userManageVO.userTy}'/>:<c:out value='${userManageVO.emplyrId}'/>">
<!-- 사용자유형정보 : password 수정화면으로 이동시 타겟 유형정보 확인용, 만약검색조건으로 유형이 포함될경우 혼란을 피하기위해 userTy명칭을 쓰지 않음-->
<input type="hidden" name="userTyForPassword" value="<c:out value='${userManageVO.userTy}'/>" />
<div class="popup" style="min-width: 1100px;">
<div class="popup_inner" style="max-width: 1100px;">
<c:set var="pageTitle"><spring:message code="comUssUmt.deptUserManage.title"/></c:set>
<p class="pop_title">${pageTitle } <spring:message code="title.update" /></p>
<table class="tbl03">
<caption>${pageTitle } <spring:message code="title.update" /></caption>
<colgroup>
<col style="width: 20%;"/>
<col style="width: 30%;"/>
<col style="width: 20%;"/>
<col style="width: 30%;"/>
</colgroup>
<tbody>
<tr>
<th height="23" class="required">사용자아이디
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td >
<form:input path="emplyrId" id="emplyrId" cssClass="txaIpt" size="20" maxlength="20" readonly="readonly" />
<form:errors path="emplyrId" cssClass="error"/>
<form:hidden path="uniqId" />
</td>
<th height="23" class="required">
핸드폰번호&nbsp;&nbsp;
</th>
<td >
<form:input path="moblphonNo" id="moblphonNo" title="핸드폰번호" cssClass="txaIpt" size="20" maxlength="15" />
<form:errors path="moblphonNo" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">비밀번호힌트
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<form:select path="passwordHint" id="passwordHint" title="비밀번호힌트">
<form:option value="" label="--선택하세요--" />
<form:options items="${passwordHint_result}" itemValue="code" itemLabel="codeNm" />
</form:select> <form:errors path="passwordHint" cssClass="error" /></td>
<th height="23" class="required">
비밀번호정답
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<form:input path="passwordCnsr" id="passwordCnsr" title="비밀번호정답" cssClass="txaIpt" size="50" maxlength="100" />
<form:errors path="passwordCnsr" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
이름
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<form:input path="emplyrNm" id="emplyrNm" cssClass="txaIpt" size="20" maxlength="60" />
<form:errors path="emplyrNm" cssClass="error" />
</td>
<th height="23" class="required">
소속기관
</th>
<td>
<form:select path="insttCode" id="insttCode" title="소속기관">
<form:option value="" label="--선택하세요--" />
<form:options items="${insttCode_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
<form:errors path="insttCode" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
조직코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<form:select path="orgnztId" id="orgnztId" title="부서">
<form:option value="" label="--선택하세요--" />
<form:options items="${orgnztId_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
<form:errors path="orgnztId" cssClass="error" />
</td>
<th height="23" class="required">
직위명
</th>
<td>
<form:input path="ofcpsNm" id="ofcpsNm" title="직위명" cssClass="txaIpt" size="20" maxlength="30" />
<form:errors path="ofcpsNm" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
이메일주소
</th>
<td>
<form:input path="emailAdres" id="emailAdres" title="이메일주소" cssClass="txaIpt" size="20" maxlength="50" />
<form:errors path="emailAdres" cssClass="error" />
</td>
<th height="23" class="required">
집전화지역번호
</th>
<td>
<form:input path="areaNo" id="areaNo" style="width : 20%" title="areaNo" cssClass="txaIpt" size="5" maxlength="5" />
- <form:input path="homemiddleTelno" style="width : 20%" title="homemiddleTelno" id="homemiddleTelno" cssClass="txaIpt" size="5" maxlength="5" />
- <form:input path="homeendTelno" style="width : 20%" title="homeendTelno" id="homeendTelno" cssClass="txaIpt" size="5" maxlength="5" />
<form:errors path="areaNo" cssClass="error" />
<form:errors path="homemiddleTelno" cssClass="error" />
<form:errors path="homeendTelno" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
사무실전화번호
</th>
<td>
<form:input path="offmTelno" id="offmTelno" title="사무실전화번호" cssClass="txaIpt" size="20" maxlength="15" />
<form:errors path="offmTelno" cssClass="error" />
</td>
<th height="23" class="required">
팩스번호
</th>
<td>
<form:input path="fxnum" id="fxnum" cssClass="txaIpt" title="팩스번호" size="20" maxlength="15" />
<form:errors path="fxnum" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
주소
</th>
<td>
<form:input path="homeadres" id="homeadres" title="주소" style="width: 50%" cssClass="txaIpt" size="40" maxlength="100" readonly="true" />
<form:errors path="homeadres" cssClass="error" />
<form:hidden path="zip" />
<a id ="addrSearch">
<img src="<c:url value='/images/btn/icon_zip_search.gif'/>" alt="" />(우편번호 검색)
</a>
<form:errors path="zip" cssClass="error" />
<input name="zip_view" id="zip_view" type="hidden" title="우편번호" size="20" value="<c:out value='${userManageVO.zip}'/>" maxlength="8" readonly="readonly" />
</td>
<th height="23" class="required">
상세주소
</th>
<td>
<form:input path="detailAdres" id="detailAdres" title="상세주소" cssClass="txaIpt" size="40" maxlength="50" />
<form:errors path="detailAdres" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
사용자상태코드
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<form:select path="emplyrSttusCode" id="emplyrSttusCode" title="사용자상태코드">
<form:option value="" label="--선택하세요--" />
<form:options items="${emplyrSttusCode_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
<form:errors path="emplyrSttusCode" cssClass="error" />
</td>
<th height="23" class="required">
그룹아이디
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<form:select path="groupId" id="groupId" title="그룹아이디">
<form:option value="" label="--선택하세요--" />
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
<form:errors path="groupId" cssClass="error" />
</td>
</tr>
</tbody>
</table>
<div class="popup_btn">
<span class="flr">
<a href="#" class="btn blue" id="btnSave">수정</a>
<a href="#" class="btn red" id="btnDelete">삭제</a>
<a href="#" class="btn blue" id="pwd_btn">비밀번호변경</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //popup_btn -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javascript" src="<c:url value='/resources/js/framework/egov/EgovZipPopup.js' />" ></script>
<script type="text/javaScript" language="javascript" defer="defer">
$(document).ready(function(){
XitUserRegMng_edit.init();
});
/* *******************************
* 사용자 등록관리 수정화면 Functions
******************************* */
var XitUserRegMng_edit = {
/* ========================
* 초기화
======================== */
init : function(){
//닫기 버튼 EVENT 설정
$("#btnClose").on({
click : function(){
window.close();
}
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
if (confirm('수정하시겠습니까?')) {
if(validateUserManageVO(document.userManageVO)){
XitUserRegMng_edit.modifyData();
}
}
}
});
$('#btnDelete').on({
click : function(){
if(confirm("삭제하시겠습니까?")){
XitUserRegMng_edit.removeData();
}
}
})
//주소검색버튼 Event설정
$('#addrSearch').on({
click : function(){
/*
* 2020.10.05. 박민규
* 우편번호검색 Event 변경
* -작업내용: DB조회->행자부API로 변경
*/
// fn_egov_ZipSearch(
// document.userManageVO
// , document.userManageVO.zip
// , document.userManageVO.zip_view
// , document.userManageVO.homeadres
// );
XitUserRegMng_edit.fnSearchAdres();
}
});
$('#pwd_btn').on({
click : function(){
var params = "";
var form = $('#userManageVO');
var array = $(form).serializeArray();
var result = {};
if(array){
$(array).each(function(index, item){
if(this.value){
params += (this.name+"=" + this.value);
if(index < (array.length -1)) params += "&"
}
})
}
XitUserRegMng_edit.pagePopup('pwd', '<c:url value="/framework/biz/mng/usr/UserRegMng_editPwd_popup.do"/>', params);
}
});
},
/* ========================
* 입력값 언어 선택
======================== */
fn_setInputLimit : function(){
},
/* ========================
* 데이터 조회
======================== */
findData : function(){
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
},
/* ========================
* 데이터 수정
======================== */
modifyData : function(){
var param = $("#userManageVO").serialize();
$.ajax({
url : "/framework/biz/mng/usr/UserRegMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitUserRegMng_list.findData();
window.close();
},
error: function(){
}
});
},
/* ========================
* 데이터 삭제
======================== */
removeData : function(){
var param = $("#userManageVO").serialize();
$.ajax({
url : "/framework/biz/mng/usr/UserRegMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitUserRegMng_list.findData();
window.close();
},
error: function(){
}
});
},
/* ========================
* 유효성 검증
-flag에 따라 유효성 검증을 분기처리한다.
======================== */
validate : function(flag){
switch(flag){
case 'update' : //수정
break;
default : break;
}
return true;
},
/* ========================
* 페이지 이동
-외부사이트 링크가 필요 시 사용(내부코드는 각 페이지에 맞게 수정, ex>https://www.gov.kr/portal/main )
======================== */
pageLink: function(flag, url, params){
switch (flag) {
case "move": //페이지 이동
break;
case "popup": //팝업 OPEN
break;
default:
break;
}
},
/* ========================
* 페이지 Open
-팝업페이지를 Open 한다.
======================== */
pagePopup: function(flag, url, params){
var popUrl = url;
if(!(params == undefined || params == null)){
popUrl += "?";
popUrl += params;
}
var popTitle = '';
var popOption = '';
switch (flag) {
case "pwd":
popTitle = "";
popOption = "width=570px, height=420px, resizable=yes, scrollbars=yes, location=no, top=100px, left=100px;";
break;
default:
break;
}
window.open(popUrl, popTitle ,popOption);
},
/* ========================
* 주소 검색 팝업 OPEN
-도로명 주소를 검색할 수 있는 팝업을 오픈한다.
======================== */
fnSearchAdres: function(){
var popUrl = '<c:url value="/_anonymous_/api/AdresSearch.do"/>';
var params = '?callback=XitUserRegMng_edit.fnSearchAdresCallback';
popUrl += params;
var popTitle = "주소 찾기";
var popOption = "width=570px, height=420px, resizable=yes, scrollbars=yes, location=no, top=100px, left=100px";
window.open(popUrl, popTitle ,popOption);
},
/* ========================
* 주소 검색 콜백 함수
-주소 검색 팝업의 검색결과를 전달 받는다.
======================== */
fnSearchAdresCallback: function(obj){
//검색결과 Set
var totalDetailAdres = ""; // 전체 상세 주소
totalDetailAdres += obj.addrDetail;
totalDetailAdres += obj.roadAddrPart2;
//화면에 출력
document.userManageVO.homeadres.value = obj.roadAddrPart1;
document.userManageVO.zip.value = obj.zipNo;
document.userManageVO.zip_view.value = obj.zipNo;
document.userManageVO.detailAdres.value = totalDetailAdres;
}
}
/* ********************************************************
* 처리결과메시지 출력
******************************************************** */
<c:if test="${!empty message}">alert("${message}");</c:if>
</script>

@ -31,7 +31,7 @@
<input name="searchKeyword" title="검색어" type="text"/> <input name="searchKeyword" title="검색어" type="text"/>
</td> </td>
<td> <td>
<input type="button" id="btnSearch" class="btn_search" title="검색" value="검색"/> <input type="button" id="btnSearch" class="btnSearch" title="검색" value="검색"/>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@ -233,11 +233,12 @@
} }
} }
,pagePopup: function(flag, url, params){ ,pagePopup: function(flag, params){
const url = '<c:url value="/framework/biz/mng/usr/mngUserMgtPopup.do"/>';
let popTitle; let popTitle;
let popOption; let popOption;
switch (flag) { switch (flag) {
case "insert": //등록 case "add": //등록
popTitle = "사용자 신규등록"; popTitle = "사용자 신규등록";
popOption = {width: 1100, height:700} popOption = {width: 1100, height:700}
break; break;
@ -253,11 +254,7 @@
,fnClickRegBtn: function(props){ ,fnClickRegBtn: function(props){
const rowData = props.grid.getRow(props.rowKey); const rowData = props.grid.getRow(props.rowKey);
fnUserMgt.pagePopup( fnUserMgt.pagePopup('add', {uniqId: rowData.uniqId});
'detail'
,'<c:url value="/framework/biz/mng/usr/UserRegMng_edit.do"/>'
,{tilesDef: 'popup', selectedId: rowData.uniqId}
);
} }
} }
@ -265,7 +262,12 @@
* event * event
**************************************************************************/ **************************************************************************/
$(() => { $(() => {
$('#btnSearch').bind('click', () => fnUserMgt.search()) $('#btnSearch').bind('click', () => fnUserMgt.search());
$('#btnRegist').bind('click', () => {
fnUserMgt.pagePopup('detail', {});
});
}); });
/************************************************************************** /**************************************************************************

@ -0,0 +1,427 @@
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/framework/taglibs.jsp"%>
<script type="text/javascript" src="<c:url value="/framework/util/validator.do"/>"></script>
<validator:javascript formName="userManageVO" staticJavascript="false" xhtml="true" cdata="false"/>
<%--@elvariable id="userManageVO" type=""--%>
<form:form commandName="userManageVO" name="userManageVO">
<input type="hidden" name="zip_url" value="<c:url value='/_cmmn_/popup/ZipSearchList.do'/>" />
<!-- 상세정보 사용자 삭제시 prameter 전달용 input -->
<input type="hidden" name="checkedIdForDel" id="checkedIdForDel" value="<c:out value='${userManageVO.userTy}'/>:<c:out value='${userManageVO.emplyrId}'/>">
<!-- 사용자유형정보 : password 수정화면으로 이동시 타겟 유형정보 확인용, 만약검색조건으로 유형이 포함될경우 혼란을 피하기위해 userTy명칭을 쓰지 않음-->
<input type="hidden" name="userTyForPassword" value="<c:out value='${userManageVO.userTy}'/>" />
<div class="popup" style="min-width: 1100px;">
<div class="popup_inner" style="max-width: 1100px;">
<c:set var="pageTitle"><spring:message code="comUssUmt.deptUserManage.title"/></c:set>
<p class="pop_title">${pageTitle } <spring:message code="title.update" /></p>
<table class="tbl03">
<caption>${pageTitle } <spring:message code="title.update" /></caption>
<colgroup>
<col style="width: 20%;"/>
<col style="width: 30%;"/>
<col style="width: 20%;"/>
<col style="width: 30%;"/>
</colgroup>
<tbody>
<tr>
<th height="23" class="required">
<label>사용자아이디</label>
</th>
<td >
<form:input path="emplyrId" id="emplyrId" cssClass="txaIpt" size="20" maxlength="20" readonly="readonly" />
<form:errors path="emplyrId" cssClass="error"/>
<form:hidden path="uniqId" />
</td>
<th height="23" class="required">
<label>핸드폰번호</label>
</th>
<td >
<form:input path="moblphonNo" id="moblphonNo" title="핸드폰번호" cssClass="txaIpt" size="20" maxlength="15" />
<form:errors path="moblphonNo" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
<label>비밀번호힌트</label>
</th>
<td>
<code:select id="passwordHint" name="passwordHint" codeId="XIT022" title="비밀번호힌트" cls="selectBox" alt="비밀번호힌트"/>
<%--
<form:select path="passwordHint" id="passwordHint" title="비밀번호힌트">
<form:option value="" label="--선택하세요--" />
<form:options items="${passwordHint_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
--%>
<form:errors path="passwordHint" cssClass="error" /></td>
<th height="23" class="required">
<label>비밀번호정답</label>
</th>
<td>
<form:input path="passwordCnsr" id="passwordCnsr" title="비밀번호정답" cssClass="txaIpt" size="50" maxlength="100" />
<form:errors path="passwordCnsr" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
<label>이름</label>
</th>
<td>
<form:input path="emplyrNm" id="emplyrNm" cssClass="txaIpt" size="20" maxlength="60" />
<form:errors path="emplyrNm" cssClass="error" />
</td>
<th height="23" class="required">
<label>소속기관</label>
</th>
<td>
<code:select id="insttCode" name="insttCode" codeId="XIT025" title="소속기관" cls="selectBox" alt="소속기관"/>
<%--
<form:select path="insttCode" id="insttCode" title="소속기관">
<form:option value="" label="--선택하세요--" />
<form:options items="${insttCode_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
--%>
<form:errors path="insttCode" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
<label>조직코드</label>
</th>
<td>
<code:select type="ORGN" id="orgnztId" name="orgnztId" title="부서" cls="selectBox" alt="부서"/>
<%--
<form:select path="orgnztId" id="orgnztId" title="부서">
<form:option value="" label="--선택하세요--" />
<form:options items="${orgnztId_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
--%>
<form:errors path="orgnztId" cssClass="error" />
</td>
<th height="23" class="required">
<label>직위명</label>
</th>
<td>
<form:input path="ofcpsNm" id="ofcpsNm" title="직위명" cssClass="txaIpt" size="20" maxlength="30" />
<form:errors path="ofcpsNm" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
<label>이메일주소</label>
</th>
<td>
<form:input path="emailAdres" id="emailAdres" title="이메일주소" cssClass="txaIpt" size="20" maxlength="50" />
<form:errors path="emailAdres" cssClass="error" />
</td>
<th height="23" class="required">
<label>집전화지역번호</label>
</th>
<td>
<form:input path="areaNo" id="areaNo" style="width : 20%" title="areaNo" cssClass="txaIpt" size="5" maxlength="5" />
- <form:input path="homemiddleTelno" style="width : 20%" title="homemiddleTelno" id="homemiddleTelno" cssClass="txaIpt" size="5" maxlength="5" />
- <form:input path="homeendTelno" style="width : 20%" title="homeendTelno" id="homeendTelno" cssClass="txaIpt" size="5" maxlength="5" />
<form:errors path="areaNo" cssClass="error" />
<form:errors path="homemiddleTelno" cssClass="error" />
<form:errors path="homeendTelno" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
<label>사무실전화번호</label>
</th>
<td>
<form:input path="offmTelno" id="offmTelno" title="사무실전화번호" cssClass="txaIpt" size="20" maxlength="15" />
<form:errors path="offmTelno" cssClass="error" />
</td>
<th height="23" class="required">
<label>팩스번호</label>
</th>
<td>
<form:input path="fxnum" id="fxnum" cssClass="txaIpt" title="팩스번호" size="20" maxlength="15" />
<form:errors path="fxnum" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
주소
</th>
<td>
<form:input path="homeadres" id="homeadres" title="주소" style="width: 50%" cssClass="txaIpt" size="40" maxlength="100" readonly="true" />
<form:errors path="homeadres" cssClass="error" />
<form:hidden path="zip" />
<a id ="addrSearch">
<img src="<c:url value='/images/btn/icon_zip_search.gif'/>" alt="" />(우편번호 검색)
</a>
<form:errors path="zip" cssClass="error" />
<input name="zip_view" id="zip_view" type="hidden" title="우편번호" size="20" value="<c:out value='${userManageVO.zip}'/>" maxlength="8" readonly="readonly" />
</td>
<th height="23" class="required">
<label>상세주소</label>
</th>
<td>
<form:input path="detailAdres" id="detailAdres" title="상세주소" cssClass="txaIpt" size="40" maxlength="50" />
<form:errors path="detailAdres" cssClass="error" />
</td>
</tr>
<tr>
<th height="23" class="required">
<label><label>사용자상태코드</label>
<img src="<c:url value='/'/>resourcesimages/required.gif" width="15" height="15" alt="필수" />
</th>
<td>
<code:select id="emplyrSttusCode" name="emplyrSttusCode" codeId="XIT013" title="사용자상태" cls="selectBox" alt="사용자상태"/>
<%--
<form:select path="emplyrSttusCode" id="emplyrSttusCode" title="사용자상태코드">
<form:option value="" label="--선택하세요--" />
<form:options items="${emplyrSttusCode_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
--%>
<form:errors path="emplyrSttusCode" cssClass="error" />
</td>
<th height="23" class="required">
<label>그룹아이디</label>
</th>
<td>
<code:select type="GROUP" id="groupId" name="grupId" title="그룹아이디" cls="selectBox" alt="그룹아이디"/>
<%--
<form:select path="groupId" id="groupId" title="그룹아이디">
<form:option value="" label="--선택하세요--" />
<form:options items="${groupId_result}" itemValue="code" itemLabel="codeNm" />
</form:select>
--%>
<form:errors path="groupId" cssClass="error" />
</td>
</tr>
</tbody>
</table>
<div class="popup_btn">
<span class="flr">
<a href="#" class="btn blue" id="btnSave">수정</a>
<a href="#" class="btn red" id="btnDelete">삭제</a>
<a href="#" class="btn blue" id="pwd_btn">비밀번호변경</a>
<a href="#" class="btn lightgray" id="btnClose">닫기</a>
</span>
</div>
<!-- //popup_btn -->
</div>
</div>
<!-- //popup -->
</form:form>
<script type="text/javascript" src="<c:url value='/resources/framework/js/egov/EgovZipPopup.js' />" ></script>
<script type="text/javaScript">
$(document).ready(function(){
XitUserRegMng_edit.init();
});
/* *******************************
* 사용자 등록관리 수정화면 Functions
******************************* */
var XitUserRegMng_edit = {
/* ========================
* 초기화
======================== */
init : function(){
//닫기 버튼 EVENT 설정
$("#btnClose").on({
click : function(){
window.close();
}
});
//저장 버튼 Event 설정
$('#btnSave').on({
click: function(){
if (confirm('수정하시겠습니까?')) {
if(validateUserManageVO(document.userManageVO)){
XitUserRegMng_edit.modifyData();
}
}
}
});
$('#btnDelete').on({
click : function(){
if(confirm("삭제하시겠습니까?")){
XitUserRegMng_edit.removeData();
}
}
})
//주소검색버튼 Event설정
$('#addrSearch').on({
click : function(){
/*
* 2020.10.05. 박민규
* 우편번호검색 Event 변경
* -작업내용: DB조회->행자부API로 변경
*/
// fn_egov_ZipSearch(
// document.userManageVO
// , document.userManageVO.zip
// , document.userManageVO.zip_view
// , document.userManageVO.homeadres
// );
XitUserRegMng_edit.fnSearchAdres();
}
});
$('#pwd_btn').on({
click : function(){
var params = "";
var form = $('#userManageVO');
var array = $(form).serializeArray();
var result = {};
if(array){
$(array).each(function(index, item){
if(this.value){
params += (this.name+"=" + this.value);
if(index < (array.length -1)) params += "&"
}
})
}
XitUserRegMng_edit.pagePopup('pwd', '<c:url value="/framework/biz/mng/usr/UserRegMng_editPwd_popup.do"/>', params);
}
});
},
/* ========================
* 입력값 언어 선택
======================== */
fn_setInputLimit : function(){
},
/* ========================
* 데이터 조회
======================== */
findData : function(){
},
/* ========================
* 데이터 등록
======================== */
addData : function(){
},
/* ========================
* 데이터 수정
======================== */
modifyData : function(){
var param = $("#userManageVO").serialize();
$.ajax({
url : "/framework/biz/mng/usr/UserRegMng_update_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitUserRegMng_list.findData();
window.close();
},
error: function(){
}
});
},
/* ========================
* 데이터 삭제
======================== */
removeData : function(){
var param = $("#userManageVO").serialize();
$.ajax({
url : "/framework/biz/mng/usr/UserRegMng_delete_proc.do",
data : param,
type : "post",
dataType : "json",
success : function(data) {
alert(data.resp.message);
window.opener.XitUserRegMng_list.findData();
window.close();
},
error: function(){
}
});
},
/* ========================
* 유효성 검증
-flag에 따라 유효성 검증을 분기처리한다.
======================== */
validate : function(flag){
switch(flag){
case 'update' : //수정
break;
default : break;
}
return true;
},
/* ========================
* 페이지 이동
-외부사이트 링크가 필요 시 사용(내부코드는 각 페이지에 맞게 수정, ex>https://www.gov.kr/portal/main )
======================== */
pageLink: function(flag, url, params){
switch (flag) {
case "move": //페이지 이동
break;
case "popup": //팝업 OPEN
break;
default:
break;
}
},
/* ========================
* 페이지 Open
-팝업페이지를 Open 한다.
======================== */
pagePopup: function(flag, url, params){
var popUrl = url;
if(!(params == undefined || params == null)){
popUrl += "?";
popUrl += params;
}
var popTitle = '';
var popOption = '';
switch (flag) {
case "pwd":
popTitle = "";
popOption = "width=570px, height=420px, resizable=yes, scrollbars=yes, location=no, top=100px, left=100px;";
break;
default:
break;
}
window.open(popUrl, popTitle ,popOption);
},
/* ========================
* 주소 검색 팝업 OPEN
-도로명 주소를 검색할 수 있는 팝업을 오픈한다.
======================== */
fnSearchAdres: function(){
var popUrl = '<c:url value="/_anonymous_/api/AdresSearch.do"/>';
var params = '?callback=XitUserRegMng_edit.fnSearchAdresCallback';
popUrl += params;
var popTitle = "주소 찾기";
var popOption = "width=570px, height=420px, resizable=yes, scrollbars=yes, location=no, top=100px, left=100px";
window.open(popUrl, popTitle ,popOption);
},
/* ========================
* 주소 검색 콜백 함수
-주소 검색 팝업의 검색결과를 전달 받는다.
======================== */
fnSearchAdresCallback: function(obj){
//검색결과 Set
var totalDetailAdres = ""; // 전체 상세 주소
totalDetailAdres += obj.addrDetail;
totalDetailAdres += obj.roadAddrPart2;
//화면에 출력
document.userManageVO.homeadres.value = obj.roadAddrPart1;
document.userManageVO.zip.value = obj.zipNo;
document.userManageVO.zip_view.value = obj.zipNo;
document.userManageVO.detailAdres.value = totalDetailAdres;
}
}
</script>
Loading…
Cancel
Save