FAISP/src/main/resources/templates/igActivities/intelligenceNetwork/intelligenceAnalyzeViewModa...

212 lines
10 KiB
HTML

<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<div class="modal-header bg-dark">
<h5 class="modal-title text-white" id="affairViewModalLabel">분석평가서 열람</h5>
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<input type="hidden" name="affairKey" id="viewModalAffairKey">
<ul class="nav nav-tabs" id="userTab" role="tablist">
<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>
</li>
</ul>
<div class="tab-content bg-white border border-top-0 p-2 text-center">
<div class="tab-pane fade p-2 show active" id="boardTabPanel" role="tabpanel" tabindex="0">
<div class="row mb-1">
<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="|${ia.wrtUserGrd} ${ia.wrtUserNm}|"></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(ia.wrtDt, 'yyyy-MM-dd HH:mm')}"></label>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">상태</label>
<th:block th:each="commonCode:${session.commonCode.get('DST')}">
<label class="col-sm-2 col-form-label col-form-label-sm text-start" th:if="${commonCode.itemCd eq ia.iaState}"
th:text="${commonCode.itemValue}"></label>
</th:block>
</div>
<hr>
<div class="row mb-1">
<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="|${ia.iaSdate} ~ ${ia.iaEdate}|"></label>
</div>
<div class="row mb-1">
<div class="row justify-content-start text-center">
<table class="table table-sm table-bordered table-hover">
<thead>
<tr class="table-secondary">
<th colspan="6">첩보수집실적</th>
<th rowspan="2">허위오보</th>
<th colspan="4">활용실적</th>
</tr>
<tr class="table-secondary">
<th></th>
<th>특보</th>
<th>중보</th>
<th>통보</th>
<th>조사</th>
<th>무가치</th>
<th></th>
<th>외사<br>활동</th>
<th>공작</th>
<th>검거</th>
</tr>
</thead>
<tbody class="table-group-divider text-center">
<tr>
<td th:text="${ia.totalCnt}"></td>
<td th:text="${ia.specialCnt}"></td>
<td th:text="${ia.middleCnt}"></td>
<td th:text="${ia.tongCnt}"></td>
<td th:text="${ia.joCnt}"></td>
<td th:text="${ia.muCnt}"></td>
<td th:text="${ia.fiCnt}"></td>
<td th:text="${ia.iaTotal}"></td>
<td th:text="${ia.faCnt}"></td>
<td th:text="${ia.workCnt}"></td>
<td th:text="${ia.arrestCnt}"></td>
</tr>
</tbody>
</table>
</div>
</div>
<hr>
<div class="row">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">외사활동</label>
<div class="col-sm-11 form-control-sm" id="contentDiv">
<div th:utext="${#strings.replace(ia.foreignAffairs, lineSeparator, '<br>')}"></div>
</div>
</div>
<hr>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">공작</label>
<div class="col-sm-11 form-control-sm" id="contentDiv">
<div th:utext="${#strings.replace(ia.work, lineSeparator, '<br>')}"></div>
</div>
</div>
<hr>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">외사사범 검거</label>
<div class="col-sm-11 form-control-sm" id="contentDiv">
<div th:utext="${#strings.replace(ia.arrestOffenders, lineSeparator, '<br>')}"></div>
</div>
</div>
<hr>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">분석 및 평가</label>
<div class="col-sm-11 form-control-sm" id="contentDiv">
<div th:utext="${#strings.replace(ia.analysisEvaluation, lineSeparator, '<br>')}"></div>
</div>
</div>
<hr>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">대책</label>
<div class="col-sm-11 form-control-sm" id="contentDiv">
<div th:utext="${#strings.replace(ia.measures, lineSeparator, '<br>')}"></div>
</div>
</div>
</div>
<div class="row">
<div class="col-12" th:unless="${#lists.isEmpty(ia.apprvList)}">
<hr>
<th:block th:each="apprv:${ia.apprvList}">
<div class="row">
<th:block th:each="commonCode:${session.commonCode.get('DST')}">
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold"
th:if="${commonCode.itemCd eq apprv.state}">결재결과:</label>
<label class="col-sm-2 col-form-label col-form-label-sm text-start"
th:if="${commonCode.itemCd eq apprv.state}" th:text="${commonCode.itemValue}"></label>
</th:block>
<!--<th:block th:each="commonCode:${session.commonCode.get('JT')}">
<span class="col-sm-1 border-end border-secondary col-form-label col-form-label-sm text-center fw-bold" th:if="${commonCode.itemCd eq apprv.userGrd}" >결재자:</span>
<span class="col-sm-1 border-end border-secondary col-form-label col-form-label-sm text-start" th:if="${commonCode.itemCd eq apprv.userGrd}" th:text="${commonCode.itemValue} ${apprv.userNm}" ></span>
</th:block>-->
<label class="col-sm-2 col-form-label col-form-label-sm text-center fw-bold">
<th:block th:each="commonCode:${session.commonCode.get('JT')}">
<th:block th:if="${commonCode.itemCd eq apprv.userGrd}"
th:text="|결재자 : ${commonCode.itemValue} ${apprv.userNm}|"></th:block>
</th:block>
</label>
<div class="col-12 text-center row border-top-0 border-secondary">
<span class="col-sm-1 border-end border-secondary col-form-label col-form-label-sm text-center fw-bold">관리관의견 : </span>
<span class="col-sm-5 border-end border-secondary col-form-label col-form-label-sm text-start fw-bold"><th:block
th:text="${apprv.opinion}"></th:block></span>
</div>
<div class="col-12 text-center row border-top-0 border-secondary">
<span class="col-sm-1 border-end border-secondary col-form-label col-form-label-sm text-center fw-bold">지시사항 : </span>
<span class="col-sm-5 border-end border-secondary col-form-label col-form-label-sm text-start fw-bold"><th:block
th:text="${apprv.Instruction}"></th:block></span>
</div>
<div class="col-12 text-center row border-top-0 border-secondary">
<span class="col-sm-1 border-end border-secondary col-form-label col-form-label-sm text-center fw-bold">결재일시 : </span>
<span class="col-sm-5 border-end border-secondary col-form-label col-form-label-sm text-start "><th:block
th:text="${#temporals.format(apprv.saveDt, 'yyyy-MM-dd HH:mm:ss')}"></th:block></span>
</div>
</div>
</th:block>
</div>
</div>
<div class="col-12" th:if="${(apprvAuth eq 'APC001' or apprvAuth eq 'APC002') and ia.iaState eq 'DST002'}">
<hr>
<form action="#" method="post" id="apprvForm">
<div class="row">
<input type="hidden" name="iaKey" th:value="${ia.iaKey}">
]
<input type="hidden" name="state" id="viewModalApprvValue">
<div class="row">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">관리관 의견</label>
<div class="col-10">
<input type="text" class="form-control form-control-sm" name="opinion">
</div>
</div>
<br/><br/>
<div class="row">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">지시사항</label>
<div class="col-10">
<input type="text" class="form-control form-control-sm" name="Instruction">
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="modal-footer justify-content-between bg-light">
<div class="col-auto">
<th:block th:unless="${ia.iaState eq 'DST004' or ia.iaState eq 'DST006'}"><!--승인 상태일때는 삭제 불가 -->
<th:block th:if="${userSeq eq ia.wrtUserSeq or accessAuth eq 'ACC003'}"><!--관리자작성자일 경우 삭제 허용-->
<button type="button" class="btn btn-danger" th:data-iakey="${ia.iaKey}" id="deleteBtn">삭제</button>
</th:block>
</th:block>
</div>
<div class="col-auto">
<th:block th:if="${ia.wrtOrgan eq viewOrgan}">
<th:block th:if="${(apprvAuth eq 'APC001' or apprvAuth eq 'APC002') and ia.iaState eq 'DST002'}">
<button type="button" class="btn btn-danger apprvBtn" th:data-planstate="${apprvAuth eq 'APC004'||apprvAuth eq 'APC003'?'DST003':'DST005'}" th:value="반려">반려</button>
<button type="button" class="btn btn-success apprvBtn" th:data-planstate="${apprvAuth eq 'APC004'||apprvAuth eq 'APC003'?'DST004':'DST006'}" th:value="승인">승인</button>
</th:block>
</th:block>
<th:block th:unless="${ia.iaState eq 'DST004' or ia.iaState eq 'DST006'}"><!--승인 상태일때는 수정 불가 -->
<th:block th:if="${userSeq eq ia.wrtUserSeq or accessAuth eq 'ACC003'}"><!--작성자일 경우 수정 허용--><!--관리자일 경우 수정 허용-->
<button type="button" class="btn btn-warning" th:data-iakey="${ia.iaKey}" id="editBtn">수정</button>
</th:block>
</th:block>
</div>
</div>