



版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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 有效测试用例165.3 无效测试用例16六、总结16参考文献17Word 文档一、题目概述(容及要求)实现院系、专业、毕业生信息管理(设有就业标志,初值为 待业 );实现职业类型、职业信息(职业号、 类型号、 需求数量、 聘用数量、 用 人单位) 登记; 实现
2、毕业生就业登记(学号、 职业号) ,自动修改相应学生的就业标志和职业的聘用数量,并保证聘用数量不大于需求数量;创建存储过程查询毕业生的人数、待业人数、就业人数和就业率;创建存储过程查询各专业的毕业生就业率;创建check 约束限制毕业生性别必须为男 或 女 ; 建立表间关系。二、需求分析2.1 高校就业管理系统高校就业管理系统化可以完成对学生信息的修改、查询(就业率,已就业信息,未就业信息,公司信息)、添加(学生基本信息,院系信息,公司信息) 、退出功能。初步完成了对高校就业信息的管理,界面设计简洁,使用简单。2.2 高校就业管理系统数据流图D1来校公司信息表D2学生信息表来校公司信息表学生信
3、息事务1.1事务1.2公司信息1.3学生2事务系统管系统管信息理员理员接收事务更新数据库处理学生信息产生就业率报表图 2.1 高校就业管理系统数据流图2.3 高校就业系统管理系统功能框图高校学生就业管理系统登录修改查询添加退出已未学公生院公就就就司基系司业业业信本信信率信信息信息息息息息图 2.2高校就业系统管理系统功能框图Word 文档三、概要设计3.1 数据模型( E-R 图)籍贯学号姓名专业性别编号学生出生年月n就业应聘标志1类型类型号职业名称n拥有1用人职业号公司单位类型号需求聘用数量数量图 3高校学生就业管理E_R 图3.2 数据库表格结构设计表 3.1学院信息表列名数据类型是否为空
4、说明院系编号char(4)NOT NULL主键院系名称char(20)NULL表 3.2专业信息表列名数据类型是否为空说明专业编号char(6)NOT NULL主键专业名称char(20)NULL表 3.3员工信息表列名数据类型是否为空说明学号char(10)NULLWord 文档职业号char(10)NULL表 3.4用户信息表列名数据类型是否为空说明用户名char(10)NULL密码char(10)NULL权限char(10)NULL表 3.5用人单位信息表列名数据类型是否为空说明职业号char(10)NOT NULL主键类型号char(10)NULL需求数量intNULL聘用数量intN
5、ULL用人单位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 登录界面登陆界面的设计如图4.1 所示:Word 文档图 4.1登陆界面设计代码如下:private void button1_Click(o
6、bject sender, EventArgs e)if (textBox1.Text != "")if (textBox2.Text != "")DataConnection.getConn();string sql = "select count(*) from login where用户名 ='" + id + "' and密码 ='"+ pwd + "'"int state = DataConnection.GetCountInfoBySql(sql);i
7、f (state = 0 | state > 1)MessageBox.Show(" 用户名或密码错误! !");elseForm1 f2 = new Form1();f2.Show();this.Hide();DataConnection.CloseConn();elseMessageBox.Show(" 密码为空!请输入 .");elseMessageBox.Show(" 用户名为空! !请输入 .");Word 文档private void button2_Click(object sender, EventArgs e)
8、textBox1.Text = ""textBox2.Text = ""4.2 修改界面修改界面的设计如图4.2 所示:图 4.2修改界面设计代码如下:private voidbutton7_Click(object sender, EventArgs e)if (textBox1.Text != "")if (radioButton3.Checked = true)if (comboBox1.Text != "")if (comboBox4.Text != "")Word 文档string a
9、 = "select sum( 需求数量 ) from profesion_student,type where profesion_student. 类型号 =type. 类型号 and profesion_student. 用人单位+ "'and类型名称 int b = DataConnection.GetCountInfoBySql(a);a="selectsum( 聘 用 数 量 )fromprofesion_student,typewhereprofesion_student.类型号 =type. 类型号and profesion_student
10、.用人单位 + "' and类型名称 int c = DataConnection.GetCountInfoBySql(a);if (c < b)string sql = "update student_info set就业标志= ' 已就业 ' where学号 ='" + id + "'"DataConnection.UpdateDate(sql);sql = "select学号from employment where学号 ='" + id + "'
11、"if (DataConnection.GetCountInfoBySql(sql) = 0)sql = "insert into employment(学号 )values ('" + id + "')"DataConnection.UpdateDate(sql);strings ="select 职业号fromprofesion_student,typewhereprofesion_student.类型 号=type.类型 号andprofesion_student.用 人 单位='"+类型名称s
12、 = DataConnection.GetDataString(s).Trim();sql = "select count(*) fromemployment where职业号 ='" + s +"'"int d = DataConnection.GetCountInfoBySql(sql);sql ="updateprofesion_studentset 聘用数量 ="+ d + " where职业号 ='" + s + "'"DataConnection.Up
13、dateDate(sql);sql = "update employment set职业号 ='" + s + "' where学号 ='"+ id + "'"DataConnection.UpdateDate(sql);elseMessageBox.Show(" 公司聘用数量已达上线! ");elseMessageBox.Show(" 类型号为空! !请选择 .");elseWord 文档MessageBox.Show(" 用人单位为空! !请选择 .
14、n 否则,将就业情况修改为待就业! ");radioButton2.Checked = true;string s = "update student_info set就业标志 =' 待就业 ' where学号 ='" + id+ "'"DataConnection.UpdateDate(s);string sql = "select学号from employment where学号 ='" + id + "'"int h = DataConnection.
15、GetCountInfoBySql(sql);s = "select职业号from employment where学号 ='" + id+"'"s = DataConnection.GetDataString(s).Trim();if (DataConnection.GetCountInfoBySql(sql) > 0)sql= "delete from employment where学号 = '" + id + "'"int f = DataConnection.Upda
16、teDate(sql);sql = "select count(*) from employment where职业号 ='" + s + "'"int d = DataConnection.GetCountInfoBySql(sql);sql = "update profesion_student set聘用数量 =" + d + " where职业号 ='"+ s + "'"DataConnection.UpdateDate(sql);elseMessageB
17、ox.Show(" 学号为空!请输入 .");private void tabPage2_Click(object sender, EventArgs e)radioButton3.Checked = false;radioButton1.Checked = false;radioButton2.Checked = false;radioButton4.Checked = false;string sql = "select专业名称from department order by专业编号asc"SqlDataReader dr = DataConnect
18、ion.GetSqlDataReader(sql); while (dr.Read()专业名称 ");sql = "selectdistinct用人单位from profesion_student"Word 文档dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()用人单位 ");sql = "select类型名称from dbo.type"dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()类型名称 &quo
19、t;);sql = "select 院系名称 from academy order by 院系编号 asc" dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()院系名称 ");if (textBox1.Text != "")string id = textBox1.Text.Trim();string sql1 = "select from student_info where学号 ='" + id + "'"textBox
20、2.Text = DataConnection.GetDataString(sql1);sql1 = "select 性别 from student_info where学号 ='" + id + "'"string s = DataConnection.GetDataString(sql1);if (s = "男 ")radioButton4.Checked = true;if (s = "女 ")radioButton1.Checked = true;sql1 = "select 出生
21、年月from student_info where学号 ='" + id + "'"textBox3.Text = DataConnection.GetDataString(sql1);sql1 = "select 籍贯 from student_info where学号 ='" + id + "'"textBox4.Text = DataConnection.GetDataString(sql1);sql1 = "select 专业名称fromstudent_info,depart
22、mentwhere student_info. 专业编号 =department.专业编号and 学号 ='" + id + "'"comboBox2.Text = DataConnection.GetDataString(sql1);sql1 ="select 院系名称fromstudent_info,academywhere student_info. 院系编号=academy. 院系编号 and学号 ='" + id + "'"comboBox6.Text = DataConnectio
23、n.GetDataString(sql1);sql1 = "select 就业标志from student_info where学号 ='" + id + "'"string s1 = DataConnection.GetDataString(sql1).Trim();if (s1 = " 待就业 ")radioButton2.Checked = true;Word 文档if (s1 = " 已就业 ")radioButton3.Checked = true;sql1="select用 人
24、 单 位fromprofesion_student,employmentwhereprofesion_student.职业号 =employment.职业号and employment.学号 ='" + id + "'"comboBox1.Text = DataConnection.GetDataString(sql1);sql1 = "select 类型名称fromtype,profesion_student,employmentwheretype. 类型 号 =profesion_student.类 型 号andprofesion_s
25、tudent.职 业 号 =employment.职 业 号andemployment.学号 ='" + id + "'"comboBox4.Text = DataConnection.GetDataString(sql1);elseMessageBox.Show(" 学号为空!请输入 .");private void button1_Click(object sender, EventArgs e)if (textBox1.Text != "")stringsql="select院 系 编 号fr
26、omacademywhere院 系 名 称 ='"+string a = DataConnection.GetDataString(sql).Trim();sql = "select 专 业 编 号 from department where 专 业 名 称string b = DataConnection.GetDataString(sql).Trim();if (radioButton1.Checked = true)sql = "update student_info set性别 ='" + radioButton1.Text +
27、"' where学号 ='"int g = DataConnection.UpdateDate(sql);if (radioButton4.Checked = true)sql = "update student_info set性别 ='" + radioButton4.Text + "' where学号 ='"int f = DataConnection.UpdateDate(sql);sql ="updatestudent_infoset ='"+ "
28、', 出生年月='"+籍贯 专业编号 ='" + b + "',院系编号 ='" + a + "'Word 文档where学号 int d = DataConnection.UpdateDate(sql);elseMessageBox.Show(" 学号为空!请输入 .");4.3 查询界面查询就业率界面的设计如图4.3 所示:图 4.3查询就业率界面设计代码如下:private void tabPage3_Click(object sender, EventArgs e)st
29、ring sql = "select count(*) from student_info"int a=DataConnection.GetCountInfoBySql(sql);label3.Text = a.ToString();sql = "select count(*) from student_info where就业标志 =' 已就业 '"int b = DataConnection.GetCountInfoBySql(sql);label5.Text = b.ToString();sql = "select cou
30、nt(*) from student_info where就业标志 =' 待就业 '"label4.Text = DataConnection.GetCountInfoBySql(sql).ToString(); float c =(float) b / a;label6.Text = c.ToString();sql = "select专业名称from department order by专业编号asc"Word 文档SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (
31、dr.Read()专业名称 ");comboBox3.Text = ""label10.Text = ""private void button2_Click(object sender, EventArgs e)/comboBox3.Text = ""label10.Text = ""if (comboBox3.Text != "")string sql = "select count(*) from student_info,department where studen
32、t_info.专业编号 =department.专业编号and 专业名称 ='" + comboBox3.Text + "'"int a = DataConnection.GetCountInfoBySql(sql);sql ="select count(*)fromstudent_info,departmentwhere student_info. 专业编号=department.专业编号and就业标志 =' 已就业 ' and专业名称 ='" + comboBox3.Text + "'
33、;"int b = DataConnection.GetCountInfoBySql(sql);if (a = 0)label10.Text = "该专业学生人数为0"elsefloat c = (float)b / a;label10.Text = c.ToString();elseMessageBox.Show( “专业为空!请选择.”);查询已就业信息界面的设计如图4.4 所示:Word 文档图 4.4查询已就业信息界面设计代码如下:private void tabPage4_Click(object sender, EventArgs e)comboBox
34、5.Text = ""comboBox7.Text = ""string sql = "select 专业名称 from department order by 专业编号 asc" SqlDataReader dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()专业名称 ");sql = "select 院系名称 from academy order by 院系编号 asc" dr = DataConnection.GetSqlDataRea
35、der(sql);while (dr.Read()院系名称 ");private void button3_Click(object sender, EventArgs e)if (comboBox5.Text != "")string s = "select c5.学号 ,出生年月 ,籍贯 , 院系名称 ,专业名称 ,就业标志 ,用人单位 ,类型名称 from type right join (select c4.学号 , 出生年月 , 就业标志 ,籍贯 ,院系名称 ,专业名称 ,c4.职业号 ,类型号 ,用人单位 from profesion_stu
36、dent right join (select c3.学号 , 出生年月 ,就业标志 , 籍贯 ,院系名称 ,专业名称 ,职业号 from dbo.employment right join (select学号 , 出生年月 ,就业标志 ,籍贯 ,院系名称 ,专业名称 from department join (select学号 , 出生年月 ,就业标志 ,籍贯 ,院系名称 ,专业编号 from academyjoin (select学号 ,出生年月 ,院系编号 ,籍贯 ,就业标志 ,专业编号 from student_info where 就业标志 ='已就业 ')c1on
37、academy. 院系编号 =c1. 院系编号 )c2ondepartment. 专业编号 =c2. 专业编号 )c3 onemployment.学号 =c3. 学号 )c4 onprofesion_student.职业号 =c4. 职业号 ) c5 on type. 类型号 =c5. 类型Word 文档号 where院系名称 学号 "dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0;elseMessageBox.Show(" 院系名称为空! !请选择 .");private voi
38、d button4_Click(object sender, EventArgs e)if (comboBox7.Text != "")string s = "select c5.学号 ,出生年月 ,籍贯 , 院系名称 ,专业名称 ,就业标志 ,用人单位 ,类型名称 from type right join (select c4.学号 , 出生年月 , 就业标志 ,籍贯 ,院系名称 ,专业名称 ,c4.职业号 ,类型号 ,用人单位 from profesion_student right join (select c3.学号 , 出生年月 ,就业标志 , 籍贯 ,
39、院系名称 ,专业名称 ,职业号 from dbo.employment right join (select学号 , 出生年月 ,就业标志 ,籍贯 ,院系名称 ,专业名称 from department join (select学号 , 出生年月 ,就业标志 ,籍贯 ,院系名称 ,专业编号 from academyjoin (select 学号 ,出生年月 ,院系编号 ,籍贯 ,就业标志 ,专业编号from student_info where 就业标志 ='已就业 ')c1on academy. 院系编号 =c1. 院系编号 )c2ondepartment. 专业编号 =c2
40、. 专业编号 )c3 onemployment.学号 =c3. 学号 )c4 onprofesion_student.职业号 =c4. 职业号 ) c5 on type. 类型号 =c5. 类型号 where 专业名称 ='" + comboBox7.Text.Trim() + "'order by c5.学号 "dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0;elseMessageBox.Show(" 专业名称为空! !请选择 .");查询未就
41、业信息界面的设计如图4.5 所示:图 4.5查询未就业信息界面设计代码如下:private void tabPage5_Click(object sender, EventArgs e)Word 文档comboBox8.Text = ""comboBox9.Text = ""string sql = "select 专业名称 from department order by 专业编号 asc" SqlDataReader dr = DataConnection.GetSqlDataReader(sql);while (dr.Read(
42、)专业名称 ");sql = "select 院系名称 from academy order by 院系编号 asc" dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()院系名称 ");private void button5_Click(object sender, EventArgs e)if (comboBox8.Text != "")stringsql ="select student_info. 学号 ,出生年月 ,籍贯 , 院系名称 , 专业名称
43、,就业标志fromstudent_info,academy,departmentwherestudent_info.院 系 编 号 =academy.院 系 编 号andstudent_info.专 业 编 号 =department.专 业 编 号and就 业 标 志 =' 待 就 业 ' and院 系 名 称 ='"+学号 "dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0;elseMessageBox.Show(" 院系名称为空! !请选择 .&qu
44、ot;);private void button6_Click(object sender, EventArgs e)if (comboBox9.Text != "")stringsql ="select student_info. 学号 ,出生年月 ,籍贯 , 院系名称 , 专业名称 ,就业标志fromstudent_info,academy,departmentwherestudent_info.院 系 编 号 =academy.院 系 编 号andstudent_info.专 业 编 号 =department.专 业 编 号and就 业 标 志 =' 待 就 业 ' and专 业 名 称 ='"+Word 文档学号 "dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0;elseMessageBox.Show(" 专业名称为空
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 个人资项目合同范例
- 农业硫磺销售合同范例
- 高速动态弹性模量测试仪行业跨境出海项目商业计划书
- 乡村儿童乐园行业跨境出海项目商业计划书
- 高精度电子地磅系统行业深度调研及发展项目商业计划书
- 乡村民宿度假体验行业深度调研及发展项目商业计划书
- 出境游AI应用企业制定与实施新质生产力项目商业计划书
- 环保塑料草坪保护垫企业制定与实施新质生产力项目商业计划书
- 2025年自考行政管理高效备战计划与答案
- 职场新人如何掌握市场细分技巧
- 大学武术知到智慧树章节测试课后答案2024年秋浙江大学
- 2023年全国职业院校技能大赛-老年护理与保健赛项规程
- 重庆邮电大学本科毕业设计(论文)参考模板-2020版
- 20XX-烟草车辆运输方案计划
- 苏教版二年级下册数学竞赛试卷
- CRH380B动车组电气系统综述综述
- 晶体几何基础
- 腹腔穿刺术考核评分表
- 作业准备验证及停工后验证规定
- 控制电缆敷设、接线施工方案
- 定期清洗消毒空调及通风设施的制度
评论
0/150
提交评论