회원가입 오류 수정.

master
강석 최 2023-01-30 10:03:25 +09:00
parent 6b018d5276
commit 961f5cffe9
3 changed files with 92 additions and 88 deletions

View File

@ -43,7 +43,9 @@ public class KwmsService {
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()));
}
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd");
empInfo.setBirthdt(

View File

@ -124,11 +124,13 @@ function valueCheck(){
alert("직책을 선택해주세요.");
return false;
}
if(targetForm.find("#outturnCd").val()){
const seriesCd = targetForm.find("#seriesCd").val();
if(!seriesCd){
alert("직별을 선택해주세요.");
return false;
}
}
return true;
}

View File

@ -146,7 +146,7 @@
</div>
<label for="seriesCd" class="col-sm-2 col-form-label col-form-label-sm text-center">직별</label>
<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>
<th:block th:each="code:${seriesList}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.seriesCd}"></option>