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

正文內(nèi)容

圖書管理系統(tǒng)系統(tǒng)設(shè)計含代碼-資料下載頁

2025-04-12 06:05本頁面
  

【正文】 where BookID=39。++39。 SqlDataAdapter da = new SqlDataAdapter(tt,conn)。 DataSet ds = new DataSet()。 (ds)。 = ds .Tables[0].Rows[0][0].ToString()。 string cmd = insert into borrow(ReaderID,BookID,BorrowDate,ReturnDate) values (39。 + + 39。, + 39。 + + 39。, + 39。 + + 39。, + 39。 + + 39。)。 SqlCommand = new SqlCommand(cmd, conConnection)。 ()。 ()。 (借閱成功, 提示)。 } }}主要代碼如下:using System。using 。using 。using 。using 。using 。using 。using 。namespace WindowsFormsApplication1{ public partial class 讀者查閱 : Form { public 讀者查閱() { InitializeComponent()。 } private void 讀者信息ToolStripMenuItem_Click(object sender, EventArgs e) { 借閱信息 f2 = new 借閱信息()。 ()。 } private void 圖書查詢ToolStripMenuItem_Click(object sender, EventArgs e) { 圖書查詢 f1 = new 圖書查詢()。 ()。 } private void 圖書續(xù)借ToolStripMenuItem_Click(object sender, EventArgs e) { 圖書續(xù)借 f3 = new 圖書續(xù)借()。 ()。 } private void 圖書掛失ToolStripMenuItem_Click(object sender, EventArgs e) { 圖書掛失 f4 = new 圖書掛失()。 ()。 } }}該頁面支持模糊查詢,輸入關(guān)鍵字即可查詢相關(guān)書籍,操作界面如下:using System。using 。using 。using 。using 。using 。using 。using 。using 。using 。namespace WindowsFormsApplication1{ public partial class 圖書查詢 : Form { public 圖書查詢() { InitializeComponent()。 } private void button1_Click(object sender, EventArgs e) { FillGrid()。 } private void FillGrid() { if ( == ) { (請輸入你要使用的檢索條件!, 提示!)。 return。 } string sql = 。 sql += select BookID as ID號, BookWrite as 作者, BookName as 書名,BookPublish as 出版社, BookPublishDate as 出版日期, BookPrice as 價格, BookSort as 書類 from book。 if ( != ) { sql += where BookName like 39。% + + %39。 } SqlConnection conConnection = new SqlConnection(@Data Source=.\sqlexpress。Initial Catalog=學生管理數(shù)據(jù)庫。Integrated Security=True)。 ()。 string cmd = sql 。 DataSet dataset = new DataSet()。 SqlDataAdapter myDataAdapter = new SqlDataAdapter(cmd,conConnection )。 (dataset)。 = [0]。 } }}輸入學號后點擊查詢,即可查到已有借閱信息,查詢后界面如下主要代碼如下:using System。using 。using 。using 。using 。using 。using 。using 。using 。using 。namespace WindowsFormsApplication1{ public partial class 借閱信息 : Form { public 借閱信息() { InitializeComponent()。 } private void button1_Click(object sender, EventArgs e) { FillGrid()。 } private void FillGrid() { if ( == ) { (請輸入你要使用的學號!, 提示!)。 return。 } string sql = 。 sql += select as ID號, as 作者, as 書名, as 出版社, as 出版日期, as 價格, as 借閱日期 from book s,borrow g。 if ( != ) { sql += where =。 } SqlConnection conConnection = new SqlConnection(@Data Source=.\sqlexpress。Initial Catalog=學生管理數(shù)據(jù)庫。Integrated Security=True)。 ()。 string cmd = sql。 DataSet dataset = new DataSet()。 SqlDataAdapter myDataAdapter = new SqlDataAdapter(cmd, conConnection)。 (dataset)。 = [0]。 } }}輸入書籍編號,點擊續(xù)借即可。主要代碼如下:using System。using 。using 。using 。using 。using 。using 。using 。using 。namespace WindowsFormsApplication1{ public partial class 圖書續(xù)借 : Form { public 圖書續(xù)借() { InitializeComponent()。 } private void button1_Click(object sender, EventArgs e) { if (() == ) { (請輸入書籍編號, 提示)。 return。 } else { SqlConnection conConnection = new SqlConnection(@Data Source=.\sqlexpress。Initial Catalog=學生管理數(shù)據(jù)庫。Integrated Security=True)。 ()。 string conn = @Data Source=.\sqlexpress。Initial Catalog=學生管理數(shù)據(jù)庫。Integrated Security=True。 string tt = select BookName from book where BookID=39。 + + 39。 SqlDataAdapter da = new SqlDataAdapter(tt, conn)。 DataSet ds = new DataSet()。 (ds)。 = [0].Rows[0][0].ToString()。 string cmd = update borrow set ReturnDate=(15) where BookID=39。 + + 39。 SqlCommand = new SqlCommand(cmd, conConnection)。 ()。 ()。 (續(xù)借成功, 提示)。 = 。 = 。 } } }}輸入圖書編號即可掛失,操作后界面如下主要代碼如下:using System。using 。using 。using 。using 。using 。using 。using 。using 。namespace WindowsFormsApplication1{ public partial class 圖書掛失 : Form { public 圖書掛失() { InitializeComponent()。 } private void button1_Click(object sender, EventArgs e) { if (() == ) { (請輸入書籍編號, 提示)。 return。 } string conn = @Data Source=.\sqlexpress。Initial Catalog=學生管理數(shù)據(jù)庫。Integrated Security=True。 string tt = select BookName from book where BookID=39。 + + 39。 SqlDataAdapter da = new SqlDataAdapter(tt, conn)。 DataSet ds
點擊復制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1