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"%>