방첩관리 대상목표

master
Hyung Geun 2023-01-28 15:35:41 +09:00
parent 9999e385b3
commit 92938c51cf
20 changed files with 140 additions and 101 deletions

View File

@ -104,5 +104,7 @@
<th:block th:if="${viewUserSeq eq ciWork.wrtUserSeq}"> <th:block th:if="${viewUserSeq eq ciWork.wrtUserSeq}">
<button type="button" class="btn btn-warning" id="editCiWorkBtn" th:data-ciwkey="${ciWork.ciwKey}">수정</button> <button type="button" class="btn btn-warning" id="editCiWorkBtn" th:data-ciwkey="${ciWork.ciwKey}">수정</button>
</th:block> </th:block>
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>

View File

@ -115,7 +115,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>
<div class="col-auto"> <div class="col-auto">
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button> <button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>

View File

@ -80,9 +80,9 @@
<th>교육방식</th> <th>교육방식</th>
<th>교육인원</th> <th>교육인원</th>
<th>비고</th> <th>비고</th>
<th>상태</th>
<th>작성자</th> <th>작성자</th>
<th>작성일</th> <th>작성일</th>
<th>상태</th>
</tr> </tr>
</thead> </thead>
<tbody class="table-group-divider"> <tbody class="table-group-divider">
@ -93,9 +93,9 @@
<td th:text="${list.eduType}"></td> <td th:text="${list.eduType}"></td>
<td th:text="${list.peopleCnt}"></td> <td th:text="${list.peopleCnt}"></td>
<td th:utext="${list.description}"></td> <td th:utext="${list.description}"></td>
<td th:text="${list.contentStatus}"></td>
<td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td> <td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td>
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:text="${list.contentStatus}"></td>
<th:block> <th:block>
<input type="hidden" class="ciKey" th:value="${list.ciKey}"> <input type="hidden" class="ciKey" th:value="${list.ciKey}">
</th:block> </th:block>

View File

@ -85,7 +85,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
<th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}"> <th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}">
<button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button> <button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button>
</th:block> </th:block>

View File

@ -18,7 +18,7 @@
<input type="hidden" name="wrtDt" th:value="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"> <input type="hidden" name="wrtDt" th:value="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}">
<th:block th:if="${cia.ciKey eq null}"> <th:block th:if="${cia.ciKey eq null}">
<div class="row mb-1"> <div class="row mb-1">
<label for="wrtNm" class="col-sm-1 col-form-label col-form-label-sm text-center">리관</label> <label for="wrtNm" class="col-sm-1 col-form-label col-form-label-sm text-center">관서</label>
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select" id="mgtOrgan" name="mgtOrgan"> <select class="form-select" id="mgtOrgan" name="mgtOrgan">
<option value="">선택</option> <option value="">선택</option>
@ -71,7 +71,7 @@
</th:block> </th:block>
<th:block th:unless="${cia.ciKey eq null}"> <th:block th:unless="${cia.ciKey eq null}">
<div class="row mb-1"> <div class="row mb-1">
<label for="wrtNm" class="col-sm-1 col-form-label col-form-label-sm text-center">리관</label> <label for="wrtNm" class="col-sm-1 col-form-label col-form-label-sm text-center">관서</label>
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select" id="mgtOrgan" name="mgtOrgan"> <select class="form-select" id="mgtOrgan" name="mgtOrgan">
<option value="">선택</option> <option value="">선택</option>
@ -144,7 +144,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>
<div class="col-auto"> <div class="col-auto">
<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button> <button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>

View File

@ -39,7 +39,7 @@
<div class="row justify-content-end"> <div class="row justify-content-end">
<div class="col-2"> <div class="col-2">
<select class="form-select form-select-sm" name="mgtOrgan"> <select class="form-select form-select-sm" name="mgtOrgan">
<option value="">리관서 선택</option> <option value="">관서 선택</option>
<th:block th:each="code:${session.commonCode.get('OG')}"> <th:block th:each="code:${session.commonCode.get('OG')}">
<th:block th:if="${#lists.contains(mgtOrganList, code.itemCd)}"> <th:block th:if="${#lists.contains(mgtOrganList, code.itemCd)}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.mgtOrgan}"></option> <option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.mgtOrgan}"></option>
@ -78,15 +78,15 @@
<thead> <thead>
<tr class="table-secondary"> <tr class="table-secondary">
<th rowspan="2">순번</th> <th rowspan="2">순번</th>
<th rowspan="2">리관</th> <th rowspan="2">관서</th>
<th rowspan="2">담당관</th> <th rowspan="2">담당관</th>
<th colspan="3">대상커뮤니티</th> <th colspan="3">대상커뮤니티</th>
<th rowspan="2">선정사유</th> <th rowspan="2">선정사유</th>
<th rowspan="2">모니터링 사항</th> <th rowspan="2">모니터링 사항</th>
<th rowspan="2">선정일</th> <th rowspan="2">선정일</th>
<th rowspan="2">상태</th>
<th rowspan="2">작성자</th> <th rowspan="2">작성자</th>
<th rowspan="2">작성일</th> <th rowspan="2">작성일</th>
<th rowspan="2">상태</th>
</tr> </tr>
<tr class="table-secondary"> <tr class="table-secondary">
<th>소재지</th> <th>소재지</th>
@ -105,9 +105,9 @@
<td th:utext="${list.selectReason}"></td> <td th:utext="${list.selectReason}"></td>
<td th:utext="${list.monitoringInfo}"></td> <td th:utext="${list.monitoringInfo}"></td>
<td th:text="${list.fixDate}"></td> <td th:text="${list.fixDate}"></td>
<td th:text="${list.contentStatus}"></td>
<td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td> <td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td>
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:text="${list.contentStatus}"></td>
<th:block> <th:block>
<input type="hidden" class="ciKey" th:value="${list.ciKey}"> <input type="hidden" class="ciKey" th:value="${list.ciKey}">
</th:block> </th:block>

View File

@ -16,7 +16,7 @@
<div class="tab-content bg-white border border-top-0 p-2"> <div class="tab-content bg-white border border-top-0 p-2">
<div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0"> <div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0">
<div class="row mb-1"> <div class="row mb-1">
<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="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.foreignerInfo.mgtOrgan}" th:text="${commonCode.itemValue}"></option> <option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.foreignerInfo.mgtOrgan}" th:text="${commonCode.itemValue}"></option>
@ -28,7 +28,7 @@
<option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.wrtUserGrd}" th:text="|${commonCode.itemValue} ${cia.wrtUserNm}|"></option> <option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.wrtUserGrd}" th:text="|${commonCode.itemValue} ${cia.wrtUserNm}|"></option>
</th:block> </th:block>
</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" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label> <label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
</div> </div>
<hr class="my-1"> <hr class="my-1">
@ -102,7 +102,7 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <!--<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
<th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}"> <th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}">
<button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button> <button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button>
</th:block> </th:block>

View File

@ -17,7 +17,7 @@
<input type="hidden" name="wrtUserNm" th:value="${cia.wrtUserNm}"> <input type="hidden" name="wrtUserNm" th:value="${cia.wrtUserNm}">
<input type="hidden" name="wrtDt" th:value="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"> <input type="hidden" name="wrtDt" th:value="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}">
<div class="row mb-1"> <div class="row mb-1">
<label for="wrtNm" class="col-sm-1 col-form-label col-form-label-sm text-center">리관</label> <label for="wrtNm" class="col-sm-1 col-form-label col-form-label-sm text-center">관서</label>
<div class="col-sm-2"> <div class="col-sm-2">
<select class="form-select" id="mgtOrgan" name="mgtOrgan"> <select class="form-select" id="mgtOrgan" name="mgtOrgan">
<option value="">선택</option> <option value="">선택</option>

View File

@ -82,9 +82,9 @@
<th>관련<br>분야</th> <th>관련<br>분야</th>
<th>특이사항</th> <th>특이사항</th>
<th>연락처<br>(부서,이름)</th> <th>연락처<br>(부서,이름)</th>
<th>상태</th>
<th>작성자</th> <th>작성자</th>
<th>작성일</th> <th>작성일</th>
<th>상태</th>
</tr> </tr>
</thead> </thead>
<tbody class="table-group-divider"> <tbody class="table-group-divider">
@ -100,9 +100,9 @@
<br> <br>
([[${list.department}]] [[${list.name}]]) ([[${list.department}]] [[${list.name}]])
</td> </td>
<td th:text="${list.contentStatus}"></td>
<td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td> <td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td>
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:text="${list.contentStatus}"></td>
<th:block> <th:block>
<input type="hidden" class="ciKey" th:value="${list.ciKey}"> <input type="hidden" class="ciKey" th:value="${list.ciKey}">
</th:block> </th:block>

View File

@ -16,7 +16,7 @@
<div class="tab-content bg-white border border-top-0 p-2"> <div class="tab-content bg-white border border-top-0 p-2">
<div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0"> <div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0">
<div class="row mb-1"> <div class="row mb-1">
<label class="col-sm-2 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-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="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.manageCompanyInfo.mgtOrgan}" th:text="${commonCode.itemValue}"></option> <option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.manageCompanyInfo.mgtOrgan}" th:text="${commonCode.itemValue}"></option>
@ -28,7 +28,7 @@
<option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.wrtUserGrd}" th:text="|${commonCode.itemValue} ${cia.wrtUserNm}|"></option> <option th:value="${commonCode.itemCd}" th:if="${commonCode.itemCd eq cia.wrtUserGrd}" th:text="|${commonCode.itemValue} ${cia.wrtUserNm}|"></option>
</th:block> </th:block>
</label> </label>
<label class="col-sm-2 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-center fw-bold">작성일</label>
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label> <label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(cia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
</div> </div>
<hr class="my-1"> <hr class="my-1">
@ -94,7 +94,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
<th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}"> <th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}">
<button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button> <button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button>
</th:block> </th:block>

View File

@ -75,9 +75,9 @@
<th>관서</th> <th>관서</th>
<th>지역특성</th> <th>지역특성</th>
<th>예상문제점</th> <th>예상문제점</th>
<th>상태</th>
<th>작성자</th> <th>작성자</th>
<th>작성일</th> <th>작성일</th>
<th>상태</th>
</tr> </tr>
</thead> </thead>
<tbody class="table-group-divider"> <tbody class="table-group-divider">
@ -92,9 +92,9 @@
<th:block th:if="${#strings.length(list.outlookProblem)>35}" th:utext="|${#strings.substring(list.outlookProblem, 0, 35)}...|"></th:block> <th:block th:if="${#strings.length(list.outlookProblem)>35}" th:utext="|${#strings.substring(list.outlookProblem, 0, 35)}...|"></th:block>
<th:block th:unless="${#strings.length(list.outlookProblem)>35}" th:utext="${list.outlookProblem}"></th:block> <th:block th:unless="${#strings.length(list.outlookProblem)>35}" th:utext="${list.outlookProblem}"></th:block>
</td> </td>
<td th:text="${list.contentStatus}"></td>
<td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td> <td th:text="|${list.wrtUserGrd} ${list.wrtUserNm}|"></td>
<td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(list.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
<td th:text="${list.contentStatus}"></td>
<th:block> <th:block>
<input type="hidden" class="ciKey" th:value="${list.ciKey}"> <input type="hidden" class="ciKey" th:value="${list.ciKey}">
</th:block> </th:block>

View File

@ -75,7 +75,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
<th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}"> <th:block th:if="${accessAuth eq 'ACC003'} or ${viewUserSeq eq cia.wrtUserSeq}">
<button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button> <button type="button" class="btn btn-danger" id="deleteBtn" th:data-cikey="${cia.ciKey}">삭제</button>
</th:block> </th:block>

View File

@ -69,7 +69,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>
<div class="col-auto"> <div class="col-auto">
<button type="button" class="btn btn-primary" id="temporarySaveBtn">임시저장</button> <button type="button" class="btn btn-primary" id="temporarySaveBtn">임시저장</button>

View File

@ -59,6 +59,7 @@
</colgroup> </colgroup>
<thead> <thead>
<tr class="table-secondary"> <tr class="table-secondary">
<th rowspan="2">순번</th>
<th rowspan="2">외사<br>터미널명</th> <th rowspan="2">외사<br>터미널명</th>
<th rowspan="2">작성자</th> <th rowspan="2">작성자</th>
<th rowspan="2">일시</th> <th rowspan="2">일시</th>
@ -77,9 +78,10 @@
</tr> </tr>
</thead> </thead>
<tbody class="table-group-divider"> <tbody class="table-group-divider">
<tr class="partWorkTr" th:each="pw:${partWorkList}"> <tr class="partWorkTr" th:each="pw,cnt:${partWorkList}">
<input type="hidden" class="pwSeq" th:value="${pw.pwSeq}"> <input type="hidden" class="pwSeq" th:value="${pw.pwSeq}">
<input type="hidden" class="piSeq" th:value="${pw.piSeq}"> <input type="hidden" class="piSeq" th:value="${pw.piSeq}">
<td th:text="${cnt.count}"></td>
<th:block th:if="${pw.saveYn eq 'N'} and ${pw.wrtUserSeq eq uesrSeq}"> <th:block th:if="${pw.saveYn eq 'N'} and ${pw.wrtUserSeq eq uesrSeq}">
<td th:text="${#strings.concat('[임시]', pw.terminalNm)}"></td> <td th:text="${#strings.concat('[임시]', pw.terminalNm)}"></td>
</th:block> </th:block>

View File

@ -80,7 +80,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
<th:block th:if="${userId eq pwInfo.wrtNm} or ${accessAuth eq 'ACC003'}"> <th:block th:if="${userId eq pwInfo.wrtNm} or ${accessAuth eq 'ACC003'}">
<button type="button" class="btn btn-danger" id="deletePartWork">삭제</button> <button type="button" class="btn btn-danger" id="deletePartWork">삭제</button>
</th:block> </th:block>

View File

@ -22,7 +22,7 @@
</div> </div>
</div> </div>
<div class="row mb-1"> <div class="row mb-1">
<label for="mgtOrgan" class="col-sm-2 col-form-label col-form-label-sm text-center"></label> <label for="mgtOrgan" 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="mgtOrgan" name="mgtOrgan"> <select class="form-select form-select-sm" id="mgtOrgan" name="mgtOrgan">
<option value="">선택</option> <option value="">선택</option>
@ -76,7 +76,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>
<div class="col-auto"> <div class="col-auto">
<th:block th:if="${info.vulnKey eq null}"> <th:block th:if="${info.vulnKey eq null}">

View File

@ -34,7 +34,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>
</div> </div>
</html> </html>

View File

@ -55,7 +55,9 @@
</div> </div>
<div class="modal-footer justify-content-between bg-light"> <div class="modal-footer justify-content-between bg-light">
<div class="col-auto"> <div class="col-auto">
<!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
-->
</div> </div>
</div> </div>
</html> </html>

View File

@ -83,8 +83,8 @@
<th:block th:each="commonCode:${session.commonCode.get('MST')}"> <th:block th:each="commonCode:${session.commonCode.get('MST')}">
<td th:if="${major.majorType eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td> <td th:if="${major.majorType eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
</th:block> </th:block>
<td th:text="|${major.contentStatus eq 'DST001'?'[임시]':''}${major.contentTitle}|"></td> <td class="titleLeft" th:text="|${major.contentStatus eq 'DST001'?'[임시]':''}${major.contentTitle}|"></td>
<td th:utext="${major.contentInfo}"></td> <td class="titleLeft" th:utext="${major.contentInfo}"></td>
<td th:text="${major.fileCnt eq null?'파일 없음':#strings.concat(major.fileCnt,' 건')}"></td> <td th:text="${major.fileCnt eq null?'파일 없음':#strings.concat(major.fileCnt,' 건')}"></td>
<td th:text="${#temporals.format(major.wrtDt, 'yyyy-MM-dd HH:mm')}"></td> <td th:text="${#temporals.format(major.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
</tr> </tr>

View File

@ -8,10 +8,14 @@
<input type="hidden" name="majorKey" id="viewModalMajorKey" th:value="${majorStatus.majorKey}"> <input type="hidden" name="majorKey" id="viewModalMajorKey" th:value="${majorStatus.majorKey}">
<ul class="nav nav-tabs" id="userTab" role="tablist"> <ul class="nav nav-tabs" id="userTab" role="tablist">
<li class="nav-item" role="presentation"> <li class="nav-item" role="presentation">
<button class="nav-link active" id="boardTab" data-bs-toggle="tab" data-bs-target="#boardTabPanel" type="button" role="tab" aria-controls="boardTabPanel" aria-selected="true">본문</button> <button class="nav-link active" id="boardTab" data-bs-toggle="tab" data-bs-target="#boardTabPanel" type="button"
role="tab" aria-controls="boardTabPanel" aria-selected="true">본문
</button>
</li> </li>
<li class="nav-item" role="presentation" th:if="${#lists.size(majorStatus.fileList)>0}"> <li class="nav-item" role="presentation" th:if="${#lists.size(majorStatus.fileList)>0}">
<button class="nav-link" id="fileTab" data-bs-toggle="tab" data-bs-target="#fileTabPanel" type="button" role="tab" aria-controls="fileTabPanel" aria-selected="false" th:text="${#strings.concat('첨부파일(', #lists.size(majorStatus.fileList), ')')}"></button> <button class="nav-link" id="fileTab" data-bs-toggle="tab" data-bs-target="#fileTabPanel" type="button" role="tab"
aria-controls="fileTabPanel" aria-selected="false"
th:text="${#strings.concat('첨부파일(', #lists.size(majorStatus.fileList), ')')}"></button>
</li> </li>
</ul> </ul>
<div class="tab-content bg-white border border-top-0 p-2"> <div class="tab-content bg-white border border-top-0 p-2">
@ -19,16 +23,19 @@
<div class="row mb-1"> <div class="row mb-1">
<div class="col-sm-0"></div> <div class="col-sm-0"></div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">제목</label> <label class="col-sm-1 col-form-label col-form-label-sm text-center">제목</label>
<label class="col-sm-5 col-form-label col-form-label-sm text-start" th:text="${majorStatus.contentTitle}"></label> <label class="col-sm-5 col-form-label col-form-label-sm text-start"
th:text="${majorStatus.contentTitle}"></label>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">작성일시</label> <label class="col-sm-1 col-form-label col-form-label-sm text-center">작성일시</label>
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:text="${#temporals.format(majorStatus.wrtDt, 'yyyy-MM-dd HH:mm')}"></label> <label class="col-sm-2 col-form-label col-form-label-sm text-start"
th:text="${#temporals.format(majorStatus.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">작성자</label> <label class="col-sm-1 col-form-label col-form-label-sm text-center">작성자</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="commonCode:${session.commonCode.get('OG')}"> <th:block th:each="commonCode:${session.commonCode.get('OG')}">
<th:block th:if="${commonCode.itemCd eq majorStatus.wrtOrgan}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq majorStatus.wrtOrgan}" 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')}">
<th:block th:if="${commonCode.itemCd eq majorStatus.wrtUserGrd}" th:text="${commonCode.itemValue}"></th:block> <th:block th:if="${commonCode.itemCd eq majorStatus.wrtUserGrd}"
th:text="${commonCode.itemValue}"></th:block>
</th:block> </th:block>
<th:block th:text="${majorStatus.wrtUserNm}"></th:block> <th:block th:text="${majorStatus.wrtUserNm}"></th:block>
</label> </label>
@ -59,7 +66,8 @@
<th:block th:each="file:${majorStatus.fileList}"> <th:block th:each="file:${majorStatus.fileList}">
<tr class="fileInfoTr"> <tr class="fileInfoTr">
<td><a href="#" class="fileDownLink" data-board="majorFile" <td><a href="#" class="fileDownLink" data-board="majorFile"
th:data-parentkey="${file.majorKey}" th:data-fileseq="${file.fileSeq}" th:text="|${file.origNm}.${file.fileExtn}|"></a></td> th:data-parentkey="${file.majorKey}" th:data-fileseq="${file.fileSeq}"
th:text="|${file.origNm}.${file.fileExtn}|"></a></td>
<td th:text="${file.fileSize}"></td> <td th:text="${file.fileSize}"></td>
</tr> </tr>
</th:block> </th:block>
@ -72,11 +80,18 @@
<hr class="my-1"> <hr class="my-1">
</div> </div>
</div> </div>
<div class="modal-footer bg-light">
<th:block th:if="${userSeq eq majorStatus.wrtUserSeq}"><!--작성자일 경우 수정 허용--> <div class="modal-footer bg-light row justify-content-between">
<button type="button" class="btn btn-warning" id="editBtn" th:data-majorkey="${majorStatus.majorKey}">수정</button> <div class="col-auto">
</th:block>
<button type="button" class="btn btn-danger float-start" id="deleteMajorBtn">삭제</button> <button type="button" class="btn btn-danger float-start" id="deleteMajorBtn">삭제</button>
</div>
<div class="col-auto">
<th:block th:if="${userSeq eq majorStatus.wrtUserSeq}"><!--작성자일 경우 수정 허용-->
<button type="button" class="btn btn-warning" id="editBtn" th:data-majorkey="${majorStatus.majorKey}">수정
</button>
</th:block>
</div>
<!-- <!--
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>
--> -->