From b3a36cd2349cd3a4018a16250fe6ce8331d8374c Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 13 Sep 2023 10:58:14 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=85=EB=AC=B4=EC=8B=9C=EC=8A=A4=ED=85=9C?= =?UTF-8?q?=20=EC=88=98=EB=8F=99=20=ED=86=B5=EB=B3=B4=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 41 +++++++++++++++++++ .../WEB-INF/jsp/fims/superUser-main.jsp | 29 +++++++++++++ 2 files changed, 70 insertions(+) diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index ee54dbdd..7310b129 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -1,6 +1,8 @@ package cokr.xit.fims.base; import java.io.File; +import java.util.ArrayList; +import java.util.List; import javax.annotation.Resource; @@ -13,6 +15,7 @@ import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.user.ManagedUser; import cokr.xit.fims.cmmn.DirectoryStructureToJson; import cokr.xit.fims.cmmn.DirectoryStructureToJson.Node; +import cokr.xit.fims.crdn.service.bean.ImportServiceBean; import cokr.xit.interfaces.smg.service.bean.SmgServiceBean; @Controller @@ -20,6 +23,9 @@ public class UserController extends cokr.xit.base.user.web.UserController interfaceKeys = new ArrayList(); + interfaceKeys.add(interfaceKey); + importServiceBean.createCrdns(interfaceKeys); + + break; + } + case "smgSend" : { + + break; + } + case "epostSend" : { + + break; + } + case "epostReceive" : { + + break; + } + default: + + } + mav.setViewName("jsonView"); + return mav; + } @RequestMapping(name="서버 파일 현황 조회",value="/superUser/getFileTree.do") public ModelAndView getFileTree() throws Exception { diff --git a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp index 8ebcffc5..a0951965 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/superUser-main.jsp @@ -17,6 +17,12 @@ +
+
+ +
+
+
@@ -79,6 +85,29 @@ function exceuteBatch(batch){ }); } +function exceuteAlert(alertName){ + if(alertName != "smgReceive"){ + return; + } + + var interfaceKey = prompt("인터페이스키를 입력하세요."); + + if(interfaceKey == null || interfaceKey == ""){ + return; + } + + ajax.post({ + url : wctx.url("/user/superUser/executeAlert.do"), + data : { + alertName : alertName, + interfaceKey : interfaceKey + }, + success : resp => { + dialog.alert("실행되었습니다."); + } + }); +} + var tempPathArray = []; /**