diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp index 82a6be77..c70b625c 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp @@ -358,11 +358,28 @@ $(document).ready(function(){ //그리드 모양 변경 $P.changeGrid = () => { + //그룹단위 초기화 + if($("#groupLevel2--${pageName}").val() == ""){ + $("#groupLevel3--${pageName}").val(""); + $("#groupLevel3--${pageName}").attr("disabled","disabled"); + } else { + $("#groupLevel3--${pageName}").removeAttr("disabled"); + } + + if($("#groupLevel3--${pageName}").val() == ""){ + $("#groupLevel4--${pageName}").val(""); + $("#groupLevel4--${pageName}").attr("disabled","disabled"); + } else { + $("#groupLevel4--${pageName}").removeAttr("disabled"); + } + + //그리드 초기화 $("#masterThead--${pageName}").html(""); $("#masterTbody--${pageName}").html(""); $("#detailThead--${pageName}").html(""); $("#detailTbody--${pageName}").html(""); + //상단 그리드 var level1Text = $("#groupLevel1--${pageName}").find(":selected").text(); $("#masterThead--${pageName}").append(""+level1Text+"");