基于.Net的门禁管理系统的设计与实现阿巴白克力.赛买提指导教师林坤辉教授厦门大学
学校编码 :10384 分类号 密级 学号 :X2012230489 UDC 工程硕士学位论文 基于.Net 的门禁管理系统的设计与实现 Design and Implementation of Access Control Management System Based on.net 阿巴白克力 赛买提 指导教师 : 林 坤 辉 教 授 专业名称 : 软 件 工 程 论文提交日期 : 2014 年 04 月 论文答辩日期 : 2014 年 04 月 学位授予日期 : 年 月 指导教师 : 答辩委员会主席 : 2014 年 04 月
厦门大学学位论文原创性声明 本人呈交的学位论文是本人在导师指导下, 独立完成的研究成果 本人在论文写作中参考其他个人或集体已经发表的研究成果, 均在文中以适当方式明确标明, 并符合法律规范和 厦门大学研究生学术活动规范 ( 试行 ) 另外, 该学位论文为 ( ) 课题 ( 组 ) 的研究成果, 获得 ( ) 课题 ( 组 ) 经费或实验室的资助, 在 ( ) 实验室完成 ( 请在以上括号内填写课题或课 题组负责人或实验室名称, 未有此项声明内容的, 可以不作特别声明 ) 声明人 ( 签名 ): 年月日
厦门大学学位论文著作权使用声明 本人同意厦门大学根据 中华人民共和国学位条例暂行实施办法 等规定保留和使用此学位论文, 并向主管部门或其指定机构送交学位论文 ( 包括纸质版和电子版 ), 允许学位论文进入厦门大学图书馆及其数据库被查阅 借阅 本人同意厦门大学将学位论文加入全国博士 硕士学位论文共建单位数据库进行检索, 将学位论文的标题和摘要汇编出版, 采用影印 缩印或者其它方式合理复制学位论文 本学位论文属于 : ( )1. 经厦门大学保密委员会审查核定的保密学位论文, 于 年月日解密, 解密后适用上述授权 ( )2. 不保密, 适用上述授权 ( 请在以上相应括号内打 或填上相应内容 保密学位论文应是已经厦门大学保密委员会审定过的学位论文, 未经厦门大学保密委员会审定的学位论文均为公开学位论文 此声明栏不填写的, 默认为公开学位论文, 均适用上述授权 ) 声明人 ( 签名 ): 年月日
摘要 摘要 随着科学技术的飞速发展以及人们对安全防范意识的不断增强, 门禁管理系统在人们日常出行的区域也运用的越来越广泛 早期的门禁系统主要是基于单片机技术来设计的, 其结构与功能都相对单一 已经无法满足人们当今对实事性 灵活性以及智能性的要求 本文是在通过深入的对使用该系统的部分走访调研的基础上, 根据用户的实际需要设计与实现了一套门禁管理信息系统 本论文在系统的设计与实现的过程当中, 采用了面向对象的设计理念对系统进行开发 在阅读大量文献资料的基础上并结合自身的知识特点, 确定了系统的开发工具 系统总体架构采用三层客户 / 服务器模式, 系统的总体功能模块划分为七个模块, 它们分别为设备分组模块 开放时间模块 分配时间组模块 授权管理模块 记录查询模 块 分控器管理和人员管理模块等 开发工具选择 ASP.NET 为编程语言,SQL Server 为后台数据库, 系统的集成开发环境为 Visual Studio 2010 系统已经在主校区进行了试运行, 系统在使用过程中, 以标记有学校身份信息的非接触式射频卡为媒介 通过该系统对门禁的出入规则进行设定后, 就能够对持卡人在不同时间 不同地点在学校楼宇中进行相应的出入限制 系统运行情况表明该系统具有操作简单 使用方便 运行稳定等特点 系统较好的满足了学校对安全保卫方面工作的需要 关键词 : 门禁系统 ;SQL Server; 面向对象 I
Abstract Abstract With the rapid development of science and technology and enhance of people s safety awareness, access control management system is used more and more widely in the region of people s daily travel. The early access control management system is designed based on single chip microcomputer technology. Its structure and function is relatively single. The old system is unable to meet people s requirement about practical, flexible and intelligent. The dissertation deeply investigates the requirements of the system. Based on aforementioned investigation and according to actual needs of users it design and implemente a set of access control management system. In the process of design and realization of the system of the dissertation it utilizes the object-oriented design concept to develop the system. On the basis of reading vast amount of literature and combining with the characteristics of author s knowledge determine the development tools of the system. System overall architecture adopts three layer client/server mode.the overall function module is divided into seven modules, which are respectively equipment grouping module, open time module, allocate time group modules, authorization management module, records query module, control device management and personnel management module. It uses ASP.NET as system development tool and SQL Server 2008 as background database. The system integrated development environment is Visual Studio 2010. This system has been test run in the main campus, In the process of using system, it use non-contact card as medium which has school identity information. Through design the access rules of system, it can implement access restrictions to cardholder about different time, different place in the school. The running results indicate the system has simple operation, easy to use, stable operation etc. System better meet the school's need for security work. II
Abstract Keywords: Access Control System; SQL Server; Object-Oriented III
目录 目录第一章绪论... 1 1.1 背景和意义... 1 1.2 国内外相关研究现状... 2 1.3 研究内容... 4 1.4 本文组织结构... 4 第二章系统相关技术... 6 2.1 B/S 模式... 6 2.2 联网通讯模式... 7 2.2.1 RS-485 联网... 7 2.2.2 TCP/IP 联网... 8 2.3ASP.NET 介绍... 9 2.3.1ASP.NET 概述... 9 2.3.2 ASP.NET 程序结构... 9 2.3.3 ASP.NET 配置... 10 2.4 SQL Server2008... 11 2.4.1SQL Server2008 数据处理... 11 2.4.2 运用 SQL 访问数据库数据... 12 2.5 ADO.NET 技术... 13 2.6 本章小结... 14 第三章系统需求分析... 15 3.1 可行性分析... 15 3.2 门禁控制器功能需求分析... 15 3.3 系统角色需求分析... 16 3.4 系统功能需求分析... 18 3.5 本章小结... 22 IV
目录 第四章系统设计... 23 4.1 系统的设计目标... 23 4.2 系统总体结构... 23 4.3 系统工作流程... 24 4.4 系统功能模块设计... 26 4.4.1 设备分组模块... 26 4.4.2 开放时间模块... 27 4.4.3 分配时间组模块... 28 4.4.4 授权管理模块... 29 4.4.5 记录查询模块... 30 4.4.6 分控器管理模块... 31 4.3.7 人员管理模块... 32 4.4 数据库设计... 33 4.4.1 数据库概念结构设计... 33 4.4.2 数据库物理结构设计... 37 4.5 本章小结... 39 第五章系统实现与测试... 41 5.1 系统运行环境... 41 5.2 数据库连接与系统登录... 41 5.3 设备分组模块的实现... 43 5.4 开放时间模块的实现... 46 5.5 分配时间组模块的实现... 48 5.6 授权管理模块的实现... 50 5.7 记录查询模块的实现... 54 5.8 分控器管理模块的实现... 56 5.9 人员管理模块的实现... 58 5.10 系统功能性测试... 59 V
目录 5.10.1 系统测试概述... 59 5.10.2 系统功能性测试... 60 5.10.3 测试结论... 62 5.11 本章小结... 62 第六章总结与展望... 63 6.1 总结... 63 6.2 展望... 63 参考文献... 65 致谢... 67 VI
Contents Contents Chapter 1 Introduction... 1 1.1 Background and Significance... 1 1.2 Concerend Researches in China and from Abroad... 2 1.3 Research Methods... 4 1.4 Structure of the Dissertation... 4 Chpater 2 System Related Technology... 6 2.1 B/S Model... 6 2.2 Networking Communication Mode... 7 2.2.1 RS-485 Networking... 7 2.2.2 TCP/IP Networking... 8 2.3 ASP.NET... 9 2.3.1 ASP.NET Overview... 9 2.3.2 ASP.NET Program Structure... 10 2.3.3 ASP.NET Configuration... 11 2.4 SQL Server 2008... 11 2.4.1 SQL Server 2008 Data Handling... 11 2.4.2 Using SQL Access to Database Data... 12 2.5 ADO.NET Technology... 13 2.6 Summary... 14 Chapter 3 System Requirement Analysis... 15 3.1 Feasibility Analysis... 15 3.2 Access Controller Function Requirement Analysis... 15 3.3 System Role Requirement Analysis... 16 3.4 System Function Requirement Analysis... 18 3.5 Summary... 22 VII
Contents Chapter 4 System Design... 23 4.1 System Design Goal... 23 4.2 System Overall Structure... 23 4.3 System Workflow... 24 4.4 System Function Module Design... 26 4.4.1 Device Grouping Module... 26 4.4.2 Open Time Module... 27 4.4.3 Allocate Time Group Module... 28 4.4.4 Authorization Management Module... 29 4.4.5 Records Query Module... 30 4.4.6 Sub-Control Device Management Module... 31 4.3.7 Personnel Management Module... 32 4.4 Database Design... 33 4.4.1 Database Conception Structure Desing... 33 4.4.2 Database Physics Structure Design... 37 4.5 Summary... 39 Chapter 5 System Implementation and Test... 41 5.1 System Running Environment... 41 5.2 Database Connection and System Login... 41 5.3 Device Gouping Module... 43 5.4 Open Time Module... 46 5.5 Allocate Time Group Module... 48 5.6 Authorization Management Module... 50 5.7 Records Query Module... 54 5.8 Sub-Control Device Management Module... 56 5.9 Personnel Management Module... 58 5.10 System Functional Test... 59 VIII
Degree papers are in the Xiamen University Electronic Theses and Dissertations Database. Full texts are available in the following ways: 1. If your library is a CALIS member libraries, please log on http://etd.calis.edu.cn/ and submit requests online, or consult the interlibrary loan department in your library. 2. For users of non-calis member libraries, please mail to etd@xmu.edu.cn for delivery details.