From a277ed65daa52375e0adaee44466427676cb0cb2 Mon Sep 17 00:00:00 2001 From: JoJH Date: Thu, 7 Nov 2024 14:39:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AF=BC=EC=9B=90=EC=83=81=EB=8B=B4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04020-info.jsp | 4 ++-- src/main/webapp/resources/js/fims/excl/excl01020.js | 6 +++--- src/main/webapp/resources/js/fims/sprt/sprt04020.js | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04020-info.jsp index c45594ea..79148ee4 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt04020-info.jsp @@ -32,7 +32,7 @@ - +
@@ -139,7 +139,7 @@ $P.$findn("frmEdit").find("input,textarea,select").prop("disabled", true); // button 요소들을 disabled - $P.$findn("btnLevyExclYmd").prop("disabled", true); // 부과제외 일자 달력 버튼 + $P.$findn("btnDscsnYmd").prop("disabled", true); // 상담일자 달력 버튼 $P.$findn("btnSave").prop("disabled", true); // 저장 버튼 } else if ($P.callPurpose == "update") { $P.$findn("cvlcptRcptSeCd").prop("disabled", true); // 민원 접수 구분 코드 diff --git a/src/main/webapp/resources/js/fims/excl/excl01020.js b/src/main/webapp/resources/js/fims/excl/excl01020.js index b3e30bb8..1dda2870 100644 --- a/src/main/webapp/resources/js/fims/excl/excl01020.js +++ b/src/main/webapp/resources/js/fims/excl/excl01020.js @@ -32,9 +32,9 @@ function newExcl01020Control(pageName, doctx="[data-doctx='excl01020']") { ctrl.urls.create = wctx.url("/" + item.data.TASK_SE_CD + pageObject[pageName].prefixUrl + "/020/create.do"); // 등록 ctrl.urls.update = wctx.url("/" + item.data.TASK_SE_CD + pageObject[pageName].prefixUrl + "/020/update.do"); // 수정 - // 부과제외 일자 - if (item.data.LEVY_EXCL_YMD == null) { - $(ctrl.find("[name='levyExclYmd']")).datepicker("setDate", TODAY()); + // 등록 + if (!item.data.LEVY_EXCL_ID) { + $(ctrl.find("[name='levyExclYmd']")).datepicker("setDate", TODAY()); // 부과제외 일자 } }; diff --git a/src/main/webapp/resources/js/fims/sprt/sprt04020.js b/src/main/webapp/resources/js/fims/sprt/sprt04020.js index 0fd2cc7e..ca456bcd 100644 --- a/src/main/webapp/resources/js/fims/sprt/sprt04020.js +++ b/src/main/webapp/resources/js/fims/sprt/sprt04020.js @@ -25,6 +25,11 @@ function newSprt04020Control(pageName, doctx="[data-doctx='sprt04020']") { // 업무구분에 따른 URL 변경 ctrl.urls.create = wctx.url("/" + item.data.TASK_SE_CD + pageObject[pageName].prefixUrl + "/020/create.do"); // 등록 ctrl.urls.update = wctx.url("/" + item.data.TASK_SE_CD + pageObject[pageName].prefixUrl + "/020/update.do"); // 수정 + + // 등록 + if (!item.data.CVLCPT_DSCSN_ID) { + $(ctrl.find("[name='dscsnYmd']")).datepicker("setDate", TODAY()); // 상담 일자 + } }; // 저장 callback