diff --git a/src/main/java/com/dbnt/faisp/main/userInfo/model/UserCareer.java b/src/main/java/com/dbnt/faisp/main/userInfo/model/UserCareer.java index 95013370..4e2630f1 100644 --- a/src/main/java/com/dbnt/faisp/main/userInfo/model/UserCareer.java +++ b/src/main/java/com/dbnt/faisp/main/userInfo/model/UserCareer.java @@ -65,6 +65,8 @@ public class UserCareer{ @Column(name = "wrt_dt") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm") private LocalDateTime wrtDt; + @Column(name = "in_office_yn") + private String inOfficeYn; @Transient diff --git a/src/main/resources/static/js/police/careerMgt.js b/src/main/resources/static/js/police/careerMgt.js index 85f15886..d92f6536 100644 --- a/src/main/resources/static/js/police/careerMgt.js +++ b/src/main/resources/static/js/police/careerMgt.js @@ -111,6 +111,7 @@ $(document).on('change', '#positionCheckBox', function (){ $(document).on('click', '#saveBtn', function (){ if(checkValue()){ contentFade("in"); + document.getElementById("endDate").disabled = false; const formData = new FormData($("#careerForm")[0]); $.ajax({ type : 'POST', @@ -205,3 +206,30 @@ function checkValue(){ } return flag; } + +$(document).on('change', '#inOfficeYn', function (){ + const today = new Date(); + const year = today.getFullYear(); + const month = ('0' + (today.getMonth() + 1)).slice(-2); + const day = ('0' + today.getDate()).slice(-2); + const dateString = year + '-' + month + '-' + day; + if($("#startDate").val() == ""){ + alert("근무시작일을 입력해주세요"); + $('#startDate').focus(); + this.checked = false; + } + + if(this.checked){ + $(this).attr('value', 'Y'); + $("#endDate").val(dateString); + $("#endDate").attr("disabled",true); + }else{ + $(this).attr('value', 'N'); + $("#endDate").val(''); + $("#endDate").removeAttr("disabled"); + } + console.log($("#inOfficeYn").val()); + + + +}) diff --git a/src/main/resources/templates/faStatistics/asfCov/asfCov.html b/src/main/resources/templates/faStatistics/asfCov/asfCov.html index 50525066..7572ab92 100644 --- a/src/main/resources/templates/faStatistics/asfCov/asfCov.html +++ b/src/main/resources/templates/faStatistics/asfCov/asfCov.html @@ -101,15 +101,15 @@ 사건담당경찰서 단속경찰서 단속함정 - 압송 + 압송 미압송 - 현장조사 - 기타 - 검사인원 - 양성 - 음성 + 현장조사 + 기타 + 검사인원 + 양성 + 음성 diff --git a/src/main/resources/templates/ivsgt/ivsgtEditModal.html b/src/main/resources/templates/ivsgt/ivsgtEditModal.html index 0473f627..8838c91f 100644 --- a/src/main/resources/templates/ivsgt/ivsgtEditModal.html +++ b/src/main/resources/templates/ivsgt/ivsgtEditModal.html @@ -57,7 +57,7 @@
- + +
+
+
+ + +
+
+
+ + +
+
+ \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/board/boardPage.html b/src/main/resources/templates/publicBoard/board/boardPage.html index 4ef8bfc6..df87551a 100644 --- a/src/main/resources/templates/publicBoard/board/boardPage.html +++ b/src/main/resources/templates/publicBoard/board/boardPage.html @@ -65,22 +65,25 @@ - + + + - - - + - + + + + @@ -92,8 +95,6 @@ - -
순번 제목첨부파일댓글 관서 부서 계급 작성자 작성일시첨부파일댓글
diff --git a/src/main/resources/templates/publicBoard/board/boardViewModal.html b/src/main/resources/templates/publicBoard/board/boardViewModal.html index a26d8e32..82034f67 100644 --- a/src/main/resources/templates/publicBoard/board/boardViewModal.html +++ b/src/main/resources/templates/publicBoard/board/boardViewModal.html @@ -165,5 +165,7 @@ + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/notice/noticeEditModal.html b/src/main/resources/templates/publicBoard/notice/noticeEditModal.html index 8b18ae45..c0fe555c 100644 --- a/src/main/resources/templates/publicBoard/notice/noticeEditModal.html +++ b/src/main/resources/templates/publicBoard/notice/noticeEditModal.html @@ -67,6 +67,8 @@ \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/notice/noticePage.html b/src/main/resources/templates/publicBoard/notice/noticePage.html index 9c74d7f4..499492e4 100644 --- a/src/main/resources/templates/publicBoard/notice/noticePage.html +++ b/src/main/resources/templates/publicBoard/notice/noticePage.html @@ -68,22 +68,27 @@ - + + + - - - + + + + + @@ -95,8 +100,6 @@ - -
순번 제목첨부파일댓글 관서 부서 계급 작성자 작성일시첨부파일댓글
diff --git a/src/main/resources/templates/publicBoard/notice/noticeViewModal.html b/src/main/resources/templates/publicBoard/notice/noticeViewModal.html index 8f5d532b..cbc1f0bf 100644 --- a/src/main/resources/templates/publicBoard/notice/noticeViewModal.html +++ b/src/main/resources/templates/publicBoard/notice/noticeViewModal.html @@ -165,5 +165,7 @@ + \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/qna/qnaPage.html b/src/main/resources/templates/publicBoard/qna/qnaPage.html index 47655cfb..96c03c2e 100644 --- a/src/main/resources/templates/publicBoard/qna/qnaPage.html +++ b/src/main/resources/templates/publicBoard/qna/qnaPage.html @@ -66,22 +66,25 @@ - + + + - - - + - + + + + @@ -93,8 +96,6 @@ - -
순번 제목첨부파일댓글 관서 부서 계급 작성자 작성일시첨부파일댓글
diff --git a/src/main/resources/templates/publicBoard/reference/referenceEditModal.html b/src/main/resources/templates/publicBoard/reference/referenceEditModal.html index cc723187..f33982f2 100644 --- a/src/main/resources/templates/publicBoard/reference/referenceEditModal.html +++ b/src/main/resources/templates/publicBoard/reference/referenceEditModal.html @@ -85,6 +85,8 @@ \ No newline at end of file diff --git a/src/main/resources/templates/publicBoard/reference/referencePage.html b/src/main/resources/templates/publicBoard/reference/referencePage.html index 053a4977..df9ba9af 100644 --- a/src/main/resources/templates/publicBoard/reference/referencePage.html +++ b/src/main/resources/templates/publicBoard/reference/referencePage.html @@ -71,21 +71,24 @@ - + + + - - - + + + diff --git a/src/main/resources/templates/publicBoard/reference/referenceViewModal.html b/src/main/resources/templates/publicBoard/reference/referenceViewModal.html index 57714dab..05ed67fa 100644 --- a/src/main/resources/templates/publicBoard/reference/referenceViewModal.html +++ b/src/main/resources/templates/publicBoard/reference/referenceViewModal.html @@ -171,5 +171,7 @@ + \ No newline at end of file
순번 제목첨부파일댓글 관서 부서 계급 작성자 작성일시첨부파일댓글