收藏 分销(赏)

矿井系统课程设计--矿井生产及人员管理系统.doc

上传人:可**** 文档编号:2520743 上传时间:2024-05-31 格式:DOC 页数:35 大小:322.50KB
下载 相关 举报
矿井系统课程设计--矿井生产及人员管理系统.doc_第1页
第1页 / 共35页
矿井系统课程设计--矿井生产及人员管理系统.doc_第2页
第2页 / 共35页
矿井系统课程设计--矿井生产及人员管理系统.doc_第3页
第3页 / 共35页
矿井系统课程设计--矿井生产及人员管理系统.doc_第4页
第4页 / 共35页
矿井系统课程设计--矿井生产及人员管理系统.doc_第5页
第5页 / 共35页
点击查看更多>>
资源描述

1、 课程设计报告题目:矿井生产及人员管理系统专业:网络工程班级:13级姓名:学号: 目 录1 引言.1 1.1 设计背景.1 1.2 设计目标.12 矿井生产及人员管理系统的分析12.1可行性分析12.2需求分析23 系统详细设计与实现23.1数据库设计2 3.1.1 数据需求3 3.1.2 关系模式3 3.1.3 E-R图3 3.1.4 数据流程图.8 3.1.5 数据字典.93.2系统功能模块设计10 3.3 数据初始化.124系统测试18 4.1模块测试18 4.2整体测试19 4.3测试结果225附件22 5.1 数据库创建代码.22 5.2程序设计代码.246 结论321.引言1.1设

2、计背景 近年来,随着因特网技术的飞速发展,以及人们的生活方式、生产活动的日新月异,计算机应用已渗透到各个领域。 目前,我国的矿井生产及人员管理活动庞杂、琐碎,严重时甚至出现了多次矿井爆炸、塌陷等事故。这与相关制度的不完善,管理者的疏忽,人员雇佣的专业程度都密切相关。 基于此问题,有必要建立一个矿井生产及人员管理系统,使矿井生产工作规范化、程序化、系统化,避免人员在生产过程中的随意性。并提高信息处理交流的准确性,能够及时、准确有效的查询人员在职和生产进程的情况。全面提高矿井生产的制度化,人员工作高效化,以及矿井活动的安全化。基本实现了简单实用的矿井生产及人员管理。1.2设计目标 1. 掌握计算机

3、管理信息系统设计的一般方法,主要包括系统分析、系统设计的组织和实施。 2.关系型数据库管理系统的编程技术,并能独立完成一般小系统的程序设计、调试运行等工作。 3.培养把所学知识运用到具体对象,并能求出解决方案的能力。1. 矿井生产及人员管理系统的分析2.1可行性分析本系统设计运行在Windows 7平台上,以SQL Server 作为后台数据库开发工具,分析并设计“矿井生产及人员管理系统”。系统软件和对数据库的操作都可在计算机上完成,拥有技术可行性。随着计算机技术的不断发展,计算机作为知识经济时代的产物,已被广泛应用于社会各个行业和领域。本系统具有人员的查询、生产流程查询等功能,系统安全稳定比

4、起他们以前对信息管理的主要方式是基于文本、表格等纸介质的手工处理,对于工人工作情况的统计和核实等往往采用人工检查进行.数据信息处理工作量大,容易出错;由于数据繁多,容易丢失,且不易查找。更能适合当今社会的发展和满足客户的需求。2.2需求分析 为了保证系统能够长期、安全、稳定、可靠、高效的运行,矿井生产及人员管理系统应满足以下的性能需求:1、系统处理的准确性和及时性 系统处理的准确性和及时性是系统的必要性能。在系统设计和开发过程中,要充分考虑系统当前和将来可能承受的工作量,使系统的处理能力和响应时间能够满足学校对信息处理的需求。 2、系统的易用行和易维护性矿井生产及人员管理系统是直接面对使用人员

5、的,而使用人员往往对计算机并不是非常熟悉。就要求系统提供良好的用户接口,易用的人机交互界面。实现这一点,就要求系统尽量使用用户熟悉的术语和中文信息的界面:针对用户应该使用简单的界面使用户便于理解和掌握。3、系统的先进性目前计算机系统的技术发展相当快的时代,因此图书管理系统工程,在系统的生命周期尽量做到系统先进,充分完成企业信息处理的要求而不至于落后。这一方面通过系统的开发性和可扩充性,不断改善系统功能完成。另一方面,在系统设计和开发过程中,应考虑在成本的基础上尽量采用当前主流并且具有良好发展前途的产品。4.系统的响应速度矿井生产及人员管理系统在日常处理中的速度为秒级,达到实时要求。在进行数据统

6、计分析时,根据所需数据量的不同而从秒级到分级,原则是保证操作人员不会因为速度的问题而影响工作效率。3. 系统详细设计与实现3.1 数据库设计 3.1.1数据需求矿井生产及人员管理系统需要完成功能主要有:1. 矿井工作人员基本信息的输入,包括姓名、性别、工号、年龄、职务、电话号码2. 矿井工作人员基本信息的查询、修改,包括工人姓名、性别、工号、电话号码等3. 矿井生产过程信息的输入,包括类别名称、所需人数、所需工号4. 矿井生产过程信息的查询、修改,包括类别名称、所需人数、所需工号5. 上工信息的输入,包括工号、到达时间6. 上工信息的查询、修改,包括工号、到达时间7. 下工信息的输入,包括工号

7、、返回时间8. 下工信息的查询、修改,包括工号、返回时间9. 缺勤信息的输入,包括工号、到达时间、返回时间10. 缺勤信息的查询、修改,包括工号、到达时间、返回时间3.1.2关系模式(一) 矿井工作人员 (姓名,性别,工号,年龄,职务,电话号码)(二) 矿井生产过程 (类别名称,所需人数,所需工号)(三) 上工 (工号,到达时间)(四) 下工 (工号,返回时间)(五) 缺勤 (工号,到达时间,返回时间)3.1.3 E-R图根据所要实现的功能设计,可能建立它们之间的关系,进而实现逻辑结构功能。矿井生产及人员管理系统可以划分的实体有:生产过程类别实体、工作人员信息实体、上工信息实体、下工信息实体、

8、缺勤信息实体。用E-R图一一描述这些实体。(一) 生产过程类别实体E-R图: 生产过程类别实体所需工号所需人数类别名称(二) 工作人员信息实体E-R图:工作人员信息实体电话号码 姓 名 职 务 性 别 工 号 年 龄 (三)上工信息实体E-R图: 上工信息实体 工 号 到达时间(四)下工信息实体E-R图:下工信息实体 返回时间 工 号 (五) 缺勤信息实体E-R图: 缺勤信息实体返回时间 到达时间 工 号(六) 总的信息实体E-R图: 下工实体信息登记 下 工生产流程实体 上 工 工人实体 上工实体 缺勤实体 缺 勤3.1.4数据流程图 生产流程类别设置D5基本信息录入D2下工信息录入生产流程

9、类别信息管理D1D3基本信息录入 工人登记 流程登记基本信息录入D4 生产流程管理 工人信息管理上工信息录入工人信息返回生产信息返回 上工信息管理 缺 勤D6 3.1.5数据字典表2-1 system_production 生产流程信息表列名数据类型长度是否为空备注pnamevarchar30No(主键)类别名称wnumberchar50No所需工号nopchar10No所需人数表2-2 worker_information 工人信息表列名数据类型长度是否为空备注wnumberchar30No(主键)工号wnamevarchar10No姓名wsexchar2No性别wageintNo年龄job

10、varchar10No职务telephonechar30No电话号码表2-3 start_record 上工信息表列名数据类型长度是否为空备注wnumberchar30No(外主键)工号arrivedatedatetimeNo到达时间表2-4 close_record 下工信息表列名数据类型长度是否为空备注wnumberchar30No(外主键)工号leavedatedatetimeNo返回时间 表2-5 absence_record 缺勤信息表列名数据类型长度是否为空备注wnumberchar30No(外主键)工号arrivedatedatetimeNo到达时间leavedatedateti

11、meNo返回时间3.2系统功能模块设计3.2.1创建数据库USE mastergoCREATE DATABASE mineproductionmsgON(NAME=productionsystem,FILENAME=d:mineproduction.mdf,SIZE=10,MAXSIZE=50,FILEGROWTH=5)LOG ON(NAME=mine,FILENAME=d:mineproductionsystem.idf,SIZE=5MB,MAXSIZE=25MB,FILEGROWTH=5MB)Go 3.2.2 矿井工人信息表建立Create table worker_ informatio

12、n(Wnumber char (30) Not null primary key,Wname varchar (10) Not null,Wsex char(2) Not null CHECK (sex in (男,女),Wage int Not null CHECK (age0),Job varchar (10) Not null,Telephone char(30)Not null)3.2.3 矿井生产流程表建立Create table system_production(Pname varchar(30) Not null primary key,Wnumber char(50) Not

13、 null,Nop char(10) Not null,Foreign key (wnumber) references worker_information(wnumber)3.2.4 上工记录表建立Create table start_record(Wnumber char (30) Not null primary key,Arrivedate datetime Not null,Foreign key (wnumber) references worker_information(wnumber)3.2.5下工记录表建立Create table close_record(Wnumber

14、 char (30) Not null primary key,Leavedate datetime Not null,Foreign key (wnumber) references worker_information(wnumber) 3.2.6 缺勤记录表建立Create table absence_record(Wnumber char(30) Not null primary key,Arrivedate datetime Not null,Leavedate datetime Not null,Foreign key (wnumber) references worker_inf

15、ormation(wnumber) 3.3 数据初始化3.3.1将工人信息加入表worker_information中InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555001,吴伟,35,男,工人,0000001)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555002,王鹏,43,男,工人,0000002)InsertInto worker_informati

16、on(wnumber,wname,wage,wsex,job,telephone)Values(201355555003,刘晓东,36,男,工人,0000003)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555004,沈明,38,男,工人,0000004)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555005,张磊,35,男,工人,0000005)Inser

17、tInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555006,王亚新,40,男,组长,0000006) InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555007,周晓丽,33,女,工人,0000007)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555008,

18、张少平,35,男,工人,0000008)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555009,刘思铭,37,男,工人,0000009)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555010,陈东,35,男,组长,0000010)InsertInto worker_information(wnumber,wname,wage,wsex,job,telepho

19、ne)Values(201355555011,郑子元,30,男,工人,0000011)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555012,徐太宇,35,男,工人,0000012)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555013,张世龙,39,男,工人,0000013)InsertInto worker_information(wnumber,wna

20、me,wage,wsex,job,telephone)Values(201355555014,吴市方,35,女,工人,0000014)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555015,陶敏,32,女,工人,0000015)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555016,吴科,35,男,工人,0000016) InsertInto worker_

21、information(wnumber,wname,wage,wsex,job,telephone)Values(201355555017,王易,34,男,组长,0000017)InsertInto worker_information(wnumber,wname,wage,wsex,job,telephone)Values(201355555018,胡强,35,男,工人,0000018)3.3.2 将生产流程类别加入表system_production中Insert into system_production (pname , wnumber , nop)Values(矿井巷道布置,201

22、35555001 20135555002,2)Insert into system_production (pname , wnumber , nop)Values(生产运输系统,20135555003 20135555004 20135555005 20135555006,4)Insert into system_production (pname , wnumber , nop)Values(监测监控系统,20135555007 20135555008,2)Insert into system_production (pname , wnumber , nop)Values(通风系统,20

23、135555009 20135555010,2)Insert into system_production (pname , wnumber , nop)Values(供排水系统,20135555011 ,1)Insert into system_production (pname , wnumber , nop)Values(防尘系统,20135555012 20135555013,2)Insert into system_production (pname , wnumber , nop)Values(通信、工业电视系统,20135555014 20135555015,2) Insert

24、into system_production (pname , wnumber , nop)Values(压风、抽放瓦斯系统,20135555016 20135555017,2)Insert into system_production (pname , wnumber , nop)Values(避灾救灾系统,20135555018 ,1)3.3.3 将工人上工信息加入表start_record中,同时将缺勤的到达数间置0*/Insert into start_record(wnumber,arrivedate) values(20135555001,2015-06-05 7:45)updat

25、e absence_recordset arrivedate=0Where wnumber=20135555001 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555002,2015-06-05 7:55)update absence_recordset arrivedate=0Where wnumber=20135555002 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555003,2

26、015-06-05 7:33)update absence_recordset arrivedate=0Where wnumber=20135555003 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555004,2015-06-05 7:45)update absence_recordset arrivedate=0Where wnumber=20135555004 and arrivedate=1 Insert into start_record(wnumber,arrivedate)

27、values(20135555005,2015-06-05 7:35)update absence_recordset arrivedate=0Where wnumber=20135555005 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555006,2015-06-05 7:53)update absence_recordset arrivedate=0Where wnumber=20135555006 and arrivedate=1 Insert into start_record(

28、wnumber,arrivedate) values(20135555007,2015-06-05 7:39)update absence_recordset arrivedate=0Where wnumber=20135555007 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555008,2015-06-05 8:15)update absence_recordset arrivedate=0Where wnumber=20135555008 Insert into start_reco

29、rd(wnumber,arrivedate) values(20135555009,2015-06-05 7:45)update absence_recordset arrivedate=0Where wnumber=20135555009 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555010,2015-06-05 7:41)update absence_recordset arrivedate=0Where wnumber=20135555010 and arrivedate=1 In

30、sert into start_record(wnumber,arrivedate) values(20135555011,2015-06-05 7:43)update absence_recordset arrivedate=0Where wnumber=20135555011 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555012,2015-06-05 8:30)update absence_recordset arrivedate=0Where wnumber=20135555012

31、 Insert into start_record(wnumber,arrivedate) values(20135555013,2015-06-05 7:34)update absence_recordset arrivedate=0Where wnumber=20135555013 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555014,2015-06-05 7:35)update absence_recordset arrivedate=0Where wnumber=20135555

32、014 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555015,2015-06-05 7:45)update absence_recordset arrivedate=0Where wnumber=20135555015 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555016,2015-06-05 7:52)update absence_recordset arrivedate=0Wh

33、ere wnumber=20135555016 and arrivedate=1 Insert into start_record(wnumber,arrivedate) values(20135555017,2015-06-05 8:25)update absence_recordset arrivedate=0Where wnumber=20135555017 Insert into start_record(wnumber,arrivedate) values(20135555018,2015-06-05 7:35)update absence_recordset arrivedate=

34、0Where wnumber=20135555018 and arrivedate=1 4. 系统测试4.1 模块测试 本系统的模块测试是与系统开发的过程中同步进行。主要用于检测各个功能模块的数据库操作是否规范是否满足系统需求,代码编写是否规范,程序是否可以正常运行,运行结果是否可以达到预期效果等等。 4.2 整体测试(一) 用户登录界面(二)工人信息表查询 (三)删除工人信息(四) 添加工人信息 (五) 生产流程信息查询(六) 工人出勤信息查询4.3 测试结果经过对系统整体功能的测试,本系统顺利运行且功能结构清晰、运行正常。系统功能可以满足用户的需求,数据库设计可以满足系统需求,数据处理正常

35、。且能够正常投入矿井生产使用。5. 附件5.1数据库创建代码创建数据库USE mastergoCREATE DATABASE mineproductionmsgON(NAME=productionsystem,FILENAME=d:mineproduction.mdf,SIZE=10,MAXSIZE=50,FILEGROWTH=5)LOG ON(NAME=mine,FILENAME=d:mineproductionsystem.idf,SIZE=5MB,MAXSIZE=25MB,FILEGROWTH=5MB)Go矿井工人信息库Create table worker_ information(W

36、number char (30) Not null primary key,Wname varchar (10) Not null,Wsex char(2) Not null CHECK (sex in (男,女),Wage int Not null CHECK (age0),Job varchar (10) Not null,Telephone char(30)Not null)矿井生产流程信息库Create table system_production(Pname varchar(30) Not null primary key,Wnumber char(50) Not null,Nop char(10) Not null,

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 学术论文 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服