Project Name: Library Management System
Project Description: A borrowing and management system for Library's mission .The system can be used to manage book info, reader info and borrow information.
Development Environment: Windows7, MyEclipse10, Java1.6, MySQL, Microsoft Visio, Photoshop CS5. Development time: 5 days. Functional Modules:
1. Basic data maintenance
1.1. Reader info management 1.2. Book type management 1.3. Book info management 1.4. Exit the system
2. Book order management
2.1. New book order
2.2. New book acceptance check
3. Borrow management
3.1. Book search 3.2. Book order 3.3. Book back
4. System maintenance
4.1. Change password
4.2. User management
Chap 3 Software Design
3.1 Basic conception
The use of incremental development model to develop the system, the completion of system development framework and the database first. Then the development of user and library data browsing module, the formation of the first version. Development of the login module, and the development of data crud part, forming the development version. Finally, system details and interface changes, the formation of the final version.
3.2 Workflow
3.2.1 Module design
System framework design in order to integrate other modules, and provide a platform for other parts’ running together. And is convenient for the user to use the system to call functions of each module .The login window should be popped up when users start the system, show system functions to users by menus and toolbars in the main window of the system.
3.2.2 System design
The layered system as data layer, control layer, presentation layer. The data layer is mainly for processing data, modify and
query including books, readers, books, orders, the user information, communicate with the database; control the logic control layer, including user to user input data processing, control, data operation process such as: login process, borrowing books process, as well as borrowing charges; display output layer mainly processing system, the data is displayed in the proper format, and the user operation tips.
3.3 System design documentation First, the administrator login
① When a user name and password is incorrect, an error should be displayed.
② Only administrators can log in, other users can not login. ③ After landing, the main screen displays
Second, to add, delete and modify the book type ,and display all the books category information
① When adding and modifying books category, the input data is incorrect, display proper error.
② When the input is no error, add or modify the display success. Third, to add, delete, modify, and query the book information ①When add and modify library information, and when you make a mistake, an error should display.
② Check book information, you can follow book title and book au
thor search, display all book information .
Fourth, increase, delete, and modify reader information ① When readers add and modify the information, when the input is incorrect, the error should be displayed. When you add the same user should also have tips. Fifth, the book order management
① When ordering new books, books you want to add the information in the book exists, if you add the data is incorrect, there must be a corresponding tips .
② Acceptance books, if books have been accepted, then the appropriate error .
Sixth, loan management
① Borrow books, the reader number must already existing readers, books Number of books also exist. ② Books returned.
Seventh, system management
① Change your password, you can only change the password of the current user, and the right to enter the old password, the new password and confirm the password to be the same, not the same as on the output of the corresponding tips.
② Add and modify user information when the input is incorrect, the display proper error. When you add the same user should also
have tips.
Chap 4 Detailed Design
4.1 Basic conception
The books management system is designed for library manager ,only the library manager is allowed to use it ,so ,when they start the system ,they will be asked to login . According to the functions of each module ,the following menus will be set in the main window of the system: basic data maintenance (including reader info management, book type management, book info management), book order management (including new book order, new book acceptance check), borrow management (including book search, book order, book back),system maintenance (including change password, user management). 4.2 Workflow
4.2.1 Program code File: BookLoginIFrame.java
public class BookLoginIFrame extends JFrame { private JPasswordField password; private JTextField username; private JButton login; private JButton reset;
private static Operater user;
private class BookResetAction implements ActionListener { public void actionPerformed(final ActionEvent e){ } }