欢迎来到天天文库
浏览记录
ID:11660126
大小:302.28 KB
页数:15页
时间:2018-07-13
《数据库课程设计学生信息管理系统大学论文.doc》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、安徽工业大学工商学院数据库课程设计报告学生信息管理系统姓名:学号:专业:计算机科学与技术班级:计1441教师:2017.1.3一、题目:学生信息管理系统学生信息管理是一个教育单位不可缺少的部分,它的内容对于学校的决策者和管理者来说都是至关重要的。所以学生信息管理系统应该能够为用户提供充足的信息和快捷的查询手段。本系统采用MicrosoftVisualStudio2010作为开发工具,MicrosoftSQLServer2012建立数据库,并进行初始数据输入,在进行界面的设计和代码的编写,界面简洁,功能明确,方便了工作人员的操作。二、开
2、发工具:MicrosoftVisualStudio2010三、数据库:MicrosoftSQLServer2012MicrosoftSQLServer2012是一套完整的数据库和分析产品,具有高度的可扩展性和可靠性,对市场的快速反应能力强,可以快速构建各种业务和方案,具有高度的安全性保障。四、操作系统:Microsoftwindows10五、功能图登录添加更改删除查询六、用户视图与代码1、登录页面usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel
3、;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespace测试{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidlabel1_Click(objectsender,EventArgse){}privatevoidcomboB
4、ox1_SelectedIndexChanged(objectsender,EventArgse){if(comboBox1.Text=="学生")pictureBox1.Image=Image.FromFile("pic\1.jpg");if(comboBox1.Text=="教师")pictureBox1.Image=Image.FromFile("pic\2.jpg");}privatevoidbutton2_Click(objectsender,EventArgse){stringstr,sql;str="Server=.
5、;Database=学生信息管理系统;Userid='sa';pwd='167349'";SqlConnectionconn=newSqlConnection(str);conn.Open();sql="select*from教师登入表wherezh='"+textBox1.Text+"'andmima='"+textBox2.Text+"'";SqlCommandcmd=newSqlCommand(sql,conn);cmd.CommandType=CommandType.Text;SqlDataReadersdr;sdr=cmd.
6、ExecuteReader();if(sdr.Read()&&comboBox1.Text=="教师"){Form3form2=newForm3();form2.Show();}elseif(comboBox1.Text=="请选择")MessageBox.Show("未选择登录选项");elseMessageBox.Show("账号或密码错误!","错误提示",MessageBoxButtons.OK,MessageBoxIcon.Error);}privatevoidbutton3_Click(objectsender,Event
7、Argse){this.Dispose();}}}2、功能页面usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespace测试{publicpartialclassForm3:Form{publicForm3(){InitializeCompon
8、ent();}privatevoidradioButton1_CheckedChanged(objectsender,EventArgse){}privatevoidradioButton2_CheckedChanged
此文档下载收益归作者所有