web系統(tǒng)開發(fā)學(xué)生宿舍管理系統(tǒng)_第1頁(yè)
web系統(tǒng)開發(fā)學(xué)生宿舍管理系統(tǒng)_第2頁(yè)
web系統(tǒng)開發(fā)學(xué)生宿舍管理系統(tǒng)_第3頁(yè)
web系統(tǒng)開發(fā)學(xué)生宿舍管理系統(tǒng)_第4頁(yè)
已閱讀5頁(yè),還剩7頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、貴州大學(xué)計(jì)算機(jī)科學(xué)與信息學(xué)院Web 系統(tǒng)開發(fā)期末考查報(bào)告組員顧杰、趙遠(yuǎn)海姓名趙遠(yuǎn)海學(xué)號(hào)班級(jí)軟工 131完成時(shí)間2016-6-10學(xué)生宿舍管理系統(tǒng)-Web系統(tǒng)開發(fā)需求分析:1. 背景高校學(xué)生宿舍管理系統(tǒng)的開發(fā)主要包括后臺(tái)數(shù)據(jù)庫(kù)的建立和維護(hù)以及前端應(yīng)用程序的開發(fā)兩個(gè)方面。對(duì)于后臺(tái)數(shù)據(jù)庫(kù)的建立和維護(hù)要求建立起數(shù)據(jù)一致性和完整性強(qiáng)、數(shù)據(jù)安全性好的庫(kù)。而對(duì)于前端應(yīng)用程序的開發(fā)則要求應(yīng)用程序能提供強(qiáng)大的數(shù)據(jù)操縱功能,界面友好、使用簡(jiǎn)單方便等特點(diǎn)。舊的手工紀(jì)錄的宿舍管理方式已經(jīng)不能適應(yīng)高速發(fā)展的信息化時(shí)代,新的宿舍管理系統(tǒng)開發(fā)出來(lái)之后,學(xué)校的現(xiàn)有的宿舍信息管理將有很大的改觀, 由過(guò)去的人工方式轉(zhuǎn)變?yōu)橛?jì)算機(jī)方

2、式,由效率低、數(shù)據(jù)冗余、易產(chǎn)生錯(cuò)誤轉(zhuǎn)變?yōu)闄z索迅速、查找方便、可靠性高、存儲(chǔ)量大。這些優(yōu)點(diǎn)能夠極大地提高效率, 也是學(xué)??茖W(xué)化、 正規(guī)化管理的重要條件。2. 目的對(duì)軟件工程的全過(guò)程有感性的認(rèn)識(shí)和初步的經(jīng)驗(yàn)。熟悉對(duì)數(shù)據(jù)庫(kù)和A 的使用方法及 B/S 系統(tǒng)認(rèn)識(shí)。編制軟件、編寫軟件開發(fā)文檔和實(shí)驗(yàn)報(bào)告。3.功能需求3.1 系統(tǒng)需求:系統(tǒng)管理員必須先從登錄界面進(jìn)入系統(tǒng),在登錄頁(yè)面輸入用戶名和密碼,通過(guò)身份驗(yàn)證后,才可以進(jìn)入系統(tǒng)的首頁(yè)。如果未能通過(guò)系統(tǒng)的身份驗(yàn)證,系統(tǒng)自動(dòng)給出登錄錯(cuò)誤的提示信息。(2)通過(guò)身份驗(yàn)證的系統(tǒng)管理員進(jìn)入系統(tǒng)首頁(yè)。在首頁(yè)中可以通過(guò)房間編號(hào)、所在樓名和房間類型對(duì)宿舍的房間信息進(jìn)行查詢。可

3、以選擇相應(yīng)的房間信息來(lái)更新該房間的信息。同時(shí),還可以對(duì)房間信息進(jìn)行單一的或批量的刪除操作。當(dāng)然,添加房間信息的功能還是必不可少的。(3)系統(tǒng)管理員能夠?qū)W(xué)生進(jìn)行入住宿舍信息的登記,也使用學(xué)生學(xué)號(hào)、學(xué)生姓名、所在宿舍樓名和房間的編號(hào)對(duì)宿舍信息進(jìn)行查詢,并且可以對(duì)學(xué)生的換宿舍房間和退出宿舍房間進(jìn)行操作。(4)系統(tǒng)管理員通過(guò)學(xué)生學(xué)號(hào)、學(xué)生姓名和繳費(fèi)類別查詢學(xué)生的繳費(fèi)信息,可以選擇相應(yīng)的繳費(fèi)信息來(lái)更新。同時(shí),還可以對(duì)學(xué)生繳費(fèi)的信息進(jìn)行刪除操作,以及登記新的宿舍的繳費(fèi)信息。(5)系統(tǒng)管理員還能夠通過(guò)學(xué)生學(xué)號(hào)、學(xué)生姓名和學(xué)生的專業(yè)查詢學(xué)生的信息。同樣,具有刪除和修改的功能。(6)在系統(tǒng)設(shè)置的菜單中,能夠設(shè)

4、置學(xué)生的專業(yè)信息和修改登錄的密碼。3.2 用戶界面需求學(xué)生宿舍管理系統(tǒng)應(yīng)提供簡(jiǎn)單、層次關(guān)系明了、清晰的操作界面,使用戶一目了然。盡可能的為用戶的添加、查詢等功能操作提供方便。3.3 開發(fā)語(yǔ)言和開發(fā)語(yǔ)言本學(xué)生宿舍管理系統(tǒng)的用的開發(fā)環(huán)境與開發(fā)語(yǔ)言為Microsoft VisualStudio 2013和 Microsoft SQL Server 2008.4試驗(yàn)內(nèi)容和要求完成學(xué)生宿舍管理軟件的開發(fā)全過(guò)程,從分析一直到軟件完成。該軟件的基本需求是:1. 數(shù)據(jù)輸入:從鍵盤輸入各類基本信息。宿舍的基本信息:地點(diǎn)、位置、樓層、面積、標(biāo)準(zhǔn)人數(shù)、內(nèi)部設(shè)置、收費(fèi)標(biāo)準(zhǔn)、類別等;班級(jí)基本信息:專業(yè)、年級(jí)、人數(shù)、輔導(dǎo)

5、員、班長(zhǎng)等;學(xué)生基本信息:年齡、性別等。2. 能對(duì)基本信息進(jìn)行插入、刪除、修改等操作。3. 完成宿舍的學(xué)生住宿分配,可以自動(dòng)分配或手動(dòng)分配。4. 數(shù)據(jù)查詢:按宿舍、專業(yè)、年級(jí)、班級(jí)、學(xué)生等進(jìn)行分類查詢,能進(jìn)行精確和模糊查詢5設(shè)計(jì)過(guò)程51用戶要求設(shè)計(jì)一款依據(jù)貴州大學(xué)的大學(xué)學(xué)生宿舍管理系統(tǒng),要求操作簡(jiǎn)單、界面清晰明了。52系統(tǒng)功能模塊在整體設(shè)計(jì)中, 我們將宿舍管理系統(tǒng)分為七個(gè)大的模塊:樓房管理模塊、住宿管理模塊、班級(jí)管理模塊、房間管理模塊、信息查詢功能模塊、數(shù)據(jù)統(tǒng)計(jì)功能模塊和遷出記錄功能模塊。每個(gè)模塊將實(shí)現(xiàn)不同的功能。各個(gè)模塊包含的內(nèi)容如下圖示:學(xué)生宿舍管理系統(tǒng)樓房管理房間管理班級(jí)管理住宿管理信息

6、查詢數(shù)據(jù)統(tǒng)計(jì)遷出記錄房查房班住辦辦學(xué)房學(xué)看添刪修間學(xué)生宿舍管理系級(jí)統(tǒng)功能班模塊宿圖理生生遷房班房加除改間信間級(jí)信級(jí)情人理信間人間出樓樓樓錄息刪錄息刪況員遷息查數(shù)統(tǒng)學(xué)房房53管理系統(tǒng)模塊入修除查入出查詢計(jì)生房入修除統(tǒng)改改看住詢計(jì)信該管理系統(tǒng)模塊包括:添加編輯、按輸入信息查找編輯和全庫(kù)瀏覽三個(gè)息部分。5.3.1添加編輯:對(duì)數(shù)據(jù)表格進(jìn)行信息添加編輯。5.3.2按信息查找編輯: 通過(guò)輸入的信息對(duì)表格進(jìn)行查找,也可以對(duì)查找出來(lái)的信息進(jìn)行修改和刪除。5.3.3全庫(kù)瀏覽:直接查看整個(gè)表格信息。5.3 系統(tǒng) E-R 圖宿1樓層舍N號(hào)號(hào)N數(shù)1圖 5.2系統(tǒng) ER 圖標(biāo)準(zhǔn)人數(shù)收費(fèi)標(biāo)準(zhǔn)5.4 統(tǒng)所需表格宿舍綜和以上

7、分析,等級(jí)要實(shí)現(xiàn)是那個(gè) 積的所有功能模塊, 共需要設(shè)計(jì) 7 個(gè)表格,面他們分別是:樓房基本情況表、宿舍基本情況表、宿舍等級(jí)表、班級(jí)基所在年人本情況表、學(xué)生基本情況表、遷出記錄表和管理專員業(yè)表。級(jí)入住數(shù)樓房基本信息表:詳細(xì)登記學(xué)校樓房基本信息create table building/宿舍樓表學(xué)號(hào)宿舍樓 ID(buildingid int not null primary key,/學(xué)生分配班級(jí)administrator varchar(10),/宿舍樓樓管姓名宿舍樓層flooramount char(80),/areaamount int,/宿舍樓面積輔班buildingsex char(2)

8、/性別導(dǎo)長(zhǎng)性年員);別齡宿舍基本信息表:詳細(xì)登記學(xué)校宿舍基本信息create table dormitory/宿舍表查看某學(xué)生是否遷出(dormitoryid int not null primary key,buildingid int not null,/樓號(hào)kindid int,/宿舍等級(jí)telephonenum int,/宿舍電話dormitorysex char(2),/宿舍性別stayingamount int/已住人數(shù));ID宿舍ID宿舍等級(jí)表:記錄等級(jí)信息和相關(guān)的宿舍費(fèi)用create table dormitorykind/ (kindid int not null prima

9、ry key,/宿舍等級(jí)宿舍等級(jí)IDstandardamount char(10),/標(biāo)準(zhǔn)人數(shù)standardfee int/費(fèi)用); 班級(jí)基本信息表:詳細(xì)登記學(xué)校班級(jí)基本情況create table class/班級(jí)(classid int not null primary key,/班級(jí)號(hào)classname varchar(10) not null,/班級(jí)名studentamount int,/學(xué)生數(shù)目classmoniter char(10),/班長(zhǎng)instructor char(10),/導(dǎo)員major char(10)/專業(yè));學(xué)生基本信息表:詳細(xì)登記學(xué)校學(xué)生基本情況create t

10、able studdent/學(xué)生表 .(studentid int not null primary key,/學(xué)生學(xué)號(hào)studentname varchar(10) not null, /學(xué)生姓名buildingid int,/宿舍樓號(hào)dormitoryid int,/房間號(hào)bedid int,/床鋪號(hào)studentsex char(2) not null,/學(xué)生性別studentage int,/學(xué)生年齡stayingtime char(10),/classid char(10),/班級(jí)major char(10),/telephone int,/學(xué)生電話intime datetime/入

11、住時(shí)間);遷出記錄表:記錄遷出出信息create table out/遷出記錄 表(studentid int not null primary key,/studentname varchar(10) not null, /outtimedatetimenot null,/學(xué)生學(xué)號(hào)學(xué)生姓名遷出時(shí)間reason char(50)/遷出原因);管理員表:記錄登陸管理員的賬號(hào)和密碼,create table admin/管理員表(adminname char(10)not null primary key,/管理員賬戶名adminpsw char(10) not null/管理員密碼);六 、功能

12、模塊實(shí)現(xiàn)代碼和運(yùn)行截圖:登錄頁(yè):輸入正確的用戶與密碼,進(jìn)入系統(tǒng)。住宿情況查看:住宿情況查看功能代碼:protectedvoid Button2_Click(objectsender,EventArgs e)SqlConnectionscn=newSqlConnection ( ConfigurationManager. ConnectionStringsConnectionString . ConnectionString);scn. Open();SqlCommandscm = new SqlCommand( weizhuman, scn);scm. CommandType= Command

13、Type.StoredProcedure;SqlParameter spa= null ;spa=scm. Parameters . Add(newSqlParameter ( buildingid,SqlDbType. Int);spa. Direction=ParameterDirection. Input;spa. Value =DropDownList1 . Text;SqlDataAdapter sda =new SqlDataAdapter (scm);DataSet ds =new DataSet();sda. Fill(ds);GridView1. DataSource=ds;

14、GridView1. DataBind();protectedvoid Button1_Click(objectsender,EventArgs e)SqlConnectionscn=SqlConnection ( ConfigurationManager. ConnectionStringsConnectionStringonnectionString);scn. Open();SqlCommandscm = new SqlCommand( yizhuman , scn);scm. CommandType= CommandType.StoredProcedure;new . CSqlPara

15、meterspa = null ;spa=scm. Parameters . Add(newSqlParameter ( buildingid,SqlDbType. Int);spa. Direction= ParameterDirection. Input;spa. Value= DropDownList1 . Text;SqlDataAdapter sda= new SqlDataAdapter (scm);DataSet ds= new DataSet();sda. Fill(ds);GridView1. DataSource= ds;GridView1. DataBind();辦理入住

16、:辦理入住功能代碼:trySqlConnectionscn=newSqlConnection ( ConfigurationManager . ConnectionStringsConnectionString . ConnectionString);scn. Open();SqlCommandscm = new SqlCommand( dbo.StoredProcedure1 , scn);scm. CommandType= CommandType.StoredProcedure;SqlParameter sprocParams = null;sprocParams= scm. Parame

17、ters . Add(new SqlParameter ( studentid,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value= TextBox1 . Text;sprocParams= scm. Parameters . Add(newSqlParameter ( studentname,SqlDbType. VarChar,10);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value=

18、TextBox2 . Text;sprocParams= scm. Parameters . Add(newSqlParameter ( buildingid,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value= DropDownList1 . Text;sprocParams= scm. Parameters . Add(newSqlParameter ( dormitoryid,SqlDbType. Int);sprocParams. Direction= Paramete

19、rDirection. Input;sprocParams. Value= DropDownList2 . Text;sprocParams=scm. Parameters . Add(newSqlParameter ( bedid,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value= TextBox7 . Text;sprocParams= scm. Parameters . Add(newSqlParameter ( studentsex ,SqlDbType. Char,

20、2);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value= DropDownList4 . Text;sprocParams= scm. Parameters . Add(newSqlParameter ( studentage ,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = TextBox4 . Text;sprocParams= scm. Parameters . Add(new

21、SqlParameter ( stayingtime,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = TextBox3 . Text;sprocParams= scm. Parameters . Add(new SqlParameter ( classname,SqlDbType. Char,10);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = DropDownList5 .

22、 Text;sprocParams=scm. Parameters . Add(new SqlParameter ( intime ,SqlDbType. Char,10);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = TextBox5 . Text;sprocParams=scm. Parameters . Add(new SqlParameter ( classid,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input

23、;sprocParams. Value = DropDownList6 . Text;if(scm . ExecuteNonQuery() 0)Label2. Text= 錄入成功 _ ;elseLabel2. Text= 錄入失??! ;catch ( Exception )Label2. Text = 錄入失??! ;辦理遷出:辦理遷出功能代碼:publicvoid qianchu()SqlConnectionscnn=newSqlConnection ( ConfigurationManager. ConnectionStringsConnectionString . ConnectionS

24、tring);scnn. Open();SqlCommandscmm = new SqlCommand( goout , scnn);scmm. CommandType= CommandType.StoredProcedure;SqlParameter param1 = null ;param1=scmm.Parameters . Add(newSqlParameter ( studentid ,SqlDbType. Int);param1. Direction= ParameterDirection. Input;param1. Value = DropDownList1 . Text;pa

25、ram1=scmm.Parameters . Add(newSqlParameter ( studentname,SqlDbType. NChar, 10);param1. Direction= ParameterDirection. Input;param1. Value= DropDownList2 . Text;param1=scmm.Parameters . Add(newSqlParameter ( outtime ,SqlDbType. NChar, 10);param1. Direction= ParameterDirection. Input;param1. Value= Te

26、xtBox4 . Text;param1=scmm.Parameters . Add(newSqlParameter ( reason,SqlDbType. VarChar, 50);param1. Direction= ParameterDirection. Input;param1. Value= TextBox3 . Text;scmm. ExecuteNonQuery();Label2. Text+= 成功放入到 out 表中 ;學(xué)生信息查詢:查詢某一棟樓的全部學(xué)生:學(xué)生信息查詢功能代碼:SqlConnectionscn=newSqlConnection ( Configuration

27、Manager. ConnectionStringsConnectionString . ConnectionString);scn. Open();SqlCommandscm = new SqlCommand( xuehao , scn);scm. CommandType= CommandType.StoredProcedure;SqlParameter sprocParams= null ;sprocParams=scm. Parameters . Add(newSqlParameter ( studentid ,SqlDbType. Int);sprocParams. Direction

28、= ParameterDirection. Input;sprocParams. Value = TextBox2 . Text;SqlDataAdapter sda= new SqlDataAdapter (scm);DataSet ds= new DataSet();sda. Fill(ds);GridView1. DataSource = ds;GridView1. DataBind();學(xué)生信息查詢:以專業(yè)進(jìn)行查詢學(xué)生信息查詢:以班級(jí)進(jìn)行查詢學(xué)生信息查詢:以宿舍進(jìn)行查詢學(xué)生信息查詢:以學(xué)號(hào)進(jìn)行查詢學(xué)生信息查詢:以姓名進(jìn)行查詢查詢房間信息:以樓號(hào)與宿舍號(hào)進(jìn)行查詢房間信息查詢:SqlCon

29、nectionscn=SqlConnection ( ConfigurationManager. ConnectionStringsConnectionStringonnectionString);scn. Open();SqlCommandscm = new SqlCommand( peoplenum , scn);scm. CommandType= CommandType.StoredProcedure;SqlParameter sprocParams= null ;new . CsprocParams=scm. Parameters . Add(newSqlParameter ( peo

30、plenum,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = TextBox3 . Text;sprocParams=scm. Parameters . Add(newSqlParameter ( buildingid,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = DropDownList4 . Text;SqlDataAdapter sda=

31、 new SqlDataAdapter (scm);DataSet ds= new DataSet();sda. Fill(ds);GridView1. DataSource = ds;GridView1. DataBind();房間信息查詢:以樓棟性別(所住是男、女)與樓號(hào)、空缺人數(shù)進(jìn)行查詢?nèi)藬?shù)統(tǒng)計(jì):可以以樓號(hào)、樓號(hào) +班級(jí)、班級(jí)、專業(yè)等進(jìn)行統(tǒng)計(jì)人數(shù)統(tǒng)計(jì)功能代碼:SqlConnectionscn=newSqlConnection ( ConfigurationManager . ConnectionStringsConnectionString . ConnectionString);scn

32、. Open();SqlCommandscm= new SqlCommand( classcount, scn);scm. CommandType= CommandType.StoredProcedure;SqlParameter sprocParams = null ;sprocParams=scm. Parameters . Add(new SqlParameter ( buildingid ,SqlDbType. Int);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = DropDownList

33、1 . Text;sprocParams=scm. Parameters . Add(newSqlParameter ( classname,SqlDbType. Char, 10);sprocParams. Direction= ParameterDirection. Input;sprocParams. Value = DropDownList2 . Text;SqlDataAdapter sda= new SqlDataAdapter (scm);DataSet ds= new DataSet();sda. Fill(ds);GridView1. DataSource = ds;GridView1. DataBind();房間數(shù)量統(tǒng)計(jì):統(tǒng)計(jì)每棟樓的房間數(shù)房間數(shù)量統(tǒng)計(jì)功能代碼:SqlConnectionscn=SqlConnection ( ConfigurationManager. ConnectionStringsCon

溫馨提示

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

評(píng)論

0/150

提交評(píng)論