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

下載本文檔

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

文檔簡介

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

2、的就業(yè)標(biāo)志 和職業(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è)計(jì)簡潔,使用簡單。2.2高校就業(yè)管理系統(tǒng)數(shù)據(jù)流圖 圖2.1 高校就業(yè)管理系統(tǒng)數(shù)據(jù)流圖2.3高校就業(yè)系統(tǒng)管理系統(tǒng)功能框圖圖2.2 高校就業(yè)系統(tǒng)管理系統(tǒng)功能框

3、圖三、概要設(shè)計(jì)3.1數(shù)據(jù)模型(E-R圖)圖3 高校學(xué)生就業(yè)管理E_R圖3.2數(shù)據(jù)庫表格結(jié)構(gòu)設(shè)計(jì)表3.1 學(xué)院信息表列 名數(shù)據(jù)類型是否為空說明院系編號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)NULL職業(yè)號char(10)NULL 表3.4 用戶信息表列名數(shù)據(jù)類型是否為空說明用戶名char(10)NULL密碼char(10)NULL權(quán)限char(10)NULL表3.5 用人單位信息表列名數(shù)

4、據(jù)類型是否為空說明職業(yè)號char(10)NOT NULL主鍵類型號char(10)NULL需求數(shù)量intNULL聘用數(shù)量intNULL用人單位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è)標(biāo)志char(20)NULL初值為“待就業(yè)”表3.7 職業(yè)信息表列名數(shù)據(jù)類型是否為空說明類型號char(10)NULL主鍵類型名稱char(20)NULL四、詳細(xì)設(shè)計(jì)4.1登錄界面登陸

5、界面的設(shè)計(jì)如圖4.1所示:圖4.1 登陸界面設(shè)計(jì)代碼如下: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(用戶名或密碼錯(cuò)誤!); 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修改界面修改界面的設(shè)計(jì)如圖4.2所示:圖4.2 修改界面設(shè)計(jì)代碼如下: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(需求數(shù)

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(聘用數(shù)量) 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 學(xué)號= + id + ; int f = DataConnection.UpdateDate(sql); sql = select count(*) from employment where 職業(yè)號= + s + ; int d = DataConnect

10、ion.GetCountInfoBySql(sql); sql = update profesion_student set 聘用數(shù)量= + d + where 職業(yè)號= + s + ; DataConnection.UpdateDate(sql); else MessageBox.Show(學(xué)號為空!請輸入.); 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 專業(yè)名稱 from department order by 專業(yè)編號 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox2.Items.Add(dr專業(yè)名稱); 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 學(xué)號= + id + ; textBox2.Text = DataConnection.GetDataString(sql1); sql1 = select 性別 from student_i

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

15、號= + id + ; textBox4.Text = DataConnection.GetDataString(sql1); sql1 = select 專業(yè)名稱 from student_info,department where student_info.專業(yè)編號=department.專業(yè)編號 and 學(xué)號= + id + ; comboBox2.Text = DataConnection.GetDataString(sql1); sql1 = select 院系名稱 from student_info,academy where student_info.院系編號=academy.院

16、系編號 and 學(xué)號= + id + ; comboBox6.Text = DataConnection.GetDataString(sql1); sql1 = select 就業(yè)標(biāo)志 from student_info where 學(xué)號= + id + ; string s1 = DataConnection.GetDataString(sql1).Trim(); if (s1 = 待就業(yè)) radioButton2.Checked = true; if (s1 = 已就業(yè)) radioButton3.Checked = true; sql1 = select 用人單位 from profe

17、sion_student,employment where profesion_student.職業(yè)號=employment.職業(yè)號 and employment.學(xué)號= + id + ; comboBox1.Text = DataConnection.GetDataString(sql1); sql1 = select 類型名稱 from type,profesion_student,employment where type.類型號=profesion_student.類型號 and profesion_student.職業(yè)號=employment.職業(yè)號 and employment.學(xué)

18、號= + id + ; comboBox4.Text = DataConnection.GetDataString(sql1); else MessageBox.Show(學(xué)號為空!請輸入.); 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 專業(yè)編號 from department where 專業(yè)名稱= + comboBox2.Text.Trim() + ; string b = DataConnection.GetDataString(sql).Trim(); if (radioButton1.Checked = true) sql = update student_info set 性別= + radioButton1.Text + where 學(xué)號= + textBox1.Text.Trim() + ; int g = DataConnection.UpdateDate(sql);

20、if (radioButton4.Checked = true) sql = update student_info set 性別= + radioButton4.Text + where 學(xué)號= + textBox1.Text.Trim() + ; int f = DataConnection.UpdateDate(sql); sql = update student_info set 姓名= + textBox2.Text.Trim() + ,出生年月= + textBox3.Text.Trim() + ,籍貫= + textBox4.Text.Trim() + ,專業(yè)編號= + b +

21、,院系編號= + a + where 學(xué)號= + textBox1.Text.Trim() + ; int d = DataConnection.UpdateDate(sql); else MessageBox.Show(學(xué)號為空!請輸入.); 4.3查詢界面查詢就業(yè)率界面的設(shè)計(jì)如圖4.3所示:圖4.3 查詢就業(yè)率界面設(shè)計(jì)代碼如下: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 就業(yè)標(biāo)志=已就業(yè); int b = DataConnection.GetCountInfoBySql(sql); label5.Text = b.ToString(); sql = select count(*) from student_info where 就業(yè)標(biāo)志=待就業(yè); label4.Text = DataConnection.GetCountInfoBySql(sql).ToString(); float

23、 c =(float) b / a; label6.Text = c.ToString(); comboBox3.Items.Clear(); sql = select 專業(yè)名稱 from department order by 專業(yè)編號 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox3.Items.Add(dr專業(yè)名稱); 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.專業(yè)編號=department.專業(yè)編號 and 專業(yè)名稱= + comboBox3.Text + ; int a = DataConnection.GetCountInfoBySql(sql); sql = select count(*) from student_info,depa

25、rtment where student_info.專業(yè)編號=department.專業(yè)編號 and 就業(yè)標(biāo)志=已就業(yè) and 專業(yè)名稱= + comboBox3.Text + ; int b = DataConnection.GetCountInfoBySql(sql); if (a = 0) label10.Text = 該專業(yè)學(xué)生人數(shù)為0; else float c = (float)b / a; label10.Text = c.ToString(); else MessageBox.Show(“專業(yè)為空!請選擇.”); 查詢已就業(yè)信息界面的設(shè)計(jì)如圖4.4所示:圖4.4 查詢已就業(yè)信息

26、界面設(shè)計(jì)代碼如下:private void tabPage4_Click(object sender, EventArgs e) comboBox5.Items.Clear(); comboBox7.Items.Clear(); comboBox5.Text = ; comboBox7.Text = ; string sql = select 專業(yè)名稱 from department order by 專業(yè)編號 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox7.Ite

27、ms.Add(dr專業(yè)名稱); 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.學(xué)號,姓名,出生年月,籍貫,院系名稱,專業(yè)名稱,就業(yè)標(biāo)志,用人單位,類型名稱 from t

28、ype right join (select c4.學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)名稱,c4.職業(yè)號,類型號,用人單位 from profesion_student right join (select c3.學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)名稱,職業(yè)號 from dbo.employment right join (select 學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)名稱 from department join (select 學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)編號 from academy join (select

29、 學(xué)號,姓名,出生年月,院系編號,籍貫 ,就業(yè)標(biāo)志,專業(yè)編號 from student_info where 就業(yè)標(biāo)志=已就業(yè))c1 on academy.院系編號=c1.院系編號)c2 on department.專業(yè)編號=c2.專業(yè)編號)c3 on employment.學(xué)號=c3.學(xué)號)c4 on profesion_student.職業(yè)號=c4.職業(yè)號) c5 on type.類型號=c5.類型號 where 院系名稱=+ comboBox5.Text.Trim() + order by c5.學(xué)號; 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.學(xué)號,姓名,出生年月,籍貫,院系名稱,專業(yè)名稱,就業(yè)標(biāo)志,用人單位,類型名稱 from type right join (select c4.學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)名稱,c4.職業(yè)號,類型號,用人單位 from profesion_student r

31、ight join (select c3.學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)名稱,職業(yè)號 from dbo.employment right join (select 學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)名稱 from department join (select 學(xué)號,姓名,出生年月,就業(yè)標(biāo)志,籍貫,院系名稱,專業(yè)編號 from academy join (select 學(xué)號,姓名,出生年月,院系編號,籍貫 ,就業(yè)標(biāo)志,專業(yè)編號 from student_info where 就業(yè)標(biāo)志=已就業(yè))c1 on academy.院系編號=c1.院系編號)c2 o

32、n department.專業(yè)編號=c2.專業(yè)編號)c3 on employment.學(xué)號=c3.學(xué)號)c4 on profesion_student.職業(yè)號=c4.職業(yè)號) c5 on type.類型號=c5.類型號 where 專業(yè)名稱= + comboBox7.Text.Trim() + order by c5.學(xué)號; dataGridView1.DataSource = DataConnection.GetDataSuoce(s).Tables0; else MessageBox.Show(專業(yè)名稱為空!請選擇.); 查詢未就業(yè)信息界面的設(shè)計(jì)如圖4.5所示:圖4.5 查詢未就業(yè)信息界面

33、設(shè)計(jì)代碼如下:private void tabPage5_Click(object sender, EventArgs e) comboBox8.Items.Clear(); comboBox9.Items.Clear(); comboBox8.Text = ; comboBox9.Text = ; string sql = select 專業(yè)名稱 from department order by 專業(yè)編號 asc; SqlDataReader dr = DataConnection.GetSqlDataReader(sql); while (dr.Read() comboBox9.Items

34、.Add(dr專業(yè)名稱); 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.學(xué)號,姓名,出生年月,籍貫,院系名稱,專業(yè)名稱,就業(yè)標(biāo)志 from s

35、tudent_info,academy,department where student_info.院系編號=academy.院系編號 and student_info.專業(yè)編號=department.專業(yè)編號 and 就業(yè)標(biāo)志=待就業(yè) and 院系名稱= + comboBox8.Text.Trim() + order by student_info.學(xué)號; dataGridView2.DataSource = DataConnection.GetDataSuoce(sql).Tables0; else MessageBox.Show(院系名稱為空!請選擇.); private void button6_Click(object sender, EventArgs e) if (comboBox9.Text != ) string sql = select student_info.學(xué)號,姓名,出生年月,籍貫,院系名稱,專業(yè)名稱,就業(yè)標(biāo)志 from student_info,academy,department where student_info.院系編號=academy.院系編號 and student_info.專業(yè)編號=department.專業(yè)編號 and 就業(yè)標(biāo)志=待就業(yè) and 專業(yè)名稱= + comboBox9.Text.Tri

溫馨提示

  • 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)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論