【正文】
在此,向老師致以最深的謝意 ! 同時 要 感謝我的項目組長史小姐能給我細心的指導,幫助我進行排錯和部分技術的攻克。通過這次畢業(yè)設計,我也對 Java 語言有了更進一步的了解,同時還可以掌握在 Swing 項目中如何使用 Action 接口的開發(fā)模式,如何創(chuàng)建菜單欄與工具欄,為以后應用 Swing 語言開發(fā)程序奠定了基礎。 s[i][4] = ()。 for (int i = 0。 } int i=(bookISBNs, readerISBNs,id)。 } } } 程序 運行圖如下: 圖 62 圖書借閱管理運行圖 圖書歸還模塊的實現(xiàn) 圖書歸還模塊實現(xiàn)時,在設計窗體時,需要實現(xiàn)用戶單擊表格中的某一行,在相應的文本框中顯示此圖書借閱的罰款信息。 //String num=()+。 getContentPane().add(label_5, )。 (new CloseActionListener())。 (30)。 (new MyDocument(5))。 pubDate= new JFormattedTextField(())。 (label_4)。 (label_2_1)。 ()。 (item)。 bookTypeModel= (DefaultComboBoxModel)()。 (new ISBNkeyListener())。 (gridLayout)。 // 設置窗體可最小化 setClosable(true)。 圖書信息管理模塊概述 圖書信息管理模塊主要包括圖書添加、圖書信息修改、圖書借還 、圖書查詢等功能。通過登錄以后,才可以進行相應的管理員操作。 ((admin))。 + name + 39。 } catch (Exception ex) { ()。 } public void setName(String name) { = name。 private String name。 ()。 reset=new JButton()。 } })。 (label_1)。 (new Dimension(0, 0))。 final GridLayout gridLayout = new GridLayout(0, 2)。 getContentPane().setLayout(borderLayout)。因此登陸模塊在整個系統(tǒng)中占據(jù)了很重要的地位。//創(chuàng)建圖標方法 (Exiticon)。 (readerAddButton)。 ImageIcon bookCheckicon=()。 (true)。 JButton bookTypeAddButton=new JButton()。 (fjdkjfk)。 // 添加借閱管理菜單到菜單欄 (sysManageMenu)。 JMenu userManageMItem = new JMenu(用戶管理 )。 ()。 ()。 ()。/html)。 // 調用創(chuàng)建工具欄的方法 getContentPane().add(toolBar, )。 setDefaultCloseOperation()。管理員通過主窗體可以進行相應的操作,實現(xiàn)系統(tǒng)的功能。 圖 31 圖書信息實體 ER圖 2. 讀者信息實體 讀者信息實體包括條形碼、姓名、性別、年齡、電話、辦證日期、證件號碼等屬性??紤]到成本,選用了 MySQL 數(shù)據(jù)庫。 施會勇:基于 Java 的圖書管理系統(tǒng)開發(fā) 4 第二章 系統(tǒng)分析設計 作為一款圖書管理系統(tǒng) ,首先要完成它的基本功能。由于服務器連接個數(shù)和數(shù)據(jù)通信量的限制,這種結構的軟件適于在用戶數(shù)目不多的局域網內使用。 MVC銅陵學院 畢業(yè)論文 (設計) 3 模式的目的就是實現(xiàn)系統(tǒng)的職能分工。而對于后者則要求應用程序功能完備 ,易使用等特點。 施會勇:基于 Java 的圖書管理系統(tǒng)開發(fā) 2 圖書館管理系統(tǒng)的目的和意義 我們要實現(xiàn)科學技術現(xiàn)代化 ,圖書情報工作的現(xiàn)代化是極其重要的 ,又由于科學和技術的不斷發(fā)展和進步 ,現(xiàn)代技術是一個動態(tài)的概念 .第二次世界大戰(zhàn)以來 ,以計算機技術為代表的現(xiàn)代技術有了巨大的發(fā)展 ,而且還在迅速的變化發(fā)展之中 ,70 年 代后期 ,出現(xiàn)圖書情報工作的 “ 聯(lián)機革命 ”, 使計算機更廣泛地,更有效的應用到各個角落,發(fā)達國家較重視這一領域的發(fā)展,我國尚存在較大的差距。根據(jù)調查得知,他們以前對信息管理的主要方式是基于文本、表格等紙介質的手工處理,對于圖書借閱情況(如借書天數(shù)、超過限定借書時間的天數(shù))的統(tǒng)計和核實等往往采用對借書卡的人工檢查進行,對借閱者的借閱權限、以及借閱天數(shù)等用人工計算、手抄進行。 圖書館管理系統(tǒng)開發(fā)背景 當 今時代是飛速發(fā)展的信息時代。 數(shù)據(jù)庫 。 本文在此背景下 運用 Java 技術開發(fā)了圖書管理系統(tǒng)。這個系統(tǒng)可以幫助管理員方便快捷的管理圖書以及用戶信息。Java 施會勇:基于 Java 的圖書管理系統(tǒng)開發(fā) IV Abstract Since the beginning of the 21st century, information technology fundamentally promote the rapid development of the library, puters and puter systems have bee a library book management equipment and systems. Although currently many large libraries have a set of relatively plete management system, but in some small and mediumsized library, most of the work still needs to manually plete, work efficiency is relatively low, does not facilitate dynamic and timely adjustments to the structure of books. In order to better adapt to the current library management needs to solve the drawbacks of manual management, more and more small and mediumsized library is gradually shift to the puter information management. In this context, has developed a library management system using Java technology. This system can help administrators convenient management books, and user information. Also has convenient query, the search is fast and so on. MySQL database support, a huge amount of information of this system of storage, the strong performance of confidentiality. On the basis of analysis of the needs of the library management system, pleted the division of the system functions, database design, interface design of the program and system logic function program. System operation proves that the library management system designed to meet both the readers and administrators requirements Key Words: Books manage。在各行各業(yè)中離不開信息處理,這正是計算機被廣泛應用于信息管理系統(tǒng)的環(huán)境。數(shù)據(jù)信息處理工作量 大,容易出錯;由于數(shù)據(jù)繁多,容易丟失,且不易查找。所以我們說,圖書情報工作計算機化是提高我國科學技術水平的一項帶有重大戰(zhàn)略意義的措施,它是圖書情報工作現(xiàn)代化的重要標志。 因此本人結合開 放 式圖書館的要求,對 MySQL 數(shù)據(jù)庫、 Java 程序設計 進行了較深入的學習和應用,主要完成對圖書管理系統(tǒng)的需求分析、功能模塊劃分、數(shù)據(jù)庫模式分析,并由此設計了數(shù)據(jù)庫結構和應用程序。 Model 層實現(xiàn)系統(tǒng)中的業(yè)務邏輯,通常可以用JavaBean 或 EJB 來實現(xiàn)。國內目前的大部分 ERP(財務)軟件產品即屬于此類結構。在本次設計中,將根據(jù)調查過程后形成的流程圖,將系統(tǒng)分為基礎數(shù)據(jù)維護,圖書借閱管理,新書訂購管理以及系統(tǒng)維護四大功能模塊。下面將詳細的為您介紹本設計中數(shù)據(jù)庫的選擇以及數(shù)據(jù)庫的概念設計等。其中條形碼作為本實體的唯一標識。普通用戶也可以利用主窗體中的工具欄進行常用的功能操作。 setModalExclusionType()。 final JLabel label = new JLabel()。 } })。 JMenu baseMenu = new JMenu()。 JMenu menu = new JMenu(圖書信息管理 )。 } JMenu borrowManageMenu = new JMenu()。 // 用戶管理 ()。 // 添加系統(tǒng)維護菜單到菜單欄 return menuBar。//圖片上提示字 (bookAddButton)。 ImageIconbookTypeAddicon= ()。 (bookBorrowButton)。//創(chuàng)建圖標方法 (bookCheckicon)。 JButton readerModiAndDelButton=new JButton()。 (true)。 登錄模塊概述 登錄模塊是圖書館管理系統(tǒng)的入口,在運行本系統(tǒng)后,首先進入的便是登錄窗體。 setTitle(圖書館管理系統(tǒng)登錄 )。 (5)。 施會勇:基于 Java 的圖書管理系統(tǒng)開發(fā) 14 (label)。 (密 碼: )。 (password)。 (new BookResetAction())。 (new Dimension(260, 60))。 private String grade。 } public String getPassword() { 施會勇:基于 Java 的圖書管理系統(tǒng)開發(fā) 16 return password。 } } else { (null, 只有管理員才可以登錄! )。 and password=39。 ((password))。普通借閱用戶登錄成功后,可以進行查詢,借閱等操作。 在圖書添加窗體中,管理員可以錄入圖書相關信息,進入圖書信息修改