Tải bản đầy đủ (.pdf) (19 trang)

Đồ án Kỳ 2 Aptech: Quản lý thư viện

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (487.61 KB, 19 trang )

Hanoi-Aptech Computer Education Group 1

Library Management System Page 1 of 19











Library Management System
Documentation






Group 1
Group Member
Vũ Đức Hà
Lưu Tuấn Anh
Đỗ Anh Đức
Instructor
Phung Anh Tan





- Hanoi, 10/2009 -
Hanoi-Aptech Computer Education Group 1

Library Management System Page 2 of 19

INDEX
Instructor 1
Phung Anh Tan 1
1. Problem Definition 3
1.1. Problem Abstraction 3
1.2. The Current System 3
1.3. The Proposed System 3
1.4. Boundaries of the System 3
1.5. Hardware and Software Requirements 3
1.5.1. Minimum Requirements 3
1.5.2. Recommended Requirements 3
1.5.3. Software 4
2. Customer Requirements Specification 4
1.6. Users of the System 4
1.7. System functions 4
Function User 4
3. Architecture & Design of Project 8
3.1. Data Flow Diagram 8
3.2. Entity Relationship Diagram (Table Design) 13
3.3. Database Structure 13
3.4. Screen Design 15
4.Task Sheet 18
5. Checklists 19


Hanoi-Aptech Computer Education Group 1

Library Management System Page 3 of 19

1. Problem Definition
1.1. Problem Abstraction
To day, business manages system to require the effect and to economize
time .First and foremost in business manages library book of a company .Therefore
we present sofware to manage library book of the Mohan Ltd company.

1.2. The Current System
Mohan Ltd. has a library which is managed by Ms. Monica manually. All
records are on paper and Monica finds it very difficult to manage when somebody
issues or returns the books. She has to maintain list of books along with details such
as Author name, book title etc. When a book is to be issued, she has to manually
search for that book and again for issuing book she has to maintain a register which
will have details of book issued such as Name of the book, Author, Employee details
(name, department etc) , Date of issue, Date of return, etc. This process is tedious
and time consuming. She has brought it to the notice of her seniors and they have
proposed the solution of developing a system which will help Monica managing the
things more effectively and also save her time. She will be the only user of the
system.

1.3. The Proposed System
- Software Library Management Book of we will help to Ms. Monica, can
manage book have library same manage business borrow and return book.

1.4. Boundaries of the System
Boundaries of system will built:


- Software Library Management Book of we, have size small only use to a
company.

1.5. Hardware and Software Requirements
1.5.1. Minimum Requirements

Minimum
PC Pentium II 600 MHz
128MB RAM
500 MB hard drive


1.5.2. Recommended Requirements

Preferred
PC Pentium III 1800 MHz
Hanoi-Aptech Computer Education Group 1

Library Management System Page 4 of 19

2G RAM
2 GB hard drive

1.5.3. Software
Software:

-JDK 1.6
-Netbean 6.1
-Sql server 2005



2. Customer Requirements Specification
1.6. Users of the System
The object influence system include:

- User


1.7. System functions
Function User
1. Add, edit Employee


Description
User add, edit employee.
Input
-Employee ID.
-Name.
-Address.
-Phone Number.
-Department.
-EmployStatus.
Process
Update data in database when add, edit employee.
Output
Display employee edit và employee new.
Hanoi-Aptech Computer Education Group 1

Library Management System Page 5 of 19


2. Delete Employee


Description
User delete employee.
Input
-Employee ID.
Process
Update data in database when delete employee.
Output
Display announcement you deleted successful.



3. Add, edit Book


Description
User add, edit book.
Input
-Book ID.
-CallNumber(XX-XX-XXX)
-ISBN.(XXX-XXXX)
-Title.
-Phone Number.
-PubHouse.
Process
Update data in database when add, edit book.
Output

Display book edit và book new.




4. Delete Book


Description
User delete book.
Input
-Book ID.
Process
Update data in database when delete book.
Output
Display announcement you deleted successful.



Hanoi-Aptech Computer Education Group 1

Library Management System Page 6 of 19





5. Add, edit, delete User



Description
User add, edit, delete user.
Input
-User ID.
-Name.
-User Status.
Process
Update data in database when add, edit, delete user.
Output
Display user edit và user new.



6. Search Book

Description
User search book.
Input
-Call number.(XX-XX-XXX)
-ISBN number.(XXX-XXXX)
-Title.
-Author
Process
Access data from database and to take information book satisfy require search.
Output
-If have book then display information book where User search.
-If not have book then display announcement

7. Check Out


Description
User give Employee borrow book ,search book.
Input
-Call number.
-ISBN number.
-Title.
-Author.
-Employee ID
Process
Update data in database when librarian add the ballok give borrow book.
Hanoi-Aptech Computer Education Group 1

Library Management System Page 7 of 19

Output
-Display result the ballok borrow book.


8. Check In

Description
User agree the book return from Employee, search Employee Name.
Input
-Date borrow.
-Date due.
-Employee Name.
Process
Access data from database and to take information the ballok give borrow book,
compare the due date and return date if The Employee keep a borrowed book in
excess of the time limit then Employee was punish 10 cent each day.

Output
-Display result the ballok give the book return.


9. Display information detail book

Description
Function give the librarian see the book detail.
Input
-Choose the book need see.
Process
To take the information book from database.
Output
-Display the information require.



10. Display information detail employee

Description
Function give the librarian see the book detail.
Input
-Choose the Employee need see.
Process
To take the information book from database.
Output
-Display the information require.




11. Log in

Description
To allow the librarian log in.
Input
-UserName and Password.
Process
Check UserName and Password in database.
Hanoi-Aptech Computer Education Group 1

Library Management System Page 8 of 19

Output
-Display the result log in.


12. Log out

Description
To allow the librarian log out.

Input
- UserName and Password.
Process
Check UserName and Password in database.

Output
-Display the result log out.



3. Architecture & Design of Project
3.1. Data Flow Diagram
Level 0:
User
Library
Management
System

Level 1:

User
Authentication
4
Borrow
Management
3
User
Management
2
Book
Management
1
Employee
Management
5


Hanoi-Aptech Computer Education Group 1

Library Management System Page 9 of 19




Level 2:








View
1
.
2
User
Edit
1.
4
Book
InfomatioView
InfomationBook
Search
1
.
3
InfomationSearch
Delete
1.

5
Add
1
.
1
BoookID

Hanoi-Aptech Computer Education Group 1

Library Management System Page 10 of 19

View
2
.
2
User
Edit
2
.
4
User
InfomatioView
InfomationUser
Search
2
.
3
InfomationSearch
Delete
2

.
5
Add
2
.
1
UserID





Check
Out
3.1
InformationBorrow
User
Author
Check
In
3.2
InformationReturn





Hanoi-Aptech Computer Education Group 1

Library Management System Page 11 of 19


User
LogIn
4
.
1
LogOut
4
.
2
User,Pass
Msg
UserInfo
Change
Info
4
.
3
User
User




View
5
.
2
User
Edit

5.
4
Employee
InfomatioView
InfomationEmployee
Search
5
.
3
InfomationSearch
Delete
5.
5
Add
5
.
1
EmployeeID


Level 3:
Hanoi-Aptech Computer Education Group 1

Library Management System Page 12 of 19

View
3
.
1
.

1
User
Add
3
.
1
.
2
Edit
3.
1
.
4
Borrow
InfomatioView
InfomationBorrow
Search
3
.
1
.
3
InfomationSearch




View
3
.

2
.
1
User
Edit
3.
2
.
3
Borrow
InfomatioView
InfomationReturn
Search
3
.
2
.
2
InfomationSearch


Hanoi-Aptech Computer Education Group 1

Library Management System Page 13 of 19

3.2. Entity Relationship Diagram (Table Design)


3.3. Database Structure
3.3.1. Borrow

Fields
Type
Size
Constraint
Description
BorrowId
int
4
Primay key, identity(1,1)
Code ballok book borrow
StartDate
datetime

Default getdate()
Day book borrow
DueDate
datetime

Default getdate()
Day appoint book return
RealDate
datetime

Default getdate()
Day book return
File
int

check>=0
Number money punish

BorrowStatus
bit

Default 0
Status ballok
EmployeeID
int
4
Foreign key, not null
Code Employee


3.3.2. Book
Fields
Type
Size
Constraint
Description
BookId
int
4
Primay key, identity(1,1)
Code book
CallNumber
varchar
50
Not null

ISBN
varchar

50
Not null

Hanoi-Aptech Computer Education Group 1

Library Management System Page 14 of 19

Title
nvarchar
100
Not null
Title of book
NumOfCopies
int

check>=0
Number book copies
NameAuthor
varchar
50
not null
Name author
PublishHouse
varchar
50
not null
Name Publish House
NumOfContinue
int


check>=0
Number book continue

3.3.3.BorrowDetail
Fields
Type
Size
Constraint
Description
BorrowID
int
4
Primay key, identity(1,1), Foreign
key, not null
Code ballok book borrow
BookID
int
4
Primay key, identity(1,1), Foreign
key, not null
Code book

3.3.4.Employee:

Fields
Type
Size
Constraint
Description
EmployeeId

int
4
Primay key, identity(1,1)
Code Employee
Name
nvarchar
50
Not null
Name Employee
Address
varchar
50
Not null
Address Employee
PhoneNumber
varchar
50
Not null
Phone Employee
Department
nvarchar
50
check>=0
Department company
Gender
bit

Default 0
Store gender of user
If = 0 : Female

If = 1 : Male

3.3.5.User

Field Name
Data Type
Null
Key
Description
U_ID
Int
No
PK
Store ID of user
U_Name
Varchar(30)
No

Store name of user
UserName
Varchar(30)
No

Store username of user
Password
Varchar(32)
No

Store password of user
Email

Varchar(50)
Yes

Store email of user
BirthDate
Datetime
Yes

Store user ’s birthday
Gender
Bit
Yes

Store gender of user
If = 0 : Female
If = 1 : Male
Phone
Varchar(20)
Yes

Store phone of user


Hanoi-Aptech Computer Education Group 1

Library Management System Page 15 of 19

3.3.6.Subject
Fields
Type

Size
Constraint
Description
SubjectID
int
4
Primay key, not null
Store code subject
SubjectName
nvarchar
450
not null
Store name subject

3.4. Screen Design


Login


Home
Hanoi-Aptech Computer Education Group 1

Library Management System Page 16 of 19


USER MANAGER





EMPLOYEE MANAGER




Hanoi-Aptech Computer Education Group 1

Library Management System Page 17 of 19


BOOK MANAGER




BORROW MANAGER




Hanoi-Aptech Computer Education Group 1

Library Management System Page 18 of 19

4.Task Sheet
Project Ref. No.:
Project
title
Activity

Plan
Prepared
by :
Date of Preparation of Activity Plan :
Sr.
No
.
Task
Actual
Start
Date
Actual
Days
Team
Member
Names
Status
I.Document
1



Problem Definition
Library
Manager
System



- Vu Duc Ha

- Do Anh Duc
Completed
2
Customer
Requirements
Specification
Library
Manager
System



- Vu Duc Ha
- Do Anh Duc
-Luu Tuan
Anh
Completed
3
DFD
Library
Manager
System



- Vu Duc Ha
- Do Anh Duc
-Luu Tuan
Anh
Completed

4
ERD, Table Design
Library
Manager
System



Vu Duc Ha
Completed
II.Coding
1
Login
Library
Manager
System



Vu Duc Ha
Completed
2
User Manager
Library
Manager
System



Do Anh Duc

Complete
3
Employee
Manager
Library
Manager
System



Luu Tuan
Anh
Completed
4
Change Personal
Information
Library
Manager
System



Vu Duc Ha
Completed
5
Borrow Manager
Library
Manager
System




Vu Duc Ha
Completed
Hanoi-Aptech Computer Education Group 1

Library Management System Page 19 of 19

6
Search
Library
Manager
System



Vu Duc Ha
Completed
7
Change Password
Library
Manager
System



Do Anh Duc
Completed
8
Book Manager

Library
Manager
System



Vu Duc Ha
Completed

5. Checklists
Option
Validated
Do all the options present in the application display the correct result?
Yes
Dose the application’s functionality resolve the user problem, and satisfy their
needs?
Yes
Has the hardware and software been correctly chosen?
Yes


×