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 = []; /**