FAISP/src/main/resources/templates/igActivities/fpiMgt/statistics/ratingStatistics.html

77 lines
3.2 KiB
HTML

<ul class="nav nav-tabs" id="userTab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link" id="fieldTab" data-bs-toggle="tab" type="button" role="tab">분야별</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link active" id="ratingTab" data-bs-toggle="tab" type="button" role="tab">평가별</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="personalTab" data-bs-toggle="tab" type="button" role="tab">개인실적</button>
</li>
</ul>
<div class="tab-content bg-white border border-top-0 p-2">
<div class="row justify-content-end">
<div class="col-auto">
<button class="btn btn-primary" id="showMenu">검색조건열기</button>
<button class="btn btn-success" id="fieldDownExcel">엑셀다운</button>
</div>
</div>
<div class="row pt-2" id="statisticsDiv">
<div class="col-12">
<table class="table table-sm table-hover table-bordered" id="tableData">
<thead>
<tr class="table-secondary">
<th rowspan="2">구분</th>
<th rowspan="2">누계</th>
<th:block th:unless="${#lists.isEmpty(searchParams.sangbo)}">
<th th:colspan="${searchParams.sangbo.size()}">상보</th>
</th:block>
<th:block th:unless="${#lists.isEmpty(searchParams.rating)}">
<th th:colspan="${searchParams.rating.size()}">평과결과별</th>
</th:block>
</tr>
<tr class="table-secondary">
<th:block th:unless="${#lists.isEmpty(searchParams.sangbo)}">
<th:block th:each="sangbo:${searchParams.sangbo}">
<th th:if="${sangbo eq 'OGC002'}">지방청</th>
<th th:if="${sangbo eq 'OGC003'}">경찰서</th>
</th:block>
</th:block>
<th:block th:unless="${#lists.isEmpty(searchParams.rating)}">
<th:block th:each="commonCode:${session.commonCode.get('AAR')}">
<th:block
th:if="${#lists.contains(searchParams.rating, commonCode.itemCd)}">
<th th:text="${commonCode.itemValue}"></th>
</th:block>
</th:block>
</th:block>
</tr>
</thead>
<tbody class="table-group-divider">
<th:block th:each="total:${totalList}">
<tr>
<td th:text="${total.itemValue}"></td>
<td th:text="${total.cnt}"></td>
<th:block th:each="sangbo:${searchParams.sangbo}">
<th:block th:each="sangboList:${sangboList}">
<th:block
th:if="${sangboList.affairType eq sangbo} and ${total.wrtOrgan eq sangboList.wrtOrgan}">
<td th:text="${sangboList.cnt}"></td>
</th:block>
</th:block>
</th:block>
<th:block th:each="rating:${searchParams.rating}">
<th:block th:each="arrCntList:${arrCntList}">
<th:block
th:if="${arrCntList.affairType eq rating} and ${total.wrtOrgan eq arrCntList.wrtOrgan}">
<td th:text="${arrCntList.cnt}"></td>
</th:block>
</th:block>
</th:block>
</tr>
</th:block>
</tbody>
</table>
</div>
</div>
</div>