高校学生就业管理系统

上传人:tia****g98 文档编号:159286429 上传时间:2022-10-08 格式:DOC 页数:17 大小:844.01KB
收藏 版权申诉 举报 下载
高校学生就业管理系统_第1页
第1页 / 共17页
高校学生就业管理系统_第2页
第2页 / 共17页
高校学生就业管理系统_第3页
第3页 / 共17页
资源描述:

《高校学生就业管理系统》由会员分享,可在线阅读,更多相关《高校学生就业管理系统(17页珍藏版)》请在装配图网上搜索。

1、目录一、题目概述(内容及要求)1二、需求分析12.1高校就业管理系统12.2高校就业管理系统数据流图12.3高校就业系统管理系统功能框图1三、概要设计23.1数据模型(E-R图)23.2数据库表格结构设计2四、详细设计34.1登录界面34.2修改界面54.3查询界面10五、软件测试155.1划分等价类并编号155.2有效测试用例155.3无效测试用例16六、总结16参考文献16一、题目概述(内容及要求)实现院系、专业、毕业生信息管理(设有就业标志,初值为待业); 实现职业类型、职业信息(职业号、类型号、需求数量、聘用数量、用 人单位)登记; 实现毕业生就业登记(学号、职业号),自动修改相应学生

2、的就业标志 和职业的聘用数量,并保证聘用数量不大于需求数量; 创建存储过程查询毕业生的人数、待业人数、就业人数和就业率; 创建存储过程查询各专业的毕业生就业率; 创建 check 约束限制毕业生性别必须为男或女; 建立表间关系。二、需求分析2.1高校就业管理系统高校就业管理系统化可以完成对学生信息的修改、查询(就业率,已就业信息,未就业信息,公司信息)、添加(学生基本信息,院系信息,公司信息)、退出功能。初步完成了对高校就业信息的管理,界面设计简洁,使用简单。2.2高校就业管理系统数据流图 图2.1 高校就业管理系统数据流图2.3高校就业系统管理系统功能框图图2.2 高校就业系统管理系统功能框

3、图三、概要设计3.1数据模型(E-R图)图3 高校学生就业管理E_R图3.2数据库表格结构设计表3.1 学院信息表列 名数据类型是否为空说明院系编号char(4)NOT NULL主键院系名称char(20)NULL表3.2 专业信息表列 名数据类型是否为空说明专业编号char(6)NOT NULL 主键专业名称char(20)NULL表3.3 员工信息表列名数据类型是否为空说明学号char(10)NULL职业号char(10)NULL 表3.4 用户信息表列名数据类型是否为空说明用户名char(10)NULL密码char(10)NULL权限char(10)NULL表3.5 用人单位信息表列名数

4、据类型是否为空说明职业号char(10)NOT NULL主键类型号char(10)NULL需求数量intNULL聘用数量intNULL用人单位char(20)NULL表3.6 学生信息表列名数据类型是否为空说明姓名char(20)NULL性别char(2)NOT NULLCheck(男,女)出生年月char(10)NULL籍贯char(20)NULL专业编号char(6)NULL院系编号char(4)NULL就业标志char(20)NULL初值为“待就业”表3.7 职业信息表列名数据类型是否为空说明类型号char(10)NULL主键类型名称char(20)NULL四、详细设计4.1登录界面登陆

5、界面的设计如图4.1所示:图4.1 登陆界面设计代码如下:private void button1_Click(object sender, EventArgs e) if (textBox1.Text != ) if (textBox2.Text != ) DataConnection.getConn(); string id = textBox1.Text.Trim(); string pwd = textBox2.Text.Trim(); string sql = select count(*) from login where 用户名= + id + and 密码= + pwd + ;

6、 int state = DataConnection.GetCountInfoBySql(sql); if (state = 0 | state 1) MessageBox.Show(用户名或密码错误!); else Form1 f2 = new Form1(); f2.Show(); this.Hide(); DataConnection.CloseConn(); else MessageBox.Show(密码为空!请输入.); else MessageBox.Show(用户名为空!请输入.); private void button2_Click(object sender, Event

7、Args e) textBox1.Text = ; textBox2.Text = ; 4.2修改界面修改界面的设计如图4.2所示:图4.2 修改界面设计代码如下:private void button7_Click(object sender, EventArgs e) if (textBox1.Text != ) string id = textBox1.Text.Trim(); if (radioButton3.Checked = true) if (comboBox1.Text != ) if (comboBox4.Text != ) string a = select sum(需求数

8、量) from profesion_student,type where profesion_student.类型号=type.类型号 and profesion_student.用人单位= + comboBox1.Text.Trim() + and 类型名称= + comboBox4.Text.Trim() + ; int b = DataConnection.GetCountInfoBySql(a); a = select sum(聘用数量) from profesion_student,type where profesion_student.类型号=type.类型号 and profe

9、sion_student.用人单位= + comboBox1.Text.Trim() + and 类型名称= + comboBox4.Text.Trim() + ; int c = DataConnection.GetCountInfoBySql(a); if (c 0) sql= delete from employment where 学号= + id + ; int f = DataConnection.UpdateDate(sql); sql = select count(*) from employment where 职业号= + s + ; int d = DataConnect

10、ion.GetCountInfoBySql(sql); sql = update profesion_student set 聘用数量= + d + where 职业号= + s + ; DataConnection.UpdateDate(sql); else MessageBox.Show(学号为空!请输入.); private void tabPage2_Click(object sender, EventArgs e) comboBox2.Items.Clear(); comboBox1.Items.Clear(); comboBox4.Items.Clear(); comboBox6.

11、Items.Clear(); radioButton3.Checked = false; radioButton1.Checked = false; radioButton2.Checked = false; radioButton4.Checked = false; string sql = select 专业名称 from department order by 专业编号 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox2.Items.Add(dr专业名称); sq

12、l = select distinct 用人单位 from profesion_student; dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox1.Items.Add(dr用人单位); sql = select 类型名称 from dbo.type; dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox4.Items.Add(dr类型名称); sql = select 院系名称 from academy order by

13、院系编号 asc; dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox6.Items.Add(dr院系名称); if (textBox1.Text != ) string id = textBox1.Text.Trim(); string sql1 = select 姓名 from student_info where 学号= + id + ; textBox2.Text = DataConnection.GetDataString(sql1); sql1 = select 性别 from student_i

14、nfo where 学号= + id + ; string s = DataConnection.GetDataString(sql1); if (s = 男) radioButton4.Checked = true; if (s = 女) radioButton1.Checked = true; sql1 = select 出生年月 from student_info where 学号= + id + ; textBox3.Text = DataConnection.GetDataString(sql1); sql1 = select 籍贯 from student_info where 学

15、号= + id + ; textBox4.Text = DataConnection.GetDataString(sql1); sql1 = select 专业名称 from student_info,department where student_info.专业编号=department.专业编号 and 学号= + id + ; comboBox2.Text = DataConnection.GetDataString(sql1); sql1 = select 院系名称 from student_info,academy where student_info.院系编号=academy.院

16、系编号 and 学号= + id + ; comboBox6.Text = DataConnection.GetDataString(sql1); sql1 = select 就业标志 from student_info where 学号= + id + ; string s1 = DataConnection.GetDataString(sql1).Trim(); if (s1 = 待就业) radioButton2.Checked = true; if (s1 = 已就业) radioButton3.Checked = true; sql1 = select 用人单位 from profe

17、sion_student,employment where profesion_student.职业号=employment.职业号 and employment.学号= + id + ; comboBox1.Text = DataConnection.GetDataString(sql1); sql1 = select 类型名称 from type,profesion_student,employment where type.类型号=profesion_student.类型号 and profesion_student.职业号=employment.职业号 and employment.学

18、号= + id + ; comboBox4.Text = DataConnection.GetDataString(sql1); else MessageBox.Show(学号为空!请输入.); private void button1_Click(object sender, EventArgs e) if (textBox1.Text != ) string sql = select 院系编号 from academy where 院系名称= + comboBox6.Text.Trim() + ; string a = DataConnection.GetDataString(sql).T

19、rim(); sql = select 专业编号 from department where 专业名称= + comboBox2.Text.Trim() + ; string b = DataConnection.GetDataString(sql).Trim(); if (radioButton1.Checked = true) sql = update student_info set 性别= + radioButton1.Text + where 学号= + textBox1.Text.Trim() + ; int g = DataConnection.UpdateDate(sql);

20、if (radioButton4.Checked = true) sql = update student_info set 性别= + radioButton4.Text + where 学号= + textBox1.Text.Trim() + ; int f = DataConnection.UpdateDate(sql); sql = update student_info set 姓名= + textBox2.Text.Trim() + ,出生年月= + textBox3.Text.Trim() + ,籍贯= + textBox4.Text.Trim() + ,专业编号= + b +

21、,院系编号= + a + where 学号= + textBox1.Text.Trim() + ; int d = DataConnection.UpdateDate(sql); else MessageBox.Show(学号为空!请输入.); 4.3查询界面查询就业率界面的设计如图4.3所示:图4.3 查询就业率界面设计代码如下:private void tabPage3_Click(object sender, EventArgs e) string sql = select count(*) from student_info; int a=DataConnection.GetCount

22、InfoBySql(sql); label3.Text = a.ToString(); sql = select count(*) from student_info where 就业标志=已就业; int b = DataConnection.GetCountInfoBySql(sql); label5.Text = b.ToString(); sql = select count(*) from student_info where 就业标志=待就业; label4.Text = DataConnection.GetCountInfoBySql(sql).ToString(); float

23、 c =(float) b / a; label6.Text = c.ToString(); comboBox3.Items.Clear(); sql = select 专业名称 from department order by 专业编号 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox3.Items.Add(dr专业名称); comboBox3.Text = ; label10.Text = ; private void button2_Click(object se

24、nder, EventArgs e) /comboBox3.Text = ; label10.Text = ; if (comboBox3.Text != ) string sql = select count(*) from student_info,department where student_info.专业编号=department.专业编号 and 专业名称= + comboBox3.Text + ; int a = DataConnection.GetCountInfoBySql(sql); sql = select count(*) from student_info,depa

25、rtment where student_info.专业编号=department.专业编号 and 就业标志=已就业 and 专业名称= + comboBox3.Text + ; int b = DataConnection.GetCountInfoBySql(sql); if (a = 0) label10.Text = 该专业学生人数为0; else float c = (float)b / a; label10.Text = c.ToString(); else MessageBox.Show(“专业为空!请选择.”); 查询已就业信息界面的设计如图4.4所示:图4.4 查询已就业信息

26、界面设计代码如下:private void tabPage4_Click(object sender, EventArgs e) comboBox5.Items.Clear(); comboBox7.Items.Clear(); comboBox5.Text = ; comboBox7.Text = ; string sql = select 专业名称 from department order by 专业编号 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox7.Ite

27、ms.Add(dr专业名称); sql = select 院系名称 from academy order by 院系编号 asc; dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox5.Items.Add(dr院系名称); private void button3_Click(object sender, EventArgs e) if (comboBox5.Text != ) string s = select c5.学号,姓名,出生年月,籍贯,院系名称,专业名称,就业标志,用人单位,类型名称 from t

28、ype right join (select c4.学号,姓名,出生年月,就业标志,籍贯,院系名称,专业名称,c4.职业号,类型号,用人单位 from profesion_student right join (select c3.学号,姓名,出生年月,就业标志,籍贯,院系名称,专业名称,职业号 from dbo.employment right join (select 学号,姓名,出生年月,就业标志,籍贯,院系名称,专业名称 from department join (select 学号,姓名,出生年月,就业标志,籍贯,院系名称,专业编号 from academy join (select

29、 学号,姓名,出生年月,院系编号,籍贯 ,就业标志,专业编号 from student_info where 就业标志=已就业)c1 on academy.院系编号=c1.院系编号)c2 on department.专业编号=c2.专业编号)c3 on employment.学号=c3.学号)c4 on profesion_student.职业号=c4.职业号) c5 on type.类型号=c5.类型号 where 院系名称=+ comboBox5.Text.Trim() + order by c5.学号; dataGridView1.DataSource = DataConnection.

30、GetDataSuoce(s).Tables0; else MessageBox.Show(院系名称为空!请选择.); private void button4_Click(object sender, EventArgs e) if (comboBox7.Text != ) string s = select c5.学号,姓名,出生年月,籍贯,院系名称,专业名称,就业标志,用人单位,类型名称 from type right join (select c4.学号,姓名,出生年月,就业标志,籍贯,院系名称,专业名称,c4.职业号,类型号,用人单位 from profesion_student r

31、ight join (select c3.学号,姓名,出生年月,就业标志,籍贯,院系名称,专业名称,职业号 from dbo.employment right join (select 学号,姓名,出生年月,就业标志,籍贯,院系名称,专业名称 from department join (select 学号,姓名,出生年月,就业标志,籍贯,院系名称,专业编号 from academy join (select 学号,姓名,出生年月,院系编号,籍贯 ,就业标志,专业编号 from student_info where 就业标志=已就业)c1 on academy.院系编号=c1.院系编号)c2 o

32、n department.专业编号=c2.专业编号)c3 on employment.学号=c3.学号)c4 on profesion_student.职业号=c4.职业号) c5 on type.类型号=c5.类型号 where 专业名称= + comboBox7.Text.Trim() + order by c5.学号; dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0; else MessageBox.Show(专业名称为空!请选择.); 查询未就业信息界面的设计如图4.5所示:图4.5 查询未就业信息界面

33、设计代码如下:private void tabPage5_Click(object sender, EventArgs e) comboBox8.Items.Clear(); comboBox9.Items.Clear(); comboBox8.Text = ; comboBox9.Text = ; string sql = select 专业名称 from department order by 专业编号 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox9.Items

34、.Add(dr专业名称); sql = select 院系名称 from academy order by 院系编号 asc; dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox8.Items.Add(dr院系名称); private void button5_Click(object sender, EventArgs e) if (comboBox8.Text != ) string sql = select student_info.学号,姓名,出生年月,籍贯,院系名称,专业名称,就业标志 from s

35、tudent_info,academy,department where student_info.院系编号=academy.院系编号 and student_info.专业编号=department.专业编号 and 就业标志=待就业 and 院系名称= + comboBox8.Text.Trim() + order by student_info.学号; dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0; else MessageBox.Show(院系名称为空!请选择.); private void bu

36、tton6_Click(object sender, EventArgs e) if (comboBox9.Text != ) string sql = select student_info.学号,姓名,出生年月,籍贯,院系名称,专业名称,就业标志 from student_info,academy,department where student_info.院系编号=academy.院系编号 and student_info.专业编号=department.专业编号 and 就业标志=待就业 and 专业名称= + comboBox9.Text.Trim() + order by stud

37、ent_info.学号; dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0; else MessageBox.Show(专业名称为空!请选择.); 查询公司信息界面如图4.6所示:图4.6 查询公司信息界面设计代码如下:private void tabPage6_Click(object sender, EventArgs e) string sql = select 用人单位,类型名称,需求数量,聘用数量 from profesion_student,type where type.类型号=profesio

38、n_student.类型号; dataGridView3.DataSource = DataConnection.GetDataSuoce(sql).Tables0; 五、软件测试考虑到各种因素和条件的限制,我们决定采用黑盒测试方案。即我们不考虑所编写程序的具体结构, 而是根据软件所需要的应该完成高校学生就业管理系统的各种功能,设计一些合法的测试用例和不合法的测试用例,在相应的功能模块下指定输出测试语句,来测试相应的功能是否实现。特别是根据边界条件设计一些边界测试用例。以检查系统是否能正确的完成修改功能,得到正确的就业率。或者是对不合法的输入和操作能够正确的识别。5.1划分等价类并编号表5.1

39、 划分等价类输出条件合理等类不合理等价类输入正确的用户名和密码1.可以进行登录2.不能进行登录添加学生基本信息、院校信息、公司信息3.添加成功4.添加不成功对学生信息进行修改5.修改成功,数据库信息被修改6.修改不成功,数据库信息未被修改对就业率信息、就业信息、就业信息、公司信息进行查询7.显示信息8.不现实信息5.2有效测试用例表5.2 有效的测试用例测试数据预测结果实际结果覆盖输入用户名123,密码123可正常登入正常登录1点击添加添加学生基本信息、院校信息、公司信息添加成功,在数据库中可查询到添加成功,在数据库中可查询到3点击修改,修改学生信息修改成功,在数据库中可查询到修改成功,在数据库中可查询到5点击查询,查询就业率信息、就业信息、就业信息、公司信息显示全部信息显示全部信息75.3无效测试用例表5.3 无效测试用例测试数据预测结果实际结果覆盖输入用户名123,密码123可正常登入不能登录2点击添加,添加学生基本信息、院校信息、公司信息添加成功,在数据库中可查询到添加不成功,在数据库中可查询不到4点击修改,修改学生信息修改成功,在数据库中可查询到修改不成功,在数据库中可查询不到6点击查询,查询就业率信息、就业信息、就业信息、公司信息显示全部信息不能显示全部信息8六、总结通过这次软件方向专业实训,让我知道做一个项目是多么不容易。既要

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

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!