This is to certify that Mr. Nguyen Manh Cuong Mr. Nguyen Van Ky Ms. Mai Hao Quang Ms. Nghiem Xuan Sang Has successfully Designed &
Developed
Online Book Store
Submitted by:
Aptech Aptech
Authorized signature: Nguyen Manh Cuong
1
Table
of contents
2
Problem
Definition
After reading the project specifictions, the developer states the of the project very briefly. This is referred to as the problem definition. Quer ies related to the system can be one o r more of the following:
6.
1.
How
will a customer search for books? boo ks?
2.
How
will multiple buyers purchase the same pro duct?
3.
How
to validate a purchase repuest?
4.
How
can the payment process be made secure?
5.
How
to implement approval of requests, orders..?
What kind of reports can be generated for the management?
3
Customer Requirement Sp Specification(CRS) I.
Client:
Web Site User.
II.
Project
objective: An application
www.shradhabookstores.com created using ASP.Net and MS SQL Server 2005. Its purpose is to assist managers can manage the pro ducts that his business-like books, magazines, CDs, DVDs, product details, the more sales and customer details , etc ... Customers can search products according to your needs and order than directly on the website with a user account with the relevant information has been created previously. p reviously. III. Inputs provide by the Client Input for the Web-based application applicat ion Out put from the Web-based application Process involvednin the Web-based application List of order Data constrants/Trigger/Validation Tables IV. A application needs to be developed based on following requirements: y y y y y
y
Web site should be www.shradhabookstores.com
y
On
the site have links to navigate pages like Contact information, Introduction
(information agents), Products (books, etc.), FAQ s, Order Tracking, Purchase a product, Information feedback and Questions and Admin y
For the Products there should be information categorized based o n the categories like Books, Magazines, Files, Paper,
CD
s,
DVD
s, Utilities like
Pen, Pencil,
Sketches, etc . and the sub categories based on the Publisher, type
of the Products (like for books novel, Magazine, etc ., for CD s readable or rewritable, etc and similarly similarly is the case with with the other products) y
Also for the products like books,
CD
s,
DVD
etc . the t he details like the t he
manufacturer, price, and the type of the product (like for CD s it will be readable or re writable) should be indicated y
For the Books like Novels,
Preparation
4
books like learning vocabulary,
Genera Knowledge, etc the brief description is to be included (like What is the book all about and for what it is used, Author Name, Publisher Name, Release y
Date, Version,
etc .)
The products to be assigned with a unique seven digit code, which will be as follows : 1. The Category of the Products (like Book, Magazine, Files, CD s, DVD s, etc utilities etc ) are to be assigned with the Unique 2 digit alpha numeric code (first being Alphabet and the second one being the Numeric digit) 2. The subcategory of the 5
Digit Code
Products
are to be assigned with a unique
(First three Digits being the first three acronyms of the
Manufacturer and the remaining two being the Numeric digit) so as to separate the different products being manufactured by a single manufacturer (like if a manufacturer Ab the
Code
Cd
manufactures products X and Y , then
for X can be AC001 and for Y it can be AC002 , where
AC0 is representing the manufacturer, AC being the first two acronyms of the manufacturer and the digit zero being added as the third one, as the manufacturer is having only two acronyms, and the remaining two will be the numeric order, which can be in the order you maintain the list of the products of that manufacturer). y
The details of the Products should be easily inserted, updated and deleted.
y
The admin alone will be able to insert, update or delete a product. So there should be a login for the Admin.
y
When one places the order, the order number is to be auto-generated and the code will be a unique 8 digit code, which will depend on the serial order of the receipt of the booking (order placed).
y
On
the
Order
Tracking
Page
there should be two links, one is to track the
status of the order and the other is to cancel or update t he order. y
Also one can track the order through the
Order
Tracking link in the
Navigation bar. Also in this page alone one can cancel or update an order based on the conditions applicable. y
And One can provide a feedback and also can post their queries through Online
through the Link Feedback and Queries in the navigation bar.
5
y
In the Feedback and Queries and the Order Form (available when a product is chosen for placing an order i.e., Buy a Product page) page the Email id will be taken for further conversation.
y
When an Order is to be Placed, i.e., in the order form, the following Message is to be displayed Apart from the Product Charges, the Delivery charges will be Nil, if <3 KMs and if >3KMs is as per the Delivery charges based on the type of the delivery chosen
y
As per the orders received, the customer details is to be maintained so as to track the details of the orders placed by that customer and as to know the status of the order.
y
The payment is of three types 1.
Payment
before delivery (Note : where the customer need to send a
Demand Draft
2.
Payment
of the total bill so as to receive the order)
after Delivery (Note : Payment to be done at the time of receipt
of the product). It can be done in two ways, either payment through cash or payment through cheque. 3.
Online Payment
(Note : This payment is through the Credit
Card,
and the order will be dispatched only after the payment is being processed by the respective bank)
y
The FAQ s Should consist the Following : 1. Will there be any charges for the delivery apart from the products ordered? 2.
How
many days will it take to deliver the order? (Ans : Depends on the
Order,
Quantity and Stock and as well on the payment type
chosen, as if the payment option chosen is payment before delivery, then the order will only be dispatched after the receipt of the payment.) 3. What if the order delivered is not in proper condition? (Ans : If the order delivered is improper, it will be replace with the other) 4.
Can
an Order be cancelled? If yes, will there be any charges? (Ans : Yes,
but if cancelled with in 24
Hrs.
there will be no charges, but if cancelled
after 24 Hrs. and if the Order is being dispatched the Delivery charges
6
for the to and fro is to be bared by the one who has ordered). 5.
y
How
can the payment be made?
Functional Requirements : 1. The Admin should alone be able to update or insert or delete the details of the products and the order and as well that of the FAQ s. 2. The admin should alone be able to reply to the feedback and Queries that are posted by the customer. 3. Auto generation of the unique 8 digit
Order
Number and based on the
series of the order received. 4. The products to be assigned a unique seven digit code based on the manufacturer and the category of the product and as well based on the serial order of entry of that particular product. 5. The feedback and query page to collect the feedback and queries of the customer. 6. The Order tracking page, where one can track the status of the order and as well cancel or update an order 7.
Creation,
maintenance and updating database, which contains
Details
of the Products.
Details
of the Manufacturers.
Details
of the stock available.
Details Orders
Details
Distance
(included order details and the Delivery details).
of the Payments based on the Order and Products and the of delivery.
8. The billing for the order is to be calculated taking into account the Order quantity, type of the product, and the Distance of the Delivery.
V.
Hardware
and OS Requirements:
7
y
Pentium IV CPU
2.80 GHz
y
512 MB of RAM or higher
y
Hard
y
Windows XP or higher
disk requirement: Minimum 4 GB
VI. Software Requirements: y
ASP.Net 2.0
y
Visual
y
ISS 4.0 or higher
y
Firefox 3.0 or higher
y
SQL Server 2005
Studio 2008
VII. Scope of the work:
Following are requirements based on which t he Web site needs to be developed: 1. Registration of new users and authentication of existing users. 2. An GUI containing the appro priate drivers, which will provide a user-friendly interface to the user to work with the website. 3. Allows the user is admin can access and manipulate the professional management specifically for authorized Admin like customer information management, orders, prod ucts, etc. 4. Enables users to purchase a guest can sign him as a new user, perform logging, find products, order produ cts and payment in another page. 5. Generate an invoice after successful the purchase for the customer.
8
Architecture & Design of the Project The application will be made of a Web-based distributed three-tier architecture to support multiple user transactions at the same time.
User Interface with H TML and ASPX pages
Web-Tier
C# (code-behind) files comtenting Middle- Tier
business logic
Database- Tier
SQL Server 2005
Web-based Distributed 3- Tier Architecture of the Project
9
Data Flow Diagram The flow of data in the app lication is shown by the various data flow diagrams. The most basic data flow diagram is the Context diagram. It shown the basic flow of data in to and out of the system.
Products
Product Details
Customer
Infromation Authentication
Order Details
OnlineBookStore
Information Authentication
Admin
Contect Diagram - Level 0 ± OnlineBookStore.com
10
Order
3.0 Place orders 4.0 View products
2.0 Login
6.0 Post Feedback & Queries
5.0 1.0 Registry
View FAQs
7.0 Search products
Customer
DFD Level 1.1 ± OnlineBookStore.com
11
Admin
9.0 Manage products 11.0 Manage customer
8.0 Login
12.0 Manage Feedback & Queries
13.0 Manage FAQs
10.0 Manage orders
DFD Level 1.2 ± OnlineBookStore.com
12
1.0 Registry
User details
Report
Customer
Valid
Customers
Email, password
user details
table
User profile
Information authentication 2.0 Login
DFD ± Level 2.1 ± OnlineBookStore.com
13
Order table
New order details Order
Edited information
details
3.1
3.2
Placed
Cancel Order
Order
Report
details
Edit data
Valid
detail of new order
Customer
DFD ± Level 2.2 ± OnlineBookStore.com
14
Sub_ Category table and Product_details table
Product informations
4.0 View product
Data
corresponding
Product
informations
Customer
DFD ± Level 2.3 ± OnlineBookStore.com
15
FAQs table
FAQs details
5.0 View FAQs
Data
corresponding
FAQs details
Customer
DFD ± Level 2.4 ± OnlineBookStore.com
16
Feedback & Query table
Feedback & Query informations
6.0 Post
Feedback & Query
Data
corresponding details
Report
Customer
DFD ± Level 2.5 ± OnlineBookStore.com
17
Products
table
Product informations
7.0 Search product
Keyword Corresponding search data
Response Product informations
Customer
DFD ± Level 2.6 ± OnlineBookStore.com
18
Admin
Admins table
Username, password
Admin profile
Information authentication 8.0 Login
DFD ± Level 2.7 ± OnlineBookStore.com
19
Products table
New product details
Product Old
details
details
product Edited information
9.1
9.2
9.3
Add
Update
Search
Keyword Report Valid
Editing data Valid
Report
Data
of new product
Admin
DFD ± Level 2.8 ± OnlineBookStore.com
20
Response product details
Orders table
Order
details
10.0 Delete order
Report Valid
information
Order
id
Admin
DFD ± Level 2.9 ± OnlineBookStore.com
21
Customers table
Customers
details
11.0 Search
Response order information
Search information
Admin
DFD ± Level 2.10 ± OnlineBookStore.com
22
Feedback & Queries table
Feedback & Queries details
12.0 Delete
Report
Valid
data
Admin
DFD ± Level 2.11 ± OnlineBookStore.com
23
FAQs table
details details
New FAQ Old FAQ information
FAQ details Edited
13.1
13.2
13.3
Add
Update
Delete
Valid
data of FAQ
Report Valid
Report
Report
editing data Valid Corresponding
Admin
DFD ± Level 2.12 ± OnlineBookStore.com
24
data
FlowCharts
Begin
Yes
Insert new customer into database
No
Registry for Customer
End
User informations
Here,
information input is verified. If valid then add new into database, else give a suitable report.
Diagram 0.
25
Begin
No
Customer
profile
Yes
Login for Customer
End
Email and password
Here,
information authentication is verified. If corresponded with data in database then response admin profile, else give a suitable report.
Diagram 1.
26
Begin
No
Admin profile
Yes
Login for Admin
End
Username and password
Here,
information authentication is verified. If corresponded with data in database then response admin profile, else give a suitable report.
Diagram 2.
27
Begin
No
Insert into Order
Yes
Add Order
End
Informations relate to Placed order
Here,
information input is verified. If valid then add into order, else give a suitable report.
Diagram 3.
28
Begin
No
Yes Update data in Database
Update Order
End
Editing data
Here,
information input is verified. If valid then update info of order, else give a suitable report.
Diagram 4.
29
Begin
No
Yes Product
detail
View product
End
Product
Here,
information input is verified and authentication. If ok then response product details, else give a suitable report.
Diagram 5.
30
Id
Begin
No
Yes Information of products
Search product
End
Key word
Here,
information input is compared with data in database. If ok then response coressponding product in result , else give a suitable report.
Diagram 6.
31
Begin
No
Insert new Feedback or queries
Yes
Port
Informations relate to feedback and queries
Feedback & queries
End
Here,
information input is verified. If valid then add new into database, else give a suitable report.
Diagram 7.
32
Begin
No
Yes FAQ detail
View FAQs
End
FAQ Id
Here,
information input is verified and authentication. If ok then response FAQ details, else give a suitable report.
Diagram 8.
33
Begin
No
Insert new product into databse
Yes
Add product
New Product detail
End
Here,
information input is verified. If ok then add new product detail into database, else give a suitable report.
Diagram 9.
34
Begin
No
Update product detail in database
Yes
Update product
End
Editting data
Here,
information input is verified. If ok then update old data by edited data, else give a suitable report.
Diagram 10.
35
Begin
No
Delete
product in database
Yes
Delete product
End
Product
Here,
Id
information input is verified and authenticated. If ok then remove product with product_id coresspond, else give a suitable report.
Diagram 11.
36
Begin
No
Remove order in database
Yes
Delete order
End
Order
Here,
id
information input is verified. If ok then remove order, else give a suitable report.
Diagram 12.
37
Begin
No
Customers
details
Yes
Search Customers
End
Key word
Here,
information input is verified and authenticated. If ok then response Customers informations correspond with key word, else give a suitable report.
Diagram 13.
38
Begin
Remove feed&queries in database
Delete Feedback & Queries
End
Feedback&Queries Id
Here,
information input is verified and authenticated. If ok then remove Feedback and query with product_id coresspond in database, else give a suitable report.
Diagram 14.
39
Begin
Insert new FAQs into database
Add FAQ
End
New FAQ details
Here,
information input is verified. If ok then add new FAQ into database, else give a suitable report.
Diagram 15.
40
Begin
Update FAQ detail in databse
Update
End
Editting data
Here,
information input is verified and authenticated. If ok then update FAQ with FAQ id coresspond, else give a suitable report.
Diagram 16.
41
Begin
Delete
FAQ in databse
Delete
End
FAQ id
Here,
information input is verified and authenticated. If ok then remove FAQ with FAQ id coresspond in database, else give a suitable report.
Diagram 17.
42
Entity Relationship Diagram (ERD)
ERD ± OnlineBookStore.com
43
Database Design/Structure Table
design
Table:
Column Admin_id Admin_name Gender Birth Phone Email Username Password Code
Data Type
int varchar int datetime varchar varchar(200) varchar varchar char
Admins Lenght
Description
PK
200
Store full name of admin Store sex of admin Store birth day Store phone number Store email id Store username Store password Store security code
20 200 200 200 7 Table:
Column Category_id Category_name Description
Data Type char varchar varchar
Categories Lenght Description 2 PK 100 Store name of category 4000 Store description of category Table:Types
Column Type_id Category_id Type_name Description
Data Type char char varchar varchar
Lenght
3 2 100 1000
PK
FK to Category table Store name of type Store description of category
Table:
Column SubCategory_id Manufacture Address Phone Email
DataType char varchar varchar varchar varchar
Description
SubCategories Lenght Description 5 PK 500 Store name of manufacture 500 Store address of manufacture 20 Store phone number of manufacture 200 Store email id of manufacture
44
Table: Products
Column Product_id SubCategory_id Type_id Title Image Description Quantity Price Author Release_date Version
DataType char char char varchar varchar varchar int float varchar datetime varchar
Lenght
7 5 3 500 500 4000
Description PK
FK to SubCategories table FK to Types table Store title of product Store image name of product Store description Store stock available Store price of product Store author name Strore release date Store version of product
200 100 Table:
Column Customer_id Customer_name Gender Birth Address Phone Email Password
Data Type
int varchar int datetime varchar varchar varchar varchar
Customers Lenght Description PK 200 Store name of customer Store sex of customer Store birth od customer 500 Store address of customer 20 Store contact phone of customer 200 Store email of for perform login 200 Store password for perform login Table:
Column Order_id Customer_id Delivery_charge Payment_type Total Create_date Status
Data Type char int int varchar float datetime int
Orders Lenght
8
Description
PK
FK to Customer table Delivery charge or not? Store payment type of order Store total value of order Store date order created Order approved or sour?
100
45
Table:
Column
Id Product_id Quantity_charge Price Order_id
Order_details Lenght Description PK 7 FK to Products table Store product purchase quantity Store price of product 8 FK to Order table
DataType
int char int float char
Table:
Column
Id Customer_id Contents Post_date
Data Type
int int varchar datetime
Feedback_Queries Lenght Description PK FK to Customer table 4000 Store content of Feedback Queries Store post date Table:
Column FAQ_id Question Answer
DataType
int varchar varchar
FAQs Lenght
Description PK
4000 4000
46
Store content of question Store content of answer
Task
Project
Sheet
Ref.No.:
Date of Preparation of Activity Plan Project
Sr.No.
1
2
3
4
Title:
Task.
Actual Start Date 1-14-2010
Actual Days
1-25-2010
18
Toan Huy Van Huyen
Completed
2/13/2010
2
Toan Huy Van Huyen
Completed
Book Store
Members test each other¶s work
Online
Provide
2/25/2010
4
Completed
Book Store
application fully
Toan Huy
System analyse and designation
Online
Application development
Online
Modules Test
Online
Code
joining
Activity Plan Prepared By:
Book Store
Problem
10
Team
Status
Member Names Toan
Completed
analys3 customer requirement specification ±database designation
Book Store
47