diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp index c0d71b66..b282cf97 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn02010-main.jsp @@ -522,7 +522,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-7).date); - $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.photoInspectionControl.dataset.setData([]); $P.sameVehicleMainControl.dataset.setData([]); }; diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp index f248da83..aebdf2cf 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn03010-main.jsp @@ -188,7 +188,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); - $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.crdnControl.dataset.setData([]); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp index 2c712d8d..9f125878 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05010-main.jsp @@ -161,7 +161,7 @@ $(document).ready(function(){ * pageObject.function **************************************************************************/ $P.fnReset = () => { - $("#regDt--${pageName}").datepicker('setDate', new Date()); + $("#regDt--${pageName}").datepicker('setDate', TODAY()); $P.crdnControl.dataset.setData([]); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp index 39425dbc..cb9fdf77 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06010-main.jsp @@ -353,7 +353,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCrdnYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); - $('#schCrdnYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schCrdnYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.crdnControl.dataset.setData([]); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp index 3f330b6b..8c9b5a00 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn06020-info.jsp @@ -556,7 +556,7 @@ // 달력 초기화 initDatepicker("frmEdit--${pageName}"); - $("#crdnYmd--${pageName}").datepicker("setDate", new Date()); + $("#crdnYmd--${pageName}").datepicker("setDate", TODAY()); } // 업무구분에 따른 URL 설정 diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp index 2e8576a0..75786a66 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc01010-main.jsp @@ -305,7 +305,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); - $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.crdnControl.dataset.setData([]); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp index bd8f8e1a..28d0343b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc02010-main.jsp @@ -293,7 +293,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-31).date); - $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.crdnControl.dataset.setData([]); } @@ -600,7 +600,7 @@ $(document).ready(function(){ } var message = "※표지정보 조회 후 장애인차량이 아닌 자료는 서손처리 됩니다." - +"
※현재 날짜("+dateFormat.format(new Date())+")를 기준으로 차량번호로 조회합니다." + +"
※현재 날짜("+TODAY()+")를 기준으로 차량번호로 조회합니다." +"
표지조회를 실행하시겠습니까?" +"
부과대상 자료 : "+keys.length+"건"; diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp index 5e303837..8e1ace4f 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc03010-main.jsp @@ -278,7 +278,7 @@ $(document).ready(function(){ $("#byOutput--${pageName}").val("동적 검색"); $('#schCvlcptRcptYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-365).date); - $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schCvlcptRcptYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.crdnControl.dataset.setData([]); } diff --git a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp index c903c0f7..36114797 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/cvlc/cvlc04010-main.jsp @@ -219,7 +219,7 @@ $(document).ready(function(){ $P.fnReset = () => { $('#schDmndYmdFrom--${pageName}').datepicker('setDate', DateUtil.getDateDay(-5475).date); - $('#schDmndYmdTo--${pageName}').datepicker('setDate', new Date()); + $('#schDmndYmdTo--${pageName}').datepicker('setDate', TODAY()); $P.dmndControl.dataset.setData([]); } @@ -416,7 +416,7 @@ $(document).ready(function(){ size : "lg", init : () => { initDatepicker("seallDmndDialog--${pageName}"); - $('#rcptYmd--${pageName}').datepicker('setDate', new Date()); + $('#rcptYmd--${pageName}').datepicker('setDate', TODAY()); $('#btnCreate--${pageName}').on("click", () => $P.fnCreateDmnd()); }, onClose : () => {} diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp index cb8ef4dd..1eaee8c9 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat-main.jsp @@ -237,8 +237,8 @@ $(document).ready(function(){ searchForm.find("input[type='radio'][name='taskSeCd'][value='']").prop("checked", true); $("select[id='sggCd--${pageName}']").find("option:eq(1)").prop("selected", true); $("select[id='dayColumn--${pageName}']").find("option:eq(0)").prop("selected", true); - $("#firstDay--${pageName}").datepicker('setDate', new Date()); - $("#lastDay--${pageName}").datepicker('setDate', new Date()); + $("#firstDay--${pageName}").datepicker('setDate', TODAY()); + $("#lastDay--${pageName}").datepicker('setDate', TODAY()); var searchForMenu = $("#searchForMenu--${pageName}"); searchForMenu.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); diff --git a/src/main/webapp/resources/js/fims/framework/cmm/cmmnDateUtil.js b/src/main/webapp/resources/js/fims/framework/cmm/cmmnDateUtil.js index 0a975de6..03b7e201 100644 --- a/src/main/webapp/resources/js/fims/framework/cmm/cmmnDateUtil.js +++ b/src/main/webapp/resources/js/fims/framework/cmm/cmmnDateUtil.js @@ -1,3 +1,10 @@ +/* + * 현재날짜를 YYYY-MM-DD 포맷으로 반환 + */ +function TODAY(){ + return dateFormat.format(new Date()); +} + var DateUtil = { /*============================ * 현재날짜로부터 월 단위로 계산된 날짜(yyyymmdd) 반환