From f6db42e912b45a72508f0af94ec9b7fb79607762 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 11 Sep 2023 14:32:17 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B5=9C=EA=B3=A0=EA=B4=80=EB=A6=AC=EC=9E=90?= =?UTF-8?q?=20=ED=99=94=EB=A9=B4=20=EC=B6=94=EA=B0=80(=EB=B0=B0=EC=B9=98?= =?UTF-8?q?=20=EC=88=98=EB=8F=99=20=EC=8B=A4=ED=96=89=20=EB=93=B1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 45 ++++++++++++++++++- .../WEB-INF/jsp/fims/superUser-main.jsp | 40 +++++++++++++++++ src/main/webapp/WEB-INF/jsp/include/top.jsp | 2 +- src/main/webapp/WEB-INF/jsp/index.jsp | 2 +- .../fims/framework/common/xit-core-extend.css | 4 ++ 5 files changed, 90 insertions(+), 3 deletions(-) create mode 100644 src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index 9e5b2b5a..2c1d9bb0 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -1,8 +1,51 @@ package cokr.xit.fims.base; +import javax.annotation.Resource; + import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.user.ManagedUser; +import cokr.xit.interfaces.smg.service.bean.SmgServiceBean; @Controller -public class UserController extends cokr.xit.base.user.web.UserController {} \ No newline at end of file +public class UserController extends cokr.xit.base.user.web.UserController { + @Resource + SmgServiceBean smgServiceBean; + + @RequestMapping(name="최고관리자 메인",value="/superUserMain.do") + public ModelAndView superUserMain() { + ModelAndView mav = new ModelAndView(); + mav.setViewName("fims/superUser-main"); + return mav; + } + + @RequestMapping(name="배치실행",value="/executeBatch.do") + public ModelAndView executeBatch(String batch) { + ModelAndView mav = new ModelAndView(); + System.out.println("파라미터:"+batch); + switch (batch) { + case "smgReceive" : { + smgServiceBean.receivePetitions(); + break; + } + case "smgSend" : { + smgServiceBean.sendReplies(); + break; + } + case "epostSend" : { + + break; + } + case "epostReceive" : { + + break; + } + default: + + } + mav.setViewName("jsonView"); + return mav; + } +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp new file mode 100644 index 00000000..c7511fff --- /dev/null +++ b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp @@ -0,0 +1,40 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" session="false"%> +<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%> + +
+
+ 최고관리자 메뉴 +
+
+ +
+
+ + + + +
+
+ + +
+
+ +
+ + + +
+
+ + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/include/top.jsp b/src/main/webapp/WEB-INF/jsp/include/top.jsp index 13022671..e93b6265 100644 --- a/src/main/webapp/WEB-INF/jsp/include/top.jsp +++ b/src/main/webapp/WEB-INF/jsp/include/top.jsp @@ -2,7 +2,7 @@ <%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>