i
基于 WEB 的日志管理系统
二级学院
专 业
班 级
学生姓名
学 号
指导教师
20**年*月
ii
基于 WEB 的日志管理系统
【摘要】随着计算机与互联网的飞速发展, 现代企业大多使用 OA、ERP 等
管理软件来管理企业相关资源和日常事务,使得企业管理的质量和效率得到了质
的飞跃。现在的大型的 OA 和 ERP 系统都做得比较完善,但是对于中小企业来
说,一方面系统许多功能可能根本就用不上,另一方面昂贵的费用也让他们望而
却步。
本工作日志管理系统是一个面向中小企业的简单的工作管理系统,它主要实
现公司职员的工作日志管理、员工的任务分配和简单的人事管理。使用该系统,
企业管理者或团队领导可以方便地通过网络对下属员工分发任务;员工可以在网
上进行工作讨论,可以在网上随时记录自己每天的工作情况,可以方便地在周末
或者月末生成阶段性工作总结;员工可对工作进行自我评价,员工之间可根据要
求进行工作互评;企业还可对员工人事信息进行基本的查询和管理。
本系统采用 B/S 模式和 MVC 三层结构构建,使用 SSH+JSP+MYSQL,
在权限分配上,采用了按角色和自定义权限相结合的方式来分配,提高了权限管
理的灵活性和安全性。权限分配包括了角色权限、用户权限、页面权限。
【关键词】日志管理;管理信息系统;B/S 架构;MVC 框架;SSH
iii
Log Management System Based on WEB
[Abstract] With the rapid development of computers and the Internet,
modern enterprises mostly use management software such as OA and ERP to manage
enterprise-related resources and daily affairs, which makes the quality and efficiency
of enterprise management have a qualitative leap. Today's large-scale OA and ERP
systems are relatively well-developed, but for SMEs, on the one hand, many functions
of the system may not be used at all, and on the other hand, the expensive cost also
makes them discouraged.
This work log management system is a simple work management system
for small and medium-sized enterprises. It mainly realizes the work log management
of the company staff, the task assignment of employees and the simple personnel
management. Using the system, business managers or team leaders can easily
distribute tasks to subordinate employees through the network; employees can
conduct work discussions online, and can record their daily work status on the
Internet at any time, and can easily generate periodicity at weekends or at the end of
the month. Work summary; employees can self-evaluate their work, employees can
work together to evaluate each other according to requirements; enterprises can also
conduct basic inquiry and management of employee personnel information.
The system is built with B/S mode and MVC three-tier structure. It uses
SSH+JSP+MYSQL. In the allocation of rights, it adopts the combination of roles and
custom permissions to improve the flexibility and security of rights management. Sex.
The rights assignment includes role permissions, user permissions, and page
permissions.
[Keywords] Log management; management information system; B/S
architecture; MVC framework; SSH
iv
目 录
1 前言 ...................................................1
1.1 目的和意义 ................................................1
1.2 现状分析 ..................................................1
1.3 发展趋势 ..................................................2
1.4 课题研究方法 ..............................................3
2 相关技术 ...............................................4
2.1 JSP 技术 ...................................................4
2.2 B/S 架构 ...................................................4
2.3 Spring ....................................................5
2.4 MySQL .....................................................6
2.5 Struts ....................................................6
2.5 hibernate .................................................6
2.6 Tomcat 服务器 ..............................................7
3 系统分析 ...............................................8
3.1 需求分析 ..................................................8
3.1.1 目标 .......................................................8
3.1.2 系统整体结构 ...............................................8
3.1.3 应用环境 ..................................................16
3.2 可行性分析 ...............................................16
3.2.1 组织和管理上的可行性 ......................................16
3.2.2 经济可行性 ................................................17
3.2.3 技术可行性 ................................................17
4 系统设计 ..............................................18
4.1 系统功能设计 .............................................18
4.2 数据库设计 ...............................................21
v
4.2.1 数据库 E-R 图 ..............................................21
4.2.2 数据表设计 ................................................22
4.3 体系结构设计...............................................27
4.3.1 体系结构 .................................................27
4.3.2 三层架构 .................................................28
5 编码与实现 ............................................34
5.1 系统配置 .................................................34
5.1.1 applicationContext.xml 文件配置 ...........................34
5.1.2 web.xml 文件配置 ..........................................35
5.2 页面设计及其核心编码 .....................................36
5.2.1 登录主页面 .................................................37
5.2.2 管理员登录首页 .............................................38
5.2.2.1 修改密码................................................38
5.2.2.2 个人资料................................................39
5.2.2.3 信息中心................................................40
5.2.2.4 退出登录................................................41
5.2.3 项目管理 .................................................42
5.2.3.1 新建项目................................................42
5.2.3.2 项目编辑................................................43
5.2.3.3 阶段管理................................................44
5.2.3.4 项目删除................................................45
5.2.4 员工管理 ..................................................46
5.2.4.1 添加员工................................................46
5.2.4.2 编辑员工................................................47
5.2.4.3 删除员工................................................48
5.2.4.4 重置密码................................................49
5.2.5 角色管理 ..................................................50
5.2.5.1 新建角色................................................51
5.2.5.2 编辑角色................................................52