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