refactor: 파일명(..Mng.. > ..Mgt..) 변경 적용
parent
5a149a7f8d
commit
1e4166b686
@ -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">
|
||||
핸드폰번호
|
||||
</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>
|
@ -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…
Reference in New Issue