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) {