From b7cb243b8bd007a1a37afa427ed457ea9b7505e9 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Tue, 7 Nov 2023 15:12:47 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=EA=B3=84=20=ED=99=94=EB=A9=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 --- .../xit/fims/stat/web/Stat02Controller.java | 3 +- .../WEB-INF/jsp/fims/stat/stat01010-main.jsp | 152 +++++++++++++++--- .../WEB-INF/jsp/fims/stat/stat02010-main.jsp | 107 +++++++++++- .../WEB-INF/jsp/fims/stat/stat03010-main.jsp | 68 +++++++- .../WEB-INF/jsp/fims/stat/stat04010-main.jsp | 18 ++- .../webapp/WEB-INF/jsp/include/dashboard.jsp | 32 ++-- 6 files changed, 341 insertions(+), 39 deletions(-) diff --git a/src/main/java/cokr/xit/fims/stat/web/Stat02Controller.java b/src/main/java/cokr/xit/fims/stat/web/Stat02Controller.java index b9c4b42a..9ce70e8f 100644 --- a/src/main/java/cokr/xit/fims/stat/web/Stat02Controller.java +++ b/src/main/java/cokr/xit/fims/stat/web/Stat02Controller.java @@ -19,8 +19,9 @@ public class Stat02Controller extends ApplicationController { mav.setViewName("fims/stat/stat02010-main"); mav.addObject("pageName", "stat02010-main"); - Map> commonCodes = getCodesOf("FIM054"); + Map> commonCodes = getCodesOf("FIM054","FIM002"); mav.addObject("FIM054List", commonCodes.get("FIM054")); + mav.addObject("FIM002List", commonCodes.get("FIM002")); return mav; } 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 0a439fc8..ac0f1f4c 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 @@ -70,25 +70,25 @@
-
-
-
-
@@ -103,6 +103,10 @@
+
@@ -110,12 +114,42 @@ - - + +
+ +
- - +
@@ -140,26 +174,106 @@ $(document).ready(function(){ } + + $P.getGroupInfoList = () => { + var groupInfoLiost = []; + + var selected = $("#groupLevel1--${pageName}").find(":selected"); + groupInfoLiost.push({ + refCol : selected[0].dataset.refCol, + ctgrType : selected[0].dataset.ctgrType, + dtlCtgr : selected[0].dataset.dtlCtgr + }) + + selected = $("#groupLevel2--${pageName}").find(":selected"); + if(selected.val() == ""){ + return groupInfoLiost; + } + + groupInfoLiost.push({ + refCol : selected[0].dataset.refCol, + ctgrType : selected[0].dataset.ctgrType, + dtlCtgr : selected[0].dataset.dtlCtgr + }) + + selected = $("#groupLevel3--${pageName}").find(":selected"); + if(selected.val() == ""){ + return groupInfoLiost; + } + + groupInfoLiost.push({ + refCol : selected[0].dataset.refCol, + ctgrType : selected[0].dataset.ctgrType, + dtlCtgr : selected[0].dataset.dtlCtgr + }) + + selected = $("#groupLevel4--${pageName}").find(":selected"); + if(selected.val() == ""){ + return groupInfoLiost; + } + + groupInfoLiost.push({ + refCol : selected[0].dataset.refCol, + ctgrType : selected[0].dataset.ctgrType, + dtlCtgr : selected[0].dataset.dtlCtgr + }) + + return groupInfoLiost; + } + + $P.getNumberValueInfoList = () => { + var numberValuefoLiost = []; + + + + return numberValuefoLiost; + } + + $P.searchStat = () => { - var defaultQuery = { - structureType : "list", - refCol : ["OPNN_SBMSN_STTS_CD"], - ctgrType : ["code"], - dtlCtgr : ["FIM031"] + var statQuery = { + structureType : "aggregate" }; + + var formFields = new FimsFormFields("#frmSearch--${pageName}"); + var formFieldsData = formFields.get(); - ajax.get({ - url : wctx.url("/stat/stat01/010/info.do"), - data : defaultQuery, - success : (resp) => { + //업무구분 + if(formFieldsData.taskSeCd != ""){ + statQuery.taskSeCd = formFieldsData.taskSeCd; + } + + //집계 그룹 정보 + statQuery.groupInfoList = $P.getGroupInfoList(); + //수치값 정보 + statQuery.numberValueInfoList = $P.getNumberValueInfoList(); + + //상세목록 조회 여부 + statQuery.refListYn = formFieldsData.refListYn; + + + //ajax.get({ + // url : wctx.url("/stat/stat01/010/info.do"), + // data : defaultQuery, + // success : (resp) => { - } - }); + // } + //}); } initDatepicker("frmSearch--${pageName}"); //달력 초기화 + + $("#schDateOpt--${pageName}").append(document.getElementById("schDateOptDatalist--${pageName}").innerHTML); + + $("#groupLevel1--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML); + $("#groupLevel2--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML); + $("#groupLevel3--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML); + $("#groupLevel4--${pageName}").append(document.getElementById("groupLevelDatalist--${pageName}").innerHTML); + + $("#searchForMenu--${pageName}").append(document.getElementById("searchForMenuTemplate--${pageName}").innerHTML); + /************************************************************************** * element.on diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat02010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat02010-main.jsp index b1bcc2f9..3ac9f791 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat02010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat02010-main.jsp @@ -2,4 +2,109 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> 단속 통계 - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat03010-main.jsp index 96de85fd..0be80bc7 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat03010-main.jsp @@ -2,4 +2,70 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> 부과 통계 - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/fims/stat/stat04010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/stat/stat04010-main.jsp index 289932fb..436ff805 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/stat/stat04010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat04010-main.jsp @@ -2,4 +2,20 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> 발송 통계 - \ No newline at end of file + + + + + + + + + + + + + diff --git a/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp b/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp index ddbbe145..f17fe7e5 100644 --- a/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp @@ -210,8 +210,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "CRDN_SE_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM002"] + ctgrType : "code", + dtlCtgr : "FIM002" } ], codeSubsetInfoList : [ @@ -254,8 +254,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "등록대상이첩대상구분", - ctgrType : ["code"], - dtlCtgr : ["FIM999"] + ctgrType : "code", + dtlCtgr : "FIM999" } ], fixedItemId : ["등록대상","이첩대상"], @@ -284,8 +284,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "SNDNG_SE_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM047"] + ctgrType : "code", + dtlCtgr : "FIM047" } ], fixedItemId : ["01", "02", "03"], @@ -314,8 +314,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "OPNN_SBMSN_STTS_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM031"] + ctgrType : "code", + dtlCtgr : "FIM031" } ], codeSubsetInfoList : [ @@ -352,8 +352,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "CRDN_SE_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM002"] + ctgrType : "code", + dtlCtgr : "FIM002" } ], codeSubsetInfoList : [ @@ -395,8 +395,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "CRDN_STTS_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM010"] + ctgrType : "code", + dtlCtgr : "FIM010" } ], numberValueInfoList : [ @@ -436,8 +436,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "SNDNG_SE_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM047"] + ctgrType : "code", + dtlCtgr : "FIM047" } ], numberValueInfoList : [ @@ -469,8 +469,8 @@ function fnMakeStatReq(taskSeCd){ groupInfoList : [ { refCol : "OPNN_SBMSN_STTS_CD", - ctgrType : ["code"], - dtlCtgr : ["FIM031"] + ctgrType : "code", + dtlCtgr : "FIM031" } ], numberValueInfoList : [