ImageVerifierCode 换一换
格式:DOCX , 页数:27 ,大小:176.91KB ,
资源ID:10562160      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/10562160.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(学生管理信息系统课程设计报告.docx)为本站会员(b****8)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

学生管理信息系统课程设计报告.docx

1、学生管理信息系统课程设计报告数据库系统应用课程设计课程设计报告 设 计 题 目: 学生成绩管理系统_ 专 业 (方 向): 信息管理与信息系统 年 级、 班: xxxxxxxxx 学 生 学 号: xxxxxxxxxx 学 生 姓 名: XX 指 导 教 师: XXX 2017年 12 月 17 日摘 要本文描述的是基于Windows环境的学生管理系统,主要功能模块包括学生信息的添加、修改、查找、删除。主要工具Microsoft Visual Studio2010设计窗体,SQL server2008建立数据库,实现学生信息管理的基本功能。本篇报告介绍一个学生信息管理系统的从分析到设计最后到实

2、现的全过程,给出了学生信息管理系统的设计和技术实现的过程,特别在细节上分析功能和函数的实现思想。涉及到雪上信息管理的基本功能在本报告中都有描述。AbstractDescribed in this paper is based on the Windows environment management system for students, the main function modules include student information to add, modify, delete, search. The main tool of Microsoft Visual Studio20

3、10 SQL Server2008 design form, database, information management students to achieve the basic function.This report describes a student information management system from analysis to design to the final realization of the entire process, gives the student information management system design and real

4、ization process, especially in the details of analysis function and the function of the realization of ideas. Relate to the snow on the basic functions of information management in this report are described.关键词 数据库,添加,修改,查找,删除学生信息管理系统一、概述本文描述的是基于Windows环境的学生管理系统,主要功能模块包括学生信息的添加、修改、查找、删除。主要工具Microsof

5、t Visual Studio2010设计窗体,SQL server2008建立数据库,实现学生信息管理的基本功能。(一)、设计目的本课程设计的目的是使学生能熟练掌握简单的Window窗体应用程序的设计和ADD.net的应用,希望通过本次的锻炼学生实用c#语言解决实际问题的能力。(二)、开发工具的选择Microsoft Visual Studio(简称VS)是美国微软公司的开发工具包系列产品。VS是一个基本完整的开发工具集,它包括了整个软件生命周期中所需要的大部分工具,如UML工具、代码管控工具、集成开发环境(IDE)等等。所写的目标代码适用于微软支持的所有平台,包括Microsoft Win

6、dows、Windows Mobile、Window CE、.NET Framework、.NET Compact Framework和Microsoft Silver light及Windows Phone。Visual Studio是目前最流行的Windows平台应用程序的集成开发环境。最新版本为VisualStudio2015版本,基于.NETFramework4.5.2。二、需求分析(一)、功能需求的分析本系统的功能需求分析如下:系统用户:用户,密码,退出。学生基本信息:学号 ,姓名,性别, 电话,班号,生日,住址。班级信息:班号,年级,班主任。课程基本信息:课程号,课程名,课程类别,

7、学分。学生成绩信息:学号,班号,课程类型,学分。(二)、性能需求分析(1) 登录、用户界面需求: 简洁、易懂、易用、有好的用户界面(2) 安全保密需求: 只有凭借用户名和密码登录系统,才能进行信息的管理。三、 总体设计(一)、系统总体结构及功能模块划分经过对系统的需求分析,学生信息管理系统主要划分为:系统管理,学生信息管理,班级信息管理,课程信息管理,学籍信息管理,成绩信息管理六个模块,如图3.1所示。图3.1系统的总体结构1、系统管理模块系统用户:这里面包含添加用户,修改密码,退出系统三个小部分,如图3.1.1所示。图3.1.1系统用户模块结构2、学生信息管理模块学生信息管理: 主要是用于学

8、生信息更新、插入、删除,如图3.1.2所示。图3.1.2学生信息管理模块结构3、班级信息管理模块班级信息管理:添加班级信息,修改班级信息,如图3.1.3所示。图3.1.3班级信息管理模块结构4、课程信息管理模块课程信息管理:添加课程信息,修改课程信息,设置课程信息,如图3.1.4所示。图3.1.4课程信息管理模块结构5、成绩信息管理模块成绩信息管理:添加成绩信息,修改成绩信息,查询成绩信息,如图3.1.5所示。图3.1.5成绩信息管理模块结构(二)、系统数据库概念结构设计信息表设计:1、学生信息表如表 1所示。表 1学生信息表列名数据类型长度备注学号Char8主键姓名string20无性别En

9、umeration1无生日Datatime10无照片Byte50无联系电话Varchar20无地址string20无3.2.2班级信息表如表 2所示。表 2班级信息表列名数据类型长度备注班号char5主键班级名称String10无班主任String 5无3.2.3课程信息表如表 3所示。表 3课程信息表列名数据类型长度备注课程号Char5主键课程名称String 10无课程类型string5无学分int5无3.2.4成绩信息表如表 4所示。表 4成绩信息表列名数据类型长度备注学号Char10主键课程号Char5主键成绩类型String5无分数float5无3.2.5用户信息表如表 5所示。表

10、5用户信息表列名数据类型长度备注登录IDchar5主键登录名String10无用户名String 10无密码String 10四、详细设计(一)、系统管理功能模块的实现创建一个FormSystemMessage窗体,实现添加用户、删除用户、修改密码、退出系统的功能。public partial class FormSystemMessage : Form public FormSystemMessage() InitializeComponent(); private void operatorBindingNavigatorSaveItem_Click(object sender, Even

11、tArgs e) this.Validate(); this.operatorBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.dataSetUserPassword); DataSetUserPassword dsp = new DataSetUserPassword(); DataSetUserPasswordTableAdapters.OperatorTableAdapter dsup = new DataSetUserPasswordTableAdapters.OperatorTableAdapter();

12、 private void FormSystemMessage_Load(object sender, EventArgs e) / TODO: 这行代码将数据加载到表“dataSetUserPassword.Operator”中。您可以根 据需要移动或删除它。 this.operatorTableAdapter.Fill(this.dataSetUserPassword.Operator); dsup.Fill(dsp.Operator); dataGridViewSystemMessage.DataSource = dsp.Operator; private void buttonDele

13、te_Click(object sender, EventArgs e) DataSetUserPassword.OperatorRow row = (DataSetUserPassword.OperatorRow) (DataRowView)dataGridViewSystemMessage.CurrentRow.DataBoundItem).Row); if (MessageBox.Show(您确定要删除这个用户吗?, 确定提示) = DialogResult.No) return; row.Delete(); private void buttonAdd_Click(object sen

14、der, EventArgs e) if (string.IsNullOrEmpty(nameTextBox.Text) MessageBox.Show(用户名不能为空, 错误提示, MessageBoxButtons.OK, MessageBoxIcon.Error); return; if (string.IsNullOrEmpty(passwordTextBox.Text) MessageBox.Show(密码不能为空, 错误提示, MessageBoxButtons.OK, MessageBoxIcon.Error); return; DataSetUserPassword.Opera

15、torRow row = dsp.Operator.NewOperatorRow(); row.Name = nameTextBox.Text; row.Password = passwordTextBox.Text; dsp.Operator.AddOperatorRow(row); private void buttonSave_Click(object sender, EventArgs e) try dsup.Update(dsp.Operator); MessageBox.Show(数据保存成功, 提示信息, MessageBoxButtons.OK, MessageBoxIcon.

16、Information); catch (Exception ex) MessageBox.Show(ex.Message, 提示信息, MessageBoxButtons.OK, MessageBoxIcon.Error); private void buttonExit_Click(object sender, EventArgs e) Application.Exit(); (二)、学生信息管理模块的实现4.2.1.“学生信息管理”窗体的实现如图4.2.1所示。图 4.2.1“学生信息管理”窗体在构造函数前添加数据库上下文对象,并在构造函数中增加以下代码ScoreManContext d

17、b = new ScoreManContext();public FormClass() InitializeComponent(); db.Studentes.Load(); studentBindingSource.DataSource = db.Studentes.Local; “新添”按钮代码实现如下private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) Student student = new Course(); course.Id = Guid.NewGuid(); FormEditCou

18、rse formEdit = new FormEditCourse(course ); if(formEdit.ShowDialog ()=DialogResult.OK) courseBindingSource.Add(course); courseBindingSource.EndEdit(); db.SaveChanges(); “删除”按钮代码实现如下private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (studentBindingSource.Current = null) retu

19、rn; if(Dialogs.ShowConfirm (你确定删除吗)=DialogResult.Yes) studentBindingSource.RemoveCurrent(); db.SaveChanges(); “编辑”按钮代码实现如下private void toolStripEdit_Click(object sender, EventArgs e) if (studentBindingSource.Current = null) return; Student student = studentBindingSource.Current as Student; FormStude

20、ntEdit formEdit = new FormStudentEdit(student); if(formEdit .ShowDialog ()=DialogResult.OK) studentBindingSource.EndEdit(); db.SaveChanges(); else db.Entry(student).Reload(); studentBindingSource.ResetBindings(false ); 4.2.2.“编辑学生信息”窗体设计如图4.2.2所示。图 4.2.2“编辑学生信息”窗体设计在该窗体中“选择照片”按钮代码实现如下private void bu

21、ttonSelectPicture_Click(object sender, EventArgs e) OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Filter = 所有图片(*.jpg;*.png;*.bmp;*.gif)|*.jpg;*.png;*.gif;*.bmp; if(openDialog .ShowDialog()=DialogResult.OK) photoPictureBox.Image = Image.FromFile(openDialog.FileName); “确定”按钮代码实现如下priva

22、te void buttonOK_Click(object sender, EventArgs e) if (ValidateData() DialogResult = DialogResult.OK; “取消”按钮代码实现如下private void buttonCancel_Click(object sender, EventArgs e) DialogResult = DialogResult.Cancel; (三)、班级信息管理模块的实现 4.3.1.“班级信息管理”窗体设计如图4.3.1所示。图 4.3.1“班级信息管理”窗体设计在构造函数前添加数据库上下文对象,并在构造函数中增加以

23、下代码ScoreManContext db = new ScoreManContext();public FormClass() InitializeComponent(); db.Classes.Load(); classBindingSource.DataSource = db.Classes.Local; “新添”按钮代码实现如下private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) Class classes = new Class(); classes.Id = Guid.NewGuid();

24、 FormEditClass formEdit = new FormEditClass(); if (formEdit.ShowDialog() = DialogResult.OK) classBindingSource.Add(classes); classBindingSource.EndEdit(); db.SaveChanges(); “删除”按钮代码实现如下private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (classBindingSource.Current = null) re

25、turn; classBindingSource.RemoveCurrent(); db.SaveChanges(); Dialogs.ShowMessage(删除成功); “编辑”按钮代码实现如下private void toolStripButton1_Click(object sender, EventArgs e) if (classBindingSource.Current = null) return; Class classes = classBindingSource.Current as Class; FormEditClass formEdit = new FormEdit

26、Class( ); if (formEdit.ShowDialog() = DialogResult.OK) db.SaveChanges(); else db.Entry(classes ).Reload(); 4.3.2.“编辑班级信息”窗体如图4.3.2所示。图4.3.2“编辑班级信息”窗体设计“确定”按钮代码实现如下private void buttonOK_Click(object sender, EventArgs e) if (ValidateData() DialogResult = DialogResult.OK; “取消”按钮代码实现如下private void butto

27、nCancel_Click(object sender, EventArgs e) DialogResult = DialogResult.Cancel; (四)、课程信息管理模块的实现4.4.1.“课程信息窗体”设计如图4.4.1所示。图 4.4.1“课程信息窗体”设计在构造函数前添加数据库上下文对象,并在构造函数中增加以下代码ScoreManContext db = new ScoreManContext();public FormClass() InitializeComponent(); db.Courses.Load(); courseBindingSource.DataSource

28、 = db.Courses.Local; “新添”按钮实现代码如下private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) Course course = new Course(); course.Id = Guid.NewGuid(); FormEditCourse formEdit = new FormEditCourse(course ); if(formEdit.ShowDialog ()=DialogResult.OK) courseBindingSource.Add(course); cour

29、seBindingSource.EndEdit(); db.SaveChanges(); “删除”按钮实现代码如下private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (courseBindingSource.Current = null) return; courseBindingSource.RemoveCurrent(); db.SaveChanges(); Dialogs.ShowMessage(删除成功); “编辑”按钮实现代码如下 private void toolStripButtonEdit_Click(object sender, EventArgs e) if (courseBindingSource.Current = null) return; Course course = courseBindingSource.Current as Course; FormEditCourse for

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1