package dataTest;
import java.util.HashSet;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import com.tudou.projectmanage.common.NowTime;
import com.tudou.projectmanage.persist.Client;
import com.tudou.projectmanage.persist.Department;
import com.tudou.projectmanage.persist.Employee;
import com.tudou.projectmanage.persist.Functions;
import com.tudou.projectmanage.persist.Project;
import com.tudou.projectmanage.persist.Role;
import com.tudou.projectmanage.persist.Menu;
import com.tudou.projectmanage.persist.SystemDic;
import com.tudou.projectmanage.persist.SystemDicType;
import com.tudou.projectmanage.persist.Users;
public class TestDatas {
public static void main(String[] args) {
Configuration cfg = new Configuration().configure();
SessionFactory fac = cfg.buildSessionFactory();
Session son = fac.openSession();
Transaction tr = son.beginTransaction();
String now=NowTime.getTime();//获取系统当前时间
//1级
Menu m1=new Menu(1001,"管理菜单",null,null,-1,null,"最顶级菜单");
//所有2级菜单
Menu m2=new Menu(1001001,"销售管理",null,null,1001,null,"对项目销售进行管理");
Menu m3=new Menu(2001001,"办公管理",null,null,1001,null,"对项目系统办公进行管理");
Menu m4=new Menu(3001001,"统计分析",null,null,1001,null,"对项目销售进行统计分析");
Menu m5=new Menu(4001001,"人事管理",null,null,1001,null,"对公司人事进行管理");
Menu m6=new Menu(5001001,"权限管理",null,null,1001,null,"对系统权限进行管理");
Menu m7=new Menu(6001001,"系统管理",null,null,1001,null,"对系统参数进行管理");
//2级菜单下相应3级子菜单
Menu m8=new Menu(1001101,"联系人管理",null,null,1001001,null,"暂无说明");
Menu m9=new Menu(1001102,"项目管理",null,null,1001001,null,"暂无说明");
Menu m10=new Menu(1001103,"报价管理",null,null,1001001,null,"暂无说明");
Menu m11=new Menu(1001104,"合同管理",null,null,1001001,null,"暂无说明");
Menu m12=new Menu(1001105,"售后管理",null,null,1001001,null,"暂无说明");
Menu m13=new Menu(1001106,"对手管理",null,null,1001001,null,"暂无说明");
Menu m14=new Menu(1001107,"客户管理",null,null,1001001,null,"暂无说明");
Menu m15=new Menu(2001101,"通讯录管理",null,null,2001001,null,"暂无说明");
Menu m16=new Menu(2001102,"网址管理",null,null,2001001,null,"暂无说明");
Menu m17=new Menu(2001103,"备忘录",null,null,2001001,null,"暂无说明");
Menu m18=new Menu(2001104,"知识库",null,null,2001001,null,"暂无说明");
Menu m19=new Menu(2001105,"工作日志",null,null,2001001,null,"暂无说明");
Menu m20=new Menu(2001106,"日程安排",null,null,2001001,null,"暂无说明");
Menu m21=new Menu(2001107,"公告",null,null,2001001,null,"暂无说明");
Menu m51=new Menu(15001101,"通讯录列表",null,null,2001101,"main","暂无说明");
Menu m52=new Menu(15001102,"添加通讯录",null,null,2001101,"main","暂无说明");
Menu m53=new Menu(16001101,"网址列表",null,null,2001102,"main","暂无说明");
Menu m54=new Menu(16001102,"添加网址",null,null,2001102,"main","暂无说明");
Menu m55=new Menu(17001101,"备忘录列表",null,null,2001103,"main","暂无说明");
Menu m56=new Menu(17001102,"添加备忘录",null,null,2001103,"main","暂无说明");
Menu m57=new Menu(18001101,"知识库列表",null,null,2001104,"main","暂无说明");
Menu m58=new Menu(18001102,"添加知识库",null,null,2001104,"main","暂无说明");
Menu m59=new Menu(19001101,"工作日志列表",null,null,2001105,"main","暂无说明");
Menu m60=new Menu(19001102,"添加工作日志",null,null,2001105,"main","暂无说明");
Menu m61=new Menu(20001101,"日程安排列表",null,null,2001106,"main","暂无说明");
Menu m62=new Menu(20001102,"添加日程安排",null,null,2001106,"main","暂无说明");
Menu m63=new Menu(21001101,"公告列表",null,null,2001107,"main","暂无说明");
Menu m64=new Menu(21001102,"添加公告",null,null,2001107,"main","暂无说明");
Menu m22=new Menu(3001101,"项目统计","view/common/null.jsp",null,3001001,"main","暂无说明");
Menu m23=new Menu(3001102,"联系人统计","view/common/null.jsp",null,3001001,"main","暂无说明");
Menu m24=new Menu(3001103,"合同统计","view/common/null.jsp",null,3001001,"main","暂无说明");
Menu m25=new Menu(3001104,"售后统计","view/common/null.jsp",null,3001001,"main","暂无说明");
Menu m26=new Menu(3001105,"对手统计","view/common/null.jsp",null,3001001,"main","暂无说明");
Menu m27=new Menu(3001106,"客户统计",null,null,3001001,null,"暂无说明");
Menu m28=new Menu(4001101,"员工管理",null,null,4001001,null,"暂无说明");
Menu m29=new Menu(4001102,"部门管理",null,null,4001001,null,"暂无说明");
Menu m65=new Menu(22001101,"员工列表","showEmp!showEmps.action",null,4001101,"main","暂无说明");
Menu m66=new Menu(22001102,"添加员工",null,null,4001101,"main","暂无说明");
Menu m67=new Menu(23001101,"部门列表","showDept!showDepts.action",null,4001102,"main","暂无说明");
//Menu m68=new Menu(23001102,"添加部门",null,null,4001102,"main","暂无说明");
Menu m30=new Menu(5001101,"角色管理",null,null,5001001,null,"暂无说明");
Menu m31=new Menu(5001102,"模块管理",null,null,5001001,null,"暂无说明");
Menu m76=new Menu(5001103,"菜单管理",null,null,5001001,null,"暂无说明");
Menu m69=new Menu(24001101,"角色列表","showrole!showRoles.action",null,5001101,"main","暂无说明");
//Menu m70=new Menu(24001102,"添加角色",null,null,5001101,"main","暂无说明");
Menu m71=new Menu(25001101,"模块列表","showmenu!showMenus.action?todo=0",null,5001102,"main","暂无说明");
Menu m72=new Menu(25001102,"菜单列表","showmenu!showMenus.action?todo=1",null,5001103,"main","暂无说明");
Menu m32=new Menu(6001101,"数据字典管理",null,null,6001001,null,"暂无说明");
Menu m33=new Menu(6001102,"日志管理",null,null,6001001,null,"暂无说明");
Menu m73=new Menu(26001101,"查看数据字典","showDic!showDics.action",null,6001101,"main","暂无说明");
Menu m74=new Menu(26001102,"添加数据字典",null,null,6001101,"main","暂无说明");
Menu m75=new Menu(27001101,"查看日志",null,null,6001102,"main","暂无说明");
//4级子菜单
Menu m34=new Menu(7001101,"联系人列表",null,null,1001101,"main","暂无说明");
Menu m35=new Menu(7001102,"添加联系人",null,null,1001101,"main","暂无说明");
Menu m36=new Menu(8001101,"项目列表","showProject!showProjects.action",null,1001102,"main","暂无说明");
Menu m37=new Menu(8001102,"添加项目","view/admin/sellmanage/project/addProject.jsp",null,1001102,"main","暂无说明");
Menu m38=new Menu(9001101,"报价列表",null,null,1001103,"main","暂无说明");
Menu m39=new Menu(9001102,"添加报价",null,null,1001103,"main","暂无说明");
Menu m40=new Menu(10001101,"合同列表",null,null,1001104,"main","暂无说明");
Menu m41=new Menu(10001102,"添加合同",null,null,1001104,"main","暂无说明");
Menu m42=new Menu(11001101,"售后列表",null,null,1001105,"main","暂无说明");
Menu m43=new Menu(11001102,"添加售后",null,null,1001105,"main","暂无说明");
Menu m44=new Menu(12001101,"对手列表",null,null,1001106,"main","暂无说明");
Menu m45=new Menu(12001102,"添加对手",null,null,1001106,"main","暂无说明");
Menu m46=new Menu(13001101,"客户列表","showClient!showClients.action",null,1001107,"main","暂无说明");
Menu m47=new Menu(13001102,"添加客户","view/admin/sellmanage/client/addClient.jsp",null,1001107,"main","暂无说明");
Menu m48=new Menu(14001101,"客户来源统计","view/admin/statanalyse/client.jsp?method=from",null,3001106,"main","暂无说明");
Menu m49=new Menu(14001102,"客户分类统计","view/admin/statanalyse/client.jsp?method=type",null,3001106,"main","暂无说明");
Menu m50=new Menu(14001103,"客户行业统计","view/admin/statanalyse/client.jsp?method=trade",null,3001106,"main","暂无说明");
//权限功能,对应相应的模块和菜单
////////////////////////////////////////////////////////
//对应模块
///////////////////////////////////////////////////////
Functions f1000=new Functions(m1.getMenuNo(),m1.getParentNo(),"管理菜单",null,m1.getMenuNo(), "暂无说明",m1.getMenuNo());
//Functions f1000=new Functi
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
项目管理系统界面高清截图http://yaerfeng1989.blog.163.com相册。绝版作品!一切都只是曾经,神马都是浮云!现将其开源 ssh+jquery+servlet+json+dwr+ajax....... 数据库可配置。默认mysql。运行先改jdbc.properties和hibernate.cfg.xml里面的数据库配置!数据库最好事先存在。 再运行test包的testCreateDB-》testData(插入数据!)即可运行!
资源推荐
资源详情
资源评论
收起资源包目录
毕业设计+源码(项目管理系统)完整框架 (1312个子文件)
TestDatas.class 42KB
LinkMan.class 12KB
Client.class 12KB
MenuDaoImpl.class 9KB
ClientStatServlet.class 9KB
BaseDao.class 7KB
DeptDaoImpl.class 6KB
RoleAction.class 6KB
DeptAction.class 6KB
MenuAction.class 6KB
EmpDaoImpl.class 5KB
RoleDaoImpl.class 5KB
Project.class 4KB
DicDaoImpl.class 4KB
ClientAction.class 4KB
Department.class 4KB
Employee.class 4KB
ShowModulesServlet.class 4KB
ClientDaoImpl.class 3KB
ProjectDaoImpl.class 3KB
DicTypeDaoImpl.class 3KB
Menu.class 3KB
HandlerRecord.class 3KB
Users.class 3KB
FunctionsDaoImpl.class 3KB
ProjectAction.class 3KB
ResoursesFilter.class 3KB
Functions.class 3KB
ExitServlet.class 2KB
LoginFilter.class 2KB
SystemDicType.class 2KB
UsersAction.class 2KB
EmpAction.class 2KB
EmployeeImpl.class 2KB
Role.class 2KB
DeptControllerImpl.class 2KB
SystemDic.class 2KB
DicAction.class 2KB
MenuControllerImpl.class 2KB
EmpControllerImpl.class 2KB
UsersDaoImpl.class 2KB
EncodingFilter.class 2KB
RoleControllerImpl.class 2KB
ProjectControllerImpl.class 2KB
DicControllerImpl.class 2KB
FunctionsControllerImpl.class 1KB
ClientControllerImpl.class 1KB
MyOpenViewFilter.class 1KB
BaseAction.class 1KB
UsersControllerImpl.class 1KB
NowTime.class 1KB
LoginServlet.class 996B
SubStrings.class 882B
IMenuDao.class 782B
EncodingConverter.class 771B
PageModel.class 763B
TestCreateDB.class 730B
ModuleInterceptor.class 729B
TestDropDB.class 720B
IRoleDao.class 700B
JSProtect.class 688B
IDicDao.class 669B
IFunctionsDao.class 662B
IDeptController.class 656B
IMenuController.class 639B
IDeptDao.class 635B
IEmployeeDao.class 616B
FunctionsAction.class 604B
IClientDao.class 584B
IEmpController.class 567B
IEmpDao.class 546B
IRoleController.class 542B
IDicTypeDao.class 510B
IProjectController.class 504B
IProjectDao.class 483B
IDicController.class 440B
IClientController.class 406B
IFunctionsController.class 384B
IUsersDao.class 363B
BasePO.class 333B
IUsersController.class 316B
.classpath 5KB
org.eclipse.wst.jsdt.ui.superType.container 49B
editor.css 35KB
editor.css 31KB
editor.css 30KB
dialog.css 20KB
dialog.css 19KB
dialog.css 17KB
dialog.css 16KB
default.css 16KB
dialog.css 15KB
dialog.css 14KB
toolbar.css 13KB
default.css 10KB
toolbar.css 10KB
toolbar.css 10KB
richcombo.css 8KB
richcombo.css 7KB
icons.css 7KB
共 1312 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14
yaerfeng
- 粉丝: 1701
- 资源: 67
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Java Swing实现的飞机大战游戏.zip
- frida-server魔改 深度魔改
- 基于Java的奖励养成类蓝牙联机游戏.zip
- 基于Java+Swing的石头剪刀布游戏.zip
- Java作战小游戏.zip学习资料程序大作业
- Easyx的小游戏,飞翔的小鸟
- Tetris GUI game based on Java language development(基于Java语言开发的俄罗斯方块GUI小游戏 ).zip
- html常规学习.zip资源资料用户手册
- Semester Examination Works. 烟台科技学院,智能工程学院,Java编程基础课设 Java打字游戏.zip
- PingFang SC、HK、TC(Win 完美协作-修改版).apk
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页