学生宿舍管理系统课程设计报告_第1页
学生宿舍管理系统课程设计报告_第2页
学生宿舍管理系统课程设计报告_第3页
学生宿舍管理系统课程设计报告_第4页
学生宿舍管理系统课程设计报告_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

课 程 设 计 报 告 课程设计名称 信息系统课程设计 专 业 信息管理与信息系统 班 级 学号 姓 名 指导教师 成 绩 年 月 日信息系统课程设计某高校学生宿舍管理系统目 录一、设计任务与要求11.1 总体目标与任务要求11.2 题目选择与目的意义11.3 所选题目的主要工作1二、需求分析12.1 用户需求分析12.2 功能需求分析22.3 系统需求分析2三、概要设计23.1功能结构图23.2流程图3四、详细设计44.1数据库的E-R图44.2表的结构4五、关键代码说明65.1登陆代码65.2主菜单代码65.3查询学生信息代码65.4添加学生信息75.5删除学生信息85.6入住查询95.7添加宿舍信息9六、运行结果分析10七、收获与体会14八、主要参考资料14清水混凝土的配合比设计中,要针对当地水泥、砂石、外掺料及外加剂等原材料影响混凝土质量的多种因素进行分析,确定主要控制因素,并从经济性和使用要求综合考虑,优选出符合生产条件的最优方案组合。obstacles, correcting misunderstandings, advocate good cadre style. 2, adhere to the scientific decision-making and democratic decision-making decision-making law. Correctly handle to ensure that government decrees and based on the actual creative work, giving full play to subjective initiative, put an end to implement the conference meeting, to document the implementation of documents etc. Improve the scientific and democratic decision-making mechanism, improve and implement the decision to solicit the views of experts, the public hearing system. Improve the important decision of risk assessment mechanism and legal review mechanism. 3, to promote team unity. Uphold and improve the system of annual party book talk heart to heart, mind and Party members, Party members to exchange each other not less than 2 times. The implementation of sound team democratic life system, consolidate and enhance the partys mass line educational practice will promote the achievement of the topic of democratic life, criticism and self-criticism normalization, a long-term. Adhere to the party on the basis of the principle of unity, enhance internal communication, strengthen internal supervision, self Sleep maintenance team collective image and authority. (three) to ensure the execution is not strong or disguised to resist government decrees issues. Individual Bureau leadership team members lack of learning political theory system, not from the objective reality, not with the partys interests above all the principles to deal with personal problems. In the specific work safety supervision in the execution is not strong, in the implementation of the decision to deploy the discount, make choices, engage in work, the implementation of the agreement, uncomfortable is not performed, open or disguised to resist, the lack of subject consciousness of the party organization, the lack of resist in society all kinds of bad habits and unwholesome tendencies of courage Gas and courage. Such as the liability insurance of safe production work, individual leaders that have someone arrested, and no funding, not in the global chess perspective to the countryside to carry out daily inspection, found none of my business acceptance of the resumption of production in an armchair, with a pen, indifferent. Corrective measures: (LED Leadership: Luo Mingjun, rectification time: before September 25th, insist for a long time) 1, to strengthen the sense of responsibility, work to solve the lack of decent occupation explain away, conduct problems. To establish the overall concept, eliminate departmentalism. Strict assessment and accountability, to solve the spiritual slack, nianqingpazhong, status quo, To establish and perfect the muddle along and other issues. Bureau staff conduct work regulations, standardize the behavior of personnel. 2, strengthen the responsibility system. One is the in-depth study and implement the Hunan provincial Party and government leading cadres Interim Provisions on the work safety of a pair of (Hunan Office issued 2013 No.一、设计任务与要求1.1 总体目标与任务要求总体目标:成功的研发出学生宿舍管理系统。可以查询、添加、删除,员工、学生、宿舍的信息,便于管理,节省人力。任务与要求:能运行宿舍管理系统,达到管理的目的。要求:界面美观,添加、删除、查询等功能齐全。1.2 题目选择与目的意义选择学生宿舍管理系统作为题目使用者会感到操作非常方便,管理人员需要做的就是将数据输入到系统的数据库中去。由于数据库存储容量相当大,而且比较稳定,适合较长时间的保存,也不容易丢失。这无疑是为信息存储量比较大的学校提供了一个方便、快捷的操作方式。本系统具有运行速度快、安全性高、稳定性好的优点,并且具备完善的报表生成、修改功能,能够快速的查询学校所需的住宿信息,方便高校对学生宿舍的管理。1.3 所选题目的主要工作在本学生宿舍管理系统的设计中,使用者仅为学生宿舍的管理员,他通过用户登陆来使用该系统,同时系统的操作都与学生宿舍管理数据库相连接,以确保业务数据的保存,修改,添加。二、需求分析2.1 用户需求分析学生宿舍管理系统对于一个学校来说是必不可少的组成部分。目前好多学校还停留在宿舍管理人员手工记录数据的最初阶段,手工记录对于规模小的学校来说还勉强可以接受,但对于学生信息量比较庞大,需要记录存档的数据比较多的高校来说,人工记录是相当麻烦的。而且当查找某条记录时,由于数据量庞大,还只能靠人工去一条条的查找,这样不但麻烦还浪费了许多时间,效率也比较低。当今社会是飞速进步的世界,原始的记录方式已经被社会所淘汰了,计算机化管理正是适应时代的产物。信息世界永远不会是一个平静的世界,当一种技术不能满足需求时,就会有新的技术诞生并取代旧技术。21世纪的今天,信息社会占着主流地位,计算机在各行各业中的运用已经得到普及,自动化、信息化的管理越来越广泛应用于各个领域。我们针对如此,设计了一套学生宿舍管理系统。2.2 功能需求分析 本学生宿舍管理系统应提供简单、层次关系明了、清晰的操作界面,使用户一目了然。尽可能的为用户的录入、查询等功能操作提供方便。在设计该系统时,应尽可能的贴近学生,便于用户操作。系统在实现上应该具有如下功能: 1.系统要求用户必须输入正确的用户名和密码才能进入系统。2.系统应提供查询功能,以方便用户对学生基本信息的查询(要实现按多种条件的查询)及楼房信息的查询。3.系统还应具有添加、修改、删除基本信息的功能。2.3 系统需求分析 本系统以Windows操作系统为平台,以Microsoft word及visual studio2005为开发工具,Microsoft SQL Server作为数据库。操作系统: Windows XP;浏览器:Internet Explore 5.0。三、概要设计3.1功能结构图 图3-1功能结构图3.2流程图(1)用户登录用户只需要填写姓名和密码就可以完成登录操作,登录成功自动跳转到主菜单页面。(2)信息查询用户在此可以通过输入宿舍、班级、学号等进行分类查询,查看相对应的学生基本信息。查询完后可以通过链接跳转到其他页面进行相关操作。(3)宿舍管理本页面主要进行对晚归学生的登记管理,还有对入住情况及员工信息的查询。操作完成后可以通过链接跳转到其他页面进行相关操作。(4)修改信息用户在此可以通过添加新宿舍和新生信息来修改基本宿舍信息。操作完成后可以通过链接跳转到其他页面进行相关操作。 图3-2用户登陆信息查询宿舍管理修改信息四、详细设计4.1数据库的E-R图 员工资料编号姓名性别电话楼号学生信息学号班级性别姓名 图4-1 图4-2 入住信息表楼号宿舍号是否住满可住/满员收费宿舍信息表楼号宿舍号学号姓名入住日期班级性别 图4-3 图4-4 4.2表的结构 图4.2-1员工资料表 图4.2-2入住信息表图4.2-3学生信息表 图4.2-4学生宿舍表 图4.2-5宿舍信息表五、关键代码说明5.1登陆代码string userName = txtName.Text; string password = txtPwd.Text;if (userName = admin & password = admin) MessageBox.Show(欢迎进入高校宿舍管理系统, 登陆成功, MessageBoxButtons.OK, MessageBoxIcon.Information); zhucaidan zhucaidan = new zhucaidan(); zhucaidan.Show(); this.Visible = false; else MessageBox.Show(用户名或密码错误请重新确认, 登录失败, MessageBoxButtons.OK, MessageBoxIcon.Information); txtName.Text = ; txtPwd.Text = ; txtName.Focus(); 5.2主菜单代码(1)返回登陆界面:login login = new login();login.Show();this.Visible = false;(2)在主菜单界面中显示窗体:chaxuesheng chaxuesheng = new chaxuesheng();chaxuesheng.MdiParent = this;chaxuesheng.Show();tssStatus.Text = 查询学生信息;5.3查询学生信息代码using System.Data.SqlClient;string connString = Data Source=.;Initial Catalog=宿舍;User ID = sa;SqlConnection connection = new SqlConnection(connString);string 学号 = textBox1.Text;string 班级 = textBox2.Text;string sql = String.Format(select * from 学生信息表$ where 学号 like%0% and 班级 like %1%, textBox1.Text, textBox2.Text);SqlDataAdapter dataAdapter = new SqlDataAdapter(sql, connection);DataSet dataSet = new DataSet(宿舍);dataAdapter.Fill(dataSet);dataGridView1.Columns0.DataPropertyName = 学号;dataGridView1.Columns1.DataPropertyName = 班级;dataGridView1.Columns2.DataPropertyName = 姓名;dataGridView1.Columns3.DataPropertyName = 性别;dataGridView1.DataSource = dataSet.Tables0;5.4添加学生信息using System.Data.SqlClient;string connString = Data Source= .;Initial Catalog = 宿舍;User ID = sa;SqlConnection connection = new SqlConnection(connString);string sql = String.Format(INSERT INTO 学生信息表$(学号,班级,姓名,性别)VALUES(0,1,2,3), textBox1.Text, textBox2, textBox3, textBox4);try connection.Open(); SqlCommand command = new SqlCommand(sql, connection); int count = command.ExecuteNonQuery(); if (count 0) MessageBox.Show(添加学生信息成功, 添加成功, MessageBoxButtons.OK, MessageBoxIcon.Information); else MessageBox.Show(添加学生失败, 添加失败, MessageBoxButtons.OK, MessageBoxIcon.Information); catch (Exception ex) MessageBox.Show(ex.Message, 操作数据库出错!, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); finally connection.Close(); 5.5删除学生信息using System.Data.SqlClient;string connString = Data Source= .;Initial Catalog = 宿舍;User ID = sa; SqlConnection connection = new SqlConnection(connString); string sql = String.Format(delete from 学生信息表$ where 学号 like%0%and 班级 like%1%,textBox1.Text,textBox2.Text); try connection.Open(); SqlCommand command = new SqlCommand(sql, connection); int count = command.ExecuteNonQuery(); if (count 0) MessageBox.Show(删除学生信息成功, 删除成功, MessageBoxButtons.OK, MessageBoxIcon.Information); else MessageBox.Show(删除学生信息失败, 删除失败, MessageBoxButtons.OK, MessageBoxIcon.Information); catch (Exception ex) MessageBox.Show(ex.Message, 操作数据库出错!, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); finally connection.Close(); 5.6入住查询using System.Data.SqlClient;string connString = Data Source=.;Initial Catalog=宿舍;User ID = sa; SqlConnection connection = new SqlConnection(connString); string 楼号 = textBox1.Text; string 宿舍号 = textBox2.Text; string sql = String.Format(select * from 入住表$ where 楼号 like%0% and 宿舍号 like%1%, textBox1.Text, textBox2.Text); SqlDataAdapter dataAdapter = new SqlDataAda

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论