From d5af7fb88d9295e239ba268d8a0d942a6674831c Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 14 Nov 2023 13:10:19 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=EA=B3=84=20=EC=B4=88=EA=B8=B0?= =?UTF-8?q?=ED=99=94=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WEB-INF/jsp/fims/stat/stat01010-main.jsp | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) 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 c70b625c..4ad932c9 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 @@ -227,6 +227,26 @@ $(document).ready(function(){ **************************************************************************/ $P.fnReset = () => { + var searchForm = $("#frmSearch--${pageName}"); + searchForm.find("input[type='radio'][name='taskSeCd'][value='']").prop("checked", true); + $("select[id='#dayColumn--${pageName}']").find("option:eq(0)").prop("selected", true); + $("#firstDay--${pageName}").datepicker('setDate', new Date()); + $("#lastDay--${pageName}").datepicker('setDate', new Date()); + + var searchForMenu = $("#searchForMenu--${pageName}"); + searchForMenu.find("select").each(function(){ $(this).find("option:eq(0)").prop("selected", true); }); + searchForMenu.find("input[type='checkbox']").prop("checked", false); + searchForMenu.find("input[type='text']").val(""); + + $("#groupLevel1--${pageName}").find("option:eq(0)").prop("selected", true); + $("#groupLevel2--${pageName}").val(""); + $("#groupLevel3--${pageName}").val(""); + $("#groupLevel4--${pageName}").val(""); + $("#preset--${pageName}").find("option:eq(0)").prop("selected", true); + $("#refListYn--${pageName}").find("option:eq(0)").prop("selected", true); + + $P.changeGrid(); + $P.showDetailGrid(); } //그룹핑 요청 정보 추출 @@ -574,9 +594,6 @@ $(document).ready(function(){ } initDatepicker("frmSearch--${pageName}"); //달력 초기화 - $("#firstDay--${pageName}").datepicker('setDate', new Date()); - $("#lastDay--${pageName}").datepicker('setDate', new Date()); - $("#dayColumn--${pageName}").append(document.getElementById("dayColumnDatalist--${pageName}").innerHTML); @@ -603,7 +620,7 @@ $(document).ready(function(){ $("#refListYn--${pageName}").on('change', () => $P.showDetailGrid()); - $P.changeGrid(); + $P.fnReset(); });