diff --git a/src/main/resources/static/js/faStatistics/crackdownStatus.js b/src/main/resources/static/js/faStatistics/crackdownStatus.js index d5ac8e2d..1bb1e109 100644 --- a/src/main/resources/static/js/faStatistics/crackdownStatus.js +++ b/src/main/resources/static/js/faStatistics/crackdownStatus.js @@ -85,12 +85,13 @@ $(document).on('change', 'select[name="crackdownPolice"]', function (){ dynamicOption('select[name="crackdownBoat"]', $(this).val()); }); -$(document).on('click', '#sailorAddBtn', function (){ +$(document).on('click', '#sailorAddBtn', function (e){ + e.preventDefault(); $('#sailorDiv').append( '
' - + '' + + '' + '
' - + '' + + '' + '
' + '
' + '' + '
' - + '' + + '' + '
' ) }); -$(document).on('click', '#violationAddBtn', function (){ +$(document).on('click', '#violationAddBtn', function (e){ + e.preventDefault() let violation = ''; commonCode.VT.forEach(function (item){ violation += ''; @@ -118,19 +122,23 @@ $(document).on('click', '#violationAddBtn', function (){ + violation + '' + '' - + '' + + '' + '' ) }); -$(document).on('click', '#sailorRemoveBtn', function (){ +$(document).on('click', '#sailorRemoveBtn', function (e){ + e.preventDefault(); $(this).parent().remove(); let deleteKey = $(this).parent().children("input[name='sailorKey']").val(); $("#cdsEditForm").append(''); }); -$(document).on('click', '#violationRemoveBtn', function (){ +$(document).on('click', '#violationRemoveBtn', function (e){ + e.preventDefault() $(this).parent().remove(); let deleteKey = $(this).parent().children("input[name='violationKey']").val(); $("#cdsEditForm").append(''); @@ -500,7 +508,11 @@ function s2ab(s) { return buf; } -function getToday() { +function getToday(){ var date = new Date(); var year = date.getFullYear(); + var month = ("0" + (1 + date.getMonth())).slice(-2); + var day = ("0" + date.getDate()).slice(-2); + + return year + "-" + month + "-" + day; } diff --git a/src/main/resources/static/js/faStatistics/internationalCrimeArrest.js b/src/main/resources/static/js/faStatistics/internationalCrimeArrest.js index 023de1ce..4c73f46c 100644 --- a/src/main/resources/static/js/faStatistics/internationalCrimeArrest.js +++ b/src/main/resources/static/js/faStatistics/internationalCrimeArrest.js @@ -69,19 +69,19 @@ $(document).on('click', '#spiAddBtn', function (){ $("#spiDiv").append( '
' - + '' + + '' + '
' + '' + '
' - + '' + + '' + '
' + '' + '
' - + '' + + '' + '
' + '' + + '' + '
' ); } else { @@ -109,7 +109,7 @@ $(document).on('change', '#processResult', function (){ if ($(this).val() == 'etc') { $(this).after( '
' - + '' + + '' + '
' ); } else { @@ -136,7 +136,7 @@ $(document).on('change', '#crimeType', function (){ if ($(this).val() == 'CTH2') { makeArrestAreaDiv('장소'); $('#smugglingAmountDiv').append( - '' + '' + '
' + '' + '
' - + '' + + '' + '
' - + '' + + '' + '
' - + '' + + '' + '
' - + '' + + '' + '
' ); } else { $("#crimeNameDiv").append( - '' + '' + '
' - + '' + + '' + '
' ); } @@ -223,7 +223,7 @@ $(document).on('change', '#smugglingAmount', function (){ if ($(this).val() == 'etc') { $(this).parent().append( '
' - + '' + + '' + '
' ); } else { @@ -235,7 +235,7 @@ $(document).on('change', '#means', function (){ if ($(this).val() == 'etc') { $(this).parent().append( '
' - + '' + + '' + '
' ); } else { @@ -247,7 +247,7 @@ $(document).on('change', '#purpose', function (){ if ($(this).val() == 'etc') { $(this).parent().append( '
' - + '' + + '' + '
' ); } else { @@ -264,9 +264,9 @@ $(function(){ function makeEntryVisaDiv() { $('#spiWrapper').prepend( - '' + '' + '
' - + '' + + '' + '
' ); } @@ -274,16 +274,16 @@ function makeEntryVisaDiv() { function makeSpiInfoDiv(name) { $('#spiParentDiv').after( '
' - + '' + + '' + '
' + '
' - + '' + + '' + '
' - + '' + + '' + '
' - + '' + + '' + '
' - + '' + + '' + '
' + '
' + '
' @@ -303,7 +303,7 @@ function makeSeaAreaDiv(name) { }) $('#arrestAreaDiv').append( - '' + '' + '
' + '' + + '' + '
' + '
' ); @@ -344,7 +344,7 @@ function makeMeansDiv(name, code) { $('#spiParentDiv').after( '
' - + '' + + '' + '
' + '' + '' @@ -377,9 +377,9 @@ function makePurposeDiv(name) { function makeDestinationDiv(name) { $('#meansDiv').append( - '' + '' + '
' - + '' + + '' + '
' ); } @@ -387,9 +387,9 @@ function makeDestinationDiv(name) { function makeViolationAmountDiv() { $('#spiParentDiv').after( '
' - + '' + + '' + '
' - + '' + + '' + '
' + '
' ); diff --git a/src/main/resources/static/js/faStatistics/processResult.js b/src/main/resources/static/js/faStatistics/processResult.js index a74e0358..426c8043 100644 --- a/src/main/resources/static/js/faStatistics/processResult.js +++ b/src/main/resources/static/js/faStatistics/processResult.js @@ -93,31 +93,6 @@ $(document).on('change', 'select[name="caseNum"]', function (){ }); }); -$(document).on('click', '#violationAddBtn', function (){ - let violation = ''; - commonCode.VT.forEach(function (item){ - violation += ''; - }) - - $('#violationDiv').append( - '
' - + '' - + '' - + '
' - ) -}); - - -$(document).on('click', '#violationRemoveBtn', function (){ - $(this).parent().remove(); - let deleteKey = $(this).parent().children("input[name='violationKey']").val(); - $("#processResultEditForm").append(''); -}); - $(document).on('change', '.violation', function (){ if ($(this).val() == 'etc') { $(this).after( @@ -391,9 +366,13 @@ function s2ab(s) { return buf; } -function getToday() { +function getToday(){ var date = new Date(); var year = date.getFullYear(); + var month = ("0" + (1 + date.getMonth())).slice(-2); + var day = ("0" + date.getDate()).slice(-2); + + return year + "-" + month + "-" + day; } function dateTimeCalc(startDateTime, endDateTime) { diff --git a/src/main/resources/static/js/faStatistics/sailor.js b/src/main/resources/static/js/faStatistics/sailor.js index 1f15eadc..1f4a12c3 100644 --- a/src/main/resources/static/js/faStatistics/sailor.js +++ b/src/main/resources/static/js/faStatistics/sailor.js @@ -39,32 +39,6 @@ $(document).on('click', '.version-tr', function (){ getSailorHistoryDetail(versionNo, sailorKey, cdsKey, fbKey); }); - -$(document).on('click', '#violationAddBtn', function (){ - let violation = ''; - commonCode.VT.forEach(function (item){ - violation += ''; - }) - - $('#violationDiv').append( - '
' - + '' - + '' - + '
' - ) -}); - - -$(document).on('click', '#violationRemoveBtn', function (){ - $(this).parent().remove(); - let deleteKey = $(this).parent().children("input[name='violationKey']").val(); - $("#sailorEditForm").append(''); -}); - $(document).on('change', '.violation', function (){ if ($(this).val() == 'etc') { $(this).after( @@ -112,7 +86,7 @@ $(document).on('change', 'select[name="boatNameKr"]', function (){ $(document).on('click', '#sailorDownExcel', function (){ - exportExcel('불법조업 불법어선 처리현황'); + exportExcel('불법조업 불법어선 선원세부현황'); }); function getSailorHistoryDetail(versionNo, sailorKey, cdsKey, fbKey){ @@ -317,9 +291,13 @@ function s2ab(s) { return buf; } -function getToday() { +function getToday(){ var date = new Date(); var year = date.getFullYear(); + var month = ("0" + (1 + date.getMonth())).slice(-2); + var day = ("0" + date.getDate()).slice(-2); + + return year + "-" + month + "-" + day; } function dateTimeCalc(startDateTime, endDateTime) { diff --git a/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusEditModal.html b/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusEditModal.html index ac290128..c960f52b 100644 --- a/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusEditModal.html +++ b/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusEditModal.html @@ -47,7 +47,9 @@
- +
@@ -80,7 +82,9 @@
- +
@@ -412,7 +416,7 @@
- +
@@ -429,7 +433,9 @@
- +
diff --git a/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusHistoryViewModal.html b/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusHistoryViewModal.html index 4dbdc4e1..4ec5b466 100644 --- a/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusHistoryViewModal.html +++ b/src/main/resources/templates/faStatistics/crackdownStatus/crackdownStatusHistoryViewModal.html @@ -45,7 +45,7 @@ - + diff --git a/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrest.html b/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrest.html index 18ca1d3d..c7ca60f6 100644 --- a/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrest.html +++ b/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrest.html @@ -24,7 +24,7 @@
- @@ -89,8 +89,8 @@
- - +
+ @@ -120,7 +120,7 @@ - + @@ -191,9 +191,9 @@
지방청 경찰서국적
- - - + + +
diff --git a/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestEditModal.html b/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestEditModal.html index 66e08252..39bb2173 100644 --- a/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestEditModal.html +++ b/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestEditModal.html @@ -17,11 +17,11 @@
- +
- +
- +
- +
- +
- +
- +
@@ -86,37 +86,37 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- -
+ +
@@ -141,7 +141,7 @@
- +
- +
- +
- +
- +
+
@@ -208,22 +208,22 @@
- +
- +
- +
- +
- +
- +
- +
@@ -233,12 +233,12 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
+
- +
- +
- +
- +
- +
- +
- +
diff --git a/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestViewModal.html b/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestViewModal.html index cdaf35b0..5f9e5f83 100644 --- a/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestViewModal.html +++ b/src/main/resources/templates/faStatistics/internationalCrimeArrest/internationalCrimeArrestViewModal.html @@ -14,13 +14,13 @@
- +
- +
- +
- +
+ +
+
- +
- +
@@ -88,37 +88,37 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
- -
+ +
@@ -140,7 +140,7 @@
- +
- +
@@ -171,7 +171,7 @@
- +
- +
+
@@ -203,22 +203,22 @@
- +
- +
- +
- +
- +
- -
- + +
+
@@ -228,12 +228,12 @@
- +
- +
- +
- +
- +
- +
- +
- +
- +
+
- -
- + +
+
- -
- + +
+
- +
- +
- +
-
+
diff --git a/src/main/resources/templates/faStatistics/processResult/processResultEditModal.html b/src/main/resources/templates/faStatistics/processResult/processResultEditModal.html index e049f695..e4385481 100644 --- a/src/main/resources/templates/faStatistics/processResult/processResultEditModal.html +++ b/src/main/resources/templates/faStatistics/processResult/processResultEditModal.html @@ -21,11 +21,11 @@
- +
-
-
- @@ -68,7 +67,7 @@
- -
diff --git a/src/main/resources/templates/faStatistics/processResult/processResultHistoryViewModal.html b/src/main/resources/templates/faStatistics/processResult/processResultHistoryViewModal.html index b042b868..61fc0f03 100644 --- a/src/main/resources/templates/faStatistics/processResult/processResultHistoryViewModal.html +++ b/src/main/resources/templates/faStatistics/processResult/processResultHistoryViewModal.html @@ -46,7 +46,7 @@ - +
diff --git a/src/main/resources/templates/faStatistics/sailor/sailorEditModal.html b/src/main/resources/templates/faStatistics/sailor/sailorEditModal.html index 78f1c5db..0c56dd3f 100644 --- a/src/main/resources/templates/faStatistics/sailor/sailorEditModal.html +++ b/src/main/resources/templates/faStatistics/sailor/sailorEditModal.html @@ -21,11 +21,11 @@
- +
-