CS450 Database Design

advertisement
CS450 Database Design
Project
Dragon Express
Mail Management System
Professor: Khaled Elleithy
Student: Xing Guan
Xu Li
Lin Liu
Qun Gao
ID: 000000
ID: 000000
ID: 000000
ID: 617321
Phase 1 Due: August 3, 2003
Phase 2 Due: August 24, 2003
Phase 3 Due: September 28, 2003
1. Description of the Application
Dragon Express is a courier company. It is the competitor of the
Fedex. It offers door to door express services. It Picks up and delivers
goods from towns to towns and over the world.
Work Flow:
Dispatchers get the order from customers(from internet, phone, stop
by or regular schedule);
Dispatchers send Pickup guys pick up the goods.
Pickup guys put the goods into warehouses;
Operators pack the goods into packages;
Dispatchers order flights and drivers deliver packages to airport;
Custom officers examine and release the packages;
Packages are sent to destinations by aircrafts;
Packages are unloaded at destination airports, custom officers
examine the packages;
Packages are released by custom;
Drivers deliver them to warehouses;
Operators unpack the packages;
Delivery guys deliver the goods to consignees.
In this program, we focus on the mail management system. Senders
can fill out the order form from this application. Consignees can track
the mail by this application. Dispatchers and operators update mail
info from this application. Even though the better idea for the purpose
of this application is a Web Application, we still decide to use a Java
application as the solution to simplify the programming part, and
focus on Database Design.
2.1
E-R Diagram
E/R Diagram
1
Sender
M
S-M
M
Mail
M
1
M
Address
M
M-S
1
1
M-M
E-D
Rates
Status
1
Employee
M
M-S
S-A
M
M-E
1
Mail Type
1
Department
2.2 Properties of Entities
Sender:
ID, name, phone, username, password, credit, discount, balance,
salesID, addressID, memo.
Mail:
ID, senderID, receiver, destination, mailtype, weight, amount, value,
status, trackinfo
Address:
ID, number, apartment, street, town, state, country, zipcode
Mail type:
ID, name, description, memo,
Status:
ID, name, description
Rates:
ID, name, price
Employee:
ID, name, phone, departmentID
Department:
ID, name
3. functional requirements:
a. System
Tracking
Login
Logout
About
Help
Exit
b. Sender
/* must login as a sender to use this menu */
Order
Browse mail history
Browse unclosed mail
Change username & password
c. Dispatcher /* must login as service department to use this menu */
Update mail info
Browse customers info
d. Sales
/* must login as sales department to use this menu */
browse customers info
browse unpaid mail
e. Operator /* must login as operation department to use this menu */
update mail info(weight)
f. Accountant /* must login as accounting department to use this
menu */
calculate amount
browse unpaid mail
Download