FAISP/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusEditModal.html

517 lines
32 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="crackdownStatusEditModalLabel" th:text="${crackdownStatus.cdsKey eq null ? '불법조업 외국어선 단속등록' : '불법조업 외국어선 단속현황 수정'}">></h5>
<button type="button" class="btn-close f-invert" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body" id="cdsEditBody">
<form action="#" method="post" id="cdsEditForm">
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
<input type="hidden" name="_csrf_header" th:value="${_csrf.headerName}"/>
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
<input type="hidden" name="cdsKey" th:value="${crackdownStatus.cdsKey}">
<th:block th:if="${crackdownStatus.fishingBoat ne null}">
<input type="hidden" name="fbKey" th:value="${crackdownStatus.fishingBoat.fbKey}">
</th:block>
<th:block th:if="${crackdownStatus.processResult ne null}">
<input type="hidden" name="prKey" th:value="${crackdownStatus.processResult.prKey}">
</th:block>
<input type="hidden" name="wrtOrgan" th:value="${crackdownStatus.wrtOrgan}">
<input type="hidden" name="wrtPart" th:value="${crackdownStatus.wrtPart}">
<input type="hidden" name="wrtUserGrd" th:value="${crackdownStatus.wrtUserGrd}">
<input type="hidden" name="wrtUserNm" th:value="${crackdownStatus.wrtUserNm}">
<input type="hidden" name="wrtDt" th:value="${#temporals.format(crackdownStatus.wrtDt, 'yyyy-MM-dd HH:mm')}">
<input type="hidden" id="saveYn" name="saveYn">
<div class="row mb-1">
나포정보
</div>
<div class="row mb-1">
<div class="col-sm-1">
<label class="col-12 col-form-label col-form-label-sm text-center">나포일시</label>
<label class="col-12 col-form-label col-form-label-sm text-center">NLL</label>
</div>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="napoDt" id="napoDt" th:value="${#temporals.format(crackdownStatus.napoDt, 'yyyy-MM-dd HH:mm')}">
<select class="form-select form-select-sm" name="nll">
<option value="Y" th:selected="${crackdownStatus.nll == 'Y'}">O</option>
<option value="N" th:selected="${crackdownStatus.nll == 'N'}">X</option>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">위반장소</label>
<div class="col-sm-6">
<input class="form-control form-control-sm" placeholder="위도" name="napoSeaPointLat" th:value="${crackdownStatus.napoSeaPointLat}">
<input class="form-control form-control-sm" placeholder="경도" name="napoSeaPointLon" th:value="${crackdownStatus.napoSeaPointLon}">
<input class="form-control form-control-sm" placeholder="상세내용" name="napoSeaPointDetail" th:value="${crackdownStatus.napoSeaPointDetail}">
</div>
</div>
<div class="row mb-1">
<div class="col-sm-1">
<label class="col-form-label col-form-label-sm text-center">위반내용</label>
<button class="border-0" id="violationAddBtn">
<i class="bi bi-plus-square text-primary"></i>
</button>
</div>
<div class="col-auto">
<div class="col-auto" id="violationDiv">
<th:block th:if="${#lists.isEmpty(crackdownStatus.violationList)}">
<div class="row">
<select class="form-select form-select-sm violation" name="violation" style="max-width: 90% !important;">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('VT')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"></option>
</th:block>
<option value="etc">직접입력</option>
</select>
</div>
</th:block>
<th:block th:if="${!#lists.isEmpty(crackdownStatus.violationList)}">
<th:block th:each="violation, i : ${crackdownStatus.violationList}">
<div class="row">
<input type="hidden" name="violationKey" th:value="${violation.violationKey}">
<select class="form-select form-select-sm violation" name="violation" style="max-width: 90% !important;">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('VT')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${crackdownStatus.violationList != null and commonCode.itemCd eq violation.violation}"></option>
</th:block>
<option th:selected="${violation.violation ne null && !#strings.contains(violation.violation, 'VT')}" value="etc">직접입력</option>
</select>
<th:block th:if="${violation.violation ne null and !#strings.contains(violation.violation, 'VT')}">
<div class="col-auto">
<input type="text" class="form-control form-control-sm" name="violationEtc" th:value="${violation.violation}">
</div>
</th:block>
<th:block th:if="${i.index > 0}">
<button type="button" class="btn btn-sm btn-outline-secondary w-auto opacity-75" id="violationRemoveBtn">
<i class="bi bi-dash-square text-danger"></i>
</button>
<input type="hidden" name="violationKey" th:value="${violation.violationKey}">
</th:block>
</div>
</th:block>
</th:block>
</div>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">침범유형</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="invasionType">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('IST')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq crackdownStatus.invasionType}"></option>
</th:block>
</select>
</div>
</div>
<div class="row mb-1">
특수공무집행방해
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">발생건수</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="obstrExspdCnt" th:value="${crackdownStatus.obstrExspdCnt}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">피해인원</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="personDamageCnt" th:value="${crackdownStatus.personDamageCnt}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">피해액</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="personDamageAmount" th:value="${crackdownStatus.personDamageAmount}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">상세내용</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="personDamageDetail" th:value="${crackdownStatus.personDamageDetail}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">발생건수</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="materialDamageCnt" th:value="${crackdownStatus.materialDamageCnt}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">피해액</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="materialDamageAmount" th:value="${crackdownStatus.materialDamageAmount}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">상세내용</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="materialDamageDetail" th:value="${crackdownStatus.materialDamageDetail}">
</div>
</div>
<div class="row mb-1">
검거기관
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">사건담당 기관</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="caseAgency">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('ATA')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq crackdownStatus.caseAgency}"></option>
</th:block>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">단속<br>경찰서</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="crackdownPolice" id="crackdownPolice">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('CPO')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq crackdownStatus.crackdownPolice}"></option>
</th:block>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">단속함정</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="crackdownBoat" id="crackdownBoat">
<option value="">선택</option>
<th:block th:each="num : ${#numbers.sequence(1,#lists.size(session.commonCode.get('CPO')))}">
<th:block th:if="${'CPO'+num == crackdownStatus.crackdownPolice}" th:each="commonCode:${session.commonCode.get('CPO'+num)}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}" th:selected="${crackdownStatus.crackdownBoat eq commonCode.itemCd}"></option>
</th:block>
</th:block>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">MMSI.NO</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="mmsi" th:value="${crackdownStatus.mmsi}">
</div>
</div>
<div class="row mb-1">
선박제원
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선명</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="boatNameKr" th:value="${crackdownStatus.fishingBoat.boatNameKr}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">톤수</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="tonCnt" th:value="${crackdownStatus.fishingBoat.tonCnt}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선질</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="boatMaterial" id="boatMaterial">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('BM')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${crackdownStatus.fishingBoat ne null && commonCode.itemCd eq crackdownStatus.fishingBoat.boatMaterial}"></option>
</th:block>
<option value="etc">직접입력</option>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선적 성</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="boatNnySung" th:value="${crackdownStatus.fishingBoat.boatNnySung}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선적 시</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="boatNnySi" th:value="${crackdownStatus.fishingBoat.boatNnySi}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선장명</label>
<div class="col-sm-2">
<th:block th:each="sailor:${crackdownStatus.sailorList}" th:if="${#strings.contains(sailor.position, 'POS001')}">
<input th:if="${sailor.position eq 'POS001'}" class="form-control form-control-sm" name="sailorNameKr" th:value="${sailor.sailorNameKr}">
</th:block>
<th:block th:if="${crackdownStatus.sailorList eq null || #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS001'].![1]) == null}">
<input class="form-control form-control-sm" name="sailorNameKr">
</th:block>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">출생년도</label>
<div class="col-sm-2">
<th:block th:each="sailor:${crackdownStatus.sailorList}" th:if="${#strings.contains(sailor.position, 'POS001')}">
<input th:if="${sailor.position eq 'POS001'}" class="form-control form-control-sm" name="birthdate" id="birthdate" th:value="${#temporals.format(sailor.birthdate, 'yyyy-MM-dd')}">
</th:block>
<th:block th:if="${crackdownStatus.sailorList eq null || #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS001'].![1]) == null}">
<input class="form-control form-control-sm" name="birthdate" id="birthdate">
</th:block>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선종</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="fisheryType" id="fisheryType">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('FT')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${crackdownStatus.fishingBoat ne null && commonCode.itemCd eq crackdownStatus.fishingBoat.fisheryType}"></option>
</th:block>
<option th:selected="${crackdownStatus.fishingBoat.fisheryType ne null && !#strings.contains(crackdownStatus.fishingBoat.fisheryType, 'FT')}" value="etc">기타</option>
</select>
<th:block th:if="${crackdownStatus.fishingBoat.fisheryType ne null && !#strings.contains(crackdownStatus.fishingBoat.fisheryType, 'FT')}">
<div class="col-auto">
<input type="text" class="form-control form-control-sm" name="fisheryTypeEtc" th:value="${crackdownStatus.fishingBoat.fisheryType}">
</div>
</th:block>
</div>
</div>
<div class="row mb-1">
어획물 축소기재
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">어종</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="catchFishSpecies" th:value="${crackdownStatus.fishingBoat.catchFishSpecies}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">수량</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="catchCnt" th:value="${crackdownStatus.fishingBoat.catchCnt}">
</div>
</div>
<div class="row mb-1">
범칙물
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">어종</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="offenseFishSpecies" th:value="${crackdownStatus.fishingBoat.offenseFishSpecies}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">어획량</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="offenseCatchCnt" th:value="${crackdownStatus.fishingBoat.offenseCatchCnt}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">폐기량</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="offenseIllegalWasteQuantity" th:value="${crackdownStatus.fishingBoat.offenseIllegalWasteQuantity}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">위판량</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="offenseQuantity" th:value="${crackdownStatus.fishingBoat.offenseQuantity}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">위판금액</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="offenseAmount" th:value="${crackdownStatus.fishingBoat.offenseAmount}">
</div>
</div>
<div class="row mb-1">
처리결과
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">처리현황</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="processStatus" id="processStatus">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('PR')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${crackdownStatus.processResult ne null && commonCode.itemCd eq crackdownStatus.processResult.processStatus}"></option>
</th:block>
<option th:selected="${crackdownStatus.processResult.processStatus ne null && !#strings.contains(crackdownStatus.processResult.processStatus, 'PR')}" value="etc">직접입력</option>
</select>
<th:block th:if="${crackdownStatus.processResult.processStatus ne null && !#strings.contains(crackdownStatus.processResult.processStatus, 'PR')}">
<div class="col-auto">
<input type="text" class="form-control form-control-sm" name="processStatusEtc" th:value="${crackdownStatus.processResult.processStatus}">
</div>
</th:block>
</div>
</div>
<div class="row mb-1">
담보금 납부
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">납부액</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="damboPayment" th:value="${crackdownStatus.fishingBoat.damboPayment}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">납부일시</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="paymentPaymentDt" id="paymentPaymentDt" th:value="${#temporals.format(crackdownStatus.fishingBoat.paymentPaymentDt, 'yyyy-MM-dd HH:mm')}">
</div>
</div>
<div class="row mb-1">
담보금 미납
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">미납액</label>
<div class="col-sm-2">
<input type="number" min="0" class="form-control form-control-sm" name="damboUnpaidAmount" th:value="${crackdownStatus.fishingBoat.damboUnpaidAmount}">
</div>
</div>
<div class="row mb-1">
선박처리
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">위탁시작일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="consignmentStartDt" id="consignmentStartDt" th:value="${#temporals.format(crackdownStatus.processResult.consignmentStartDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">위탁종료일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="consignmentEndDt" id="consignmentEndDt" th:value="${#temporals.format(crackdownStatus.processResult.consignmentEndDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">퇴거일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="evictionDt" id="evictionDt" th:value="${#temporals.format(crackdownStatus.processResult.evictionDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">환부일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="returnDt" id="returnDt" th:value="${#temporals.format(crackdownStatus.processResult.returnDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">몰수확정일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="confiscationDt" id="confiscationDt" th:value="${#temporals.format(crackdownStatus.processResult.confiscationDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">폐선일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="boatDisposalDt" id="boatDisposalDt" th:value="${#temporals.format(crackdownStatus.processResult.boatDisposalDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">폐선종류</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" name="boatDisposalType" th:value="${crackdownStatus.processResult.boatDisposalType}">
<option value="">선택</option>
<th:block th:each="commonCode:${session.commonCode.get('BDT')}">
<option th:value="${commonCode.itemCd}" th:text="${commonCode.itemValue}"
th:selected="${crackdownStatus.processResult ne null && commonCode.itemCd eq crackdownStatus.processResult.boatDisposalType}"></option>
</th:block>
</select>
</div>
</div>
<div class="row mb-1">
직접인계
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">직접인계일</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="directHandoverDt" id="directHandoverDt" th:value="${#temporals.format(crackdownStatus.processResult.directHandoverDt, 'yyyy-MM-dd')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">해점</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" placeholder="위도" name="handoverSeaPointLat" th:value="${crackdownStatus.processResult.handoverSeaPointLat}">
<input class="form-control form-control-sm" placeholder="경도" name="handoverSeaPointLon" th:value="${crackdownStatus.processResult.handoverSeaPointLon}">
<input class="form-control form-control-sm" placeholder="상세내용" name="handoverSeaPointDetail" th:value="${crackdownStatus.processResult.handoverSeaPointDetail}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">인계함정</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="handoverBoat" th:value="${crackdownStatus.processResult.handoverBoat}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">중국측</br>인수함정</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="middleTakeoverBoat" th:value="${crackdownStatus.processResult.middleTakeoverBoat}">
</div>
</div>
<div class="row mb-1">
구속/ 불구속
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선장</label>
<div class="col-sm-2">
<input type="hidden" name="captinSailorKey" th:value="${crackdownStatus.sailorList ne null ? #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS001'].![sailorKey]) : null}">
<select class="form-select form-select-sm" name="captin">
<option value="">선택</option>
<option value="Y" th:selected="${crackdownStatus.sailorList ne null && #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS001' && isRestriction == 'Y'].![1]) != null}">구속</option>
<option value="N" th:selected="${crackdownStatus.sailorList ne null && #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS001' && isRestriction == 'N'].![1]) != null}">불구속</option>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">항해장</label>
<div class="col-sm-2">
<input type="hidden" name="mateSailorKey" th:value="${crackdownStatus.sailorList ne null ? #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS002'].![sailorKey]) : null}">
<select class="form-select form-select-sm" name="mate">
<option value="">선택</option>
<option value="Y" th:selected="${crackdownStatus.sailorList ne null && #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS002' && isRestriction == 'Y'].![1]) != null}">구속</option>
<option value="N" th:selected="${crackdownStatus.sailorList ne null && #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS002' && isRestriction == 'N'].![1]) != null}">불구속</option>
</select>
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">기관장</label>
<div class="col-sm-2">
<input type="hidden" name="wardenSailorKey" th:value="${crackdownStatus.sailorList ne null ? #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS003'].![sailorKey]) : null}">
<select class="form-select form-select-sm" name="warden">
<option value="">선택</option>
<option value="Y" th:selected="${crackdownStatus.sailorList ne null && #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS003' && isRestriction == 'Y'].![1]) != null}">구속</option>
<option value="N" th:selected="${crackdownStatus.sailorList ne null && #aggregates.sum(crackdownStatus.sailorList.?[position == 'POS003' && isRestriction == 'N'].![1]) != null}">불구속</option>
</select>
</div>
<button type="button" class="btn btn-sm btn-primary col-auto" id="sailorAddBtn">선원 추가</button>
</div>
<div class="row mb-1" id="sailorDiv">
<th:block th:each="sailor:${crackdownStatus.sailorList}" th:if="${#strings.contains(sailor.position, 'POS005') || #strings.contains(sailor.position, 'POS006')}">
<div class="row">
<input type="hidden" name="sailorKey" th:value="${sailor.sailorKey}">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">선원 이름</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="sailorNameKr" th:value="${sailor.sailorNameKr}">
</div>
<div class="col-sm-2">
<select class="form-select form-select-sm sailor-list" name="sailor">
<option value="">선택</option>
<option value="Y" th:selected="${sailor.isRestriction == 'Y'}">구속</option>
<option value="N" th:selected="${sailor.isRestriction == 'N'}">불구속</option>
</select>
</div>
<button type="button" class="btn btn-sm btn-outline-secondary w-auto opacity-75" id="sailorRemoveBtn">
<i class="bi bi-dash-square text-danger"></i>
</button>
<input type="hidden" name="sailorKey" th:value="${sailor.sailorKey}">
</div>
</th:block>
</div>
<div class="row mb-1">
현장조사
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">나포일시</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="fieldIvsgtNapoDt" id="fieldIvsgtNapoDt" th:value="${#temporals.format(crackdownStatus.fieldIvsgtNapoDt, 'yyyy-MM-dd HH:mm')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">석방일시</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="fieldIvsgtReleaseDt" id="fieldIvsgtReleaseDt" th:value="${#temporals.format(crackdownStatus.fieldIvsgtReleaseDt, 'yyyy-MM-dd HH:mm')}">
</div>
<!--<label class="col-sm-1 col-form-label col-form-label-sm text-center">소요시간</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="fieldIvsgtTimeTaken" readonly>
</div>-->
<label class="col-sm-1 col-form-label col-form-label-sm text-center">영장청구<br>소요시간</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="warrantReqTakeTime">
</div>
</div>
<div class="row mb-1">
압송
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center">압송시작</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="pressurizedStartDt" id="pressurizedStartDt" th:value="${#temporals.format(crackdownStatus.pressurizedStartDt, 'yyyy-MM-dd HH:mm')}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">압송종료</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="pressurizedEndDt" id="pressurizedEndDt" th:value="${#temporals.format(crackdownStatus.pressurizedEndDt, 'yyyy-MM-dd HH:mm')}">
</div>
<!--<label class="col-sm-1 col-form-label col-form-label-sm text-center">압송<br>소요시간</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="pressurizedTimeTaken" readonly>
</div>-->
<label class="col-sm-1 col-form-label col-form-label-sm text-center">거리</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="distance" th:value="${crackdownStatus.distance}">
</div>
</div>
<div class="row mb-1">
압수어구
</div>
<div class="row mb-1">
<label class="col-sm-1 col-form-label col-form-label-sm text-center"></label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="confiscationFrame" th:value="${crackdownStatus.fishingBoat.confiscationFrame}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center"></label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="confiscationWidth" th:value="${crackdownStatus.fishingBoat.confiscationWidth}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center"></label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="confiscationJo" th:value="${crackdownStatus.fishingBoat.confiscationJo}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center"></label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="confiscationGae" th:value="${crackdownStatus.fishingBoat.confiscationGae}">
</div>
<label class="col-sm-1 col-form-label col-form-label-sm text-center">기타</label>
<div class="col-sm-2">
<input class="form-control form-control-sm" name="confiscationEtc" th:value="${crackdownStatus.fishingBoat.confiscationEtc}">
</div>
</div>
</form>
</div>
<div class="modal-footer bg-light">
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
<!--<button type="button" class="btn btn-warning" id="saveTempBtn">임시저장</button>-->
<button type="button" class="btn btn-primary" id="saveCrackdownStatusBtn">저장</button>
</div>
</html>