Báo cáo môn học phân tích và báo cáo hệ thống thông tin
Trang 1BÁO CÁO MÔN HỌC:
PHÂN TÍCH VÀ THIẾT KẾ
HỆ THỐNG THÔNG TIN
Giảng viên: TS Trần Đức Khánh Sinh viên: Phan Tự Quốc Thắng - 20093621
Nguyễn Viết Thắng - 20093619
Trần Đình Cường - 20073604
Trang 2
MÔ TẢ ĐỀ TÀI 3
I ĐẶT VẤN ĐỀ: 3
II YÊU CẦU CHỨC NĂNG: 3
PHÂN TÍCH 4
I TÀI LIỆU NGHIỆP VỤ: 4
II PHÂN TÍCH NGHIỆP VỤ: 7
1 User registration: 7
2 Login: 8
3 Borrowing books: 9
4 Returning books: 9
5 Searching a book: 10
6 Reserving books: 10
7 Checking usage status: 11
III PHÂN TÍCH NHU CẦU: 12
IV BIỂU ĐỒ THỰC THỂ LIÊN KẾT: 17
THIẾT KẾ 18
I BIỂU ĐỒ TRÌNH TỰ: 18
1 Login: 18
2 Register account: 19
3 Reservation: 20
4 Lending (borrowing): 20
5 Searching: 21
6 Returning: 22
7 Checking usage status: 22
8 Update information: 24
II BIỂU ĐỒ LỚP: 25
III MÔ HÌNH HÓA DỮ LIỆU: 26
IV THIẾT KẾ GIAO DIỆN: 28
1 Login Screen 28
Trang 32 Lending Screen 31
3 Reservation Screen 33
THIẾT KẾ CHI TIẾT 35
I BIỂU ĐỒ LỚP: 35
II BIỂU ĐỒ TRÌNH TỰ: 36
1 Login: 36
2 Register account: 36
3 Reservation: 37
4 Lending (borrowing): 37
5 Searching: 38
6 Returning: 39
7 Checking usage status: 40
8 Update information: 40
KIỂM THỬ 41
Trang 4MÔ TẢ ĐỀ TÀI
I ĐẶT VẤN ĐỀ:
Đề tài dưới đây đề cập đến hệ thống thông tin quản lý thư viện nói chung với những chức năng cơ bản
nhất như tìm kiếm, mượn, trả, … Phạm vi phân tích chỉ nằm trong nội dung đã được học trong môn Phân tích thiết kế hệ thống thông tin
II YÊU CẦU CHỨC NĂNG:
Hệ thống thông tin thư viện cần có những chức năng sau:
Trang 5PHÂN TÍCH
I TÀI LIỆU NGHIỆP VỤ:
2
You are working on a new business system for S City Library The library wants
to systematize book check-out, return, search and reservation as well as usage
status check Assume that the library has multiple copies of the same books, each of
which is identified by its book number The library also wants to offer book search,
reservation and usage status check services to the public over the Internet S City
Library is available to the public from 9:00 to 18:00.
(1) User registration
- To borrow a book, users first create their “borrower’s cards”.
- They fill out the “borrower’s card application form”, and submit the filled form with
their identification (e.g health insurance card or driver’s license) to the front counter
of the library.
- The borrower’s card is for use in S City Library only.
- Internet users can access the library system using their accounts and tentative
passwords that are issued when they register as library users The tentative
password can be changed at any time.
(2) Using the library system via the Internet
- Users can use the library system via the Internet by entering their accounts and
passwords.
- Library staff enter their employee numbers and passwords They leverage the
system to perform operations of S City Library Specifically, they can perform book
search, check-out, return, reservation, user registration and usage status check.
- General users enter their borrower’s card numbers and passwords They can
perform book search, usage status check and reservation.
(3) Borrowing books
- Books to be checked out are those that users personally bring from the shelves in
the library to the “front counter” or that users have reserved over the Internet and
library staff have held for them
Trang 6- If a user has any books that are overdue, the user cannot borrow another book
- General users can reserve books they want to borrow and borrow the reserved
books Book reservation will be explained later in this text
(4) Returning books
- The system processes book return in units of books
- Users return books to the “return counter” of the library before the due date
- Users can return books to the “return post” when the library is closed
- Library staff put the returned books back on the shelves or hold them for users who
have reserved the books
(5) Searching a book
- The system allows users to search for a book that the library owns
- Users can search books using keywords such as “title”, “author” and “publisher”
(6) Reserving books
- The library system allows users to “reserve” books that cannot be found for some
reason For example, the book has been checked out
- Users cannot reserve books that the library does not own
- The system processes reservation in units of book titles (A book number cannot
be specified)
- The system assigns an administration number (reservation number) to each
reservation
- A user can reserve up to 10 books (excluding books that had been reserved and
has already been checked out)
- The system does not allow double reservations for the same book
- When a reserved book is held for the general user, library staff notify the user of it
by phone or e-mail Users can specify their contact method (phone or e-mail) at the
time of reservation
Trang 7- The system allows checking the information on reservation that is made by a
general user
(7) Checking usage status
- The library system allows checking the status of the books that a general user has
borrowed or reserved Usage status check can also be performed over the Internet
System users can check the usage status on the usage status check screen after
logging on to the library system
Trang 8II PHÂN TÍCH NGHIỆP VỤ:
1 User registration:
Trang 92 Login:
User login
Librarian login
Trang 103 Borrowing books:
4 Returning books:
Trang 115 Searching a book:
6 Reserving books:
Trang 127 Checking usage status:
Librarian checking usage status
Trang 13III PHÂN TÍCH NHU CẦU:
Trang 14Name Register Account
preconditions Librarian đăng nhập thành công
1 Librarian nhận mẫu đăng ký từ người dùng
2 Librarian kiểm tra thông tin, xác thực người dùng
3 Nếu thông tin chính xác thì đăng ký tài khoản mới với hệ thống
4 Librarian đưa cho người dùng ID và mật khẩu để đăng nhập online
2a Thông tin người dùng không hợp lệ
#01
#02
#03
#01 Tài khoản được tạo thành công
#02 Thông tin không đầy đủ
#03 Thông tin không hợp lệ
1 Librarian hoặc user điền ID và mật khẩu
2 Hệ thống kiểm tra thông tin trên
3 Nếu đăng nhập thành công hiển thị giao diện tương ứng
2b Mật khẩu sai 1a Điền thiếu thông tin
Trang 15Name Borrowing books
preconditions Librarian đăng nhập thành công
1 Librarian nhận thông tin user và thông tin sách
2 Kiểm tra thông tin trên
3 Nếu user có thể mượn thì cập nhật lại hệ thống
4 Thông báo cho người dùng biết
2a ID không hợp lệ 2b Book ID không hợp lệ 3a User không đủ quyền mượn
preconditions Librarian đăng nhập thành công
1 Librarian nhận thông tin về người dùng và thông tin sách
2 Kiểm tra thông tin trên
3 Kiểm tra trạng thái sách
4 Nếu hợp lệ thì báo cho người dùng biết
2a User ID không hợp lệ2b Book ID không hợp lệ4a Sách bị hư hỏng
Trang 16Name Searching a book
preconditions Actor đăng nhập thành công
1 Actor chọn thông tin về sách
2 Hệ thống tìm kiếm
3 Hiển thị kết quả cho actor
preconditions Actor đăng nhập thành công
1 Kiểm tra trạng thái người dùng
2 Kiểm tra trạng thái sách
3 Cập nhật thông tin nếu đặt được
2a Book ID không hợp lệ hoặc sách đã được mượn
Trang 17Name Checking usage status
preconditions Actor đăng nhập thành công
1 Nhập ID vào hệ thống
2 Hệ thống kiểm tra trạng thái
3 Hệ thống thông báo lại trạng thái
preconditions Librarian đăng nhập thành công
1 Librarian nhập thông tin cần thay đổi
2 Hệ thống kiểm tra thông tin
Trang 18IV BIỂU ĐỒ THỰC THỂ LIÊN KẾT:
Trang 19Login controller User manager Librarian manager
User login
3
Trang 20Register controller User manager
Trang 21Reservation Controller UserManager
Librarian Manager Book Manager
Lending Controller UserManager BookItem Manager
Trang 22Search Controller Book manager
Trang 236 Returning:
Returning result screen Returning error screen
Returning Controller User Manager BookItem Manager Lending Manager
7 Checking usage status:
Librarian
User
Checking screen Checking result screen Returning error screen
Checking Controller User Manager Librarian Manager
Trang 24User checking usage status
Librarian checking usage status
Trang 258 Update information:
Update result screen Update error screen
Update Controller User Manager Librarian Manager Book Manager BookItem Manager
Trang 26II BIỂU ĐỒ LỚP:
Trang 27III MÔ HÌNH HÓA DỮ LIỆU:
User
Book
Book Item
Reservation
Lending
Overdue
Trang 28Registration
Returning
Searching
Update
Trang 29IV THIẾT KẾ GIAO DIỆN:
Chỉ làm 3 hoạt động: login, lending và reservation (theo yêu cầu)
1 Login Screen
Trang 31login transistion for citizen
Login transistion for librarian
Trang 322 Lending Screen
Trang 33Lending screen transistion
Trang 343 Reservation Screen
Trang 35reservation screen transistion
Trang 36THIẾT KẾ CHI TIẾT
I BIỂU ĐỒ LỚP:
4
Trang 37manager User
UserDAO User manager
Login controller Login error.jsp
Login result.jsp Login.jsp
Trang 38DAO Reservation DAO Connection manager Connection Reservation
Enter (card number)
Reservation()
<jsp="userbean" id="Reservation screen" scope="session">()
Getconnection manager() < connectionmanager
Getconnection()
< con ReservationDAO(con)
< ReservationDAO UserDAO(con)
< UserDAO BookDAO()
< BookDAO SearchUser(card number)
< user SearchBook (BookID)
< Book GetState (ReservationID)
< State checkState()
manager Reservation manager Lending manager BookItem manager User Book BookItem Reservation Lending User DAO Book DAO BookItem
DAO Reservation DAO Lending DAO Connection manager Connection
<-con() UserDAO(con)
<-UserDAO BookDAO(con) <-BookDAO BookItemDAO(con) <-BookItemDAO LendingDAO(con) <-lendingDAO Search User (card number)
<-user Search BookItem(BookItemID)
<-BookItem Get state(BookItemID) <-available checkState()
Display()
Trang 39Search error jsp
Search controller Book
manager
Book DAO Coonection
manager
Connection Book
< BookDAO seachBook()
Display result()
Trang 406 Returning:
Trang 417 Checking usage status:
Checking controller
User Lending Reservation User
manager Lending manager Reservation manager
UserDAO Lending DAO Reservation DAO Connection manager
Connection Enter(card number)
< UserDAO LendingDAO(con)
< LendingDAO ReservationDAO(con)
< ReservationDAO searchUser(card number)
< user searchLending(UserID)
< lending searchReservation(UserID)
< reservation Displayresult()
Update controller
User manager User User DAO Connection
< UserDAO searchUser(card number)
< user Update(email,address, )
Display result()
Trang 42Y
Same Screen
Transist Result
X
Transist Error
X
Transist Error
5
Trang 43Lending 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Condition Library
Card
Number
Registered Y Not
Transit result screen
Transit error screen
Trang 44Return Book 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Condition Library
Card Number
Registered Y Not
Y
Number
of returning
of Lending
Y
Valid > 15 (result)
Y
same screen
Transit result screen
Transit error screen
Trang 45Reservation 1 2 3 4 5 6 7 8 9 10 11 12 13
Condition Library
Card Number
Registered Y Not
Y
Contact Method
Y
Number of Resevation
Valid<10 Y Y Y
Same Resevation
No Same Resevation
Y Y Y
Same Resevation
Transit result screen
Transit error screen
Trang 46Checking Usage Status 1 2 3 Condition UserID Registered Y
Not Registered
Y
same screen
X
Transit Result screen
X
Transit Error Screen
X
Transist Error
Trang 47Update Information 1 2 3 4 5 6 7 8 9 10 11 12 13 Condition Libarary
Card no
Registered Y Not
Y
CardID Registered Y Y Y
Not registered
Y
Password Registered Y Y Y
Not registered
Y
Phone Registered
Not registered
Y
Email Registered Y Y Y
Not registered
Y
same screen
Lending Result screen
Lending Error Screen