231 lines
13 KiB
HTML
231 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko" xmlns:th="http://www.thymeleaf.org"
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
layout:decorate="~{layout/layout}">
|
|
<th:block layout:fragment="script">
|
|
<script type="text/javascript" th:src="@{/js/counterIntelligence/ciWork.js}"></script>
|
|
</th:block>
|
|
<div layout:fragment="content">
|
|
<main>
|
|
<div class="row justify-content-between">
|
|
<div class="col-auto">
|
|
<h4>방첩공작</h4>
|
|
</div>
|
|
<div class="col-auto">
|
|
<p class="mb-0 mt-2">외사방첩관리 > 방첩공작</p>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
|
|
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
|
|
<div class="row mx-0">
|
|
<div class="col-12 card bg-light text-center">
|
|
<div class="card-body">
|
|
<ul class="nav nav-tabs" id="userTab" role="tablist">
|
|
<li class="nav-item" role="presentation">
|
|
<button class="nav-link active" id="ciWorkTab" data-bs-toggle="tab" type="button" role="tab">공작 목록</button>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<button class="nav-link" id="performanceTab" data-bs-toggle="tab" type="button" role="tab">실적</button>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content bg-white border border-top-0 p-2">
|
|
<form method="get" th:action="${searchUrl}">
|
|
<input type="hidden" name="pageIndex" id="pageIndex" th:value="${searchParams.pageIndex}">
|
|
<div class="row justify-content-between py-1">
|
|
<div class="col-auto">
|
|
<select class="form-select form-select-sm" name="rowCnt" id="rowCnt">
|
|
<th:block th:each="num : ${#numbers.sequence(1,5)}">
|
|
<option th:value="${num*10}" th:text="${num*10}" th:selected="${searchParams.rowCnt eq num*10}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<div class="col-8">
|
|
<div class="row">
|
|
<div class="col-11">
|
|
<div class="row justify-content-end pb-1">
|
|
<div class="col-2" th:if="${accessAuth eq 'ACC003'}">
|
|
<select class="form-select form-select-sm" name="wrtOrgan">
|
|
<option value="">관서 선택</option>
|
|
<th:block th:each="code:${session.commonCode.get('OG')}">
|
|
<th:block th:if="${#lists.contains(downOrganCdList, code.itemCd)}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.wrtOrgan}"></option>
|
|
</th:block>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<div class="col-2">
|
|
<select class="form-select form-select-sm" name="workRating">
|
|
<option value="">등급</option>
|
|
<th:block th:each="code:${session.commonCode.get('CIWR')}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.workRating}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<div class="col-2">
|
|
<select class="form-select form-select-sm" name="arrestType1">
|
|
<option value="">검거유형1</option>
|
|
<th:block th:each="code:${session.commonCode.get('AT')}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.workRating}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
<div class="col-2">
|
|
<select class="form-select form-select-sm" name="arrestType2">
|
|
<option value="">검거유형2</option>
|
|
<th:block th:each="code:${session.commonCode.get('AT2')}">
|
|
<option th:value="${code.itemCd}" th:text="${code.itemValue}" th:selected="${code.itemCd eq searchParams.workRating}"></option>
|
|
</th:block>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row justify-content-end">
|
|
<div class="col-2">
|
|
<input type="text" class="form-control form-control-sm" placeholder="제목" name="title" th:value="${searchParams.title}">
|
|
</div>
|
|
<div class="col-2">
|
|
<input type="text" class="form-control form-control-sm" placeholder="해시태그" name="hashTags" th:value="${searchParams.hashTags}">
|
|
</div>
|
|
<div class="col-2">
|
|
<input type="text" class="form-control form-control-sm" placeholder="작성자" name="wrtUserNm" th:value="${searchParams.wrtUserNm}">
|
|
</div>
|
|
<div class="col-4">
|
|
<div class="input-group input-daterange" id="dateSelectorDiv">
|
|
<select class="form-select form-select-sm w-30" name="dateSelector">
|
|
<option value="wrtDt" th:selected="${searchParams.dateSelector eq 'wrtDt'}">작성일</option>
|
|
<option value="workStartDate" th:selected="${searchParams.dateSelector eq 'workStartDate'}">착수일</option>
|
|
<option value="workEndDate" th:selected="${searchParams.dateSelector eq 'workEndDate'}">종결일</option>
|
|
<option value="reRatingDate1" th:selected="${searchParams.dateSelector eq 'reRatingDate1'}">1차재평가</option>
|
|
<option value="reRatingDate2" th:selected="${searchParams.dateSelector eq 'reRatingDate2'}">2차재평가</option>
|
|
</select>
|
|
<input type="text" class="form-control form-control-sm w-35" id="startDate" name="startDate" placeholder="시작일" autocomplete="off" readonly th:value="${searchParams.startDate}">
|
|
<input type="text" class="form-control form-control-sm w-35" id="endDate" name="endDate" placeholder="종료일" autocomplete="off" readonly th:value="${searchParams.endDate}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-1 d-grid gap-2">
|
|
<input type="submit" class="btn btn-sm btn-primary" id="searchBtn" value="검색">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<table class="table table-sm table-bordered table-hover">
|
|
<thead>
|
|
<tr class="table-secondary">
|
|
<th>등급</th>
|
|
<th>검거유형1</th>
|
|
<th>검거유형2</th>
|
|
<th>공작명</th>
|
|
<th>착수일<br>/종결일</th>
|
|
<th>관서</th>
|
|
<th>부서</th>
|
|
<th>작성자</th>
|
|
<th>작성일시</th>
|
|
<th>첨부파일</th>
|
|
<th>재평가일</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-group-divider">
|
|
<tr class="faRptTr" th:each="ciWork:${ciWorkList}">
|
|
<input type="hidden" class="ciwKey" th:value="${ciWork.ciwKey}">
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get('CIWR')}">
|
|
<th:block th:if="${code.itemCd eq ciWork.workRating}" th:text="${code.itemValue}"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get('AT')}">
|
|
<th:block th:if="${code.itemCd eq ciWork.arrestType1}" th:text="${code.itemValue}"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get(ciWork.arrestType1)}">
|
|
<th:block th:if="${code.itemCd eq ciWork.arrestType2}" th:text="${code.itemValue}"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td>
|
|
<th:block th:if="${ciWork.status eq 'DST002'}">[임시]</th:block>
|
|
<th:block th:text="${ciWork.title}"></th:block>
|
|
</td>
|
|
<td>
|
|
<div th:text="${ciWork.workStartDate}"></div>
|
|
<div th:text="${#strings.concat('~ ', ciWork.workEndDate)}"></div>
|
|
</td>
|
|
<th:block th:each="commonCode:${session.commonCode.get('OG')}">
|
|
<td th:if="${ciWork.wrtOrgan eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
|
|
</th:block>
|
|
<th:block th:each="commonCode:${session.commonCode.get('OFC')}">
|
|
<td th:if="${ciWork.wrtPart eq commonCode.itemCd}" th:text="${commonCode.itemValue}"></td>
|
|
</th:block>
|
|
<td>
|
|
<th:block th:each="code:${session.commonCode.get('JT')}">
|
|
<th:block th:if="${code.itemCd eq ciWork.wrtUserGrd}" th:text="|${code.itemValue} ${ciWork.wrtUserNm}|"></th:block>
|
|
</th:block>
|
|
</td>
|
|
<td th:text="${#temporals.format(ciWork.wrtDt, 'yyyy-MM-dd HH:mm')}"></td>
|
|
<td th:text="${ciWork.fileCnt eq null?'파일 없음':#strings.concat(ciWork.fileCnt,' 건')}"></td>
|
|
<td>
|
|
<div th:text="|1차: ${ciWork.reRatingDate1}|"></div>
|
|
<div th:text="|2차: ${ciWork.reRatingDate2}|"></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="row justify-content-between">
|
|
<div class="col-auto"></div>
|
|
<div class="col-auto">
|
|
<nav aria-label="Page navigation">
|
|
<ul class="pagination mb-0">
|
|
<th:block th:if="${searchParams.pageIndex>3}">
|
|
<li class="page-item" th:data-pageindex="${(searchParams.pageIndex)-3}">
|
|
<a class="page-link" href="#" aria-label="Previous">
|
|
<span aria-hidden="true">«</span>
|
|
</a>
|
|
</li>
|
|
</th:block>
|
|
<th:block th:each="num : ${#numbers.sequence(searchParams.startNum, searchParams.endNum)}">
|
|
<li class="page-item" th:data-pageindex="${num}" th:classappend="${searchParams.pageIndex eq num?'active':''}">
|
|
<a class="page-link" href="#" th:text="${num}"></a>
|
|
</li>
|
|
</th:block>
|
|
<th:block th:if="${searchParams.maxNum>searchParams.endNum+2}">
|
|
<li class="page-item" th:data-pageindex="${(searchParams.pageIndex)+3}">
|
|
<a class="page-link" href="#" aria-label="Next">
|
|
<span aria-hidden="true">»</span>
|
|
</a>
|
|
</li>
|
|
</th:block>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
<div class="col-auto">
|
|
<input type="button" class="btn btn-success" value="등록" id="addCiWorkBtn" th:unless="${accessAuth eq 'ACC001'}">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<div class="modal fade" id="ciWorkEditModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
|
<div class="modal-content" id="ciWorkEditModalContent">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal fade" id="ciWorkViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="ciWorkModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog modal-xl modal-dialog-scrollable">
|
|
<div class="modal-content" id="ciWorkViewModalBody">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</html> |