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

下載本文檔

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

文檔簡介

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

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

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

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

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

6、。全庫瀏覽:直接查看整個表格信息。5.3系統(tǒng)E-R圖N5.綜和以上分分理實現(xiàn)是別是:樓房基本情?本情況表、學(xué)樓房基本信息表:詳cre(badmi圖層數(shù)N收費(fèi)標(biāo)準(zhǔn)功能模塊,共需要設(shè)計7個表格,、班級基本情人數(shù)情況表、遷出記錄表登記學(xué)校樓房基本信息building/宿舍樓表Intnotnullprikey,/宿舍N5.綜和以上分分理實現(xiàn)是別是:樓房基本情?本情況表、學(xué)樓房基本信息表:詳cre(badmi圖層數(shù)N收費(fèi)標(biāo)準(zhǔn)功能模塊,共需要設(shè)計7個表格,、班級基本情人數(shù)情況表、遷出記錄表登記學(xué)校樓房基本信息building/宿舍樓表Intnotnullprikey,/宿舍樓IDator學(xué)生rchar(1

7、0)/宿舍樓樓管floc姓amountchar(80),/宿舍面積eeta班級云班長齡arebuildingsgx性char(2)7年性另宿舍基本信別:詳細(xì)登記學(xué)校宿舍基本信息createtabledormitory/宿舍表(dormitoryidintnotnullprimarykey,宿舍IDbuildingidintnotnull,/樓號IDkindidint,/宿舍等級telephonenumint,/宿舍電話dormitorysexchar(2),/宿舍性別stayingamountint/已住人數(shù));宿舍等級表:記錄等級信息和相關(guān)的宿舍費(fèi)用createtabledormitoryk

8、ind/宿舍等級(kindidintnotnullprimarykey,/宿舍等級IDstandardamountchar(10),/標(biāo)準(zhǔn)人數(shù)standardfeeint/費(fèi)用);班級基本信息表:詳細(xì)登記學(xué)校班級基本情況createtableclass/班級(classidintnotnullprimarykey,/班級號classnamevarchar(10)notnull,/班級名studentamountint,/學(xué)生數(shù)目classmoniterchar(10),/班長instruetorchar(10),/導(dǎo)員majorchar(10)/專業(yè));學(xué)生基本信息表:詳細(xì)登記學(xué)校學(xué)生基本情況

9、createtablestuddent/學(xué)生表.(studentidintnotnullprimarykey,/學(xué)生學(xué)號studentnamevarchar(10)notnull,/學(xué)生姓名buildingidint,/宿舍樓號dormitoryidint,/房間號bedidint,/床鋪號studentsexchar(2)notnull,/學(xué)生性別studentageint,/學(xué)生年齡stayingtimechar(10),/classidchar(10),/班級majorchar(10),/telephoneint,/學(xué)生電話intimedatetime/入住時間);遷出記錄表:記錄遷出出

10、信息createtableout/遷出記錄表(studentidintnotnullprimarykey,/學(xué)生學(xué)號studentnamevarchar(10)notnull,/學(xué)生姓名outtimedatetimenotnull,/遷出時間reasonchar(50)/遷出原因);管理員表:記錄登陸管理員的賬號和密碼,createtableadmin/管理員表(adminnamechar(10)notnullprimarykey,/管理員賬戶名adminpswchar(10)notnull/管理員密碼);六、功能模塊實現(xiàn)代碼和運(yùn)行截圖:登錄頁:輸入正確的用戶與密碼,進(jìn)入系統(tǒng)。住宿情況查看:住

11、宿情況查看功能代碼:protectedvoidButton2_Click()bjectsender,EventArgse)SqlConnectionscn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scn.Open();SqlCommandscm=newSqlCommand(weizhuman,scn);scm.CommandType=CommandType.StoredProcedure;SqlParameterspa=null;spa=scmParame

12、tersAdd(newSqlParameter(buildingid,SqlDbType.Int);spa.Direction二ParameterDirection.Input;spa.Value二DropDownListl.Text;SqlDataAdaptersda=newSqlDataAdapter(scm);DataSetds=newDataSet();sda.Fill(ds);GridViewl.DataSource=ds;GridViewl.DataBind();protectedvoidButton1_Click(objectsender,EventArgse)SqlConnec

13、tionscn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scn.Open();SqlCommandscm=newSqlCommand(yizhuman,scn);scm.CommandType=CommandType.StoredProcedure;SqlParameterspa=null;spa=scmParametersAdd(iewSqlParameter(buildingid,SqlDbType.Int);spa.Direction二Paramet

14、erDirection.Input;spa.Value=DropDownListl.Text;SqlDataAdaptersda=newSqlDataAdapter(scm);DataSetds=newDataSet();sda.Fill(ds);GridView1.DataSource=ds;GridView1.DataBind();辦理入?。恨k理入住功能代碼:trySqlConnectionscn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scn.Ope

15、n();SqlCommandscm=newSqlCommand(dbo.StoredProcedure1,scn);scm.CommandType=CommandType.StoredProcedure;SqlParametersprocParams=null;sprocParams=scmParametersAdd(newSqlParameter(studentid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox1.Text;sprocParams=scmParam

16、etersAdd(newSqlParameter(studentname,SqlDbType.VarChar,10);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox2.Text;sprocParams=scmParametersAdd(newSqlParameter(buildingid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDownList1.Text;sprocPa

17、rams=scmParametersAdd(newSqlParameter(dormitoryid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDownList2.Text;sprocParams=scmParametersAdd(newSqlParameter(bedid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox7.Text;sprocP

18、arams=scmParametersAdd(newSqlParameter(studentsex,SqlDbType.Char,2);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDownList4.Text;sprocParams=scmParametersAdd(newSqlParameter(studentage,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox4.Tex

19、t;sprocParams=scmParametersAdd(newSqlParameter(stayingtime,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox3.Text;sprocParams=scmParametersAdd(newSqlParameter(classname,SqlDbType.Char,10);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDown

20、List5.Text;sprocParams=scmParametersAdd(newSqlParameter(intime,SqlDbType.Char,10);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox5.Text;sprocParams=scmParametersAdd(newSqlParameter(classid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDo

21、wnList6.Text;if(scm.ExecuteNonQuery()0)Label2Text二錄入成功;elseLabel2.Text=錄入失敗!“;catch(Exception)Label2.Text=錄入失?。 ?;辦理遷出:辦理遷出功能代碼:publicvoidqianchu()SqlConnectionscnn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scnn.Open();SqlCommandscmm=newSqlCommand(goout

22、,scnn);scmm.CommandType=CommandType.StoredProcedure;SqlParameterparaml=null;paraml=scmmParametersAdd(lewSqlParameter(studentid,SqlDbType.Int);paraml.Direction二ParameterDirection.Input;paraml.Value=DropDownListl.Text;paraml=scmmParametersAdd(newSqlParameter(studentname,SqlDbTypeSqlDbType.NChar,10);pa

23、raml.Direction二ParameterDirection.Input;paraml.Value=DropDownList2.Text;param1=scmmParametersAdd(newSqlParameter(outtime,SqlDbType.NChar,10);SqlDbTypeSqlDbType.NChar,10);paraml.Direction二ParameterDirection.Input;paraml.Value=DropDownList2.Text;param1=scmmParametersAdd(newSqlParameter(outtime,SqlDbTy

24、pe.NChar,10);param1.Direction二ParameterDirection.Input;param1.Value=TextBox4.Text;param1=scmmParametersAdd(newSqlParameter(reason,SqlDbType.VarChar,50);param1.Direction二ParameterDirection.Input;param1.Value=TextBox3.Text;scmm.ExecuteNonQuery();Label2Text+=成功放入到out表中;學(xué)生信息查詢:查詢某一棟樓的全部學(xué)生:學(xué)生信息查詢功能代碼:Sql

25、Connectionscn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scn.Open();SqlCommandscm=newSqlCommand(xuehao,scn);scm.CommandType=CommandType.StoredProcedure;SqlParametersprocParams=null;sprocParams=scmParametersAdd(newSqlParameter(studentid,SqlDbType.Int);sp

26、rocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox2.Text;SqlDataAdaptersda=newSqlDataAdapter(scm);DataSetds=newDataSet();sda.Fill(ds);GridView1.DataSource=ds;GridView1.DataBind();學(xué)生信息查詢:以專業(yè)進(jìn)行查詢學(xué)生信息查詢:以班級進(jìn)行查詢學(xué)生信息查詢:以宿舍進(jìn)行查詢學(xué)生信息查詢:以學(xué)號進(jìn)行查詢學(xué)生信息查詢:以姓名進(jìn)行查詢查詢房間信息:以樓號與宿舍號進(jìn)行查詢房間信息查詢:SqlCon

27、nectionscn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scn.Open();SqlCommandscm=newSqlCommand(peoplenum,scn);scm.CommandType=CommandType.StoredProcedure;SqlParametersprocParams=null;nwparamnwparam=scm.Parameters.Add(newSqlParameter(buildingid,SqlDbType.I

28、nt);nwparam.Direction二ParameterDirection.Input;nwparam.Value=DropDownListl.Text;SqlDataAdaptersda=newSqlDataAdapter(scm);sprocParams=scmParametersAdd(newSqlParameter(peoplenum,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=TextBox3.Text;sprocParams=scmParametersAdd(i

29、ewSqlParameter(buildingid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDownList4.Text;SqlDataAdaptersda=newSqlDataAdapter(scm);DataSetds=newDataSet();sda.Fill(ds);GridViewl.DataSource=ds;GridViewl.DataBind();房間信息查詢:以樓棟性別(所住是男、女)與樓號、空缺人數(shù)進(jìn)行查詢?nèi)藬?shù)統(tǒng)計:可以以樓號、樓號+班級、班級、專

30、業(yè)等進(jìn)行統(tǒng)計人數(shù)統(tǒng)計功能代碼:SqlConnectionscn=newSqlConnection(ConfigurationManager.ConnectionStringsConnectionString.ConnectionString);scn.Open();SqlCommandscm=newSqlCommand(classcount,scn);scm.CommandType=CommandType.StoredProcedure;SqlParametersprocParams=null;sprocParams=scmParametersAdd(newSqlParameter(build

31、ingid,SqlDbType.Int);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDownListl.Text;sprocParams=scmParametersAdd(newSqlParameter(classname,SqlDbType.Char,10);sprocParams.Direction二ParameterDirection.Input;sprocParams.Value=DropDownList2.Text;SqlDataAdaptersda=newSqlDataAdapter(scm);DataSetd

溫馨提示

  • 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)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論