高校学生就业管理系统方案.docx

上传人:b****7 文档编号:23777907 上传时间:2023-05-20 格式:DOCX 页数:24 大小:242.34KB
下载 相关 举报
高校学生就业管理系统方案.docx_第1页
第1页 / 共24页
高校学生就业管理系统方案.docx_第2页
第2页 / 共24页
高校学生就业管理系统方案.docx_第3页
第3页 / 共24页
高校学生就业管理系统方案.docx_第4页
第4页 / 共24页
高校学生就业管理系统方案.docx_第5页
第5页 / 共24页
点击查看更多>>
下载资源
资源描述

高校学生就业管理系统方案.docx

《高校学生就业管理系统方案.docx》由会员分享,可在线阅读,更多相关《高校学生就业管理系统方案.docx(24页珍藏版)》请在冰豆网上搜索。

高校学生就业管理系统方案.docx

高校学生就业管理系统方案

一、题目概述(容及要求)

实现院系、专业、毕业生信息管理(设有就业标志,初值为‘待业’);实现职业类型、职业信息(职业号、类型号、需求数量、聘用数量、用人单位)登记;实现毕业生就业登记(学号、职业号),自动修改相应学生的就业标志和职业的聘用数量,并保证聘用数量不大于需求数量;创建存储过程查询毕业生的人数、待业人数、就业人数和就业率;创建存储过程查询各专业的毕业生就业率;创建check约束限制毕业生性别必须为‘男’或‘女’;建立表间关系。

二、需求分析

2.1高校就业管理系统

高校就业管理系统化可以完成对学生信息的修改、查询(就业率,已就业信息,未就业信息,公司信息)、添加(学生基本信息,院系信息,公司信息)、退出功能。

初步完成了对高校就业信息的管理,界面设计简洁,使用简单。

2.2高校就业管理系统数据流图

图2.1高校就业管理系统数据流图

2.3高校就业系统管理系统功能框图

图2.2高校就业系统管理系统功能框图

三、概要设计

3.1数据模型(E-R图)

图3高校学生就业管理E_R图

3.2数据库表格结构设计

表3.1学院信息表

列名

数据类型

是否为空

说明

院系编号

char(4)

NOTNULL

主键

院系名称

char(20)

NULL

表3.2专业信息表

列名

数据类型

是否为空

说明

专业编号

char(6)

NOTNULL

主键

专业名称

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)

NOTNULL

主键

类型号

char(10)

NULL

需求数量

int

NULL

聘用数量

int

NULL

用人单位

char(20)

NULL

表3.6学生信息表

列名

数据类型

是否为空

说明

char(20)

NULL

性别

char

(2)

NOTNULL

Check(男,女)

出生年月

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登陆界面设计

代码如下:

privatevoidbutton1_Click(objectsender,EventArgse)

{

if(textBox1.Text!

="")

{

if(textBox2.Text!

="")

{

DataConnection.getConn();

stringid=textBox1.Text.Trim();

stringpwd=textBox2.Text.Trim();

stringsql="selectcount(*)from[login]where用户名='"+id+"'and密码='"+pwd+"'";

intstate=DataConnection.GetCountInfoBySql(sql);

if(state==0||state>1)

{

MessageBox.Show("用户名或密码错误");

}

else

{

Form1f2=newForm1();

f2.Show();

this.Hide();

}

DataConnection.CloseConn();

}

else

{

MessageBox.Show("密码为空请输入....");

}

}

else

{

MessageBox.Show("用户名为空请输入....");

}

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

textBox1.Text="";

textBox2.Text="";

 

}

4.2修改界面

修改界面的设计如图4.2所示:

图4.2修改界面设计

代码如下:

privatevoidbutton7_Click(objectsender,EventArgse)

{

if(textBox1.Text!

="")

{

stringid=textBox1.Text.Trim();

if(radioButton3.Checked==true)

{

if(comboBox1.Text!

="")

{

if(comboBox4.Text!

="")

{

stringa="selectsum(需求数量)fromprofesion_student,typewhereprofesion_student.类型号=type.类型号andprofesion_student.用人单位='"+comboBox1.Text.Trim()+"'and类型名称='"+comboBox4.Text.Trim()+"'";

intb=DataConnection.GetCountInfoBySql(a);

a="selectsum(聘用数量)fromprofesion_student,typewhereprofesion_student.类型号=type.类型号andprofesion_student.用人单位='"+comboBox1.Text.Trim()+"'and类型名称='"+comboBox4.Text.Trim()+"'";

intc=DataConnection.GetCountInfoBySql(a);

if(c

{

stringsql="updatestudent_infoset就业标志='已就业'where学号='"+id+"'";

DataConnection.UpdateDate(sql);

sql="select学号fromemploymentwhere学号='"+id+"'";

if(DataConnection.GetCountInfoBySql(sql)==0)

{

sql="insertintoemployment(学号)values('"+id+"')";

DataConnection.UpdateDate(sql);

}

strings="select职业号fromprofesion_student,typewhereprofesion_student.类型号=type.类型号andprofesion_student.用人单位='"+comboBox1.Text.Trim()+"'and类型名称='"+comboBox4.Text.Trim()+"'";

s=DataConnection.GetDataString(s).Trim();

sql="selectcount(*)fromemploymentwhere职业号='"+s+"'";

intd=DataConnection.GetCountInfoBySql(sql);

sql="updateprofesion_studentset聘用数量="+d+"where职业号='"+s+"'";

DataConnection.UpdateDate(sql);

sql="updateemploymentset职业号='"+s+"'where学号='"+id+"'";

DataConnection.UpdateDate(sql);

}

else

MessageBox.Show("公司聘用数量已达上线");

}

else

MessageBox.Show("类型号为空请选择....");

}

else

{

MessageBox.Show("用人单位为空请选择....\n否则,将就业情况修改为待就业");

radioButton2.Checked=true;

strings="updatestudent_infoset就业标志='待就业'where学号='"+id+"'";

DataConnection.UpdateDate(s);

stringsql="select学号fromemploymentwhere学号='"+id+"'";

inth=DataConnection.GetCountInfoBySql(sql);

s="select职业号fromemploymentwhere学号='"+id+"'";

s=DataConnection.GetDataString(s).Trim();

if(DataConnection.GetCountInfoBySql(sql)>0)

{

sql="deletefromemploymentwhere学号='"+id+"'";

intf=DataConnection.UpdateDate(sql);

}

sql="selectcount(*)fromemploymentwhere职业号='"+s+"'";

intd=DataConnection.GetCountInfoBySql(sql);

sql="updateprofesion_studentset聘用数量="+d+"where职业号='"+s+"'";

DataConnection.UpdateDate(sql);

}

}

else

MessageBox.Show("学号为空请输入....");

}

}

privatevoidtabPage2_Click(objectsender,EventArgse)

{

comboBox2.Items.Clear();

comboBox1.Items.Clear();

comboBox4.Items.Clear();

comboBox6.Items.Clear();

radioButton3.Checked=false;

radioButton1.Checked=false;

radioButton2.Checked=false;

radioButton4.Checked=false;

stringsql="select专业名称fromdepartmentorderby专业编号asc";

SqlDataReaderdr=DataConnection.GetSqlDataReader(sql);

while(dr.Read())

{

comboBox2.Items.Add(dr["专业名称"]);

}

sql="selectdistinct用人单位fromprofesion_student";

dr=DataConnection.GetSqlDataReader(sql);

while(dr.Read())

{

comboBox1.Items.Add(dr["用人单位"]);

}

sql="select类型名称fromdbo.type";

dr=DataConnection.GetSqlDataReader(sql);

while(dr.Read())

{

comboBox4.Items.Add(dr["类型名称"]);

}

sql="select院系名称fromacademyorderby院系编号asc";

dr=DataConnection.GetSqlDataReader(sql);

while(dr.Read())

{

comboBox6.Items.Add(dr["院系名称"]);

}

if(textBox1.Text!

="")

{

stringid=textBox1.Text.Trim();

stringsql1="selectfromstudent_infowhere学号='"+id+"'";

textBox2.Text=DataConnection.GetDataString(sql1);

sql1="select性别fromstudent_infowhere学号='"+id+"'";

strings=DataConnection.GetDataString(sql1);

if(s=="男")

radioButton4.Checked=true;

if(s=="女")

radioButton1.Checked=true;

sql1="select出生年月fromstudent_infowhere学号='"+id+"'";

textBox3.Text=DataConnection.GetDataString(sql1);

sql1="select籍贯fromstudent_infowhere学号='"+id+"'";

textBox4.Text=DataConnection.GetDataString(sql1);

sql1="select专业名称fromstudent_info,departmentwherestudent_info.专业编号=department.专业编号and学号='"+id+"'";

comboBox2.Text=DataConnection.GetDataString(sql1);

sql1="select院系名称fromstudent_info,academywherestudent_info.院系编号=academy.院系编号and学号='"+id+"'";

comboBox6.Text=DataConnection.GetDataString(sql1);

sql1="select就业标志fromstudent_infowhere学号='"+id+"'";

strings1=DataConnection.GetDataString(sql1).Trim();

if(s1=="待就业")

{

radioButton2.Checked=true;

}

if(s1=="已就业")

{

radioButton3.Checked=true;

}

sql1="select用人单位fromprofesion_student,employmentwhereprofesion_student.职业号=employment.职业号andemployment.学号='"+id+"'";

comboBox1.Text=DataConnection.GetDataString(sql1);

sql1="select类型名称fromtype,profesion_student,employmentwheretype.类型号=profesion_student.类型号andprofesion_student.职业号=employment.职业号andemployment.学号='"+id+"'";

comboBox4.Text=DataConnection.GetDataString(sql1);

}

else

MessageBox.Show("学号为空请输入....");

}

privatevoidbutton1_Click(objectsender,EventArgse)

{

if(textBox1.Text!

="")

{

stringsql="select院系编号fromacademywhere院系名称='"+comboBox6.Text.Trim()+"'";

stringa=DataConnection.GetDataString(sql).Trim();

sql="select专业编号fromdepartmentwhere专业名称='"+comboBox2.Text.Trim()+"'";

stringb=DataConnection.GetDataString(sql).Trim();

if(radioButton1.Checked==true)

{

sql="updatestudent_infoset性别='"+radioButton1.Text+"'where学号='"+textBox1.Text.Trim()+"'";

intg=DataConnection.UpdateDate(sql);

}

if(radioButton4.Checked==true)

{

sql="updatestudent_infoset性别='"+radioButton4.Text+"'where学号='"+textBox1.Text.Trim()+"'";

intf=DataConnection.UpdateDate(sql);

}

sql="updatestudent_infoset='"+textBox2.Text.Trim()+"',出生年月='"+textBox3.Text.Trim()+"',籍贯='"+textBox4.Text.Trim()+"',专业编号='"+b+"',院系编号='"+a+"'where学号='"+textBox1.Text.Trim()+"'";

intd=DataConnection.UpdateDate(sql);

 

}

else

MessageBox.Show("学号为空请输入....");

}

4.3查询界面

查询就业率界面的设计如图4.3所示:

图4.3查询就业率界面设计

代码如下:

privatevoidtabPage3_Click(objectsender,EventArgse)

{

stringsql="selectcount(*)fromstudent_info";

inta=DataConnection.GetCountInfoBySql(sql);

label3.Text=a.ToString();

sql="selectcount(*)fromstudent_infowhere就业标志='已就业'";

intb=DataConnection.GetCountInfoBySql(sql);

label5.Text=b.ToString();

sql="selectcount(*)fromstudent_infowhere就业标志='待就业'";

label4.Text=DataConnection.GetCountInfoBySql(sql).ToString();

floatc=(float)b/a;

label6.Text=c.ToString();

comboBox3.Items.Clear();

sql="select专业名称fromdepartmentorderby专业编号asc";

SqlDataReaderdr=DataConnection.GetSqlDataReader(sql);

while(dr.Read())

{

comboBox3.Items.Add(dr["专业名称"]);

}

comboBox3.Text="";

label10.Text="";

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

//comboBox3.Text="";

label10.Text="";

if(comboBox3.Text!

="")

{

stringsql="selectcount(*)fromstudent_info,departmentwherestudent_info.专业编号=department.专业编号and专业名称='"+comboBox3.Text+"'";

inta=DataConnection.GetCountInfoBySql(sql);

sql="selectcount(*)fromstudent_info,departmentwherestudent_info.专业编号=department.专业编号and就业标志='已就业'and专业名称='"+comboBox3.Text+"'";

intb=DataConnection.GetCountInfoBySql(sql);

if(a==0)

{

label10.Text="该专业学生人数为0";

}

else

{

floatc=(float)b/a;

label10.Text=c.ToString();

}

}

else

MessageBox.Show(“专业为空请选择….”);

}

查询已就业信息界面的设计如图4.4所示:

图4.4查询已就业信

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 幼儿教育 > 幼儿读物

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

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