基于ASP_NET的人力资源管理系统的设计与实现_李欣燃

I 摘 要 在 Internet Intranet 技术深入发展和广泛应用的今天 传统的客户机 服务 器计算方式已经不能适应实际应用的需要 Microsoft NET Compact Framework 架构正是适合 Internet 上的 Web 计算特点而产生和发展的 与传统的客户机 服 务器计算模型相比 Microsoft NET Compact Framework 架构采用组件的思想 从而带来了开发 维护和使用时的便利 随着微软 NET 平台技术的成熟 MVC 设计模式正成为 Microsoft NET Compact Framework 平台上推荐的一种设计模式 也吸引了广大 NET 开发者的关注 MVC 设计模式早在面向对象语言 Smalltalk 80 中就被提出并在此后得到业界的广泛 接受 它包括三类对象 1 模型 Model 对象 是应用程序的主体部分 2 视图 View 对象 是应用程序中负责生成用户界面的部分 3 控制器 Control 对象 是根据用户的输入 控制用户界面数据显示及更新 Model 对象状态的部分 MVC 设计模式毫无疑问的是一种非常先进的设计思想 它与语言和技术无关 即 使应用再复杂 它都能在你理解 分析应用模型时为你提供最科学 最基本的分 析方法 从而为你的产品构造过程提供清晰的设计框架 为整个软件工程提供规 范的理论与依据 人力资源管理系统的开发主要包括后台数据库的开发和前端应用程序的开发 两个方面 它是典型的信息管理系统 MIS 在数据库开发上 要求我们建立数据 保持一致性并且数据完整性强 具有良好数据安全性的数据库 而对于前端部分 的开发 则要求应用程序满足功能完备 容易使用 界面友好特点 本人结合人力资源管理方面的需求 在经过主要是对中小企业人力资源的详 细分析和周密调查的基础上 完成了这套主要以中小企业为面向对象的人力资源 管理系统 我完成了此系统的需求分析 功能模块划分 数据库模式分析等过程 并根据以上设计出了数据库结构和应用程序 本文介绍的就是基于 MVC 设计模式 在 NET 环境下 应用 C ASP NET HTML JAVASCRIPT 等语言进行编码 利用 SQL Server 开发出的企业人事管理系统 论文主要介绍了本课题的开发背景 所要完成的功能和开发的过程 重点的说明 了系统设计的重点 设计思想 难点技术和解决方案 II 论文主要介绍了本课题的开发背景 所要完成的功能和开发的过程 重点的 说明了系统设计的重点 设计思想 难点技术和解决方案 关键词 NET 架构 MVC 模式 人事管理 III ABSTRACT Nowadays with the further development and broad application of Internet Intranet technique the traditional means of computing through customer computer server has failed to meet the demands of practical application Matching with the features of web computing on Internet Microsoft NET Compact Framework thus came into being and developed at a rapid speed Comparing with the tradition customer computer server computing model the Microsoft NET Compact Framework adopts the concept of modules thus has brought great convenience for exploration maintenance and using With the maturity of NET plat technique MVC design mode has ally become a recommended model on NET plat and has appealed great NET technique developers MVC design mode was firstly put forward when confronting with the object oriented language Smalltalk 80 afterwards it was widely accepted The mode consists of three objects 1 Model object which is the principal part of application 2 View object which refers to the part generating User Interface UI in the application 3 Control object which according to the users s controls data display on UI and refreshes the of Model object MVC model is undoubtedly a very advanced design thought which doesn t have any connection with language and technique No matter how difficult the application process is it can supply you with the most scientific and essential analysis when you re trying to understand and analyze the mode thus providing clear design frame for production and providing standard theory and basis for the whole software engineering The exploration of Human Resources Management System HRMS is mainly about two aspects The development of database in server and the exploration of users application The er requires us to establish integrated data and a database safe enough The accomplishment of the latter needs the system to be of complete functions and user friendly IV After a careful study on human resources in middle sized or smaller enterprises considering the practical needs of human resource management the paper creates a HRMS suitable for middle sized or smaller enterprises According to utility analysis the layout of modules and database mode analysis conducted the construction of database and the application hence came into being Based on MVC design mode and under the NET environment this paper introduces a Personnel Management System which adopted JAVASCRIPT other coding languages and SQL Server as tools This thesis primarily introduces the development background the goal to be achieved and the construction process Particularly it points out the focus of system design design concepts technical difficulties and corresponding solutions Keywords NET Framework MVC Mode Personnel Management V 目 录 第一章 引言第一章 引言 1 1 1 人力资源管理系统发展回顾 1 1 2 数据库技术在开发信息管理系统中的应用 2 1 3 人力资源管理系统的当前情状和内在效益 3 1 4 论文结构概述 4 第二章 建模方法 设计模式及开发技术 第二章 建模方法 设计模式及开发技术 5 2 1 统一建模语言 5 2 1 1 现代需求技术 5 2 1 2 什么是 UML 5 2 1 3 UML 建模工具 6 2 1 4 UML 的基本概念和表示方法 7 2 2 MVC 介绍 8 2 2 1 MVC 模式概况 8 2 2 2 MVC 模式的发展情况 10 2 2 3 MVC 模式的优点 10 2 2 4 MVC 模式的缺点 11 2 2 5 本研究对 MVC 的改进采用 11 2 2 6 小结 12 2 3 开发 NET 应用程序 12 2 3 1 什么是 NET 框架 13 2 3 2 语言和 NET 框架 13 2 3 3 基本应用语言 14 2 3 4 可执行组件 15 2 3 5 ADO NET 的结构 16 2 3 6 通过 ADO NET 来访问数据库 17 2 4 数据库基本理论 18 2 4 1 数据模型分析 18 2 4 2 数据库系统的模式结构分析 18 2 4 3 数据库系统的体系结构分析 20 2 4 4 数据库管理系统分析 20 第三章 系统需求分析 第三章 系统需求分析 22 3 1 可行性分析 22 3 1 1 技术可行性 22 VI 3 1 2 经济可行性 22 3 1 3 管理可行性 22 3 1 4 开发环境可行性 22 3 2 系统目标 23 3 2 1 数据库的真实性 23 3 2 2 合理的设计数据库 23 3 2 3 美观的网页 23 3 3 系统优越性评估 24 3 4 系统需求分析 25 3 4 1 识别参与者 25 3 4 2 识别用例 26 3 5 系统功能分析 27 第四章 系统设计 第四章 系统设计 29 4 1 系统架构 29 4 2 基于三层结构开发 29 4 3 访问控制策略设计 31 4 3 1 访问控制模型 31 4 3 2 访问控制流程 31 4 4 系统总体结构 32 4 5 系统的基本流程 33 4 6 系统各模块流程 34 4 7 系统的数据流程图 35 4 8 逻辑层次构成 37 4 9 数据库设计 37 第五章 系统模块功能部分实现 第五章 系统模块功能部分实现 42 5 1 登录界面模块设计 42 5 2 普通用户模块设计 42 5 3 管理员用户模块设计 44 5 4 部门主管模块设计 48 5 5 数据库操作模块 50 5 6 客户端数