From a50f2dda1f91d592a0a1296f01b0cbee2c98b371 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Fri, 3 Nov 2023 10:07:54 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=EA=B3=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/stat/StatQuery.java | 2 +- ...tController.java => Stat01Controller.java} | 17 +++- .../cokr/xit/fims/task/web/CmnController.java | 10 ++- .../WEB-INF/jsp/fims/stat/stat01010-main.jsp | 88 +++++++++++++++++++ .../webapp/WEB-INF/jsp/include/dashboard.jsp | 2 +- 5 files changed, 114 insertions(+), 5 deletions(-) rename src/main/java/cokr/xit/fims/stat/web/{StatController.java => Stat01Controller.java} (82%) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp diff --git a/src/main/java/cokr/xit/fims/stat/StatQuery.java b/src/main/java/cokr/xit/fims/stat/StatQuery.java index a4d7e784..e7b41378 100644 --- a/src/main/java/cokr/xit/fims/stat/StatQuery.java +++ b/src/main/java/cokr/xit/fims/stat/StatQuery.java @@ -32,7 +32,7 @@ public class StatQuery extends CmmnQuery { private String[] categorization; /** - * 항목 추가 분류 방법 + * 항목 분류 방법 추가 옵션 */ private String[] categorizationAddOption; diff --git a/src/main/java/cokr/xit/fims/stat/web/StatController.java b/src/main/java/cokr/xit/fims/stat/web/Stat01Controller.java similarity index 82% rename from src/main/java/cokr/xit/fims/stat/web/StatController.java rename to src/main/java/cokr/xit/fims/stat/web/Stat01Controller.java index 716fe94c..ca63f1b8 100644 --- a/src/main/java/cokr/xit/fims/stat/web/StatController.java +++ b/src/main/java/cokr/xit/fims/stat/web/Stat01Controller.java @@ -22,7 +22,7 @@ import cokr.xit.fims.stat.service.StatService; * {웹 컨텍스트}/stat 로 접근할 수 있다. * @author leebj */ -public class StatController extends ApplicationController { +public class Stat01Controller extends ApplicationController { @Resource(name="statService") private StatService statService; @@ -33,6 +33,21 @@ public class StatController extends ApplicationController { @Resource(name="userMapper") protected UserMapper userMapper; + /** 통계 메인 화면을 연다. + * @return fims/stat/stat01010-main + */ + public ModelAndView statMain() { + + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/stat/stat01010-main"); + mav.addObject("pageName", "stat01010-main"); + + Map> commonCodes = getCodesOf("FIM054"); + mav.addObject("FIM054List", commonCodes.get("FIM054")); + + return mav; + } + public ModelAndView getStatistics(StatQuery statQuery) { ModelAndView mav = new ModelAndView("jsonView"); diff --git a/src/main/java/cokr/xit/fims/task/web/CmnController.java b/src/main/java/cokr/xit/fims/task/web/CmnController.java index 70dcd114..8518271e 100644 --- a/src/main/java/cokr/xit/fims/task/web/CmnController.java +++ b/src/main/java/cokr/xit/fims/task/web/CmnController.java @@ -366,8 +366,14 @@ public class CmnController { } @Controller - @RequestMapping(name="통계", value="/stat") - class StatController extends cokr.xit.fims.stat.web.StatController { + @RequestMapping(name="통계", value="/stat/stat01") + class Stat01Controller extends cokr.xit.fims.stat.web.Stat01Controller { + + @Override + @RequestMapping(name="통계 메인", value="/010/main.do") + public ModelAndView statMain() { + return super.statMain(); + } @Override @RequestMapping(name="통계 요청", value="/010/info.do") 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 new file mode 100644 index 00000000..16721103 --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/stat/stat01010-main.jsp @@ -0,0 +1,88 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> + +통계1 +
+
+
+ + +
+ + + + +
+ + + +
+ + +
+
+ + +
+
+ + +
+ +
+ \ 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 5f959e70..755d9184 100644 --- a/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/dashboard.jsp @@ -284,7 +284,7 @@ function fnLoadStatisticsDatas(){ //통계 데이터 조회 function fnLoadStatisticsData(queryParam, cursor, statType){ ajax.get({ - url : wctx.url("/stat/010/info.do"), + url : wctx.url("/stat/stat01/010/info.do"), data : queryParam, success : (resp) => { var statData = resp.stat;