diff --git a/src/main/java/com/dbnt/faisp/main/faStatistics/crackdownsStatus/FishingBoatController.java b/src/main/java/com/dbnt/faisp/main/faStatistics/crackdownsStatus/FishingBoatController.java index 67cb7f10..1fa6e34c 100644 --- a/src/main/java/com/dbnt/faisp/main/faStatistics/crackdownsStatus/FishingBoatController.java +++ b/src/main/java/com/dbnt/faisp/main/faStatistics/crackdownsStatus/FishingBoatController.java @@ -1,6 +1,7 @@ package com.dbnt.faisp.main.faStatistics.crackdownsStatus; import com.dbnt.faisp.main.authMgt.service.AuthMgtService; +import com.dbnt.faisp.main.codeMgt.service.CodeMgtService; import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.CrackdownStatus; import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.FishingBoat; import com.dbnt.faisp.main.faStatistics.crackdownsStatus.model.ProcessResult; @@ -30,6 +31,7 @@ public class FishingBoatController { private final ViolationRepository violationRepository; private final CrackdownStatusRepository crackdownStatusRepository; private final FishingBoatRepository fishingBoatRepository; + private final CodeMgtService codeMgtService; @RequestMapping("/fishingBoat") public ModelAndView fishingBoat(@AuthenticationPrincipal UserInfo loginUser, FishingBoat fishingBoat) { @@ -90,6 +92,13 @@ public class FishingBoatController { fishingBoat.setWrtUserGrd(loginUser.getTitleCd()); fishingBoat.setWrtDt(LocalDateTime.now()); } + mav.addObject("ataList", codeMgtService.selectCodeMgtList("ATA")); + mav.addObject("cpoList", codeMgtService.selectCodeMgtList("CPO")); + mav.addObject("vtList", codeMgtService.selectCodeMgtList("VT")); + mav.addObject("ftList", codeMgtService.selectCodeMgtList("FT")); + mav.addObject("bmList", codeMgtService.selectCodeMgtList("BM")); + mav.addObject("prList", codeMgtService.selectCodeMgtList("PR")); + mav.addObject("bdtList", codeMgtService.selectCodeMgtList("BDT")); mav.addObject("fishingBoat", fishingBoat); return mav; } diff --git a/src/main/resources/static/js/faStatistics/fishingBoatMgt.js b/src/main/resources/static/js/faStatistics/fishingBoatMgt.js index 09af841b..9743ac85 100644 --- a/src/main/resources/static/js/faStatistics/fishingBoatMgt.js +++ b/src/main/resources/static/js/faStatistics/fishingBoatMgt.js @@ -10,6 +10,17 @@ function getFishingBoatEditModal(fbKey, cdsKey){ dataType:"html", success: function(html){ $("#fishingBoatEditModalContent").empty().append(html) + $(".dateSelector").datepicker({ + format: "yyyy-mm-dd", + language: "ko", + autoclose: true + }); + $(".timeSelector").datetimepicker({ + datepicker:false, + format:'H:i', + lang:'kr', + step:20 + }); $("#fishingBoatEditModal").modal('show'); }, error:function(){ diff --git a/src/main/resources/templates/faStatistics/fishingBoat/fishingBoatEditModal.html b/src/main/resources/templates/faStatistics/fishingBoat/fishingBoatEditModal.html index a865ecf3..3f92aa4c 100644 --- a/src/main/resources/templates/faStatistics/fishingBoat/fishingBoatEditModal.html +++ b/src/main/resources/templates/faStatistics/fishingBoat/fishingBoatEditModal.html @@ -33,124 +33,168 @@