fix:민간통역인 등록 관서선택 수정

TaehunPark 2022-10-05 15:10:41 +09:00
parent b87d2056cb
commit a5f2b90a29
5 changed files with 8 additions and 5 deletions

View File

@ -53,6 +53,7 @@ public class TranslatorController {
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/translator/info").get(0).getAccessAuth(); String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/translator/info").get(0).getAccessAuth();
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList()); mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
mav.addObject("userOrgan", loginUser.getOgCd());
mav.addObject("accessAuth", accessAuth); mav.addObject("accessAuth", accessAuth);
translator.setQueryInfo(); translator.setQueryInfo();
mav.addObject("translatorList", translatorSevice.selectTranslatorList(translator)); mav.addObject("translatorList", translatorSevice.selectTranslatorList(translator));

View File

@ -32,7 +32,7 @@
left outer join code_mgt f on a.tr_nny = f.item_cd left outer join code_mgt f on a.tr_nny = f.item_cd
left outer join code_mgt g on a.tr_edu = g.item_cd left outer join code_mgt g on a.tr_edu = g.item_cd
left outer join code_mgt h on a.tr_visa = h.item_cd left outer join code_mgt h on a.tr_visa = h.item_cd
where wrt_organ in where ogdp1 in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")"> <foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
@ -90,7 +90,7 @@
left outer join code_mgt f on a.tr_nny = f.item_cd left outer join code_mgt f on a.tr_nny = f.item_cd
left outer join code_mgt g on a.tr_edu = g.item_cd left outer join code_mgt g on a.tr_edu = g.item_cd
left outer join code_mgt h on a.tr_visa = h.item_cd left outer join code_mgt h on a.tr_visa = h.item_cd
where wrt_organ in where ogdp1 in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")"> <foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>

View File

@ -58,6 +58,7 @@ $(document).on('click', '#updateBtn', function (){
} }
if(confirm("수정하시겠습니까?")){ if(confirm("수정하시겠습니까?")){
document.getElementById("eOgdp1").disabled = false;
const url = '/translator/translatorEditModal'; const url = '/translator/translatorEditModal';
contentFade("in"); contentFade("in");
const formData = new FormData($("#trInfoUpdate")[0]); const formData = new FormData($("#trInfoUpdate")[0]);
@ -106,6 +107,7 @@ $(document).on('click', '#saveBtn', function (){
} }
if(confirm("저장하시겠습니까?")){ if(confirm("저장하시겠습니까?")){
document.getElementById("ogdp1").disabled = false;
contentFade("in"); contentFade("in");
const formData = new FormData($("#translatorInsert")[0]); const formData = new FormData($("#translatorInsert")[0]);
$.ajax({ $.ajax({

View File

@ -194,11 +194,11 @@
<div class="mb-3 row"> <div class="mb-3 row">
<label for="ogCd" class="col-sm-2 col-form-label text-center">관서</label> <label for="ogCd" class="col-sm-2 col-form-label text-center">관서</label>
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select form-select-sm" id="ogdp1" name="ogdp1"> <select class="form-select form-select-sm" id="ogdp1" name="ogdp1" th:disabled="${accessAuth ne 'ACC003'}">
<option value="">선택</option> <option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${#lists.contains(mgtOrganList, commonCode.itemCd)}"> <th:block th:if="${#lists.contains(mgtOrganList, commonCode.itemCd)}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"></option> <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd eq userOrgan}"></option>
</th:block> </th:block>
</th:block> </th:block>
</select> </select>

View File

@ -11,7 +11,7 @@
<div class="mb-3 row"> <div class="mb-3 row">
<label for="ogCd" class="col-sm-2 col-form-label text-center">관서</label> <label for="ogCd" class="col-sm-2 col-form-label text-center">관서</label>
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select form-select-sm" id="eOgdp1" name="ogdp1"> <select class="form-select form-select-sm" id="eOgdp1" name="ogdp1" th:disabled="${accessAuth ne 'ACC003'}">
<option value="">선택</option> <option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.ogdp1}"></option> <option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${commonCode.itemCd} == ${trInfo.ogdp1}"></option>