회원가입 동작 수정.
parent
52c3d80921
commit
aadfcad256
|
|
@ -37,11 +37,13 @@ public class KwmsService {
|
|||
userInfo.setUserId(empInfo.getUserid());
|
||||
userInfo.setUserNm(empInfo.getName());
|
||||
userInfo.setSex(empInfo.getSexcd().strip().equals("F")?"SEX001":"SEX002");
|
||||
if(empInfo.getLdeptnm()!=null){
|
||||
String[] positionAry = empInfo.getLdeptnm().split(" ");
|
||||
userInfo.setOgCd(codeMgtService.searchCodeToCategoryAndValue("OG", positionAry[0]));
|
||||
if (positionAry.length>1){
|
||||
userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue("OFC", positionAry[1]));
|
||||
}
|
||||
}
|
||||
userInfo.setTitleCd(codeMgtService.searchCodeToCategoryAndValue("JT", empInfo.getJikgubnm()));
|
||||
if(empInfo.getKyunggwa()!=null){
|
||||
userInfo.setOutturnCd(codeMgtService.searchCodeToCategoryAndValue("OTC", empInfo.getKyunggwa()));
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ $(document).on('click', '#dicCodeSearchBtn', function (){
|
|||
})
|
||||
|
||||
$(document).on('click', '#saveBtn', function (){
|
||||
$(this).attr('disabled', 'disabled');
|
||||
if(valueCheck()){
|
||||
if(confirm("저장하시겠습니까?")){
|
||||
contentFade("in");
|
||||
|
|
@ -28,6 +29,7 @@ $(document).on('click', '#saveBtn', function (){
|
|||
success : function(result) {
|
||||
if(result === "userIdDuplication"){
|
||||
alert("등록된 아이디입니다.")
|
||||
$(this).removeAttr('disabled', 'disabled');
|
||||
}else{
|
||||
alert("저장되었습니다.\n담당자 승인 후 로그인 가능합니다.")
|
||||
$("#closeModalBtn").click();
|
||||
|
|
@ -35,7 +37,8 @@ $(document).on('click', '#saveBtn', function (){
|
|||
contentFade("out");
|
||||
},
|
||||
error : function(xhr, status) {
|
||||
alert("저장에 실패하였습니다.")
|
||||
alert("저장에 실패하였습니다.");
|
||||
$(this).removeAttr('disabled', 'disabled');
|
||||
contentFade("out");
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<div class="modal-content " id="userInsertModalContent">
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title text-white" id="userInsertModalLabel">사용자 신청</h5>
|
||||
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close" id="closeModalBtn"></button>
|
||||
</div>
|
||||
<div class="modal-body" th:if="${joinFlag eq 'F'}">
|
||||
<div class="mb-3 mt-3 row">
|
||||
|
|
|
|||
Loading…
Reference in New Issue