FAISP/src/main/resources/templates/counterIntelligence/activityCase/activityCaseMgt.html

220 lines
12 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/activityCase.js}"></script>
<script type="text/javascript" th:src="@{/js/modal/userModal.js}"></script>
</th:block>
<div layout:fragment="content">
<main>
<input type="hidden" id="menuKey" value="12">
<div class="row justify-content-between">
<div class="col-auto mb-2">
<div class="d-inline align-middle"><i class="bi bi-square-fill"></i></div>
<h5 class="d-inline align-middle"> 관리대장</h5>
</div>
<div class="col-auto">
<p class="mb-0 mt-2">외사방첩관리 > 외사활동 > 관리대장</p>
</div>
</div>
<div class="row mx-0">
<div class="col-12 card bg-light text-center">
<div class="card-body">
<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">
<select class="form-select form-select-sm" name="caseType">
<option value="">구분</option>
<th:block th:each="code:${session.commonCode.get('ACT')}">
<option th:value="${code.itemCd}" th:text="${#strings.replace(code.itemValue, '보고서', '')}"></option>
</th:block>
</select>
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="접수번호" name="receiptNum" th:value="${searchParams.receiptNum}">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="혐의자 이름" name="suspectNm" th:value="${searchParams.suspectNm}">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="혐의자 주소" name="suspectAddress" th:value="${searchParams.suspectAddress}">
</div>
</div>
<div class="row justify-content-end">
<div class="col-2">
<select class="form-select form-select-sm" name="activityResult">
<option value="">처리결과</option>
<th:block th:each="code:${session.commonCode.get('ACR')}">
<option th:value="${code.itemCd}" th:text="${code.itemValue}"></option>
</th:block>
</select>
</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-2">
<input type="text" class="form-control form-control-sm" placeholder="지휘자" name="apprvUserNm" th:value="${searchParams.apprvUserNm}">
</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="reportDate" th:selected="${searchParams.dateSelector eq 'reportDate'}">접수일</option>
<option value="activityStartDate" th:selected="${searchParams.dateSelector eq 'activityStartDate'}">착수일</option>
<option value="activityEndDate" th:selected="${searchParams.dateSelector eq 'activityEndDate'}">종료일</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="card">
<div class="card-body">
<div class="row">
<div class="col-12 overflow-auto">
<table class="table table-sm table-bordered table-hover">
<colgroup>
<col style="width: 5%">
<col style="width: 11%">
<col style="width: 11%">
<col style="width: 8%">
<col style="width: 20%">
<col style="width: 11%">
<col style="width: 8%">
<col style="width: 11%">
<col style="width: 15%">
</colgroup>
<thead class="align-middle">
<tr class="table-secondary">
<th rowspan="3">구분</th>
<th>접수번호</th>
<th colspan="2">혐의자</th>
<th rowspan="3">외사활동 사항</th>
<th>착수일</th>
<th rowspan="3">처리결과</th>
<th>담당자</th>
<th rowspan="3">비고</th>
</tr>
<tr class="table-secondary">
<th rowspan="2">접수일</th>
<th>성명</th>
<th rowspan="2">주소</th>
<th rowspan="2">종료일</th>
<th rowspan="2">지휘자</th>
</tr>
<tr class="table-secondary">
<th>생년월일</th>
</tr>
</thead>
<tbody class="table-group-divider">
<th:block th:each="case,cnt:${activityCaseList}">
<tr class="activityCaseTr" th:data-receiptkey="${case.receiptKey}" data-modaltype="viewOnly">
<td rowspan="2">
<th:block th:each="code:${session.commonCode.get('ACT')}">
<th:block th:if="${code.itemCd eq case.caseType}" th:text="${#strings.replace(code.itemValue, '보고서', '')}"></th:block>
</th:block>
</td>
<td th:text="${case.receiptNum}"></td>
<td th:text="${case.suspectNm}"></td>
<td rowspan="2" th:text="${case.suspectAddress}"></td>
<td rowspan="2" th:utext="${case.content}"></td>
<td th:text="${case.activityStartDate}"></td>
<td rowspan="2">
<th:block th:each="code:${session.commonCode.get('ACR')}">
<th:block th:if="${code.itemCd eq case.activityResult}" th:text="${code.itemValue}"></th:block>
</th:block>
</td>
<td th:text="${case.wrtUserNm}"></td>
<td rowspan="2" th:text="${case.description}"></td>
</tr>
<tr class="activityCaseTr" th:data-receiptkey="${case.receiptKey}" data-modaltype="viewOnly">
<td th:text="${case.reportDate}"></td>
<td th:text="${case.suspectBirthDate}"></td>
<td>
<th:block th:if="${case.caseType eq 'ACT003'}" th:text="${case.activityEndDate}"></th:block>
</td>
<td>
<th:block th:each="userNm,cnt:${#strings.arraySplit(case.apprvUserNm, ', ')}">
<th:block th:each="code:${session.commonCode.get('JT')}">
<th:block th:if="${#strings.contains(userNm, code.itemCd)}" th:text="${#strings.replace(userNm, code.itemCd, code.itemValue+' ')}"></th:block>
</th:block>
<th:block th:unless="${cnt.last}">, </th:block>
</th:block>
</td>
</tr>
</th:block>
</tbody>
</table>
</div>
</div>
<div class="row justify-content-center">
<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">&laquo;</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">&raquo;</span>
</a>
</li>
</th:block>
</ul>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<div class="modal fade" id="activityCaseSummaryModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="activityCaseModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl modal-dialog-scrollable">
<div class="modal-content" id="activityCaseSummaryModalBody">
</div>
</div>
</div>
<div class="modal fade" id="activityCaseViewModal" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="activityCaseModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl modal-dialog-scrollable">
<div class="modal-content" id="activityCaseViewModalBody">
</div>
</div>
</div>
</div>
</html>