【正文】
s rail and looked a bout as happy as someone being seasick. Why so glum? Susan39。ll see you again before we disembark. By the way, better alter your watchesit39。s expandable throat pouch. Pelicans use their elastic bills as scoops, Ben explained. And they vary the height of their dive depending on the depth of the fish. Eat two pounds a day, those fellas, a quarter of their body weight. The bird came in to land on an old jetty. Now it looked clumsy, swaying and teetering down invisible steps to alight on flat webbed feet. Soon after, a dishevelled chick was rummaging in the adult39。s in the niies on the mainland. They chatted for a minute or two. Look, there39。s neck. Fumbling, she adjusted the focus. She wanted to see everything. Susan gave a little grunt of pleasure: white sand, palm trees, high hotels whose re flecting w indows signalled like lighthouses, elegant yachts leaning on the wind and bing creamily through the smooth blue water. Blue! The sea was so blue! Travel brochureblue. Susan gazed in wonder. Could this be the same Atlantic whose grey green waves had made her stomach churn and driven her into her bunk? She handed back Gary39。 As Alexander went off duty he noticed the bobbing flicker of ships39。 [10] [美 ]Jeffer 著,周之、黃玫譯,《 SQL Server 2020參考大全》,清華大學(xué)出版社, 2020年 6月。另外還要感謝學(xué)校領(lǐng)導(dǎo)、班主任、各位同學(xué)對我們的關(guān)懷、幫助,為我們提供了良好的設(shè)計(jì) 環(huán)境以及各方面的支持。 ***認(rèn)真負(fù)責(zé)的工作態(tài)度,嚴(yán)謹(jǐn)?shù)闹螌W(xué)精神和深厚的理論水平都使我獲益非淺。 致 謝 經(jīng)過幾個(gè)月的時(shí)間 ,終于完成了畢業(yè)設(shè)計(jì)。在系統(tǒng)的設(shè)計(jì)過程中當(dāng)然也出現(xiàn)了各種各樣的問題,特別是關(guān)于系統(tǒng)的可移植性,有許多不足之處,這時(shí)我們主要任務(wù)就是應(yīng)該多查閱相關(guān)資料,反復(fù)地熟練應(yīng)用,才能把系統(tǒng)設(shè)計(jì)的巧,設(shè)計(jì)的好,同學(xué)們之間的交流也十分重要。我現(xiàn)在基本熟悉了一個(gè)管理系統(tǒng)的設(shè)計(jì)步驟,每個(gè)階段應(yīng)該完成的任務(wù),但我覺得我還有學(xué)多要學(xué)習(xí)的地方。 } 由于篇幅原因在此不在介紹其他的功能界面。 = true。 return。 } else { (沒有要編輯的信息 , 信息提示 , , )。 = ([0].Cells[時(shí)間 ].Value)。 = ([0].Cells[類別 ].Value)。 = ([0].Cells[學(xué)生姓名 ].Value)。 = false。amp。 return。 } } } else { (沒有要?jiǎng)h除的信息 , 信息提示 , , )。 if (!deleteSchoolMgrInfo(ids)) { (刪除失??! , 失敗提示 , , )。 String id = ([0].Cells[編號 ].Value)。 } //刷新數(shù)據(jù) ()。 i++) { ids[i] = ([i].Cells[編號 ].Value)。 for (int i = 0。 0) { if ( 1) { if ( == (是否確定執(zhí)行批量刪除 ?, 刪除提示 , , )) { int count = 。 } if ( 0 amp。 } private void tsBtnDelete_Click(object sender, EventArgs e) { //權(quán)限攔截 if (!(, 11)) { (您沒有相應(yīng)的操作權(quán)限 !, 信息提示 , , )。 if (result == 1) { return false。 //逐個(gè)刪除 foreach (String id in Ids) { SqlParameter idParam = (id, , 4, (id))。amp。 = [SchoolMgr]。 DataSet ds = (sql, , null, SchoolMgr)。 A.輸入項(xiàng) 1) 學(xué)生編號 ( id): 整 型 , 表格 輸入; 2) 學(xué)生姓名 (name):字符串類型, 表格 輸入; 3) 性別 (sex):字符串類型, 表格 輸入; 4) 年齡 ( age): 整型 , 表格 輸入; 5) 電話 (phone):字符串類型, 表格 輸入 6) 電話 (phone):字符串類型, 表格 輸入 7) 住址 (address):字符串類型, 表格 輸入 8) 學(xué)號 (sid):字符串類型, 表格 輸入 B.輸出項(xiàng) 1) 添加成功 , 提示添加成功 ; 2) 添加失敗 ,提示錯(cuò)誤。否則會(huì)提示錯(cuò)誤。 } 點(diǎn)擊添加,表格會(huì)新增一行,輸入完成后點(diǎn)擊修改。 = true。 return。 } } } return true。 int result = (sql, , new SqlParameter[] { idParam })。 0) { String sql = delete from Users where [id] = id。 } } /// summary /// 刪除系統(tǒng)用戶信息 /// /summary /// returns/returns public Boolean deleteSysUsers(String[] deptIds) { if (deptIds != null amp。 if (ds != null) { ()。 界面的主要代碼如下: public void getSysUsers() { String sql = select as 編號 , as 用戶名 , as 密碼 , as 備注 from Users as t 。刪除成功系統(tǒng)將會(huì)提示用戶操作成功。如果要修改用戶信息,必須先在表 格內(nèi)修改用戶的信息后,點(diǎn)擊修改按鈕,系統(tǒng)會(huì)更新數(shù)據(jù)庫內(nèi)的信息。 } } } 管理員進(jìn)入該界面后, 管理員可以添加修改刪除用戶的信息。i++ ) { ([i].ToString())。 //第一列不包含在內(nèi) for (int i = 1。 ()。 } = true。 0) { = 。 table != null amp。 界面的主要代碼如下: 將 table里的數(shù)據(jù)加載到 ListView控件里 ,id作為每行的 id值 public void MyListView(ListView lvw,DataTable table) { if (lvw != null amp。確定權(quán)限后,單擊”授權(quán)“執(zhí)行。 選擇所要修 改權(quán)限的用戶編號,在“權(quán)限“ ListView控件中顯示相應(yīng)的權(quán)限。也可以選擇多個(gè)用戶,同時(shí)進(jìn)行權(quán)限的授予。 } 跳轉(zhuǎn)到相應(yīng)界面 } 管理員進(jìn)入該界面后,選擇用戶編號后,系統(tǒng)會(huì)顯示用戶權(quán)限信息。 界面的部分代碼如下: private void tsmDeptMgr_Click(object sender, EventArgs e) { //權(quán)限攔截 if (!(, 7)) { (您沒有相應(yīng)的操作權(quán)限 !, 信息提 示 , , )。 包括班級設(shè)置、檔案管理。 如果用戶沒有權(quán)限,系統(tǒng)將提示用戶沒有權(quán)限進(jìn)入系統(tǒng)功能界面進(jìn)行操作。 ()。 ()。amp。amp。 String value = (sql, , valuePrarams)。 valuePrarams[0].Value = userName。 3.設(shè)計(jì)方法 主要代碼如下: //查詢用戶賬號 ,是否存在該用戶 String sql = select from Users as t where = userName and = pwd。該系統(tǒng)設(shè)置了兩種權(quán)限的用戶,程序會(huì)根據(jù)用戶自動(dòng)給與用戶相應(yīng)得權(quán)限。針對飯店管理系統(tǒng)的