Example #1
0
 // 跳转到menu.jsp
 public String initMenu() {
   switch (flag) {
     case "R":
       { // retrieve
         menu = systemService.getMenu(menu);
         return "menuR";
       }
     case "U":
       { // update
         menu = systemService.getMenu(menu);
         return "menuR";
       }
     case "D":
       { // delete
         jsonObject = systemService.deleteMenu(menu);
         return JSON;
       }
     case "ASL":
       { // add same level
         return "menuR";
       }
     case "ANL":
       { // add next level
         return "menuR";
       }
     default:
       {
         return "menuL";
       }
   }
 }
Example #2
0
 // 异步加载全部角色信息
 public String getRoleAll() {
   jsonObject = systemService.getRoleAll(systemRole, getRowBounds());
   return JSON;
 }
Example #3
0
 // 异步加载[该菜单所属]角色信息
 public String getRole() {
   jsonObject = systemService.getRoleRecord(menu);
   return JSON;
 }
Example #4
0
 // 异步加载资源信息
 public String getAccessPermission() {
   jsonObject = systemService.getAccessPermission(menu);
   return JSON;
 }
Example #5
0
 // 保存菜单信息
 public String saveMenu() {
   jsonObject = systemService.saveMenu(menu, changes);
   return JSON;
 }
Example #6
0
 public String deleteRole() {
   jsonObject = systemService.deleteRole(ids);
   return JSON;
 }
Example #7
0
 // 异步加载tree
 public String getTreeNode() {
   jsonObject = systemService.getTreeNode();
   return JSON;
 }
Example #8
0
 public String initRoleEdit() {
   systemRole = systemService.getRoleRecord(systemRole);
   return "roleEdit";
 }
Example #9
0
 public String saveRoleEdit() {
   jsonObject = systemService.saveRoleEdit(systemRole);
   return JSON;
 }
Example #10
0
 public String initRoleDetail() {
   systemRole = systemService.getRoleRecord(systemRole);
   return "roleDetail";
 }
Example #11
0
 // 异步加载列表
 public String getUserList() {
   jsonObject = systemService.getUserList(user, getRowBounds());
   return JSON;
 }
Example #12
0
 public String saveUserEdit() {
   jsonObject = systemService.saveUserEdit(user);
   return JSON;
 }
Example #13
0
 public String initUserEdit() {
   systemRoleList = systemService.getRoleList();
   user = systemService.getUserRecord(user);
   return "userEdit";
 }
Example #14
0
 // *---------------------------------------
 // *----------- 用户管理 ↓-------------------
 // *---------------------------------------
 public String initUserAdd() {
   systemRoleList = systemService.getRoleList();
   return "userAdd";
 }