【正文】
{ (, 150, )。 //在依次加載每行的值 ,每行的第一列值為 ID foreach (DataRow dr in ) { ListViewItem li = new ListViewItem()。 [0].Text = dr[0].ToString()。 i 。 } (li)。 點(diǎn)擊新增按鈕,用戶可以在表格里面添加一個(gè)新的用戶。如果要?jiǎng)h除用戶信息,必須先選中要?jiǎng)h除的用戶,然后點(diǎn)擊刪除按鈕。點(diǎn)擊刷新按鈕,可以從新倒入數(shù)據(jù)庫(kù)總的最新信息。 DataSet ds = (sql, , null, Users)。 = [Users]。amp。 //逐個(gè)刪除 foreach (String id in deptIds) { SqlParameter idParam = (id, , 4, (id))。 if (result == 1) { return false。 } private void tsBtnAdd_Click(object sender, EventArgs e) { //權(quán)限攔截 if (!(, 23)) { (您沒(méi)有相應(yīng)的操作權(quán)限 !, 信息提示 , , )。 } frmSysUserEdit frmSysUserEdit = new frmSysUserEdit()。 (this)。輸入正確系統(tǒng)會(huì)提示添加或修改成功。當(dāng)要?jiǎng)h除學(xué)生檔案是,必須先選中要?jiǎng)h除的項(xiàng)。 3.設(shè)計(jì)方法 主要代碼如下: public void getSchoolMgrInfo() { String sql = select as 編號(hào) , as 學(xué)生姓名 , as 學(xué)號(hào) , as 時(shí)間 , as 類別 , as 原因 , as 備注 from (SchoolMgr as t left join Student as p on =)。 if (ds != null) { ()。 } } /// summary /// 刪除學(xué)籍信息 /// /summary /// returns/returns public Boolean deleteSchoolMgrInfo(String[] Ids) { if (Ids != null amp。 0) { String sql = delete from SchoolMgr where [id] = id。 int result = (sql, , new SqlParameter[] { idParam })。 } } } return true。 return。amp。 String[] ids = new string[count]。 i count。 } if (!deleteSchoolMgrInfo(ids)) { (刪除失??! , 失敗提示 , , )。 } } else { if ( == (是否確定刪除 ?, 刪除提示 , , )) { String[] ids = new string[] { }。 ids[0] = id。 } //刷新數(shù)據(jù) ()。 } } private void tsBtnModify_Click(object sender, EventArgs e) { //權(quán)限攔截 if (!(, 5)) { (您沒(méi)有相應(yīng)的操作權(quán)限 !, 信息提示 , , )。 } if ( 0 amp。 0) { frmSchoolMgrEdit frmSchMgrEidt = new frmSchoolMgrEdit()。 //編輯信息時(shí),顯示待修改的信息 = ([0].Cells[編號(hào)].Value)。 = ([0].Cells[原因 ].Value)。 = ([0].Cells[備注 ].Value)。 (this)。 } } private void tsBtnAdd_Click(object sender, EventArgs e) { //權(quán)限攔截 if (!(, 18)) { (您沒(méi)有相應(yīng)的操作權(quán)限 !, 信息提示 , , )。 } frmSchoolMgrEdit frmSchMgrEdit = new frmSchoolMgrEdit()。 (this)。 結(jié)束語(yǔ) 經(jīng)過(guò)幾個(gè)多月的畢業(yè)設(shè)計(jì),一個(gè)完整的學(xué)生檔案管理系統(tǒng)終于制作完畢了。 關(guān)于本系統(tǒng),雖然對(duì)學(xué)生檔案管理系統(tǒng)進(jìn)行了系統(tǒng)的創(chuàng)建,但我們不可忽略的是這個(gè)系統(tǒng)并不是完美無(wú)缺,還存在著許多 不完善的地方,其實(shí)我們要在以后的實(shí)踐中去檢驗(yàn)它的可用性,特別要考慮它的實(shí)時(shí)性和安全性,這才是我們最值得考慮的問(wèn)題,一個(gè)系統(tǒng)好不好,要經(jīng)過(guò)反復(fù)的使和才能知道,不是光是理論中分析和設(shè)計(jì)得出來(lái)的。 經(jīng)過(guò)這次畢業(yè)設(shè)計(jì),我的感想很多,首先是做程序要有熱情,只有你喜歡做了,你才能認(rèn)真的去完成它;其次要有韌性,不怕麻煩, 不怕失敗,反復(fù)調(diào)試,反復(fù)練習(xí),這樣才能找到最佳的程序設(shè)計(jì)。在畢業(yè)設(shè)計(jì)中,曾遇到過(guò)不少問(wèn)題,如果單靠我個(gè)人的努力,很難按時(shí)完成畢業(yè)設(shè)計(jì),在此,我衷心感謝我的指導(dǎo)老師 —— ****老師,我從 ***老師身上學(xué)到了很多東西。她無(wú)論在理論上還是在實(shí)踐中,都給與我無(wú)私幫助和悉心的教導(dǎo),使我的畢業(yè)設(shè)計(jì)得以順利地按時(shí)完成。 參考文獻(xiàn) [1] 吳明輝、胡煜、竇亮,《商務(wù)應(yīng)用系統(tǒng)開(kāi)發(fā)實(shí)例導(dǎo)航》,中文第 1版,北京,人民郵電出版社, 2020年 [2] 鄧文淵、挑戰(zhàn),《互動(dòng)網(wǎng)站百寶箱》,北京,中國(guó)鐵道出版社, 2020年 [3] 石志國(guó),《 C開(kāi)發(fā)寶典》,北京,清華大學(xué)出版社, 2020年 [4] 蒙新 ,《 C編程技術(shù)與綜合實(shí)例演練 》 ,北京 ,清華大學(xué)出版社 ,2020年 [5] 丁貴廣 , 《 C編程基礎(chǔ)與實(shí)例 》, 北京 , 機(jī)械工業(yè)出版社 , 2020 [6] 張海藩,《軟件工程導(dǎo)論》, 2020年,清華大學(xué)出版社 [7] 李存斌、樊建平,《 C高級(jí)編程及項(xiàng)目應(yīng)用開(kāi)發(fā)》, 2020年,中國(guó)水利水電出版社 [8] 魏善沛編著 .《數(shù)據(jù)庫(kù)技術(shù)實(shí)用教程》 .北京 . 清華大學(xué)出版社 .1998 [9] [美 ] Jeffrey ,《 Fundamental Course of Database System》, TsingHua Press,2020年 11月。 [11] 隆華軟件工作室 編著,《 SQL Server 2020 程序設(shè)計(jì)》,清華大學(xué)出版社, 2020 年 10月。 lights far to port and starboard. Sea Shepherd ploughed on towards Miami. 4. All ashore Susan opened her arms, as if to greet a longlost friend. The sun had returnednot the halfhearted, hideandseek sun of recent wee ks. No, this was the real thing, pure gold pouring out of a perfect sky. She felt the warmth seeping deep into her skin. Slowly the shore floated forward to meet them, or so it seemed. Miami! Without asking, she helped herself to the binoculars hanging round Gary39。s binoculars. Both were shading their eyes. The sun shone everywhere, from above and from below, sparking silver on the water, teeming and gleaming like a shoal of surfacing fish ... Warm enough for you? Ben Bellingham stood between them. Temperature39。s a pelican. Ben pointed. A brown pelican, quite mon around the Florida c oast. People love watching their antics. The big bird, which reminded Gary of a pterodactyl, was ma king a reconnaissance flight parallel to Sea Shepherd. Suddenly the pelican plunged. A splash, a quic k gobbling movement, and another fat fish was stored away in the bird39。s beak. Must have a nest nearby, mented Bellingham. He shook himself. Well, gotta be going. I39。s 910 local time, five hours behind England. The bearlike naturalist shambled away. To think Susan had once felt shy, almost frightened of meeting him! She sensed, rather than saw, a new presence and peeked sideways. It was Yves. He was draped over the ship39。s eyes took in the scene farther along the deck. Ah, that was it. Vanessa. Wea