관서별 부서 설정 작업중.

master
강석 최 2023-02-22 18:00:32 +09:00
parent 2e45e86966
commit c9b7f6131d
38 changed files with 224 additions and 158 deletions

View File

@ -123,7 +123,7 @@ public class BaseController {
session.setAttribute("userOrgan", loginUser.getOgCd()); session.setAttribute("userOrgan", loginUser.getOgCd());
String belongValue = ""; String belongValue = "";
belongValue += searchCodeValue(loginUser.getOgCd(), codeMap.get("OG")); belongValue += searchCodeValue(loginUser.getOgCd(), codeMap.get("OG"));
belongValue += searchCodeValue(loginUser.getOfcCd(), codeMap.get("OFC")); belongValue += searchCodeValue(loginUser.getOfcCd(), codeMap.get(loginUser.getOgCd()));
belongValue += searchCodeValue(loginUser.getTitleCd(), codeMap.get("JT")); belongValue += searchCodeValue(loginUser.getTitleCd(), codeMap.get("JT"));
belongValue += loginUser.getUserNm()+"("+loginUser.getUserId()+")"; belongValue += loginUser.getUserNm()+"("+loginUser.getUserId()+")";
session.setAttribute("belongValue", belongValue); session.setAttribute("belongValue", belongValue);

View File

@ -40,13 +40,13 @@ public class KwmsController {
mav.addObject("joinFlag", "T"); mav.addObject("joinFlag", "T");
mav.addObject("userInfo", userInfo); mav.addObject("userInfo", userInfo);
mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG"));
mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); mav.addObject("ofcList", codeMgtService.selectCodeMgtList(userInfo.getOgCd()));
mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT"));
mav.addObject("dutyList", codeMgtService.selectCodeMgtList("DT")); mav.addObject("dutyList", codeMgtService.selectCodeMgtList("DT"));
mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC"));
mav.addObject("seriesList", codeMgtService.selectCodeMgtList(userInfo.getOutturnCd())); mav.addObject("seriesList", codeMgtService.selectCodeMgtList(userInfo.getOutturnCd()));
mav.addObject("languageList", codeMgtService.selectCodeMgtList("LNG")); mav.addObject("languageList", codeMgtService.selectCodeMgtList("LNG"));
mav.addObject("eduGrdList", codeMgtService.selectCodeMgtList("EDU")); mav.addObject("eduGrdList", codeMgtService.selectCodeMgtList("UED"));
} }
}else{ }else{
if(savedUser.getUserStatus().equals("USC004")){ if(savedUser.getUserStatus().equals("USC004")){
@ -55,7 +55,7 @@ public class KwmsController {
mav.addObject("joinFlag", "T"); mav.addObject("joinFlag", "T");
mav.addObject("userInfo", userInfo); mav.addObject("userInfo", userInfo);
mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG"));
mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); mav.addObject("ofcList", codeMgtService.selectCodeMgtList(userInfo.getOgCd()));
mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT"));
mav.addObject("dutyList", codeMgtService.selectCodeMgtList("DT")); mav.addObject("dutyList", codeMgtService.selectCodeMgtList("DT"));
mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC"));
@ -85,7 +85,7 @@ public class KwmsController {
mav.addObject("joinFlag", "T"); mav.addObject("joinFlag", "T");
mav.addObject("userInfo", userInfo); mav.addObject("userInfo", userInfo);
mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG")); mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG"));
mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC")); mav.addObject("ofcList", codeMgtService.selectCodeMgtList(userInfo.getOgCd()));
mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT")); mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT"));
mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC")); mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC"));
mav.addObject("seriesList", codeMgtService.selectCodeMgtList("SRC")); mav.addObject("seriesList", codeMgtService.selectCodeMgtList("SRC"));

View File

@ -41,7 +41,7 @@ public class KwmsService {
String[] positionAry = empInfo.getLdeptnm().split(" "); String[] positionAry = empInfo.getLdeptnm().split(" ");
userInfo.setOgCd(codeMgtService.searchCodeToCategoryAndValue("OG", positionAry[0])); userInfo.setOgCd(codeMgtService.searchCodeToCategoryAndValue("OG", positionAry[0]));
if (positionAry.length>1){ if (positionAry.length>1){
userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue("OFC", positionAry[1])); userInfo.setOfcCd(codeMgtService.searchCodeToCategoryAndValue(userInfo.getOgCd(), positionAry[1]));
} }
} }
userInfo.setTitleCd(codeMgtService.searchCodeToCategoryAndValue("JT", empInfo.getJikgubnm())); userInfo.setTitleCd(codeMgtService.searchCodeToCategoryAndValue("JT", empInfo.getJikgubnm()));

View File

@ -88,14 +88,6 @@ public class PoliceController {
@GetMapping("/policeEditModal") @GetMapping("/policeEditModal")
public ModelAndView policeEditModal(@AuthenticationPrincipal UserInfo loginUser,UserInfo userInfo){ public ModelAndView policeEditModal(@AuthenticationPrincipal UserInfo loginUser,UserInfo userInfo){
ModelAndView mav = new ModelAndView("police/police/policeEditModal"); ModelAndView mav = new ModelAndView("police/police/policeEditModal");
mav.addObject("ogList", codeMgtService.selectCodeMgtList("OG"));
mav.addObject("ofcList", codeMgtService.selectCodeMgtList("OFC"));
mav.addObject("titleList", codeMgtService.selectCodeMgtList("JT"));
mav.addObject("outturnList", codeMgtService.selectCodeMgtList("OTC"));
mav.addObject("seriesList", codeMgtService.selectCodeMgtList("SRC"));
mav.addObject("languageList", codeMgtService.selectCodeMgtList("LNG"));
mav.addObject("statusList", codeMgtService.selectCodeMgtList("USC"));
//메뉴권한 확인 //메뉴권한 확인
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/police/policeList").get(0).getAccessAuth(); String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/police/policeList").get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth); mav.addObject("accessAuth", accessAuth);

View File

@ -53,10 +53,11 @@
og_cd, og_cd,
ofc_cd, ofc_cd,
title_cd, title_cd,
duty_cd,
wrt_dt wrt_dt
from user_info from user_info
<include refid="selectUserInfoWhere"></include> <include refid="selectUserInfoWhere"></include>
order by og_cd, ofc_cd, title_cd desc order by og_cd, title_cd desc
limit #{rowCnt} offset #{firstIndex} limit #{rowCnt} offset #{firstIndex}
</select> </select>

View File

@ -41,8 +41,10 @@
<div class="col-auto"> <div class="col-auto">
<select class="form-select form-select-sm" name="ofcCd"> <select class="form-select form-select-sm" name="ofcCd">
<option value="">부서 선택</option> <option value="">부서 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="parentCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.ofcCd==commonCode.itemCd}"></option> <th:block th:each="code:${session.commonCode.get(parentCode.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ofcCd eq code.itemCd}"></option>
</th:block>
</th:block> </th:block>
</select> </select>
</div> </div>
@ -81,12 +83,12 @@
<input type="hidden" class="userNm" th:value="${userInfo.userNm}"> <input type="hidden" class="userNm" th:value="${userInfo.userNm}">
<td> <td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd == userInfo.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq userInfo.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
</td> </td>
<td> <td>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(userInfo.ogCd)}">
<th:block th:if="${commonCode.itemCd == userInfo.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq userInfo.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
</td> </td>
<td></td> <td></td>

View File

@ -39,8 +39,10 @@
<div class="col-auto"> <div class="col-auto">
<select class="form-select form-select-sm" name="ofcCd"> <select class="form-select form-select-sm" name="ofcCd">
<option value="">부서 선택</option> <option value="">부서 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="parentCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.ofcCd==commonCode.itemCd}"></option> <th:block th:each="code:${session.commonCode.get(parentCode.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ofcCd eq code.itemCd}"></option>
</th:block>
</th:block> </th:block>
</select> </select>
</div> </div>
@ -92,7 +94,7 @@
</th:block> </th:block>
</td> </td>
<td> <td>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(userInfo.ogCd)}">
<th:block th:if="${commonCode.itemCd == userInfo.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd == userInfo.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
</td> </td>

View File

@ -104,8 +104,8 @@
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select form-select-sm" id="ofcCd" name="ofcCd" th:disabled="${!#strings.isEmpty(userInfo.dicCode)}"> <select class="form-select form-select-sm" id="ofcCd" name="ofcCd" th:disabled="${!#strings.isEmpty(userInfo.dicCode)}">
<option value="">--선택--</option> <option value="">--선택--</option>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.ofcCd}"></option> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${userInfo.ofcCd eq code.itemCd}"></option>
</th:block> </th:block>
</select> </select>
</div> </div>

View File

@ -49,8 +49,10 @@
<div class="col-auto"> <div class="col-auto">
<select class="form-select form-select-sm" name="ofcCd"> <select class="form-select form-select-sm" name="ofcCd">
<option value="">부서 선택</option> <option value="">부서 선택</option>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="parentCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.ofcCd==commonCode.itemCd}"></option> <th:block th:each="code:${session.commonCode.get(parentCode.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ofcCd eq code.itemCd}"></option>
</th:block>
</th:block> </th:block>
</select> </select>
</div> </div>
@ -84,6 +86,7 @@
<th>소속</th> <th>소속</th>
<th>부서</th> <th>부서</th>
<th>계급</th> <th>계급</th>
<th>직책</th>
<th>성명</th> <th>성명</th>
<th>아이디</th> <th>아이디</th>
<th>식별번호</th> <th>식별번호</th>
@ -97,36 +100,26 @@
<td class="checkBoxTd"> <td class="checkBoxTd">
<input type="checkbox" id="userChk" name="userChk" class="userInfoCheckBox" th:value="${userInfo.userSeq}"> <input type="checkbox" id="userChk" name="userChk" class="userInfoCheckBox" th:value="${userInfo.userSeq}">
</td> </td>
<th:block th:if="${userInfo.ogCd eq null or userInfo.ogCd eq ''}"> <td>
<td></td> <th:block th:each="code:${session.commonCode.get('OG')}">
</th:block> <th:block th:if="${code.itemCd eq userInfo.ogCd}" th:text="${code.itemValue}"></th:block>
<th:block th:unless="${userInfo.ogCd eq null or userInfo.ogCd eq ''}">
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd == userInfo.ogCd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block> </th:block>
</th:block> </td>
<th:block th:if="${userInfo.ofcCd eq null or userInfo.ofcCd eq ''}"> <td>
<td></td> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
</th:block> <th:block th:if="${code.itemCd eq userInfo.ofcCd}" th:text="${code.itemValue}"></th:block>
<th:block th:unless="${userInfo.ofcCd eq null or userInfo.ofcCd eq ''}">
<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
<th:block th:if="${commonCode.itemCd == userInfo.ofcCd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block> </th:block>
</th:block> </td>
<th:block th:if="${userInfo.titleCd eq null or userInfo.titleCd eq ''}"> <td>
<td></td> <th:block th:each="code:${session.commonCode.get('JT')}">
</th:block> <th:block th:if="${code.itemCd eq userInfo.titleCd}" th:text="${code.itemValue}"></th:block>
<th:block th:unless="${userInfo.titleCd eq null or userInfo.titleCd eq ''}">
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
<th:block th:if="${commonCode.itemCd == userInfo.titleCd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block> </th:block>
</th:block> </td>
<td>
<th:block th:each="code:${session.commonCode.get('DT')}">
<th:block th:if="${code.itemCd eq userInfo.dutyCd}" th:text="${code.itemValue}"></th:block>
</th:block>
</td>
<td th:text="${userInfo.userNm}"></td> <td th:text="${userInfo.userNm}"></td>
<td th:text="${userInfo.userId}"></td> <td th:text="${userInfo.userId}"></td>
<td th:text="${userInfo.dicCode}"></td> <td th:text="${userInfo.dicCode}"></td>

View File

@ -66,16 +66,16 @@
<td> <td>
<input type="checkbox" name="userChk" class="userInfoCheckBox" th:value="${userInfo.userSeq}"> <input type="checkbox" name="userChk" class="userInfoCheckBox" th:value="${userInfo.userSeq}">
</td> </td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <td>
<th:block th:if="${commonCode.itemCd == userInfo.ogCd}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:text="${commonCode.itemValue}"></td> <th:block th:if="${commonCode.itemCd eq userInfo.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
</th:block> </td>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <td>
<th:block th:if="${commonCode.itemCd == userInfo.ofcCd}"> <th:block th:each="commonCode:${session.commonCode.get(userInfo.ogCd)}">
<td th:text="${commonCode.itemValue}"></td> <th:block th:if="${commonCode.itemCd eq userInfo.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
</th:block> </td>
<td></td> <td></td>
<td th:text="${userInfo.userNm}"></td> <td th:text="${userInfo.userNm}"></td>
<td th:text="${userInfo.userId}"></td> <td th:text="${userInfo.userId}"></td>

View File

@ -18,7 +18,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq officer.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq officer.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(officer.ogCd)}">
<th:block th:if="${commonCode.itemCd eq officer.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq officer.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -106,20 +106,24 @@
<td><input type="checkbox" class="trChkBox"></td> <td><input type="checkbox" class="trChkBox"></td>
--> -->
<td th:text="${cnt.count}"></td> <td th:text="${cnt.count}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${faRpt.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block>
<td> <td>
<th:block th:each="commonCode:${session.commonCode.get('FRC')}"> <th:block th:each="code:${session.commonCode.get('OG')}">
<th:text th:if="${commonCode.itemCd eq faRpt.faRptType}" th:text="${commonCode.itemValue}"></th:text> <th:block th:if="${faRpt.wrtOrgan eq code.itemCd}" th:text="${code.itemValue}"></th:block>
</th:block> </th:block>
</td> </td>
<td>
<th:block th:each="code:${session.commonCode.get('FRC')}">
<th:text th:if="${code.itemCd eq faRpt.faRptType}" th:text="${code.itemValue}"></th:text>
</th:block>
</td>
<td class="titleLeft" th:text="${faRpt.title}"></td> <td class="titleLeft" th:text="${faRpt.title}"></td>
<td th:text="${faRpt.fileCnt eq null?'파일 없음':#strings.concat(faRpt.fileCnt,' 건')}"></td> <td th:text="${faRpt.fileCnt eq null?'파일 없음':#strings.concat(faRpt.fileCnt,' 건')}"></td>
<td th:text="|${faRpt.readCnt}/${faRpt.userCnt}|"></td> <td th:text="|${faRpt.readCnt}/${faRpt.userCnt}|"></td>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <td>
<td th:if="${faRpt.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="code:${session.commonCode.get(faRpt.wrtOrgan)}">
</th:block> <th:block th:if="${faRpt.wrtPart eq code.itemCd}" th:text="${code.itemValue}"></th:block>
</th:block>
</td>
<td th:text="${faRpt.wrtUserNm}"></td> <td th:text="${faRpt.wrtUserNm}"></td>
<td th:text="${#temporals.format(faRpt.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(faRpt.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:if="${faRpt.status ne 'receive'}"> <td th:if="${faRpt.status ne 'receive'}">

View File

@ -103,7 +103,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(readUser.ogCd)}">
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -61,7 +61,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(readUser.ogCd)}">
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -12,7 +12,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(readUser.ogCd)}">
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -100,7 +100,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${asfcov.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${asfcov.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(asfcov.wrtOrgan)}">
<th:block th:if="${asfcov.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${asfcov.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<br> <br>

View File

@ -188,7 +188,7 @@
</th:block> </th:block>
</td> </td>
<td> <td>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(affair.wrtOrgan)}">
<th:block th:if="${affair.wrtPart eq code.itemCd}" th:text="${code.itemValue}"></th:block> <th:block th:if="${affair.wrtPart eq code.itemCd}" th:text="${code.itemValue}"></th:block>
</th:block> </th:block>
</td> </td>

View File

@ -120,18 +120,24 @@
<td th:text="${cnt.count}"></td> <td th:text="${cnt.count}"></td>
<td class="titleLeft" th:text="${plan.contentTitle}"></td> <td class="titleLeft" th:text="${plan.contentTitle}"></td>
<td th:text="${#temporals.format(plan.planDt, 'yyyy-MM-dd')}"></td> <td th:text="${#temporals.format(plan.planDt, 'yyyy-MM-dd')}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <td>
<td th:if="${plan.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="code:${session.commonCode.get('OG')}">
</th:block> <th:block th:if="${plan.wrtOrgan eq code.itemCd}" th:text="${code.itemValue}"></th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> </th:block>
<td th:if="${plan.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> </td>
</th:block> <td>
<th:block th:each="code:${session.commonCode.get(plan.wrtOrgan)}">
<th:block th:if="${plan.wrtPart eq code.itemCd}" th:text="${code.itemValue}"></th:block>
</th:block>
</td>
<td th:text="${plan.wrtUserNm}"></td> <td th:text="${plan.wrtUserNm}"></td>
<td th:text="${#temporals.format(plan.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(plan.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:text="${plan.fileCnt eq null?'파일 없음':#strings.concat(plan.fileCnt,' 건')}"></td> <td th:text="${plan.fileCnt eq null?'파일 없음':#strings.concat(plan.fileCnt,' 건')}"></td>
<th:block th:each="commonCode:${session.commonCode.get('DST')}"> <td>
<td th:if="${plan.planState eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="code:${session.commonCode.get('DST')}">
</th:block> <th:block th:if="${plan.planState eq code.itemCd}" th:text="${code.itemValue}"></th:block>
</th:block>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -116,19 +116,25 @@
<td th:text="${cnt.count}"></td> <td th:text="${cnt.count}"></td>
<td class="titleLeft" th:text="${result.resultTitle}"></td> <td class="titleLeft" th:text="${result.resultTitle}"></td>
<td th:text="${#strings.concat(#temporals.format(result.workStartDt, 'yyyy-MM-dd'), '~', #temporals.format(result.workEndDt, 'yyyy-MM-dd'))}"></td> <td th:text="${#strings.concat(#temporals.format(result.workStartDt, 'yyyy-MM-dd'), '~', #temporals.format(result.workEndDt, 'yyyy-MM-dd'))}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <td>
<td th:if="${result.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
</th:block> <th:block th:if="${result.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> </th:block>
<td th:if="${result.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> </td>
</th:block> <td>
<th:block th:each="commonCode:${session.commonCode.get(result.wrtOrgan)}">
<th:block th:if="${result.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block>
</td>
<td th:text="${result.wrtUserNm}"></td> <td th:text="${result.wrtUserNm}"></td>
<td th:text="${#temporals.format(result.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(result.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:text="${result.fileCnt eq null?'파일 없음':#strings.concat(result.fileCnt,' 건')}"></td> <td th:text="${result.fileCnt eq null?'파일 없음':#strings.concat(result.fileCnt,' 건')}"></td>
<td th:text="${result.affairCnt eq null?'견문 없음':#strings.concat(result.affairCnt,' 건')}"></td> <td th:text="${result.affairCnt eq null?'견문 없음':#strings.concat(result.affairCnt,' 건')}"></td>
<th:block th:each="commonCode:${session.commonCode.get('DST')}"> <td>
<td th:if="${result.resultState eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="commonCode:${session.commonCode.get('DST')}">
</th:block> <th:block th:if="${result.resultState eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block>
</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

View File

@ -5,7 +5,7 @@
<th:block th:each="code:${session.commonCode.get('OG')}"> <th:block th:each="code:${session.commonCode.get('OG')}">
<th:block th:if="${code.itemCd eq userInfo.ogCd}" th:text="${code.itemValue}"></th:block> <th:block th:if="${code.itemCd eq userInfo.ogCd}" th:text="${code.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
<th:block th:if="${code.itemCd eq userInfo.ofcCd}" th:text="${code.itemValue}"></th:block> <th:block th:if="${code.itemCd eq userInfo.ofcCd}" th:text="${code.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="code:${session.commonCode.get('JT')}"> <th:block th:each="code:${session.commonCode.get('JT')}">
@ -65,7 +65,7 @@
<td th:text="${code.itemValue}"></td> <td th:text="${code.itemValue}"></td>
</th:block> </th:block>
</th:block> </th:block>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(career.workOrgan)}">
<th:block th:if="${code.itemCd eq career.workPart}"> <th:block th:if="${code.itemCd eq career.workPart}">
<td th:text="${code.itemValue}"></td> <td th:text="${code.itemValue}"></td>
</th:block> </th:block>
@ -89,7 +89,7 @@
<th:block th:text="${code.itemValue}"></th:block> <th:block th:text="${code.itemValue}"></th:block>
</th:block> </th:block>
</th:block> </th:block>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(career.workOrgan)}">
<th:block th:if="${code.itemCd eq career.workPart}"> <th:block th:if="${code.itemCd eq career.workPart}">
<th:block th:text="${code.itemValue}"></th:block> <th:block th:text="${code.itemValue}"></th:block>
</th:block> </th:block>

View File

@ -14,7 +14,7 @@
</label> </label>
<label class="col-sm-1 col-form-label col-form-label-sm text-center fw-bold">부서</label> <label class="col-sm-1 col-form-label col-form-label-sm text-center fw-bold">부서</label>
<label class="col-sm-2 col-form-label col-form-label-sm text-start"> <label class="col-sm-2 col-form-label col-form-label-sm text-start">
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
<th:block th:if="${code.itemCd eq userInfo.ofcCd}" th:text="${code.itemValue}"></th:block> <th:block th:if="${code.itemCd eq userInfo.ofcCd}" th:text="${code.itemValue}"></th:block>
</th:block> </th:block>
</label> </label>

View File

@ -48,28 +48,78 @@
</div> </div>
<div class="col-8"> <div class="col-8">
<div class="row justify-content-end"> <div class="row justify-content-end">
<div class="col-auto"> <div class="col-11">
<select class="form-select form-select-sm" name="ogCd"> <div class="row">
<option value="">관서 선택</option> <div class="col-4"></div>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <div class="col-2">
<th:block th:if="${#lists.contains(mgtOrganList, commonCode.itemCd)}"> <select class="form-select form-select-sm" name="ogCd">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.ogCd eq commonCode.itemCd}"></option> <option value="">관서 선택</option>
</th:block> <th:block th:each="code:${session.commonCode.get('OG')}">
</th:block> <th:block th:if="${#lists.contains(mgtOrganList, code.itemCd)}">
</select> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ogCd eq code.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="ofcCd">
<option value="">부서 선택</option>
<th:block th:each="parentCode:${session.commonCode.get('OG')}">
<th:block th:each="code:${session.commonCode.get(parentCode.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.ofcCd eq code.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="titleCd">
<option value="">계급 선택</option>
<th:block th:each="code:${session.commonCode.get('JT')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.titleCd eq code.itemCd}"></option>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="dutyCd">
<option value="">직책 선택</option>
<th:block th:each="code:${session.commonCode.get('DT')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.dutyCd eq code.itemCd}"></option>
</th:block>
</select>
</div>
<div class="col-4"></div>
<div class="col-2">
<select class="form-select form-select-sm" name="outturnCd">
<option value="">경과 선택</option>
<th:block th:each="code:${session.commonCode.get('OTC')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.outturnCd eq code.itemCd}"></option>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="seriesCd">
<option value="">직별 선택</option>
<th:block th:each="parent:${session.commonCode.get('OTC')}">
<th:block th:each="code:${session.commonCode.get(parent.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.seriesCd eq code.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>
<div class="col-2">
<select class="form-select form-select-sm" name="sex">
<option value="">성별</option>
<th:block th:each="code:${session.commonCode.get('SEX')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${searchParams.sex eq code.itemCd}"></option>
</th:block>
</select>
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="이름" name="userNm" th:value="${searchParams.userNm}">
</div>
</div>
</div> </div>
<div class="col-auto"> <div class="col-1 d-grid gap-2">
<select class="form-select form-select-sm" name="sex">
<option value="">성별</option>
<th:block th:each="commonCode:${session.commonCode.get('SEX')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${searchParams.sex eq commonCode.itemCd}"></option>
</th:block>
</select>
</div>
<div class="col-auto">
<input type="text" class="form-control form-control-sm" placeholder="이름" name="userNm" th:value="${searchParams.userNm}">
</div>
<div class="col-auto">
<input type="submit" class="btn btn-sm btn-primary" id="searchBtn" value="검색"> <input type="submit" class="btn btn-sm btn-primary" id="searchBtn" value="검색">
</div> </div>
</div> </div>

View File

@ -63,8 +63,8 @@
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select form-select-sm bg-white" disabled> <select class="form-select form-select-sm bg-white" disabled>
<option value="">--선택--</option> <option value="">--선택--</option>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.ofcCd}"></option> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${userInfo.ofcCd eq code.itemCd}"></option>
</th:block> </th:block>
</select> </select>
</div> </div>

View File

@ -83,7 +83,7 @@
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select form-select-sm" id="ofcCd" name="ofcCd" disabled> <select class="form-select form-select-sm" id="ofcCd" name="ofcCd" disabled>
<option value="">--선택--</option> <option value="">--선택--</option>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.ofcCd}"></option> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.ofcCd}"></option>
</th:block> </th:block>
</select> </select>

View File

@ -87,7 +87,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${board.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${board.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(board.wrtOrgan)}">
<td th:if="${board.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${board.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -109,7 +109,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(comment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">
@ -142,7 +142,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(childComment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -20,7 +20,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(comment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">
@ -54,7 +54,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(comment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -92,7 +92,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${notice.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${notice.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(notice.wrtOrgan)}">
<td th:if="${notice.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${notice.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -109,7 +109,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(comment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">
@ -142,7 +142,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(childComment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -88,7 +88,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<td th:if="${qna.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${qna.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(qna.wrtOrgan)}">
<td th:if="${qna.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${qna.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -106,14 +106,14 @@
</div> </div>
<div class="col-auto"> <div class="col-auto">
<div class="row"> <div class="row">
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="code:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${code.itemCd eq comment.wrtOrgan}" th:text="${code.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(comment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="code:${session.commonCode.get('JT')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtUserGrd}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${code.itemCd eq comment.wrtUserGrd}" th:text="${code.itemValue}"></div>
</th:block> </th:block>
<div class="col-auto" th:text="${comment.wrtUserNm}"></div> <div class="col-auto" th:text="${comment.wrtUserNm}"></div>
<div class="col-auto" th:text="${#temporals.format(comment.wrtDt, 'yyyy-MM-dd HH:mm')}"></div> <div class="col-auto" th:text="${#temporals.format(comment.wrtDt, 'yyyy-MM-dd HH:mm')}"></div>
@ -142,7 +142,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(childComment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -92,15 +92,21 @@
<td align="left" th:text="${reference.title}"></td> <td align="left" th:text="${reference.title}"></td>
<td th:text="${reference.fileCnt eq null?'파일 없음':#strings.concat(reference.fileCnt,' 건')}"></td> <td th:text="${reference.fileCnt eq null?'파일 없음':#strings.concat(reference.fileCnt,' 건')}"></td>
<td th:text="${reference.commentCnt eq null?'0':reference.commentCnt}"></td> <td th:text="${reference.commentCnt eq null?'0':reference.commentCnt}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <td>
<td th:if="${reference.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
</th:block> <th:block th:if="${reference.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> </th:block>
<td th:if="${reference.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> </td>
</th:block> <td>
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get(reference.wrtOrgan)}">
<td th:if="${reference.wrtUserGrd eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:if="${reference.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
</td>
<td>
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
<th:block th:if="${reference.wrtUserGrd eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block>
</td>
<td th:text="${reference.wrtUserNm}"></td> <td th:text="${reference.wrtUserNm}"></td>
<td th:text="${#temporals.format(reference.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(reference.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
</tr> </tr>

View File

@ -115,7 +115,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(comment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq comment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">
@ -148,7 +148,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtOrgan}" th:text="${commonCode.itemValue}"></div>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <!--<th:block th:each="commonCode:${session.commonCode.get(childComment.wrtOrgan)}">
<div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div> <div class="col-auto" th:if="${commonCode.itemCd eq childComment.wrtPart}" th:text="${commonCode.itemValue}"></div>
</th:block>--> </th:block>-->
<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -12,7 +12,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(readUser.ogCd)}">
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -103,12 +103,16 @@
<!-- <td class="sriChk"><input type="checkbox" name="sriChk" class="trChkBox"></td>--> <!-- <td class="sriChk"><input type="checkbox" name="sriChk" class="trChkBox"></td>-->
<td th:text="${cnt.count}"></td> <td th:text="${cnt.count}"></td>
<td th:text="${sri.title}"></td> <td th:text="${sri.title}"></td>
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <td>
<td th:if="${sri.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
</th:block> <th:block th:if="${sri.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> </th:block>
<td th:if="${sri.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> </td>
</th:block> <td>
<th:block th:each="commonCode:${session.commonCode.get(sri.wrtOrgan)}">
<th:block th:if="${sri.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block>
</td>
<td> <td>
<th:block th:each="commonCode:${session.commonCode.get('SRI')}"> <th:block th:each="commonCode:${session.commonCode.get('SRI')}">
<th:text th:if="${commonCode.itemCd eq sri.faSriType}" th:text="${commonCode.itemValue}"></th:text> <th:text th:if="${commonCode.itemCd eq sri.faSriType}" th:text="${commonCode.itemValue}"></th:text>

View File

@ -110,7 +110,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(readUser.ogCd)}">
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -85,7 +85,7 @@
<th:block th:each="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ogCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:each="commonCode:${session.commonCode.get('OFC')}"> <th:block th:each="commonCode:${session.commonCode.get(readUser.ogCd)}">
<th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq readUser.ofcCd}" th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}"> <!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">

View File

@ -126,7 +126,7 @@
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select form-select-sm" id="ofcCd" name="ofcCd" th:disabled="${!#strings.isEmpty(userInfo.dicCode)}"> <select class="form-select form-select-sm" id="ofcCd" name="ofcCd" th:disabled="${!#strings.isEmpty(userInfo.dicCode)}">
<option value="">--선택--</option> <option value="">--선택--</option>
<th:block th:each="code:${session.commonCode.get('OFC')}"> <th:block th:each="code:${session.commonCode.get(userInfo.ogCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.ofcCd}"></option> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq userInfo.ofcCd}"></option>
</th:block> </th:block>
</select> </select>