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

正文內(nèi)容

校園圖書館管理系統(tǒng)-資料下載頁

2025-08-05 08:39本頁面
  

【正文】 BookCode as 書號(hào), BorrowTime as 借閱時(shí)間, ShouldReturnTime as 借出應(yīng)還時(shí)間, ReturnTime as 歸還時(shí)間 from BorrowRecord where cardID=39。{0}39。 and BookCode=39。{1}39。 order by BorrowID desc, cardID, bookCode)。 DataTable dt = (queryStr)。 if ( == 0) { return null。 } else { return dt。 } } public int updateReturnTime(string cardID, string bookCode, DateTime returnTime) { string updateSql = (update [BorrowRecord] set ReturnTime=39。{0}39。 where cardID=39。{1}39。and bookCode=39。{2}39。, returnTime, cardID, bookCode )。 return (updateSql)。 } public int updateShouldReturnTime(string cardID, DateTime shouldReturnTime) { string updateSql = (update [BorrowRecord] set ShouldReturnTime=39。{0}39。 where cardID=39。{1}39。, shouldReturnTime, cardID)。 return (updateSql)。 } }}BookDAL中的 public int updateBookState(string bookCode, string bookState) { string updateSql2 = (update [Book] set BookState=39。{0}39。 where BookCode=39。{1}39。, bookState, bookCode)。 return (updateSql2)。 }BorrowCardDAL中的 public int getBorrowedCount(string cardID) { int borrowedCount=0。 string queryStr = (select * from [BorrowCard] where CardID=39。{0}39。, cardID)。 DataTable dt = (queryStr)。 if ( != 0) { borrowedCount = ([0][BorrowedCount].ToString().Trim())。 } return borrowedCount。 } public int addBorrowedCount(string cardID) { int borrowedCount = getBorrowedCount(cardID)+1。 string updateSql = (update [BorrowCard] set BorrowedCount=39。{0}39。 where cardID=39。{1}39。, borrowedCount, cardID)。 return (updateSql)。 }MODEL層 BorrowRecordusing System。using 。using 。using 。namespace { public class BorrowRecord { private string cardID。 private string bookCode。 public DateTime borrowTime。 public DateTime returnTime。 public DateTime shouldReturnTime。 public BorrowRecord() { } public BorrowRecord (string cardID, string bookCode, DateTime borrowTime, DateTime returnTime, DateTime shouldReturnTime) { = cardID。 = bookCode。 = borrowTime。 = returnTime。 = shouldReturnTime。 } // 屬性 public string CardID { get { return cardID。 } set { cardID = value。 } } public string BookCode { get { return bookCode。 } set { bookCode = value。 } } public DateTime BorrowTime { get {return borrowTime。} set { borrowTime = value。 } } public DateTime ReturnTime { get { return returnTime。 } set { returnTime = value。 } } public DateTime ShouldReturnTime { get { return shouldReturnTime。 } set { shouldReturnTime = value。 } } } } 圖書歸還功能也是圖書館管理系統(tǒng)中比較重要和基本的功能,圖書歸還功能的實(shí)現(xiàn)與新增圖書借閱功能是比較相近的,主要也是對BorrowRecord這張表進(jìn)行操作,首先當(dāng)借閱者歸還圖書時(shí),管理員輸入借閱證號(hào)和當(dāng)前歸還的書號(hào),查詢當(dāng)前借閱記錄,即可獲得這條借閱記錄, 按下歸還,實(shí)現(xiàn)對BorrowRecord表的更新,其次需要引用BookBLL和BorrowCardBLL完成,將BookState改為可借,將BorrowCard這張表中的可借書數(shù)加1。因?yàn)槭窍冗M(jìn)行新增借閱的功能的編寫的,因此,在進(jìn)行圖書歸還功能編寫時(shí),就已經(jīng)對3層架構(gòu)較為熟悉和了解了,功能的實(shí)現(xiàn)就更為容易些。但不同的是,圖書借閱使用的是表單的形式,對數(shù)據(jù)庫的操作是插入和更新,而圖書歸還則用的是datagridview,雖然之前web中也用過Gridview,但在winform中,很多功能和方法是不同的,而對數(shù)據(jù)庫的操作也只有更新,但是是對datetime類型的時(shí)間信息進(jìn)行更新,因此,到最終實(shí)現(xiàn)是非常開心的。模塊C提示:開發(fā)人員根據(jù)“編程計(jì)劃”編寫軟件的代碼,并隨時(shí)記錄編程技術(shù)、問題與對策、心得體會(huì)等等,產(chǎn)生《編程文檔》(類似于編程日記)。程序名稱圖書檢索查詢功能描述輸入檢索內(nèi)容后選擇檢索方式、檢索字段、排序方式進(jìn)行檢索,并顯示檢索結(jié)果??牲c(diǎn)擊圖書,查看圖書詳細(xì)信息。記錄編程技術(shù)、問題與對策、心得體會(huì)等等UI層:using System。using 。using 。using 。using 。using 。using 。using 。using 。namespace { public partial class Home : Form { BookBLL bookBLL。 public Home() { InitializeComponent()。 bookBLL = new BookBLL()。 } private void panel1_Paint(object sender, PaintEventArgs e) { } private void Home_Load(object sender, EventArgs e) { = false。 } private void button2_Click(object sender, EventArgs e) { BorrowCardManage bcm = new BorrowCardManage()。 ()。 ()。 } private void button3_Click(object sender, EventArgs e) { BorrowCardChange bcc = new BorrowCardChange()。 ()。 ()。 } private void button4_Click(object sender, EventArgs e) { BorrowCardCancel bcc = new BorrowCardCancel()。 ()。 ()。 } private void button1_Click(object sender, EventArgs e) { DataTable dt。 string searchStyle = , orderStyle = ,descStyle=。 switch (()) { case 題名: searchStyle = BookName。 break。 case 作者: searchStyle = Author。 break。 case 出版社: searchStyle = Press。 break。 case 索書號(hào): searchStyle = BookNumber。 break。 } switch (()) { case 題名: orderStyle = BookName。 break。 case 作者: orderStyle = Author。 break。 } switch (()) { case 升序: descStyle = asc。 break。 case 降序: descStyle = desc。 break。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1