【正文】
在此,向老師致以最深的謝意 ! 同時(shí) 要 感謝我的項(xiàng)目組長(zhǎng)史小姐能給我細(xì)心的指導(dǎo),幫助我進(jìn)行排錯(cuò)和部分技術(shù)的攻克。通過(guò)這次畢業(yè)設(shè)計(jì),我也對(duì) Java 語(yǔ)言有了更進(jìn)一步的了解,同時(shí)還可以掌握在 Swing 項(xiàng)目中如何使用 Action 接口的開(kāi)發(fā)模式,如何創(chuàng)建菜單欄與工具欄,為以后應(yīng)用 Swing 語(yǔ)言開(kāi)發(fā)程序奠定了基礎(chǔ)。 s[i][4] = ()。 for (int i = 0。 } int i=(bookISBNs, readerISBNs,id)。 } } } 程序 運(yùn)行圖如下: 圖 62 圖書(shū)借閱管理運(yùn)行圖 圖書(shū)歸還模塊的實(shí)現(xiàn) 圖書(shū)歸還模塊實(shí)現(xiàn)時(shí),在設(shè)計(jì)窗體時(shí),需要實(shí)現(xiàn)用戶單擊表格中的某一行,在相應(yīng)的文本框中顯示此圖書(shū)借閱的罰款信息。 //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)。 // 設(shè)置窗體可最小化 setClosable(true)。 圖書(shū)信息管理模塊概述 圖書(shū)信息管理模塊主要包括圖書(shū)添加、圖書(shū)信息修改、圖書(shū)借還 、圖書(shū)查詢等功能。通過(guò)登錄以后,才可以進(jìn)行相應(yīng)的管理員操作。 ((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)。因此登陸模塊在整個(gè)系統(tǒng)中占據(jù)了很重要的地位。//創(chuàng)建圖標(biāo)方法 (Exiticon)。 (readerAddButton)。 ImageIcon bookCheckicon=()。 (true)。 JButton bookTypeAddButton=new JButton()。 (fjdkjfk)。 // 添加借閱管理菜單到菜單欄 (sysManageMenu)。 JMenu userManageMItem = new JMenu(用戶管理 )。 ()。 ()。 ()。/html)。 // 調(diào)用創(chuàng)建工具欄的方法 getContentPane().add(toolBar, )。 setDefaultCloseOperation()。管理員通過(guò)主窗體可以進(jìn)行相應(yīng)的操作,實(shí)現(xiàn)系統(tǒng)的功能。 圖 31 圖書(shū)信息實(shí)體 ER圖 2. 讀者信息實(shí)體 讀者信息實(shí)體包括條形碼、姓名、性別、年齡、電話、辦證日期、證件號(hào)碼等屬性??紤]到成本,選用了 MySQL 數(shù)據(jù)庫(kù)。 施會(huì)勇:基于 Java 的圖書(shū)管理系統(tǒng)開(kāi)發(fā) 4 第二章 系統(tǒng)分析設(shè)計(jì) 作為一款圖書(shū)管理系統(tǒng) ,首先要完成它的基本功能。由于服務(wù)器連接個(gè)數(shù)和數(shù)據(jù)通信量的限制,這種結(jié)構(gòu)的軟件適于在用戶數(shù)目不多的局域網(wǎng)內(nèi)使用。 MVC銅陵學(xué)院 畢業(yè)論文 (設(shè)計(jì)) 3 模式的目的就是實(shí)現(xiàn)系統(tǒng)的職能分工。而對(duì)于后者則要求應(yīng)用程序功能完備 ,易使用等特點(diǎn)。 施會(huì)勇:基于 Java 的圖書(shū)管理系統(tǒng)開(kāi)發(fā) 2 圖書(shū)館管理系統(tǒng)的目的和意義 我們要實(shí)現(xiàn)科學(xué)技術(shù)現(xiàn)代化 ,圖書(shū)情報(bào)工作的現(xiàn)代化是極其重要的 ,又由于科學(xué)和技術(shù)的不斷發(fā)展和進(jìn)步 ,現(xiàn)代技術(shù)是一個(gè)動(dòng)態(tài)的概念 .第二次世界大戰(zhàn)以來(lái) ,以計(jì)算機(jī)技術(shù)為代表的現(xiàn)代技術(shù)有了巨大的發(fā)展 ,而且還在迅速的變化發(fā)展之中 ,70 年 代后期 ,出現(xiàn)圖書(shū)情報(bào)工作的 “ 聯(lián)機(jī)革命 ”, 使計(jì)算機(jī)更廣泛地,更有效的應(yīng)用到各個(gè)角落,發(fā)達(dá)國(guó)家較重視這一領(lǐng)域的發(fā)展,我國(guó)尚存在較大的差距。根據(jù)調(diào)查得知,他們以前對(duì)信息管理的主要方式是基于文本、表格等紙介質(zhì)的手工處理,對(duì)于圖書(shū)借閱情況(如借書(shū)天數(shù)、超過(guò)限定借書(shū)時(shí)間的天數(shù))的統(tǒng)計(jì)和核實(shí)等往往采用對(duì)借書(shū)卡的人工檢查進(jìn)行,對(duì)借閱者的借閱權(quán)限、以及借閱天數(shù)等用人工計(jì)算、手抄進(jìn)行。 圖書(shū)館管理系統(tǒng)開(kāi)發(fā)背景 當(dāng) 今時(shí)代是飛速發(fā)展的信息時(shí)代。 數(shù)據(jù)庫(kù) 。 本文在此背景下 運(yùn)用 Java 技術(shù)開(kāi)發(fā)了圖書(shū)管理系統(tǒng)。這個(gè)系統(tǒng)可以幫助管理員方便快捷的管理圖書(shū)以及用戶信息。Java 施會(huì)勇:基于 Java 的圖書(shū)管理系統(tǒng)開(kāi)發(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è)中離不開(kāi)信息處理,這正是計(jì)算機(jī)被廣泛應(yīng)用于信息管理系統(tǒng)的環(huán)境。數(shù)據(jù)信息處理工作量 大,容易出錯(cuò);由于數(shù)據(jù)繁多,容易丟失,且不易查找。所以我們說(shuō),圖書(shū)情報(bào)工作計(jì)算機(jī)化是提高我國(guó)科學(xué)技術(shù)水平的一項(xiàng)帶有重大戰(zhàn)略意義的措施,它是圖書(shū)情報(bào)工作現(xiàn)代化的重要標(biāo)志。 因此本人結(jié)合開(kāi) 放 式圖書(shū)館的要求,對(duì) MySQL 數(shù)據(jù)庫(kù)、 Java 程序設(shè)計(jì) 進(jìn)行了較深入的學(xué)習(xí)和應(yīng)用,主要完成對(duì)圖書(shū)管理系統(tǒng)的需求分析、功能模塊劃分、數(shù)據(jù)庫(kù)模式分析,并由此設(shè)計(jì)了數(shù)據(jù)庫(kù)結(jié)構(gòu)和應(yīng)用程序。 Model 層實(shí)現(xiàn)系統(tǒng)中的業(yè)務(wù)邏輯,通??梢杂肑avaBean 或 EJB 來(lái)實(shí)現(xiàn)。國(guó)內(nèi)目前的大部分 ERP(財(cái)務(wù))軟件產(chǎn)品即屬于此類結(jié)構(gòu)。在本次設(shè)計(jì)中,將根據(jù)調(diào)查過(guò)程后形成的流程圖,將系統(tǒng)分為基礎(chǔ)數(shù)據(jù)維護(hù),圖書(shū)借閱管理,新書(shū)訂購(gòu)管理以及系統(tǒng)維護(hù)四大功能模塊。下面將詳細(xì)的為您介紹本設(shè)計(jì)中數(shù)據(jù)庫(kù)的選擇以及數(shù)據(jù)庫(kù)的概念設(shè)計(jì)等。其中條形碼作為本實(shí)體的唯一標(biāo)識(shí)。普通用戶也可以利用主窗體中的工具欄進(jìn)行常用的功能操作。 setModalExclusionType()。 final JLabel label = new JLabel()。 } })。 JMenu baseMenu = new JMenu()。 JMenu menu = new JMenu(圖書(shū)信息管理 )。 } JMenu borrowManageMenu = new JMenu()。 // 用戶管理 ()。 // 添加系統(tǒng)維護(hù)菜單到菜單欄 return menuBar。//圖片上提示字 (bookAddButton)。 ImageIconbookTypeAddicon= ()。 (bookBorrowButton)。//創(chuàng)建圖標(biāo)方法 (bookCheckicon)。 JButton readerModiAndDelButton=new JButton()。 (true)。 登錄模塊概述 登錄模塊是圖書(shū)館管理系統(tǒng)的入口,在運(yùn)行本系統(tǒng)后,首先進(jìn)入的便是登錄窗體。 setTitle(圖書(shū)館管理系統(tǒng)登錄 )。 (5)。 施會(huì)勇:基于 Java 的圖書(shū)管理系統(tǒng)開(kāi)發(fā) 14 (label)。 (密 碼: )。 (password)。 (new BookResetAction())。 (new Dimension(260, 60))。 private String grade。 } public String getPassword() { 施會(huì)勇:基于 Java 的圖書(shū)管理系統(tǒng)開(kāi)發(fā) 16 return password。 } } else { (null, 只有管理員才可以登錄! )。 and password=39。 ((password))。普通借閱用戶登錄成功后,可以進(jìn)行查詢,借閱等操作。 在圖書(shū)添加窗體中,管理員可以錄入圖書(shū)相關(guān)信息,進(jìn)入圖書(shū)信息修改