회원가입 오류 수정.
parent
6b018d5276
commit
961f5cffe9
|
|
@ -43,7 +43,9 @@ public class KwmsService {
|
||||||
userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue("OFC", positionAry[1]));
|
userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue("OFC", positionAry[1]));
|
||||||
}
|
}
|
||||||
userInfo.setTitleCd(codeMgtService.searchCodeToCategoryAndValue("JT", empInfo.getJikgubnm()));
|
userInfo.setTitleCd(codeMgtService.searchCodeToCategoryAndValue("JT", empInfo.getJikgubnm()));
|
||||||
userInfo.setOutturnCd(codeMgtService.searchCodeToCategoryAndValue("OTC", empInfo.getKyunggwa()));
|
if(empInfo.getKyunggwa()!=null){
|
||||||
|
userInfo.setOutturnCd(codeMgtService.searchCodeToCategoryAndValue("OTC", empInfo.getKyunggwa()));
|
||||||
|
}
|
||||||
|
|
||||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
|
||||||
empInfo.setBirthdt(
|
empInfo.setBirthdt(
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ $(document).on('click', '#dicCodeSearchBtn', function (){
|
||||||
if(dicCode!==''){
|
if(dicCode!==''){
|
||||||
getJoinForm(dicCode);
|
getJoinForm(dicCode);
|
||||||
}else{
|
}else{
|
||||||
alert("디지털식별코드를 입력해주세요.")
|
alert("디지털식별코드를 입력해주세요.")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -124,99 +124,101 @@ function valueCheck(){
|
||||||
alert("직책을 선택해주세요.");
|
alert("직책을 선택해주세요.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const seriesCd = targetForm.find("#seriesCd").val();
|
if(targetForm.find("#outturnCd").val()){
|
||||||
if(!seriesCd){
|
const seriesCd = targetForm.find("#seriesCd").val();
|
||||||
alert("직별을 선택해주세요.");
|
if(!seriesCd){
|
||||||
return false;
|
alert("직별을 선택해주세요.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('click', '#findPwBtn', function (){
|
$(document).on('click', '#findPwBtn', function (){
|
||||||
if(!$("#fDicCode").val()){
|
if(!$("#fDicCode").val()){
|
||||||
alert("공무원식별번호를 입력해주세요.");
|
alert("공무원식별번호를 입력해주세요.");
|
||||||
$('#fDicCode').focus();
|
$('#fDicCode').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#fUserId").val()){
|
if(!$("#fUserId").val()){
|
||||||
alert("아이디를 입력해주세요.");
|
alert("아이디를 입력해주세요.");
|
||||||
$('#fUserId').focus();
|
$('#fUserId').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#fUserNm").val()){
|
if(!$("#fUserNm").val()){
|
||||||
alert("이름을 입력해주세요.");
|
alert("이름을 입력해주세요.");
|
||||||
$('#fUserNm').focus();
|
$('#fUserNm').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!$("#fPhoneNo").val()){
|
if(!$("#fPhoneNo").val()){
|
||||||
alert("휴대폰번호를 입력해주세요.");
|
alert("휴대폰번호를 입력해주세요.");
|
||||||
$('#fPhoneNo').focus();
|
$('#fPhoneNo').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const dicCode = $("#fDicCode").val();
|
const dicCode = $("#fDicCode").val();
|
||||||
const userId = $("#fUserId").val();
|
const userId = $("#fUserId").val();
|
||||||
const userNm = $("#fUserNm").val();
|
const userNm = $("#fUserNm").val();
|
||||||
const phoneNo = $("#fPhoneNo").val();
|
const phoneNo = $("#fPhoneNo").val();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : 'POST',
|
type : 'POST',
|
||||||
data : JSON.stringify({dicCode:dicCode,userId:userId,userNm:userNm,phoneNo:phoneNo}),
|
data : JSON.stringify({dicCode:dicCode,userId:userId,userNm:userNm,phoneNo:phoneNo}),
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
url : "/user/findUser",
|
url : "/user/findUser",
|
||||||
success : function(data) {
|
success : function(data) {
|
||||||
if(data != ""){
|
if(data != ""){
|
||||||
$("#findPasswordModal").modal('hide');
|
$("#findPasswordModal").modal('hide');
|
||||||
$("#changeUserSeq").val(data);
|
$("#changeUserSeq").val(data);
|
||||||
$("#changePasswordModal").modal('show');
|
$("#changePasswordModal").modal('show');
|
||||||
}else{
|
}else{
|
||||||
alert("일치하는 정보가 없습니다.")
|
alert("일치하는 정보가 없습니다.")
|
||||||
};
|
};
|
||||||
contentFade("out");
|
contentFade("out");
|
||||||
},
|
},
|
||||||
error : function(e) {
|
error : function(e) {
|
||||||
alert("ajax 통신실패.")
|
alert("ajax 통신실패.")
|
||||||
contentFade("out");
|
contentFade("out");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
$(document).on('click', '#changePwBtn', function (){
|
$(document).on('click', '#changePwBtn', function (){
|
||||||
const p1 = document.getElementById('cPw').value;
|
const p1 = document.getElementById('cPw').value;
|
||||||
const p2 = document.getElementById('chkPw').value;
|
const p2 = document.getElementById('chkPw').value;
|
||||||
if(!p1){
|
if(!p1){
|
||||||
alert("비밀번호를 입력해주세요.");
|
alert("비밀번호를 입력해주세요.");
|
||||||
$('#cPw').focus();
|
$('#cPw').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!p2){
|
if(!p2){
|
||||||
alert("비밀번호확인을 입력해주세요.");
|
alert("비밀번호확인을 입력해주세요.");
|
||||||
$('#chkPw').focus();
|
$('#chkPw').focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(p1!=p2) {
|
if(p1!=p2) {
|
||||||
alert("비밀번호가 일치하지 않습니다. 비밀번호를 재확인해주세요.")
|
alert("비밀번호가 일치하지 않습니다. 비밀번호를 재확인해주세요.")
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(confirm("비밀번호를 변경하시겠습니까?")){
|
if(confirm("비밀번호를 변경하시겠습니까?")){
|
||||||
contentFade("in");
|
contentFade("in");
|
||||||
const formData = new FormData($("#changePasswordFm")[0]);
|
const formData = new FormData($("#changePasswordFm")[0]);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type : 'POST',
|
type : 'POST',
|
||||||
data : formData,
|
data : formData,
|
||||||
url : "/user/updateUserPw",
|
url : "/user/updateUserPw",
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
beforeSend: function (xhr){
|
beforeSend: function (xhr){
|
||||||
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
xhr.setRequestHeader($("[name='_csrf_header']").val(), $("[name='_csrf']").val());
|
||||||
},
|
},
|
||||||
success : function(result) {
|
success : function(result) {
|
||||||
alert("비밀번호가 변경되었습니다.");
|
alert("비밀번호가 변경되었습니다.");
|
||||||
contentFade("out");
|
contentFade("out");
|
||||||
location.reload();
|
location.reload();
|
||||||
},
|
},
|
||||||
error : function(xhr, status) {
|
error : function(xhr, status) {
|
||||||
alert("비밀번호변경이 실패하였습니다.");
|
alert("비밀번호변경이 실패하였습니다.");
|
||||||
contentFade("out");
|
contentFade("out");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -146,7 +146,7 @@
|
||||||
</div>
|
</div>
|
||||||
<label for="seriesCd" class="col-sm-2 col-form-label col-form-label-sm text-center">직별</label>
|
<label for="seriesCd" class="col-sm-2 col-form-label col-form-label-sm text-center">직별</label>
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<select class="form-select form-select-sm" id="seriesCd" name="seriesCd">
|
<select class="form-select form-select-sm" id="seriesCd" name="seriesCd" th:disabled="${userInfo.outturnCd eq null}">
|
||||||
<option value="">--선택--</option>
|
<option value="">--선택--</option>
|
||||||
<th:block th:each="code:${seriesList}">
|
<th:block th:each="code:${seriesList}">
|
||||||
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.seriesCd}"></option>
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.seriesCd}"></option>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue