diff --git a/src/main/java/cokr/xit/fims/base/ActionGroupController.java b/src/main/java/cokr/xit/fims/base/ActionGroupController.java index b369fde3..db5fe1f1 100644 --- a/src/main/java/cokr/xit/fims/base/ActionGroupController.java +++ b/src/main/java/cokr/xit/fims/base/ActionGroupController.java @@ -1,6 +1,18 @@ package cokr.xit.fims.base; import org.springframework.stereotype.Controller; +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.base.security.access.service.ActionQuery; @Controller -public class ActionGroupController extends cokr.xit.base.security.access.web.ActionGroupController {} \ No newline at end of file +public class ActionGroupController extends cokr.xit.base.security.access.web.ActionGroupController { + + @Override + public ModelAndView main() { + ModelAndView mav = getActionGroupList(new ActionQuery().setFetchAll(true)); + mav.setViewName("base/actionGroup/actionGroup-main"); + return mav.addObject("groupList", toJson(mav.getModel().get("groupList"))); + } + +} \ No newline at end of file diff --git a/src/main/java/cokr/xit/fims/base/AuthorityController.java b/src/main/java/cokr/xit/fims/base/AuthorityController.java index 93f1b5ff..8cb4169c 100644 --- a/src/main/java/cokr/xit/fims/base/AuthorityController.java +++ b/src/main/java/cokr/xit/fims/base/AuthorityController.java @@ -1,6 +1,18 @@ package cokr.xit.fims.base; import org.springframework.stereotype.Controller; +import org.springframework.web.servlet.ModelAndView; + +import cokr.xit.base.security.access.service.AuthorityQuery; @Controller -public class AuthorityController extends cokr.xit.base.security.access.web.AuthorityController {} \ No newline at end of file +public class AuthorityController extends cokr.xit.base.security.access.web.AuthorityController { + + @Override + public ModelAndView main() { + ModelAndView mav = getAuthorityList(new AuthorityQuery().setFetchAll(true)); + mav.setViewName("base/authority/authority-main"); + return mav.addObject("authorityList", toJson(mav.getModel().remove("authorityList"))); + } + +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/base/actionGroup/actionGroup-main.jsp b/src/main/webapp/WEB-INF/jsp/base/actionGroup/actionGroup-main.jsp index 539a88f4..4da949c2 100644 --- a/src/main/webapp/WEB-INF/jsp/base/actionGroup/actionGroup-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/actionGroup/actionGroup-main.jsp @@ -108,6 +108,7 @@ function searchaction${infoPrefix}s() { by:$("#by").val(), term:$("#term").val() }; + action${infoPrefix}Control.groups.query.fetchAll = true; action${infoPrefix}Control.groups.load(1); } diff --git a/src/main/webapp/WEB-INF/jsp/base/authority/authority-main.jsp b/src/main/webapp/WEB-INF/jsp/base/authority/authority-main.jsp index 218c8f3f..c04e3c8a 100644 --- a/src/main/webapp/WEB-INF/jsp/base/authority/authority-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/authority/authority-main.jsp @@ -93,6 +93,7 @@ function search${infoPrefix}s() { by:$("#by").val(), term:$("#term").val() }; + ${infoPrefix}Control.authorities.query.fetchAll = true; ${infoPrefix}Control.authorities.load(1); }