高校學(xué)生就業(yè)管理系統(tǒng)_第1頁
高校學(xué)生就業(yè)管理系統(tǒng)_第2頁
高校學(xué)生就業(yè)管理系統(tǒng)_第3頁
高校學(xué)生就業(yè)管理系統(tǒng)_第4頁
已閱讀5頁,還剩15頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、目錄一、題目概述(容及要求)1二、需求分析12.1 高校就業(yè)管理系統(tǒng)12.2 高校就業(yè)管理系統(tǒng)數(shù)據(jù)流圖12.3 高校就業(yè)系統(tǒng)管理系統(tǒng)功能框圖1三、概要設(shè)計23.1 數(shù)據(jù)模型( E-R 圖)23.2 數(shù)據(jù)庫表格結(jié)構(gòu)設(shè)計2四、詳細設(shè)計34.1 登錄界面34.2 修改界面54.3 查詢界面10五、軟件測試155.1 劃分等價類并編號155.2 有效測試用例165.3 無效測試用例16六、總結(jié)16參考文獻17Word 文檔一、題目概述(容及要求)實現(xiàn)院系、專業(yè)、畢業(yè)生信息管理(設(shè)有就業(yè)標志,初值為 待業(yè) );實現(xiàn)職業(yè)類型、職業(yè)信息(職業(yè)號、 類型號、 需求數(shù)量、 聘用數(shù)量、 用 人單位) 登記; 實現(xiàn)

2、畢業(yè)生就業(yè)登記(學(xué)號、 職業(yè)號) ,自動修改相應(yīng)學(xué)生的就業(yè)標志和職業(yè)的聘用數(shù)量,并保證聘用數(shù)量不大于需求數(shù)量;創(chuàng)建存儲過程查詢畢業(yè)生的人數(shù)、待業(yè)人數(shù)、就業(yè)人數(shù)和就業(yè)率;創(chuàng)建存儲過程查詢各專業(yè)的畢業(yè)生就業(yè)率;創(chuàng)建check 約束限制畢業(yè)生性別必須為男 或 女 ; 建立表間關(guān)系。二、需求分析2.1 高校就業(yè)管理系統(tǒng)高校就業(yè)管理系統(tǒng)化可以完成對學(xué)生信息的修改、查詢(就業(yè)率,已就業(yè)信息,未就業(yè)信息,公司信息)、添加(學(xué)生基本信息,院系信息,公司信息) 、退出功能。初步完成了對高校就業(yè)信息的管理,界面設(shè)計簡潔,使用簡單。2.2 高校就業(yè)管理系統(tǒng)數(shù)據(jù)流圖D1來校公司信息表D2學(xué)生信息表來校公司信息表學(xué)生信

3、息事務(wù)1.1事務(wù)1.2公司信息1.3學(xué)生2事務(wù)系統(tǒng)管系統(tǒng)管信息理員理員接收事務(wù)更新數(shù)據(jù)庫處理學(xué)生信息產(chǎn)生就業(yè)率報表圖 2.1 高校就業(yè)管理系統(tǒng)數(shù)據(jù)流圖2.3 高校就業(yè)系統(tǒng)管理系統(tǒng)功能框圖高校學(xué)生就業(yè)管理系統(tǒng)登錄修改查詢添加退出已未學(xué)公生院公就就就司基系司業(yè)業(yè)業(yè)信本信信率信信息信息息息息息圖 2.2高校就業(yè)系統(tǒng)管理系統(tǒng)功能框圖Word 文檔三、概要設(shè)計3.1 數(shù)據(jù)模型( E-R 圖)籍貫學(xué)號姓名專業(yè)性別編號學(xué)生出生年月n就業(yè)應(yīng)聘標志1類型類型號職業(yè)名稱n擁有1用人職業(yè)號公司單位類型號需求聘用數(shù)量數(shù)量圖 3高校學(xué)生就業(yè)管理E_R 圖3.2 數(shù)據(jù)庫表格結(jié)構(gòu)設(shè)計表 3.1學(xué)院信息表列名數(shù)據(jù)類型是否為空

4、說明院系編號char(4)NOT NULL主鍵院系名稱char(20)NULL表 3.2專業(yè)信息表列名數(shù)據(jù)類型是否為空說明專業(yè)編號char(6)NOT NULL主鍵專業(yè)名稱char(20)NULL表 3.3員工信息表列名數(shù)據(jù)類型是否為空說明學(xué)號char(10)NULLWord 文檔職業(yè)號char(10)NULL表 3.4用戶信息表列名數(shù)據(jù)類型是否為空說明用戶名char(10)NULL密碼char(10)NULL權(quán)限char(10)NULL表 3.5用人單位信息表列名數(shù)據(jù)類型是否為空說明職業(yè)號char(10)NOT NULL主鍵類型號char(10)NULL需求數(shù)量intNULL聘用數(shù)量intN

5、ULL用人單位char(20)NULL表 3.6學(xué)生信息表列名數(shù)據(jù)類型是否為空說明char(20)NULL性別char(2)NOT NULLCheck(男,女)出生年月char(10)NULL籍貫char(20)NULL專業(yè)編號char(6)NULL院系編號char(4)NULL就業(yè)標志char(20)NULL初值為“待就業(yè)”表 3.7職業(yè)信息表列名數(shù)據(jù)類型是否為空說明類型號char(10)NULL主鍵類型名稱char(20)NULL四、詳細設(shè)計4.1 登錄界面登陸界面的設(shè)計如圖4.1 所示:Word 文檔圖 4.1登陸界面設(shè)計代碼如下: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 修改界面修改界面的設(shè)計如圖4.2 所示:圖 4.2修改界面設(shè)計代碼如下: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( 需求數(shù)量 ) from profesion_student,type where profesion_student. 類型號 =type. 類型號 and profesion_student. 用人單位+ "'and類型名稱 int b = DataConnection.GetCountInfoBySql(a);a="selectsum( 聘 用 數(shù) 量 )fromprofesion_student,typewhereprofesion_student.類型號 =type. 類型號and profesion_student

10、.用人單位 + "' and類型名稱 int c = DataConnection.GetCountInfoBySql(a);if (c < b)string sql = "update student_info set就業(yè)標志= ' 已就業(yè) ' where學(xué)號 ='" + id + "'"DataConnection.UpdateDate(sql);sql = "select學(xué)號from employment where學(xué)號 ='" + id + "'

11、"if (DataConnection.GetCountInfoBySql(sql) = 0)sql = "insert into employment(學(xué)號 )values ('" + id + "')"DataConnection.UpdateDate(sql);strings ="select 職業(yè)號fromprofesion_student,typewhereprofesion_student.類型 號=type.類型 號andprofesion_student.用 人 單位='"+類型名稱s

12、 = DataConnection.GetDataString(s).Trim();sql = "select count(*) fromemployment where職業(yè)號 ='" + s +"'"int d = DataConnection.GetCountInfoBySql(sql);sql ="updateprofesion_studentset 聘用數(shù)量 ="+ d + " where職業(yè)號 ='" + s + "'"DataConnection.Up

13、dateDate(sql);sql = "update employment set職業(yè)號 ='" + s + "' where學(xué)號 ='"+ id + "'"DataConnection.UpdateDate(sql);elseMessageBox.Show(" 公司聘用數(shù)量已達上線! ");elseMessageBox.Show(" 類型號為空! !請選擇 .");elseWord 文檔MessageBox.Show(" 用人單位為空! !請選擇 .

14、n 否則,將就業(yè)情況修改為待就業(yè)! ");radioButton2.Checked = true;string s = "update student_info set就業(yè)標志 =' 待就業(yè) ' where學(xué)號 ='" + id+ "'"DataConnection.UpdateDate(s);string sql = "select學(xué)號from employment where學(xué)號 ='" + id + "'"int h = DataConnection.

15、GetCountInfoBySql(sql);s = "select職業(yè)號from employment where學(xué)號 ='" + id+"'"s = DataConnection.GetDataString(s).Trim();if (DataConnection.GetCountInfoBySql(sql) > 0)sql= "delete from employment where學(xué)號 = '" + id + "'"int f = DataConnection.Upda

16、teDate(sql);sql = "select count(*) from employment where職業(yè)號 ='" + s + "'"int d = DataConnection.GetCountInfoBySql(sql);sql = "update profesion_student set聘用數(shù)量 =" + d + " where職業(yè)號 ='"+ s + "'"DataConnection.UpdateDate(sql);elseMessageB

17、ox.Show(" 學(xué)號為空!請輸入 .");private void tabPage2_Click(object sender, EventArgs e)radioButton3.Checked = false;radioButton1.Checked = false;radioButton2.Checked = false;radioButton4.Checked = false;string sql = "select專業(yè)名稱from department order by專業(yè)編號asc"SqlDataReader dr = DataConnect

18、ion.GetSqlDataReader(sql); while (dr.Read()專業(yè)名稱 ");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學(xué)號 ='" + id + "'"textBox

20、2.Text = DataConnection.GetDataString(sql1);sql1 = "select 性別 from student_info where學(xué)號 ='" + id + "'"string s = DataConnection.GetDataString(sql1);if (s = "男 ")radioButton4.Checked = true;if (s = "女 ")radioButton1.Checked = true;sql1 = "select 出生

21、年月from student_info where學(xué)號 ='" + id + "'"textBox3.Text = DataConnection.GetDataString(sql1);sql1 = "select 籍貫 from student_info where學(xué)號 ='" + id + "'"textBox4.Text = DataConnection.GetDataString(sql1);sql1 = "select 專業(yè)名稱fromstudent_info,depart

22、mentwhere student_info. 專業(yè)編號 =department.專業(yè)編號and 學(xué)號 ='" + id + "'"comboBox2.Text = DataConnection.GetDataString(sql1);sql1 ="select 院系名稱fromstudent_info,academywhere student_info. 院系編號=academy. 院系編號 and學(xué)號 ='" + id + "'"comboBox6.Text = DataConnectio

23、n.GetDataString(sql1);sql1 = "select 就業(yè)標志from student_info where學(xué)號 ='" + id + "'"string s1 = DataConnection.GetDataString(sql1).Trim();if (s1 = " 待就業(yè) ")radioButton2.Checked = true;Word 文檔if (s1 = " 已就業(yè) ")radioButton3.Checked = true;sql1="select用 人

24、 單 位fromprofesion_student,employmentwhereprofesion_student.職業(yè)號 =employment.職業(yè)號and employment.學(xué)號 ='" + id + "'"comboBox1.Text = DataConnection.GetDataString(sql1);sql1 = "select 類型名稱fromtype,profesion_student,employmentwheretype. 類型 號 =profesion_student.類 型 號andprofesion_s

25、tudent.職 業(yè) 號 =employment.職 業(yè) 號andemployment.學(xué)號 ='" + id + "'"comboBox4.Text = DataConnection.GetDataString(sql1);elseMessageBox.Show(" 學(xué)號為空!請輸入 .");private void button1_Click(object sender, EventArgs e)if (textBox1.Text != "")stringsql="select院 系 編 號fr

26、omacademywhere院 系 名 稱 ='"+string a = DataConnection.GetDataString(sql).Trim();sql = "select 專 業(yè) 編 號 from department where 專 業(yè) 名 稱string b = DataConnection.GetDataString(sql).Trim();if (radioButton1.Checked = true)sql = "update student_info set性別 ='" + radioButton1.Text +

27、"' where學(xué)號 ='"int g = DataConnection.UpdateDate(sql);if (radioButton4.Checked = true)sql = "update student_info set性別 ='" + radioButton4.Text + "' where學(xué)號 ='"int f = DataConnection.UpdateDate(sql);sql ="updatestudent_infoset ='"+ "

28、', 出生年月='"+籍貫 專業(yè)編號 ='" + b + "',院系編號 ='" + a + "'Word 文檔where學(xué)號 int d = DataConnection.UpdateDate(sql);elseMessageBox.Show(" 學(xué)號為空!請輸入 .");4.3 查詢界面查詢就業(yè)率界面的設(shè)計如圖4.3 所示:圖 4.3查詢就業(yè)率界面設(shè)計代碼如下: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就業(yè)標志 =' 已就業(yè) '"int b = DataConnection.GetCountInfoBySql(sql);label5.Text = b.ToString();sql = "select cou

30、nt(*) from student_info where就業(yè)標志 =' 待就業(yè) '"label4.Text = DataConnection.GetCountInfoBySql(sql).ToString(); float c =(float) b / a;label6.Text = c.ToString();sql = "select專業(yè)名稱from department order by專業(yè)編號asc"Word 文檔SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (

31、dr.Read()專業(yè)名稱 ");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.專業(yè)編號 =department.專業(yè)編號and 專業(yè)名稱 ='" + comboBox3.Text + "'"int a = DataConnection.GetCountInfoBySql(sql);sql ="select count(*)fromstudent_info,departmentwhere student_info. 專業(yè)編號=department.專業(yè)編號and就業(yè)標志 =' 已就業(yè) ' and專業(yè)名稱 ='" + comboBox3.Text + "'

33、;"int b = DataConnection.GetCountInfoBySql(sql);if (a = 0)label10.Text = "該專業(yè)學(xué)生人數(shù)為0"elsefloat c = (float)b / a;label10.Text = c.ToString();elseMessageBox.Show( “專業(yè)為空!請選擇.”);查詢已就業(yè)信息界面的設(shè)計如圖4.4 所示:Word 文檔圖 4.4查詢已就業(yè)信息界面設(shè)計代碼如下:private void tabPage4_Click(object sender, EventArgs e)comboBox

34、5.Text = ""comboBox7.Text = ""string sql = "select 專業(yè)名稱 from department order by 專業(yè)編號 asc" SqlDataReader dr = DataConnection.GetSqlDataReader(sql);while (dr.Read()專業(yè)名稱 ");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.學(xué)號 ,出生年月 ,籍貫 , 院系名稱 ,專業(yè)名稱 ,就業(yè)標志 ,用人單位 ,類型名稱 from type right join (select c4.學(xué)號 , 出生年月 , 就業(yè)標志 ,籍貫 ,院系名稱 ,專業(yè)名稱 ,c4.職業(yè)號 ,類型號 ,用人單位 from profesion_stu

36、dent right join (select c3.學(xué)號 , 出生年月 ,就業(yè)標志 , 籍貫 ,院系名稱 ,專業(yè)名稱 ,職業(yè)號 from dbo.employment right join (select學(xué)號 , 出生年月 ,就業(yè)標志 ,籍貫 ,院系名稱 ,專業(yè)名稱 from department join (select學(xué)號 , 出生年月 ,就業(yè)標志 ,籍貫 ,院系名稱 ,專業(yè)編號 from academyjoin (select學(xué)號 ,出生年月 ,院系編號 ,籍貫 ,就業(yè)標志 ,專業(yè)編號 from student_info where 就業(yè)標志 ='已就業(yè) ')c1on

37、academy. 院系編號 =c1. 院系編號 )c2ondepartment. 專業(yè)編號 =c2. 專業(yè)編號 )c3 onemployment.學(xué)號 =c3. 學(xué)號 )c4 onprofesion_student.職業(yè)號 =c4. 職業(yè)號 ) c5 on type. 類型號 =c5. 類型Word 文檔號 where院系名稱 學(xué)號 "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.學(xué)號 ,出生年月 ,籍貫 , 院系名稱 ,專業(yè)名稱 ,就業(yè)標志 ,用人單位 ,類型名稱 from type right join (select c4.學(xué)號 , 出生年月 , 就業(yè)標志 ,籍貫 ,院系名稱 ,專業(yè)名稱 ,c4.職業(yè)號 ,類型號 ,用人單位 from profesion_student right join (select c3.學(xué)號 , 出生年月 ,就業(yè)標志 , 籍貫 ,

39、院系名稱 ,專業(yè)名稱 ,職業(yè)號 from dbo.employment right join (select學(xué)號 , 出生年月 ,就業(yè)標志 ,籍貫 ,院系名稱 ,專業(yè)名稱 from department join (select學(xué)號 , 出生年月 ,就業(yè)標志 ,籍貫 ,院系名稱 ,專業(yè)編號 from academyjoin (select 學(xué)號 ,出生年月 ,院系編號 ,籍貫 ,就業(yè)標志 ,專業(yè)編號from student_info where 就業(yè)標志 ='已就業(yè) ')c1on academy. 院系編號 =c1. 院系編號 )c2ondepartment. 專業(yè)編號 =c2

40、. 專業(yè)編號 )c3 onemployment.學(xué)號 =c3. 學(xué)號 )c4 onprofesion_student.職業(yè)號 =c4. 職業(yè)號 ) c5 on type. 類型號 =c5. 類型號 where 專業(yè)名稱 ='" + comboBox7.Text.Trim() + "'order by c5.學(xué)號 "dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0;elseMessageBox.Show(" 專業(yè)名稱為空! !請選擇 .");查詢未就

41、業(yè)信息界面的設(shè)計如圖4.5 所示:圖 4.5查詢未就業(yè)信息界面設(shè)計代碼如下:private void tabPage5_Click(object sender, EventArgs e)Word 文檔comboBox8.Text = ""comboBox9.Text = ""string sql = "select 專業(yè)名稱 from department order by 專業(yè)編號 asc" SqlDataReader dr = DataConnection.GetSqlDataReader(sql);while (dr.Read(

42、)專業(yè)名稱 ");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. 學(xué)號 ,出生年月 ,籍貫 , 院系名稱 , 專業(yè)名稱

43、,就業(yè)標志fromstudent_info,academy,departmentwherestudent_info.院 系 編 號 =academy.院 系 編 號andstudent_info.專 業(yè) 編 號 =department.專 業(yè) 編 號and就 業(yè) 標 志 =' 待 就 業(yè) ' and院 系 名 稱 ='"+學(xué)號 "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. 學(xué)號 ,出生年月 ,籍貫 , 院系名稱 , 專業(yè)名稱 ,就業(yè)標志fromstudent_info,academy,departmentwherestudent_info.院 系 編 號 =academy.院 系 編 號andstudent_info.專 業(yè) 編 號 =department.專 業(yè) 編 號and就 業(yè) 標 志 =' 待 就 業(yè) ' and專 業(yè) 名 稱 ='"+Word 文檔學(xué)號 "dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0;elseMessageBox.Show(" 專業(yè)名稱為空

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論