freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

圖書館信息管理系統(tǒng)的實(shí)現(xiàn)與設(shè)計(jì)說明書-文庫吧資料

2025-04-18 06:05本頁面
  

【正文】 EventArgs e) { if ((frmAddBook) == true) return。 = this。} //圖書檢索菜單Click事件處理private void 圖書檢索ToolStripMenuItem_Click(object sender, EventArgs e) { if ((frmSearchBook) == true) return。 = this。 } } //圖書查詢按鈕Click事件處理 private void tsbtnSearch_Click(object sender, EventArgs e) { if ((frmSearchBook) == true) return。 = true。 ()。 } } //登錄按鈕事件處理 private void tsbtnLogin_Click(object sender, EventArgs e) { if ((frmLogin) == true) return。 = true。//實(shí)例化登錄窗體 ()。}//用戶登錄菜單的事件處理private void 用戶登錄ToolStripMenuItem_Click(object sender, EventArgs e) { //檢測該窗口是否處于打開狀態(tài) if ((frmLogin) == true) return。 return true。} //查詢子窗體是否存在 public bool checkchildfrm(string childfrmname) { foreach (Form childFrm in ) { if ( == childfrmname) { if( ==) = 。namespace BookManage{ public partial class FrmMain : Form { public static DialogResult result。using 。using 。using 。附錄附錄A 主窗口實(shí)現(xiàn)代碼using System。 }圖 關(guān)聯(lián)查找 若要查詢“愛情 情感”類中的“明曉溪”著作的《心之萌》這本書 就要同時(shí)對圖書類別和圖書名稱這兩個(gè)信息進(jìn)行關(guān)聯(lián)查找:在圖書類別下的組合框中選中“and”,圖書類別中輸入 愛情 情感,圖書名稱中輸入 心之萌。 DataTable table = [0]。% + bookcontent + %39。% + bookname + %39。 + booktype + 39。 string bookcontent = 。 string booktype = 。這時(shí)不同的用戶就需要查詢自己所需的書,在查詢時(shí)就需要同時(shí)根據(jù)多項(xiàng)圖書的信息進(jìn)行關(guān)聯(lián)性的查找,所以在查詢功能這一塊要用相應(yīng)的算法解決這一問題,如下面的代碼所示,已經(jīng)實(shí)現(xiàn)了圖書的關(guān)聯(lián)性查找:private void btnSerch_Click(object sender, EventArgs e) { string cbo1 = 。 return。 圖書更新中刪除功能的約束性在圖書館管理員管理圖示信息時(shí),有時(shí)需要不斷地增添新的圖書和刪除舊的圖書信息,但是當(dāng)有一本圖書正在被借閱當(dāng)中,則不能刪除,針對這一問題,該系統(tǒng)應(yīng)該提供有關(guān)對管理員顯示提醒的功能.下面在刪除功能代碼中用C語句提供相應(yīng)的解法.DataSet ds = (select * from IssueInfo where BookID=+()+)。//數(shù)據(jù)庫連接字符串(3)Private static string ConnectString = Data Source= (local)\\sqlexpress。user=sa。//連接數(shù)據(jù)庫的字符串(2)private static string ConnectString = server=(local)\\sqlexpress。id=sa。catalog=capucivar。source=.。provider=。conString 圖書更新 圖書借閱功能用戶登錄系統(tǒng)后,可以借閱不同的書籍,通過選擇組合框中的書名,該書的圖書訪問代碼和作者將顯示在文本框中。 圖書入庫 圖書更新功能圖書更新分為兩種,第一種通過更改DataGridView控件中的數(shù)據(jù)直接更改,第二種可以通過修改各字段值進(jìn)行更改。窗體載入時(shí),對圖書類別組合框中的項(xiàng)進(jìn)行了初始化,通過查詢語句“select distinct BookType from bookinfo”,調(diào)用DataAccess類中的GetDataSetBySql方法獲取數(shù)據(jù)庫Bookinfo表中的圖書類別,使用distinct關(guān)鍵字去掉重復(fù)項(xiàng)。 功能顯示 運(yùn)行主窗口運(yùn)行程序后首先顯示主窗體,單擊“登錄”按鈕,就會彈出登錄窗體,管理用戶具有系統(tǒng)提供的所有權(quán)限,普通用戶可以查詢圖書、借閱圖書。 程序調(diào)試情況   在數(shù)據(jù)連接時(shí)一定要注意窗體和相應(yīng)顯示控件的綁定關(guān)系。需要Microsoft .NET Framework的支持。如果測試成功,單擊“確定”按鈕。(2)在其中的第一個(gè)下拉列表框中選擇數(shù)據(jù)庫所在服務(wù)器名稱。切換到Provider選項(xiàng)卡,選中列表框中的Microsoft OLE DB Provider for SQL Server項(xiàng)。  (1)在服務(wù)器資源管理器中右擊“數(shù)據(jù)連接”節(jié)點(diǎn)(VS 2008中操作)。}}}}} 用戶登錄代碼、圖書查詢代碼等的實(shí)現(xiàn)以上代碼的實(shí)現(xiàn)都是C語言和Sql語言的使用,此處由于代碼篇幅較長,此處不再說明,祥見附錄。//根據(jù)適配器自動(dòng)生成表單 (ds, table)。}}} public static void UpdateDataSet(DataSet ds,string sql) { using (SqlConnection con = new SqlConnection(ConnectString)) {try { SqlDataAdapter adapter = new SqlDataAdapter(sql, con)。} else {return false。//打開連接 SqlCommand m = new SqlCommand(sql, con)。//返回DataReader} catch (SqlException ex) {throw new Exception()。//創(chuàng)建DataReader對象 ()。//創(chuàng)建Command對象 ()。//返回?cái)?shù)據(jù)集 } catch (SqlException ex) {throw new Exception()} } public static SqlDataReader GetDataReaderByID(int id) {using (SqlConnection con = new SqlConnection(ConnectString)) {string sql = select * from bookinfo where bookid= + id。//創(chuàng)建數(shù)據(jù)集對象 try
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1