From 97f1ddab417a6b0f94ddc77c66e8cd21903ebdda Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 28 Dec 2023 17:15:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=ED=8C=80=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20=EC=97=85=EB=AC=B4=EA=B5=AC=EB=B6=84=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/crdn/crdn05010-main.jsp | 2 +- .../WEB-INF/jsp/fims/crdn/crdn07010-main.jsp | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) 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 3cd5daa7..b5b1b4e4 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 @@ -222,7 +222,7 @@ $(document).ready(function(){ case "BPV" : case "DPV" : case "ECA" : - case "미세먼지" : + case "DVS" : $("#btnInsertByFile--${pageName}").show(); break; case "TPV" : diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp index 9408f35b..c3a23e87 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn07010-main.jsp @@ -414,6 +414,7 @@ $(document).ready(function(){ $P.fnSave = () => { var formFields = new FimsFormFields("#frmEdit--${pageName}"); var data = formFields.get(); + data.taskSeCd = $("#frmSearch--${pageName} input[name='taskSeCd']:checked").val(); ajax.get({ @@ -480,7 +481,21 @@ $(document).ready(function(){ * 초기화 **************************************************************************/ var defaultBizValue = $("#layout-navbar input[name='taskSeCd']:checked").val(); - $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true); + if(defaultBizValue == "PVS" || defaultBizValue == "BPV"){ + $("#frmSearch--${pageName} input[name='taskSeCd'][value='" + defaultBizValue + "']").prop("checked",true); + } else { + var taskForUser = MY_INFO.info.taskForUser; + var hasPVS = taskForUser.indexOf("PVS") != -1; + var hasBPV = taskForUser.indexOf("BPV") != -1; + if(hasPVS && !hasBPV){ + $("#frmSearch--${pageName} input[name='taskSeCd'][value='PVS']").prop("checked",true); + } else if(!hasPVS && hasBPV){ + $("#frmSearch--${pageName} input[name='taskSeCd'][value='BPV']").prop("checked",true); + } else { + $("#frmSearch--${pageName} input[name='taskSeCd']").eq(0).prop("checked",true); + } + } + $P.fnResetAndChangeBiz(defaultBizValue); $("#frmSearch--${pageName} input[name='taskSeCd']").each(function(i) {