2022-11-04 08:46:23 +00:00
<!DOCTYPE html>
< html lang = "ko" xmlns:th = "http://www.thymeleaf.org" >
< div class = "modal-header" >
< h5 class = "modal-title" id = "sailorEditModalLabel" > 선원 세부 현황< / h5 >
< button type = "button" class = "btn-close" data-bs-dismiss = "modal" aria-label = "Close" > < / button >
< / div >
< div class = "modal-body" id = "sailorEditBody" >
< form action = "#" method = "post" id = "sailorEditForm" >
< 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 = "${sailor.crackdownStatus.cdsKey}" >
< input type = "hidden" name = "fbKey" th:value = "${sailor.fishingBoat.fbKey}" >
< input type = "hidden" name = "sailorKey" th:value = "${sailor.sailorKey}" >
< input type = "hidden" name = "wrtOrgan" th:value = "${sailor.wrtOrgan}" >
2022-11-11 00:43:54 +00:00
< input type = "hidden" name = "wrtPart" th:value = "${sailor.wrtPart}" >
< input type = "hidden" name = "wrtUserGrd" th:value = "${sailor.wrtUserGrd}" >
2022-11-04 08:46:23 +00:00
< input type = "hidden" name = "wrtUserNm" th:value = "${sailor.wrtUserNm}" >
< input type = "hidden" name = "wrtDt" th:value = "${#temporals.format(sailor.wrtDt, 'yyyy-MM-dd HH:mm')}" >
< input type = "hidden" id = "saveYn" name = "saveYn" >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 선박명< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 04:32:56 +00:00
< input class = "form-control form-control-sm" name = "boatNameKr" id = "boatNameKr" th:value = "${sailor.fishingBoat.boatNameKr}" readonly >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 단속경찰서< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 04:32:56 +00:00
< select class = "form-select form-select-sm" name = "crackdownPolice" id = "crackdownPolice" disabled >
2022-11-04 08:46:23 +00:00
< option value = "" > 선택< / option >
< th:block th:each = "commonCode:${session.commonCode.get('CPO')}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
th:selected="${sailor.crackdownStatus.crackdownPolice eq commonCode.itemCd}">< / option >
< / th:block >
< option value = "etc" th:selected = "${sailor.crackdownStatus.crackdownPolice ne null && sailor.crackdownStatus.crackdownPolice ne '' && !#strings.contains(sailor.crackdownStatus.crackdownPolice, 'CPO')}" > 직접입력< / option >
< / select >
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 단속함정< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 04:32:56 +00:00
< select class = "form-select form-select-sm" name = "crackdownBoat" id = "crackdownBoat" disabled >
2022-11-04 08:46:23 +00:00
< option value = "" > 선택< / option >
2022-11-11 00:43:54 +00:00
< th:block th:each = "num : ${#numbers.sequence(1,#lists.size(session.commonCode.get('CPO')))}" >
< th:block th:if = "${'CPO'+num == sailor.crackdownStatus.crackdownPolice}" th:each = "commonCode:${session.commonCode.get('CPO'+num)}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq sailor.crackdownStatus.crackdownBoat}">< / option >
< / th:block >
2022-11-04 08:46:23 +00:00
< / th:block >
< option value = "etc" th:selected = "${sailor.crackdownStatus.crackdownBoat ne null && sailor.crackdownStatus.crackdownBoat ne '' && !#strings.contains(sailor.crackdownStatus.crackdownBoat, 'CPO')}" > 직접입력< / option >
< / select >
< / div >
< / div >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 위반장소< / label >
< div class = "col-sm-6" >
2022-11-11 04:32:56 +00:00
< input class = "form-control form-control-sm" placeholder = "위도" name = "napoSeaPointLat" th:value = "${sailor.crackdownStatus.napoSeaPointLat}" readonly >
< input class = "form-control form-control-sm" placeholder = "경도" name = "napoSeaPointLon" th:value = "${sailor.crackdownStatus.napoSeaPointLon}" readonly >
< input class = "form-control form-control-sm" placeholder = "상세내용" name = "napoSeaPointDetail" th:value = "${sailor.crackdownStatus.napoSeaPointDetail}" readonly >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< / div >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-form-label col-form-label-sm text-center" > 위반내용< / label >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< div class = "col-auto" id = "violationDiv" >
< th:block th:if = "${#lists.isEmpty(sailor.violationList)}" >
2022-11-04 08:46:23 +00:00
< div class = "row" >
2022-11-11 04:32:56 +00:00
< select class = "form-select form-select-sm violation" name = "violation" style = "max-width: 90% !important;" disabled >
2022-11-04 08:46:23 +00:00
< 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 >
2022-11-11 00:43:54 +00:00
< th:block th:if = "${!#lists.isEmpty(sailor.violationList)}" >
< th:block th:each = "violation, i : ${sailor.violationList}" >
2022-11-04 08:46:23 +00:00
< div class = "row" >
< input type = "hidden" name = "violationKey" th:value = "${violation.violationKey}" >
2022-11-11 04:32:56 +00:00
< select class = "form-select form-select-sm violation" name = "violation" style = "max-width: 90% !important;" disabled >
2022-11-04 08:46:23 +00:00
< option value = "" > 선택< / option >
< th:block th:each = "commonCode:${session.commonCode.get('VT')}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
2022-11-11 00:43:54 +00:00
th:selected="${sailor.violationList != null and commonCode.itemCd eq violation.violation}">< / option >
2022-11-04 08:46:23 +00:00
< / 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" >
2022-11-11 00:43:54 +00:00
< input type = "text" class = "form-control form-control-sm" name = "violationEtc" th:value = "${violation.violation}" >
2022-11-04 08:46:23 +00:00
< / div >
< / th:block >
< th:block th:if = "${i.index > 0}" >
< input type = "hidden" name = "violationKey" th:value = "${violation.violationKey}" >
< / th:block >
< / div >
< / th:block >
< / th:block >
< / div >
< / div >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 선원명(한글)< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 00:43:54 +00:00
< input class = "form-control form-control-sm" name = "sailorNameKr" id = "sailorNameKr" th:value = "${sailor.sailorNameKr}" >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 선원명(중문)< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 00:43:54 +00:00
< input class = "form-control form-control-sm" name = "sailorNameCn" id = "sailorNameCn" th:value = "${sailor.sailorNameCn}" >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 생년월일< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 00:43:54 +00:00
< input class = "form-control form-control-sm" name = "birthdate" id = "birthdate" th:value = "${#temporals.format(sailor.birthdate, 'yyyy-MM-dd')}" >
2022-11-04 08:46:23 +00:00
< / div >
< / div >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 거주지< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "residence" >
< option value = "" > 선택< / option >
< th:block th:each = "commonCode:${session.commonCode.get('RSC')}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq sailor.residence}">< / option >
< / th:block >
< / select >
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 학력< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "education" >
< option value = "" > 선택< / option >
< th:block th:each = "commonCode:${session.commonCode.get('SED')}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq sailor.education}">< / option >
< / th:block >
< / select >
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 선박 내 직책< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "position" >
< option value = "" > 선택< / option >
< th:block th:each = "commonCode:${session.commonCode.get('POS')}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq sailor.position}">< / option >
< / th:block >
< / select >
< / div >
< / div >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 승선경력< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "career" >
< option value = "" > 선택< / option >
< th:block th:each = "commonCode:${session.commonCode.get('BE')}" >
< option th:value = "${commonCode.itemCd}" th:text = "${commonCode.itemValue}"
th:selected="${commonCode.itemCd eq sailor.career}">< / option >
< / th:block >
< / select >
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 동종 범죄경력< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "similarCriminalHistory" >
< option value = "" > 선택< / option >
< option value = "1" th:selected = "${sailor.similarCriminalHistory == 1}" > 1건< / option >
< option value = "2" th:selected = "${sailor.similarCriminalHistory == 2}" > 2건< / option >
< option value = "3" th:selected = "${sailor.similarCriminalHistory == 3}" > 3건< / option >
< option value = "4" th:selected = "${sailor.similarCriminalHistory == 4}" > 4이상< / option >
< option value = "0" th:selected = "${sailor.similarCriminalHistory == 0}" > 없음< / option >
< / select >
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 이종 범죄경력< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "heterogeneousCriminalHistory" >
< option value = "" > 선택< / option >
< option value = "1" th:selected = "${sailor.heterogeneousCriminalHistory == 1}" > 1건< / option >
< option value = "2" th:selected = "${sailor.heterogeneousCriminalHistory == 2}" > 2건< / option >
< option value = "3" th:selected = "${sailor.heterogeneousCriminalHistory == 3}" > 3건< / option >
< option value = "4" th:selected = "${sailor.heterogeneousCriminalHistory == 4}" > 4이상< / option >
< option value = "0" th:selected = "${sailor.heterogeneousCriminalHistory == 0}" > 없음< / option >
< / select >
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 검거이력< br > (나포이력, 선원 포함)< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
< select class = "form-select form-select-sm" name = "arrestHistory" >
< option value = "" > 선택< / option >
< option value = "1" th:selected = "${sailor.arrestHistory == 1}" > 1건< / option >
< option value = "2" th:selected = "${sailor.arrestHistory == 2}" > 2건< / option >
< option value = "3" th:selected = "${sailor.arrestHistory == 3}" > 3건< / option >
< option value = "4" th:selected = "${sailor.arrestHistory == 4}" > 4이상< / option >
< option value = "0" th:selected = "${sailor.arrestHistory == 0}" > 없음< / option >
< / select >
< / div >
< / div >
2022-11-28 06:57:44 +00:00
< div class = "row mb-1" >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 범죄경력< br > 세부내용< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 00:43:54 +00:00
< input class = "form-control form-control-sm" name = "criminalHistoryDetail" th:value = "${sailor.criminalHistoryDetail}" >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 임금< br > (월급여)< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 00:43:54 +00:00
< input class = "form-control form-control-sm" name = "monthlyWages" th:value = "${sailor.monthlyWages}" >
2022-11-04 08:46:23 +00:00
< / div >
2022-11-11 00:43:54 +00:00
< label class = "col-sm-1 col-form-label col-form-label-sm text-center" > 비고< / label >
2022-11-04 08:46:23 +00:00
< div class = "col-sm-2" >
2022-11-11 00:43:54 +00:00
< input class = "form-control form-control-sm" name = "note" th:value = "${sailor.note}" >
2022-11-04 08:46:23 +00:00
< / div >
< / div >
< / form >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-secondary" data-bs-dismiss = "modal" > 닫기< / button >
2022-11-11 00:43:54 +00:00
<!-- <button type="button" class="btn btn - warning" id="saveTempBtn">임시저장</button> -->
2022-11-04 08:46:23 +00:00
< button type = "button" class = "btn btn-primary" id = "saveSailorBtn" > 저장< / button >
< / div >
< / html >