高校学生就业管理系统方案_第1页
高校学生就业管理系统方案_第2页
高校学生就业管理系统方案_第3页
高校学生就业管理系统方案_第4页
高校学生就业管理系统方案_第5页
已阅读5页,还剩12页未读 继续免费阅读

下载本文档

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

文档简介

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

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

3、1.1事务1.2公司信息1.3学生2事务系统管系统管信息产生就业率报理员理员接收事务更新数据库处理学生信息表图 2.1高校就业管理系统数据流图2.3 高校就业系统管理系统功能框图图 2.2高校就业系统管理系统功能框图三、概要设计3.1 数据模型( E-R 图)籍贯学号姓名专业性别编号学生出生年月n就业应聘标志1类型号职业类型名称n拥有1职业号公司用人单位类型号需求聘用数量数量图 3高校学生就业管理 E_R图3.2 数据库表格结构设计表 3.1学院信息表列名数据类型是否为空说明院系编号char(4)NOT NULL主键院系名称char(20)NULL表 3.2专业信息表列名数据类型是否为空说明专

4、业编号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用人单位信息表列名数据类型是否为空说明职业号char(10)NOT NULL主键类型号char(10)NULL需求数量intNULL聘用数量intNULL用人单位char(20)NULL表 3.6学生信息表列名数据类型是否为空说明char(20)NULL性别char(2)NOT NUL

5、LCheck(男,女)出生年月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 所示:图 4.1登陆界面设计代码如下:private void button1_Click(object sender, EventArgs e)if (textBox1.Text != "")if (textBox2.Tex

6、t != "")DataConnection.getConn();string sql = "select count(*) from login where 用户名 ='" + id + "' and 密码 ='" + pwd + "'"int state = DataConnection.GetCountInfoBySql(sql);if (state = 0 | state > 1)MessageBox.Show("用户名或密码错误! ! ");els

7、eForm1 f2 = new Form1();f2.Show();this.Hide();DataConnection.CloseConn();elseMessageBox.Show("密码为空!请输入 .");elseMessageBox.Show("用户名为空!请输入 .");private void button2_Click(object sender, EventArgs e)textBox1.Text = ""textBox2.Text = ""4.2 修改界面修改界面的设计如图4.2 所示:图 4.

8、2修改界面设计代码如下:private void button7_Click(object sender, EventArgs e)if (textBox1.Text != "")if (radioButton3.Checked = true)if (comboBox1.Text != "")if (comboBox4.Text != "")string a = "select sum(需求数量 ) from profesion_student,typewhereprofesion_student.类 型 号 =type.类

9、 型 号andprofesion_student.用 人 单 位 ='"类型名称 int b = DataConnection.GetCountInfoBySql(a);a = "select sum(聘用数量) from profesion_student,type whereprofesion_student.类 型 号 =type.类型 号andprofesion_student.用 人 单 位 ='"类型名称 int c = DataConnection.GetCountInfoBySql(a);if (c < b)+wherestr

10、ing sql = "update student_info set学号 ='" + id + "'"DataConnection.UpdateDate(sql);就业标志= '已就业'sql= "select学号 fromemployment where学号 ='"+ id+ "'"if (DataConnection.GetCountInfoBySql(sql) = 0)sql = "insert into employment(学号)values (&

11、#39;" + id +"')"DataConnection.UpdateDate(sql);strings = "select职业号 fromprofesion_student,typewhereprofesion_student.类 型 号=type.类 型 号andprofesion_student.用 人 单 位 ='"+类型名称s = DataConnection.GetDataString(s).Trim();sql = "select count(*) from employment where职业号 =

12、'" + s+ "'"int d = DataConnection.GetCountInfoBySql(sql);sql= "updateprofesion_studentset聘用数量="+ d + " where职业号='" + s + "'"DataConnection.UpdateDate(sql);sql = "update employment set职业号='" + s + "' where学号='&quo

13、t; + id + "'"DataConnection.UpdateDate(sql);elseMessageBox.Show("公司聘用数量已达上线! ");elseMessageBox.Show("类型号为空!请选择.");elseMessageBox.Show("用人单位为空! !请选择.n否则,将就业情况修改为待就业! ");radioButton2.Checked = true;strings = "updatestudent_infoset就业标志='待就业'where

14、学号 ='"+ id + "'"DataConnection.UpdateDate(s);string sql = "select学号 from employment where学号 ='" + id + "'"int h = DataConnection.GetCountInfoBySql(sql);s = "select职业号 from employment where学号 ='" + id+"'"s = DataConnection

15、.GetDataString(s).Trim();if (DataConnection.GetCountInfoBySql(sql) > 0)sql= "delete from employment where学号= '" + id + "'"int f = DataConnection.UpdateDate(sql);sql = "select count(*) from employment where职业号='" + s + "'"int d = DataConnecti

16、on.GetCountInfoBySql(sql);sql = "update profesion_student set聘用数量=" + d + " where职业号 ='" + s + "'"DataConnection.UpdateDate(sql);elseMessageBox.Show("学号为空!请输入.");private void tabPage2_Click(object sender, EventArgs e)radioButton3.Checked = false;radioB

17、utton1.Checked = false;radioButton2.Checked = false;radioButton4.Checked = false;string sql = "select 专业名称 from department order by 专业编号 asc" SqlDataReader dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()专业名称 ");sql = "select distinct 用人单位 from profesion_student" d

18、r = DataConnection.GetSqlDataReader(sql);while (dr.Read()用人单位 ");sql = "select类型名称 from dbo.type"dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()类型名称 ");sql = "select 院系名称 from academy order by 院系编号 asc" dr = DataConnection.GetSqlDataReader(sql);while (dr.Read

19、()院系名称");if (textBox1.Text != "")string sql1 = "select from student_info where学号 ='" + id + "'"textBox2.Text = DataConnection.GetDataString(sql1);sql1 = "select性别 from student_info where学号 ='" + id + "'"string s = DataConnection.

20、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 w

21、here学号 ='" + id + "'"textBox4.Text = DataConnection.GetDataString(sql1);sql1 = "select专业名称from student_info,department where student_info.专业编号 =department.专业编号 and学号 ='" + id + "'"comboBox2.Text = DataConnection.GetDataString(sql1);sql1 = "sele

22、ct院系名称from student_info,academy where student_info.编号 =academy.院系编号and学号 ='" + id + "'"comboBox6.Text = DataConnection.GetDataString(sql1);sql1 = "select就业标志from student_info where学号 ='" + id + "'"string s1 = DataConnection.GetDataString(sql1).Trim(

23、);if (s1 = "待就业 ")院系radioButton2.Checked = true;if (s1 = "已就业 ")radioButton3.Checked = true;sql1="select用 人 单 位fromprofesion_student,employmentprofesion_student.职业号 =employment. 职业号 and employment.学号 ='" + id + "'"comboBox1.Text = DataConnection.GetDat

24、aString(sql1);sql1= "selectfromtype,profesion_student,employment where类 型 号 =profesion_student.类 型 号andprofesion_student.职 业 号 =employment.employment. 学号 ='" + id + "'"职 业 号wheretype.andcomboBox4.Text = DataConnection.GetDataString(sql1);elseMessageBox.Show("学号为空!请输入

25、 .");private void button1_Click(object sender, EventArgs e)if (textBox1.Text != "")stringsql="select院 系 编 号fromacademywhere院 系 名 称 ='"+string a = DataConnection.GetDataString(sql).Trim();sql="select专 业 编 号fromdepartmentwhere专 业 名 称 ='"+string b = DataConnec

26、tion.GetDataString(sql).Trim();if (radioButton1.Checked = true)sql= "updatestudent_infoset性别 ='"+ radioButton1.Text+ "'where 学号int g = DataConnection.UpdateDate(sql);if (radioButton4.Checked = true)sql= "updatestudent_infoset性别 ='"+ radioButton4.Text+ "'

27、where 学号int f = DataConnection.UpdateDate(sql);出生年月 ='"籍贯 专业编号 ='" + b + "',院系编号 ='" + a + "' where学号 int d = DataConnection.UpdateDate(sql);elseMessageBox.Show("学号为空!请输入 .");4.3 查询界面查询就业率界面的设计如图4.3 所示:图 4.3查询就业率界面设计代码如下:private void tabPage3_Cl

28、ick(object sender, EventArgs e)string 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.To

29、String();sql = "select count(*) 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"SqlDataReader dr = DataConnection.GetSqlDat

30、aReader(sql);while (dr.Read()专业名称");comboBox3.Text = ""label10.Text = ""private void button2_Click(object sender, EventArgs e)/comboBox3.Text = ""label10.Text = ""if (comboBox3.Text != "")专业编号stringsql = "selectcount(*)from student_info,dep

31、artment=department.专业编号 and专业名称 ='" + comboBox3.Text + "'"int a = DataConnection.GetCountInfoBySql(sql);sql = "select count(*) from student_info,department where student_info.where student_info.专业编号 =department.专业编号 and就业标志 =' 已就业 ' and专业名称 ='" + comboBox

32、3.Text + "'"int b = DataConnection.GetCountInfoBySql(sql);if (a = 0)label10.Text = "该专业学生人数为0"elsefloat c = (float)b / a;label10.Text = c.ToString();elseMessageBox.Show(“专业为空! !请选择 . ” );查询已就业信息界面的设计如图4.4 所示:图 4.4查询已就业信息界面设计代码如下:private void tabPage4_Click(object sender, Even

33、tArgs e)comboBox5.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 = DataConnecti

34、on.GetSqlDataReader(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. 职业号 , 类型

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

36、nt_infowhere 就业标志 =' 已就业 ')c1on academy. 院系编号 =c1. 院系编号 )c2 ondepartment.专业编号 =c2. 专业编号 )c3 on employment.学号 =c3. 学号 )c4 onprofesion_student.职业号 =c4. 职业号 ) c5 on type. 类型号 =c5. 类型号 where院系名称 + "'orderby c5. 学号 "dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0;e

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

38、 from profesion_student right join (select c3.学号 , 出生年月 ,就业标志 , 籍贯 , 院系名称 , 专业名称 , 职业号 from dbo.employment right join(select学号 , 出生年月 , 就业标志 , 籍贯 , 院系名称 , 专业名称from department join (select学号 , 出生年月 , 就业标志 ,from academy join (select,专业编号fromstudent_infowhere 就业标志 =' 已就业 ')c1on academy. 院系编号 =c

39、1. 院系编号 )c2 ondepartment.专业编号 =c2. 专业编号 )c3 on employment.学号 =c3. 学号 )c4 onprofesion_student.职业号 =c4. 职业号 ) c5 on type.类型号 =c5. 类型号where专业名称"'order by c5.学号 "dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0;elseMessageBox.Show("专业名称为空! !请选择 .");查询未就业信息界面的设计如图

40、4.5 所示:图 4.5查询未就业信息界面设计代码如下:private void tabPage5_Click(object sender, EventArgs e)comboBox8.Text = ""comboBox9.Text = ""string sql = "select 专业名称 from department order by 专业编号 asc" SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read()专业名称 ");sq

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

42、dent_info,academy,departmentwhere student_info.院系编号 =academy. 院系编号and student_info.专业编号=department.专业编号and就业标志=' 待就业 ' and院系名称 ='" +学号 "dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0;elseMessageBox.Show("院系名称为空! !请选择.");private void button6_Click(

43、object sender, EventArgs e)if (comboBox9.Text != "")string sql = "select student_info.学号 , 出生年月 , 籍贯 , 院系名称 , 专业名称 ,就业标志fromstudent_info,academy,departmentwhere student_info.院系编号 =academy. 院系编号and student_info.专业编号=department.专业编号and就业标志=' 待就业 ' and专业名称 ='" +学号 "dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0;elseMessageBox.Show("专业名称为空! !请选择 .&quo

温馨提示

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

最新文档

评论

0/150

提交评论