use of org.osgl.mvc.annotation.GetAction in project act-eagle-allone by mailtous.
the class SysRoleController method edit.
@GetAction("edit_box/{id}")
public RenderAny edit(@Param(defLongVal = -1) Long id) {
SysRole sysRole = new SysRole();
// -1:新增
sysRole.setId(id);
if (id > 0) {
sysRole = sysRoleService.get(new Long(id));
}
return render("edit_box.html", sysRole);
}
use of org.osgl.mvc.annotation.GetAction in project act-eagle-allone by mailtous.
the class SysUserController method role_edit.
/**
* 角色分配窗口页
* @param id
* @return
*/
@GetAction("role_box/{userId}")
public RenderAny role_edit(Long userId) {
SysUser sysUser = sysUserService.get(userId);
List<SysRole> sysRoleList = sysRoleService.getAllOfList();
ctx.renderArg("sysRoleList", sysRoleList);
ctx.renderArg("sysUser", sysUser);
ctx.renderArg("roleMap", sysUser.hasRoleMap());
return render("role_box.html");
}
use of org.osgl.mvc.annotation.GetAction in project act-eagle-allone by mailtous.
the class Hello method pageOfjson.
@GetAction("user/page.json")
public RenderJSON pageOfjson() throws SQLException {
String sql = " select * from user where id > ?";
Page<User> userPage = userService.getPage(new Page(), sql, new Object[] { 0 });
return renderJson(userPage);
}
use of org.osgl.mvc.annotation.GetAction in project act-eagle-allone by mailtous.
the class SysFuncController method tree.
@GetAction("tree")
public String tree() {
Map<Long, List<SysFunc>> moduleMap = sysFuncService.getModuleTreeMap();
SysFunc topMenu = sysFuncService.buildFuncTree(moduleMap);
String jsonStr = topMenu.childsToJqTreeStr();
return jsonStr;
}
use of org.osgl.mvc.annotation.GetAction in project act-eagle-allone by mailtous.
the class SysFuncController method edit.
@GetAction("edit_box/{id}")
public RenderAny edit(@Param(defLongVal = -1) Long id) {
SysFunc sysFunc = new SysFunc();
// -1:新增
sysFunc.setId(id);
if (id > 0) {
sysFunc = sysFuncService.get(new Long(id));
}
// 树型菜单的数据
Map<Long, List<SysFunc>> moduleMap = sysFuncService.getModuleTreeMap();
SysFunc topMenu = sysFuncService.buildFuncTree(moduleMap);
String treeJsonStr = topMenu.childsToJqTreeStr();
ctx.renderArg("treeJsonStr", treeJsonStr);
ctx.renderArg("sysFunc", sysFunc);
return render("edit_box.html");
}
Aggregations