




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、模塊開發卷卷宗1標題軟件系統名名稱:學生生宿舍管理理系統 DDMS(DDormiitoryy Mannegemment Systtem)模塊名稱和和標識符:(1)登錄錄模塊:llogmood(2)管理理員用戶模模塊:sttainffocennmod包括個人人信息子模模塊(sttainffo),修修改密碼子子模塊(sstachhpwd),報修信信息子模塊塊(staarep),意見建建議子模塊塊(staasug)和學生信信息管理子子模塊(mmaninnfo)。(3)學生生用戶模塊塊:stuuinfoocenrrmod包括個人人信息子模模塊(sttuinffo),修修改密碼子子模塊(sstuchhp
2、wd),報修信信息子模塊塊(stuurep)和意見建建議子模塊塊(stuusug)。程序編制員員簽名:李劍、楊民民岱、婁小敏、田海燕、沈大正卷宗的修改改文本序號號:修改完成日日期:20111-12-22卷宗序號:5編排日期:20111-12-232模塊開發發情況表模塊標識符符1logrmmodstainnfoceenmoddstuinnfoceenmodd模塊的描述述性名稱2登錄模塊管理員用戶戶模塊學生用戶模模塊代碼設計計劃開始日日期32011-12-122011-12-152011-12-20實際開始日日期42011-12-122011-12-142011-12-19計劃完成日日期52011
3、-12-142011-12-182011-12-23實際完成日日期62011-12-132011-12-182011-12-21模塊測試計劃開始日日期72011-12-142011-12-182011-12-21實際開始日日期82011-12-132011-12-182011-12-21計劃完成日日期92011-12-152011-12-202011-12-23實際完成日日期102011-12-152011-12-212011-12-22組裝測試計劃開始日日期112011-12-12實際開始日日期122011-12-22計劃完成日日期132011-12-23實際完成日日期142011-12-2
4、3代碼復查日日期/簽字字15源代碼行數數預 計16實 際17目標模塊大大小預 計18實 際19模塊標識符符20項目負責人人批準日期期/簽字213功能說明明登錄模塊(logmmod):實現用戶戶登錄,系系統將提示示用戶輸入入的信息,包包括用戶名名和密碼。管理員用戶戶模塊(sstainnfoceenmodd):用戶以管管理員身份份登錄后,將將進入管理理員用戶模模塊,進入入管理員界界面后可以以看到可查查看的信息息或所擁有有的權限。包括:首首頁、個人人信息、修修改密碼、報修信息息、意見建建議和學生生信息。a首頁頁:可以在在此看到待待處理的事事項。b個人人信息:可可以查看登登錄者的本本人信息。c修改改密
5、碼:對對本用戶的的密碼進行行修改,系系統將提示示輸入舊密密碼和新密密碼并進行行確認和提提交。d報修修信息:可可以查看由由普通用戶戶即住宿學學生提交的的宿舍設施施的報修信信息,并進進行處理。在處理完完畢后確認認已報修,學學生用戶在在登錄后可可以在相關界面面看到已經經處理的提提示。e意見見建議:可可以查看學學生用戶對對宿舍管理理提出的意意見和建議議,并進行行回復,也也可以對已已經處理或或是不合理理建議進行行刪除。回回復后學生生用戶可以在登錄錄后查看到到回復信息息。f學生生信息:可可以查看已已經注冊的的全部學生生的住宿信信息。并且且可以添加加新的學生生用戶,以以及對已有有學生用戶戶進行編輯輯,刪除操
6、操作。學生用戶模模塊(sttuinffocennmod):用戶以學學生身份登登錄后,將將進入學生生用戶模塊塊,進入學學生界面后后可以看到到可查看的的信息或所所擁有的權權限。包括括:首頁、個人信息息、修改密密碼、報修修信息、意意見建議。a首頁頁:可以在在此看到待待處理的事事項。b個人人信息:可可以查看登登錄者的本本人信息。c修改改密碼:對對本用戶的的密碼進行行修改,系系統將提示示輸入舊密密碼和新密密碼并進行行確認和提提交。d報修修信息:學學生用戶可可以根據系系統提示在在相關位置置填寫宿舍舍需要報修修的設施的的信息,在在提交后即即等待管理理員回復是是否報修。管理員用用戶登錄后可以看看到學生用用戶提
7、交的的報修信息息,并對之之進行處理理,確認已已報修后,學生將在登錄后看到相關消息。e意見見建議:可可以對與宿宿舍管理相相關的意見見和建議以以留言方式式告知管理理員。管理理員在登錄錄后將看到到消息,并并可進行回回復。4設計說明明登錄模塊:運行本宿宿舍管理系系統,將首首先進入登登錄界面,若若直接進入入其他界面面,系統將將提示還沒沒有登錄,然然后在點擊擊確認后回回到登錄界界面。此時時系統將在在數據庫中中相應表項項進行查詢詢,若用戶戶名不存在在或密碼輸輸入錯誤,將將彈出命令令窗口提示示。點擊確確認后再次次回到登錄錄界面進行行再次輸入入信息。登登錄模塊可以對對用戶的身身份(管理理員用戶和和學生用戶戶)進
8、行識識別,并進進入不同的的信息中心心模塊。管理員用戶戶模塊:本模塊包包括個人信信息模塊,密密碼修改模模塊,意見見建議模塊塊,報修信信息模塊以以及學生信信息查詢模模塊。在用用戶以管理理員身份登登錄后,將將進入管理理員信息中中心界面。管理員可可以訪問數數據庫,進進行信息查查看,修改改密碼,并并對學生用用戶提交的的報修信息息和意見建建議進行處處理,在提提交后,學學生用戶在在登錄后訪訪問數據庫庫可以看到到處理后的的消息。此時數據據庫中相應應信息均被被修改。對對學生信息息進行查詢詢,修改和和刪除,數數據庫中相相應表項內內容亦將被被修改。 管理員可可以添加新新的學生用用戶,在創創建用戶并并提交后,新新的用
9、戶信信息將寫入入數據庫。學生用戶用用戶模塊:本模塊包包括個人信信息模塊,密密碼修改模模塊,意見見建議模塊塊以及報修修信息模塊塊。在用戶戶以學生身身份登錄后后,將進入入學生信息息中心界面面。學生可可以訪問數數據庫,進進行個人信信息查看,修修改密碼,修修改的內容容將存入數數據庫。可可以提出報報修,填寫寫的相關信信息將插入入數據庫,管管理員可以以在登錄后后訪問數據據庫并進行行處理。可可以以留言言方式提出出與宿舍管管理相關的的意見和建建議,數據據庫中相關關內容將被被修改。在在管理員用用戶登錄后后,訪問數數據庫并進進行處理,數數據庫信息息得到更新新,學生再再次登錄即即可看到處處理后的消消息。5原代碼清清
10、單 (1)登登錄模塊:頁面代碼: 貴州大學學宿舍管理理系統 &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; 用用戶登錄 用用戶名: * &nbbsp; 密密 &nbssp; 碼: *  p; &nbssp;&nnbsp; &nbbsp; 處理程序代代碼:usingg Sysstem;usingg Sysstem.Dataa;usingg Sysstem.Colllectiions;usingg Sysstem.Web;usingg Sysstem.Web.Secuurityy;usingg Sysstem.Web.UI;usingg Sysstem.We
11、b.UI.WWebCoontrools;usingg Sysstem.Web.UI.WWebCoontrools.WWebPaarts;usingg Sysstem.Web.UI.HHtmlCContrrols;usingg Sysstem.Dataa.SqllClieent;usingg Sysstem.Conffigurratioon;publiic parttial classs Defaault33 : SSysteem.Weeb.UII.Pagge pprivaate striing cconSttr = Datta Soourcee=.;DDataBBase=dormm;Useer
12、 idd=sa;PWD=; pproteectedd voidd Pagge_Looad(oobjecct seenderr, EvventAArgs e) pproteectedd voidd Buttton22_Cliick(oobjecct seenderr, EvventAArgs e) sstrinng seelecttsql = sselecct * fromm logg wheere uunamee=naame; SSqlCoonnecctionn conn = nnew SqlCConneectioon(coonStrr); SSqlCoommannd cmmd = new S
13、qlCCommaand(sselecctsqll, coon); ccmd.PParammeterrs.AdddWitthVallue(namme, TexttBox11.Texxt); SSqlDaataReeaderr reaader; ccon.OOpen(); rreadeer = cmd.ExeccuteRReadeer(); iif (!readder.RRead() ccon.CClosee(); RRespoonse.Writte(aalertt(用用戶名不存存在!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=logg.asp
14、px); rreturrn; iif (rreadeerppsw.ToSStrinng() = TTextBBox2.Textt) SSessiionsno = TexttBox11.Texxt; SSessiionpsw = TexttBox22.Texxt; SSessiiontypee = reaadertyppe.ToSttringg(); rreadeer.Cllose(); iif (SSessiiontypee.TToStrring() = sttu) sselecctsqll = seleect * froom sttu whhere Sno=namme; SSqlCoomma
15、nnd cmmdstuu = nnew SqlCCommaand(sselecctsqll, coon); ccmdsttu.Paarameeterss.AdddWithhValuue(namee, SSessiionsno.TooStriing(); SSqlDaataReeaderr reaadersstu; rreadeerstuu = ccmdsttu.ExxecutteReaader(); iif (!readdersttu.Reead() rreadeerstuu.Cloose(); sstrinng deesql = ddelette frrom llog wwheree una
16、ame=sno; SSqlCoommannd deecmd = neew SqlCCommaand(ddesqll, coon); ddecmdd.Parrametters.AddWWithVValuee(ssno, Sesssionnsnno.ToSttringg(); ddecmdd.ExeecuteeNonQQueryy(); ccon.CClosee(); SSessiion.AAbanddon(); RRespoonse.Writte(aalertt(不不存在此用用戶信息,已已刪除此賬賬號!);); RRespoonse.Writte(wwindoow.loocatiion.hhre
17、f=logg.asppx); rreturrn; ttry LLabell1.Teext = reaadersstuSnamme.TooStriing() + 同學,; SSessiionnamee = reaadersstuSnamme.ToSttringg(); SSessiionsex = readdersttuSSex.ToSStrinng(); SSessiiondeptt = reaadersstuSdeppt.ToSttringg(); SSessiiondno = readdersttuDDno.ToSStrinng(); SSessiiontimee = reaadersst
18、uTimee.TToStrring(); ccatchh (Excceptiion) rreadeerstuu.Cloose(); ccon.CClosee(); RRespoonse.Rediirectt(sttuinffocennter.aspxx); eelse iif (SSessiiontypee.TToStrring() = stta) sselecctsqll = seleect * froom sttaff wherre Snno=nname; SSqlCoommannd cmmdstaa = nnew SqlCCommaand(sselecctsqll, coon); ccm
19、dstta.Paarameeterss.AdddWithhValuue(namee, SSessiionsno.TooStriing(); SSqlDaataReeaderr reaaderssta; ttry rreadeerstaa = ccmdstta.ExxecutteReaader(); iif (!readderstta.Reead() rreadeerstaa.Cloose(); sstrinng deesql = ddelette frrom llog wwheree unaame=sno; SSqlCoommannd deecmd = neew SqlCCommaand(dd
20、esqll, coon); ddecmdd.Parrametters.AddWWithVValuee(ssno, Sesssionnsnno.ToSttringg(); ddecmdd.ExeecuteeNonQQueryy(); ccon.CClosee(); SSessiion.AAbanddon(); RRespoonse.Writte(aalertt(不不存在此用用戶信息,已已刪除此賬賬號!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=logg.asppx); rreturrn; SSessiionnamee = rreadeerst
21、aaSnname.TooStriing(); SSessiionsex = readdersttaSSex.ToSStrinng(); SSessiiondeptt = reaadersstaSdeppt.ToSttringg(); rreadeerstaa.Cloose(); ccatchh (Excceptiion) ffinallly ccon.CClosee(); RRespoonse.Rediirectt(sttainffocennter.aspxx); eelse sselecctsqll = seleect * froom suup whhere Sno=namme; SSqlC
22、oommannd cmmdsupp = nnew SqlCCommaand(sselecctsqll, coon); ccmdsuup.Paarameeterss.AdddWithhValuue(namee, SSessiionsno.TooStriing(); SSqlDaataReeaderr reaaderssup; ttry rreadeersupp = ccmdsuup.ExxecutteReaader(); iif (!readdersuup.Reead() rreadeersupp.Cloose(); sstrinng deesql = ddelette frrom llog w
23、wheree unaame=sno; SSqlCoommannd deecmd = neew SqlCCommaand(ddesqll, coon); ddecmdd.Parrametters.AddWWithVValuee(ssno, Sesssionnsnno.ToSttringg(); ddecmdd.ExeecuteeNonQQueryy(); ccon.CClosee(); SSessiion.AAbanddon(); RRespoonse.Writte(aalertt(不不存在此用用戶信息,已已刪除此賬賬號!);); RRespoonse.Writte(wwindoow.looca
24、tiion.hhref=logg.asppx); rreturrn; LLabell1.Teext = reaaderssupSnamme.ToSttringg(); SSessiionnamee = reaaderssupSnamme.ToSttringg(); SSessiionsex = readdersuupSSex.ToSStrinng(); rreadeersupp.Cloose(); ccatchh (Excceptiion) ffinallly ccon.CClosee(); RRespoonse.Rediirectt(suupinffocennter.aspxx); eels
25、e RRespoonse.Writte(aalertt(用用戶名或者者密碼錯誤誤!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=logg.asppx); rreturrn; (2)管管理員模塊塊:頁面代碼: 宿舍管理理中心 ,歡迎您您!  p; &nbssp; asp:SqlDDataSSourcce ID=SSqlDaataSoourceerep runaat=sserveer ConnnectiionSttringg= DDeletteCommmandd=DEELETEE FROOM reeparee WHEERE (id = i
26、dd) ProvviderrNamee= SSelecctCommmandd=SEELECTT reppare.* FRROM rreparre WHHERE (Rsoolve IS NNULL)  p; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp;  p; &nbssp; &nbssp;  p;&nbbsp; p;&nbbsp; asp:SqlDDataSSourcce ID=SSqlDaataSoourceestuiinfo ru
27、naat=sserveer ConnnectiionSttringg= DDeletteCommmandd=DEELETEE FROOM sttu WHHERE (Snoo = sno) SeleectCoommannd=SSELECCT * FROMM sttu UUpdatteCommmandd=UPPDATEE stuu SETT Snaame = naame, Sex = ssex, Sdeppt = deppt, DDno = dnno, TTime = ttime WHERRE (SSno = snno)  p; 學學號: 姓姓名: 性性別: 男 女 學學院: 宿宿舍: 入
28、入住時間: 20055 20066 20077 20088 20099 20100 20111 20122 20133 20144 20155 年 1 2 3 4 5 6 7 8 9 10 11 12 月 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 日  p; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; &nbssp; asp:SqlDDataSSo
29、urcce ID=SSqlDaataSoourceesug runaat=sserveer ConnnectiionSttringg= SeleectCoommannd=SSELECCT * FROMM suug ProvviderrNamee= UpdaateCoommannd=uupdatte suugqsset ccon=con&;dwheere iid=iid  p;&nbbsp; 回回復留言 內內容:  p;  p;&nbbsp; &nbssp;&nnbsp;&nbssp; asp:SqlDDataSSourcce ID=SSqlDaataSoourceele
30、a runaat=sserveer ConnnectiionSttringg= SSelecctCommmandd=SEELECTT * FFROM leaave DeleeteCoommannd=ddelette &;fromm leaave&;wherre idd=idd  p;&nbbsp; 舊舊密碼: 新新密碼: 新新密碼: 處理程序代代碼:usingg Sysstem;usingg Sysstem.Dataa;usingg Sysstem.Conffigurratioon;usingg Sysstem.Colllectiions;usingg Sysstem.Web;usin
31、gg Sysstem.Web.Secuurityy;usingg Sysstem.Web.UI;usingg Sysstem.Web.UI.WWebCoontrools;usingg Sysstem.Web.UI.WWebCoontrools.WWebPaarts;usingg Sysstem.Web.UI.HHtmlCContrrols;usingg Sysstem.Dataa.SqllClieent;usingg Sysstem.Net;publiic parttial classs staiinfoccenteer : Systtem.WWeb.UUI.Paage iint wwait
32、= 0; pprivaate striing cconSttr = Datta Soourcee=.;DDataBBase=dormm;Useer idd=sa;PWD=; pproteectedd voidd Pagge_Looad(oobjecct seenderr, EvventAArgs e) wwait = 0; GGridVView11.DattaSouurceIID = SqllDataaSourrcereep; GGridVViewssug.DDataSSourcceID = SSqlDaataSoourceesug; GGridVViewsstu.DDataSSourcceI
33、D = SSqlDaataSoourceestuiinfo; iif (SSessiionsno = nulll) RRespoonse.Writte(aalertt(您您還沒有登登錄!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=logg.asppx); rreturrn; LLabell1.Teext = Sesssionnnaame.ToSStrinng(); LLabellwaitt.Texxt = nulll; iif (GGridVView11.Rowws.Coount != 00) LLabellwaitt.Texxt += 待
34、辦事項項:報修信信息。; wwait = 1; iif (GGridVViewssug.RRows.Counnt != 0) LLabellwaitt.Texxt += 待辦事項項:留言信信息。; wwait = 1; iif (wwait = 00) LLabellwaitt.Texxt = 沒有待辦辦事項。; pproteectedd voidd Buttton11_Cliick(oobjecct seenderr, EvventAArgs e) SSessiion.AAbanddon(); RRespoonse.Writte(wwindoow.loocatiion.hhref=logg.
35、asppx); rreturrn; pproteectedd voidd Butttonmmain_Clicck(obbjectt sennder, EveentArrgs ee) PPanellchp.Visiible = faalse; PPanellrep.Visiible = faalse; PPanellsug.Visiible = faalse; PPanelllea.Visiible = faalse; PPanellwaitt.Vissiblee = ttrue; PPanellinfoo.Vissiblee = ffalsee; PPanellstuiinfo.Visiibl
36、e = faalse; wwait = 0; LLabellwaitt.Texxt = nulll; iif (GGridVView11.Rowws.Coount != 00) LLabellwaitt.Texxt += 待辦事項項:報修信信息。; wwait = 1; iif (GGridVViewssug.RRows.Counnt != 0) LLabellwaitt.Texxt += 待辦事項項:留言信信息。; wwait = 1; iif (wwait = 00) LLabellwaitt.Texxt = 沒有待辦辦事項。; pproteectedd voidd Butttoniinf
37、o_Clicck(obbjectt sennder, EveentArrgs ee) PPanellchp.Visiible = faalse; PPanellrep.Visiible = faalse; PPanellsug.Visiible = faalse; PPanelllea.Visiible = faalse; PPanellwaitt.Vissiblee = ffalsee; PPanellinfoo.Vissiblee = ttrue; PPanellstuiinfo.Visiible = faalse; LLabell2.Teext = 用戶名: + SSessiionsno
38、.TooStriing() + ; LLabell2.Teext += 姓名: + SSessiionnamee.TToStrring() + ; LLabell2.Teext += 性別: + SSessiionsex.TooStriing() + ; LLabell2.Teext += 類型:管管理員; LLabell2.Teext += 部門: + SSessiiondeptt.TToStrring() + ; pproteectedd voidd Butttoncchp_CClickk(objject sendder, EvenntArggs e) PPanellrep.Visiibl
39、e = faalse; PPanellinfoo.Vissiblee = ffalsee; PPanellsug.Visiible = faalse; PPanellwaitt.Vissiblee = ffalsee; PPanellchp.Visiible = trrue; PPanelllea.Visiible = faalse; PPanellstuiinfo.Visiible = faalse; pproteectedd voidd Butttonrrep_CClickk(objject sendder, EvenntArggs e) PPanellchp.Visiible = faa
40、lse; PPanellinfoo.Vissiblee = ffalsee; PPanellsug.Visiible = faalse; PPanellwaitt.Vissiblee = ffalsee; PPanellrep.Visiible = trrue; PPanelllea.Visiible = faalse; PPanellstuiinfo.Visiible = faalse; iif (GGridVView11.Rowws.Coount=0) LLabell3.Teext = 沒有報修修信息!; BButtoonnewwrp.VVisibble = fallse; pprotee
41、ctedd voidd Butttonssug_CClickk(objject sendder, EvenntArggs e) PPanellrep.Visiible = faalse; PPanellinfoo.Vissiblee = ffalsee; PPanellsug.Visiible = trrue; PPanellwaitt.Vissiblee = ffalsee; PPanellchp.Visiible = faalse; PPanellstuiinfo.Visiible = faalse; PPanelllea.Visiible = faalse; iif (GGridVVie
42、wssug.RRows.Counnt = 0) LLabell4.Teext = 沒有留言言信息!; PPanell1.Viisiblle = falsse; pproteectedd voidd Butttonnnewsuug_Cllick(objeect ssendeer, EEventtArgss e) sstrinng upp = updaate ssug sset aans=ans wherre idd=idd; SSqlCoonnecctionn conn = nnew SqlCConneectioon(coonStrr); SSqlCoommannd cmmd = new Sql
43、CCommaand(uup, ccon); ccmd.PParammeterrs.AdddWitthVallue(anss, TTextBBoxsuug.Teext); ccmd.PParammeterrs.AdddWitthVallue(id, GrridViiewsuug.SeelecttedDaataKeey.Vaalue); ccon.OOpen(); iif (ccmd.EExecuuteNoonQueery() = 0) RRespoonse.Writte(aalertt(信信息提交失失敗!);); RRespoonse.Writte(wwindoow.loocatiion.hhr
44、ef=staainfoocentter.aaspx); ccon.CClosee(); rreturrn; ccon.CClosee(); pproteectedd voidd Buttton77_Cliick(oobjecct seenderr, EvventAArgs e) iif (TTextBBox1.Textt != Sesssionpsww.TToStrring() RRespoonse.Writte(aalertt(舊舊密碼錯誤誤!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=staainfoocentter.aaspx); r
45、returrn; iif (TTextBBox2.Textt != TexttBox33.Texxt) RRespoonse.Writte(aalertt(兩兩次密碼不不一致!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=staainfoocentter.aaspx); rreturrn; SSessiionpsw = TexttBox22.Texxt; sstrinng upp = updaate llog sset ppsw=psw wherre unname=snoo; SSqlCoonnecctionn conn = nnew Sql
46、CConneectioon(coonStrr); SSqlCoommannd cmmd = new SqlCCommaand(uup, ccon); ccmd.PParammeterrs.AdddWitthVallue(psww, TTextBBox2.Textt); ccmd.PParammeterrs.AdddWitthVallue(snoo, SSessiionsno); ccon.OOpen(); iif (ccmd.EExecuuteNoonQueery() = 0) RRespoonse.Writte(aalertt(密密碼修改失失敗!);); RRespoonse.Writte(
47、wwindoow.loocatiion.hhref=staainfoocentter.aaspx); ccon.CClosee(); rreturrn; eelse RRespoonse.Writte(aalertt(密密碼修改成成功!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=staainfoocentter.aaspx); ccon.CClosee(); pproteectedd voidd Butttonnnewrpp_Cliick(oobjecct seenderr, EvventAArgs e) sstrinng upp = up
48、daate rreparre seet Rssolvee=tiime wwheree id=id; SSqlCoonnecctionn conn = nnew SqlCConneectioon(coonStrr); SSqlCoommannd cmmd = new SqlCCommaand(uup, ccon); ccmd.PParammeterrs.AdddWitthVallue(timme, DateeTimee.Noww); ccmd.PParammeterrs.AdddWitthVallue(id, GrridViiew1.SeleecteddDataaKey.Valuue); cco
49、n.OOpen(); iif (ccmd.EExecuuteNoonQueery() = 0) RRespoonse.Writte(aalertt(信信息提交失失敗!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=staainfoocentter.aaspx); ccon.CClosee(); rreturrn; ccon.CClosee(); pproteectedd voidd Butttonsstureeg_Cllick(objeect ssendeer, EEventtArgss e) iif (BButtoonstuureg.Text
50、t = 更新) sstrinng upp = UPDAATE sstu SSET SSnamee = namee, Seex = sexx, Sddept = ddept, Dnoo = dno, Timme = timme WHHERE (Snoo = sno); SSqlCoonnecctionn conn = nnew SqlCConneectioon(coonStrr); SSqlCoommannd cmmd = new SqlCCommaand(uup, ccon); ccmd.PParammeterrs.AdddWitthVallue(namme, TexttBoxsstunaa.
51、Texxt); ccmd.PParammeterrs.AdddWitthVallue(sexx, DDropDDownLList11.SellecteedVallue); ccmd.PParammeterrs.AdddWitthVallue(deppt, TexttBoxsstudee.Texxt); ccmd.PParammeterrs.AdddWitthVallue(dnoo, TTextBBoxsttudnoo.Texxt); ccmd.PParammeterrs.AdddWitthVallue(timme, DroppDownnListt2.SeelecttedVaalue + - +
52、 DroppDownnListt3.SeelecttedVaalue + - + DroppDownnListt4.SeelecttedVaalue); ccmd.PParammeterrs.AdddWitthVallue(snoo, GGridVViewsstu.SSelecctedDDataKKey.VValuee); ccon.OOpen(); iif (ccmd.EExecuuteNoonQueery() = 0) RRespoonse.Writte(aalertt(信信息提交失失敗!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=st
53、aainfoocentter.aaspx); ccon.CClosee(); rreturrn; ccon.CClosee(); eelse sstrinng inns = inssert intoo logg vallues(namme,0000,stuu); sstrinng inns1 = innsertt intto sttu vaaluess(snno,nname,sexx,deept,dno,timme); SSqlCoonnecctionn connins = neew SqlCConneectioon(coonStrr); SSqlCoommannd cmmdinss = nn
54、ew SqlCCommaand(iins, coniins); SSqlCoommannd cmmdinss1 = new SqlCCommaand(iins1, connins); ccmdinns.Paarameeterss.AdddWithhValuue(namee, TTextBBoxsttusnoo.Texxt); ccmdinns1.PParammeterrs.AdddWitthVallue(snoo, TTextBBoxsttusnoo.Texxt); ccmdinns1.PParammeterrs.AdddWitthVallue(namme, TexttBoxsstunaa.T
55、exxt); ccmdinns1.PParammeterrs.AdddWitthVallue(sexx, DDropDDownLList11.SellecteedVallue); ccmdinns1.PParammeterrs.AdddWitthVallue(deppt, TexttBoxsstudee.Texxt); ccmdinns1.PParammeterrs.AdddWitthVallue(dnoo, TTextBBoxsttudnoo.Texxt); ccmdinns1.PParammeterrs.AdddWitthVallue(timme, DroppDownnListt2.See
56、lecttedVaalue + - + DroppDownnListt3.SeelecttedVaalue + - + DroppDownnListt4.SeelecttedVaalue); cconinns.Oppen(); iif (ccmdinns.ExxecutteNonnQuerry() = 00) RRespoonse.Writte(aalertt(信信息提交失失敗!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=staainfoocentter.aaspx); cconinns.Cllose(); rreturrn; iif (c
57、cmdinns1.EExecuuteNoonQueery() = 0) RRespoonse.Writte(aalertt(信信息提交失失敗!);); RRespoonse.Writte(wwindoow.loocatiion.hhref=staainfoocentter.aaspx); cconinns.Cllose(); rreturrn; cconinns.Cllose(); BButtoonstuued.VVisibble = truue; pproteectedd voidd GriidVieewstuu_SellecteedInddexChhangeed(obbjectt senn
58、der, EveentArrgs ee) iif (GGridVViewsstu.SSelecctedVValuee != nulll) TTextBBoxsttusnoo.Texxt = GriddViewwstu.RowssGriidVieewstuu.SellecteedInddex.Cellls0.Texxt; TTextBBoxsttuna.Textt = GGridVViewsstu.RRowsGriddViewwstu.SeleecteddIndeex.CCellss1.Textt; DDropDDownLList11.Texxt = GriddViewwstu.RowssGri
59、idVieewstuu.SellecteedInddex.Cellls2.Texxt; TTextBBoxsttude.Textt = GGridVViewsstu.RRowsGriddViewwstu.SeleecteddIndeex.CCellss3.Textt; TTextBBoxsttudnoo.Texxt = GriddViewwstu.RowssGriidVieewstuu.SellecteedInddex.Cellls4.Texxt; pproteectedd voidd Butttonsstuinnfo_CClickk(objject sendder, EvenntArggs
60、e) PPanellrep.Visiible = faalse; PPanellinfoo.Vissiblee = ffalsee; PPanellsug.Visiible = faalse; PPanellwaitt.Vissiblee = ffalsee; PPanellchp.Visiible = faalse; PPanelllea.Visiible = faalse; PPanellstuiinfo.Visiible =truue; iif (GGridVViewsstu.RRows.Counnt = 0) BButtoonstuued.VVisibble = fallse; ppr
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 企業如何借助智慧城市平臺提升競爭力
- 教育技術創新與職場競爭力的提升
- 300MW1200MWh全釩液流儲能電站項目可行性研究報告寫作模板-備案審批
- 天津市濱海新區2024年八上物理期末達標檢測試題含解析
- 山東省濱州市惠民縣2025屆九上化學期末考試試題含解析
- 2025版年度財務顧問與財務咨詢與審計服務合同778
- 2025版游戲性能測試與優化服務合同
- 二零二五年度安全評價咨詢合同范本:企業安全評價與風險控制服務
- 2025版新能源柴油零售終端合作協議模板
- 2025版辦公樓裝修工程設計與施工監理合同范本
- 全新退換貨協議模板
- 危重患者的早期識別與處理
- (正式版)JBT 14449-2024 起重機械焊接工藝評定
- 商務禮儀之座次及用餐
- SEO谷歌推廣方案
- 注塑標準成型條件表電子表格模板
- 企業數字化管理
- 道閘系統施工方案
- DB41-T 2563-2023 新生兒臍靜脈導管維護技術操作規范
- 配置管理與漏洞修復
- 新版中國復發難治性急性髓系白血病診療指南
評論
0/150
提交評論