ssh框架,一个进销存项目
我做一个无限级的权限树和部门管理,可以动态添加部门和权限..
都说用递归写...
谁能给我个好点的例子,
最好有表结构,希望完整一点..
我做一个无限级的权限树和部门管理,可以动态添加部门和权限..
都说用递归写...
谁能给我个好点的例子,
最好有表结构,希望完整一点..
解决方案 »
- struts2-core-2.3.4.jar!/struts-default.xml:32:127
- javamail问题
- 新手求助,spring common包在哪下载?
- HQL中这样写对吗?select distinct stu,tea,cou from Student as stu,Teacher as tea,Course
- 如何用EntityManager批量新增数据库记录,如何优化?
- 请问ant的一些任务(象mkdir,java,jar等)都是ant事先定好了的吗?
- newxy新坐标1.05版新增内容,8月22日升级
- EJB中的会话bean能否调用另一个已打成jar包的EJB中的实体bean?????
- 开发J2EE架构应用程序的工具搭配问题?(调查中)
- 用ant编译pet store 时,出现问题,提示信息见内文?请帮忙。。。高分酬谢。
- 发起讨论,项目中建立数据库是否需要建立主外键关系
- Hibernate查询关联对象是否为空的语句
public void showChildren(Treeitem item, String code, List li) {
try {
Treechildren children = new Treechildren();
for (int i = 0; i < li.size(); i++) {
Businesstype vo = (Businesstype) li.get(i);
String bttypecode = vo.getBttypecode();
String bttypename = vo.getBttypename();
String btfunccode = vo.getBtfunccode();
if (vo.getBttypecode().length() == (code.length() + 2)
&& vo.getBttypecode().indexOf(code) == 0) {
Treeitem treeitem = new Treeitem();
treeitem.setOpen(false);
Treerow treerow = new Treerow();
Treecell treecell = new Treecell(bttypename);
for (int j = 0; j < li.size(); j++) {
Businesstype businesstype = (Businesstype) li.get(j);
String bttypecode1 = businesstype.getBttypecode();
if ((bttypecode1.length() == (bttypecode.length() + 2))
&& bttypecode1.indexOf(bttypecode) == 0) {
showChildren(treeitem, bttypecode, li);
} else {
treeitem.setValue(btfunccode);
treecell.addForward("onClick", "", "onClick",
btfunccode);
treerow.appendChild(treecell);
treeitem.appendChild(treerow);
children.appendChild(treeitem);
}
}
}
}
item.appendChild(children);
} catch (Exception e) {
// TODO Auto-generated catch block
// e.printStackTrace();
}
}
表结构:
BTKEY INTEGER N
BTTYPECODE VARCHAR2(12) N
BTTYPENAME VARCHAR2(50) Y
BTFUNCCODE VARCHAR2(50) Y
BTREMARK VARCHAR2(4000) Y
BTSTATUS VARCHAR2(4) Y
BTFUNTAG VARCHAR2(50) Y '0,'
是.JSP显示给用户的用那种折叠的表格,后台维护权限用树
dtree可以在前台显示那种想表格折叠的那效果吗?