Professional Documents
Culture Documents
Auto Ancillaries Limited Report (Database + Source Code)
Auto Ancillaries Limited Report (Database + Source Code)
eProject Document
Group 2
Introduction
The companies manufacturing components for two wheel vehicles and the
industry faced an automatic engine problems with their current system, they feel
the need to change the system. So CartStor Webstie be created with the purpose of
resolving these problems and propose effective solutions in the competitive
market.
1. Problem Definition
The system has to be hosted on the Web. The firms will have different
discounts for customers based on their payment records. Each customer has
accounts for logging into the system and is eligible to query about the production
status. There would be an authentication process, which would enable the system
to recognize the members or customers
• Create a website using JSF And JSP and Microsoft SQL Server 2008.
• The account will primarily maintain the history of the members / customers
in terms of the details of all the transaction made by the customers with the
manufacturing firm.
• The customer should be able to place orders over the system. Once an order
is placed the system should generate the invoice for the same. His payables
should then be made available to him, taking into account his rating as a
distributor. The customer system should host the inventory levels of the and
on the request of the customer, the server should be able to access this and
inform the member or customer on his Economic Order Quantity (EOQ),
Re-order point, time for placing the next order etc.
• The Customers, depending on his ratings would, have the option of viewing
the Finished Goods inventory levels of the manufacturing unit.
• The Warehouse server data can be updated as soon as manufacturing unit
update the current production.
• The Warehouse accepts the orders in a predefined format from customers
through mails, faxes, web sites.
• should be able to track material rejections. System should generate material
rejection report.
• Central Inventory control system must keep a track of the material
consumption and based on that should be able to categorize fast moving or
slow moving, regular or seasonal goods.
• Financials:
Billings for each order has to be done by the system and credited to
the customers account. The system should be able to provide each customer
with his current financial position in terms of details of payment made,
outstanding and his rating as a customer with the company. The rating as a
customer would be dependent on the volumes of purchase by them, his
history as a defaulter etc. This in turn would determine his credit limit,
entitlement to discounts, other benefits.
All the above facilities should be made available to the member or the
customer as per his query, i.e. the customer may want to know all his
outstanding balances and the system should provide him with his figures by
extracting data from all the firms
- Software Requirements:
o Netbean 6.9 or higher
o IIS 4.0 or higher
o Internet Explorer 7.0 or higher
o SQL Server 2005 or higher
Group 2 Auto Ancillaries Limited
Page 5
Aptech Computer Education eProject Document
Functionrequirement:
Functionrequirement :
Functionrequirement :
2.1.3 Website :
a. View product information:
Purpose:Allow customers visiting the Website view product
information, booking product
Object used: Customers, visitors.
Function requirement:
- Allow customers views details each bouquetlike product name,
Function requirement:
- Allow add a product to cart and review cart information like total
c. Checkout to cart:
Function requirement:
d. Business/Project objective:
- Create a website using Java and MS SQL Server 2005. The
website authenticates the existing user by his/her user name and
password. The website has a registration page where a new user
can enter his/her personal details. The user details will be stored in
the database.
- For the purpose of storing information of administrator, customers.
e. Input provide by Client:
Inputs for the web-bases application
Outputs from the Web-based application
Process involved in the Web-based application
Figure6. Booking
3. UserCase Diagram :
Figure 15 . Customer
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC02
User Case No :
View product
User Case Name
Dinh Tri Duc
Actor
View information of all products
Purpose (1 phrase)
Manager and Product Manager Page
Relationships and scope
Primary
Level
1. administrator needs to log into the system
Preconditions 2. Click on the product manager
Post conditions in words System display information of all product
Admin click product manager page
Trigger
Actor Action System Action
1. Manager login
into the System
2. System validate admin
Main successful login and redirected to
scenario
manager page
3. Manager click
on the product
manager page
4. The system will display the
product information page
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC03
User Case No :
View Category
User Case Name
Group 2 Auto Ancillaries Limited
Page 24
Aptech Computer Education eProject Document
1. Manager login
into the System
2. System validate admin
login and redirected to
Main successful manager page
scenario 3. Manager click
on the category
manager page
4. The system will display the
Category information page
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC04
User Case No :
View warehouses
User Case Name
Group 2 Auto Ancillaries Limited
Page 25
Aptech Computer Education eProject Document
1. Manager login
into the System
2. System validate admin
login and redirected to
Main successful
manager page
scenario
3. Manager click
on the
warehouses
manager page
4. The system will display the
warehouses information page
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC05
User Case No :
Add product
User Case Name
Dinh Tri Duc
Actor
Purpose (1 phrase) Insert product into database
Group 2 Auto Ancillaries Limited
Page 26
Aptech Computer Education eProject Document
1. Manager login
into the System
2. System validate admin
login and redirected to
manager page
Main successful 3. Manager enter
scenario product
information and
click to button
submit
4. System check validate and
show message return to
manager
Conditions Actions
1. Login fails
(value is invalid 1. System redirect to Login
Unsuccessful scenarios or does not exist) page and manager need to
2. Add fails
log into the system
(primary key 2. System return message
already exists)
Tangvv
Developer
22/03/2012
last modified date
UC06
User Case No :
Add category
User Case Name
Dinh Tri Duc
Actor
Insert category into database
Purpose (1 phrase)
Manager and category Manager Page
Relationships and scope
Primary
Level
1. Administrator needs to log into the system
Preconditions 2. Click on add category in category manager page
Post conditions in words System redirected to add category page
Admin click on add button
Trigger
Actor Action System Action
1. Manager login
into the System
2. System validate admin
login and redirected to
manager page
Main successful 3. Manager enter
scenario
category
information and
click to button
submit
4. System check validate and
show message return to
manager
Unsuccessful scenarios Conditions Actions
already exists)
Developer Tangvv
UC07
User Case No :
Add warehouses
User Case Name
Dinh Tri Duc
Actor
Insert warehouses into database
Purpose (1 phrase)
Manager and warehouses Manager Page
Relationships and scope
Primary
Level
1. Administrator needs to log into the system
Preconditions 2. Click on add warehouses in warehouses manager page
Post conditions in words System redirected to add warehouses page
Admin click on add button
Trigger
Actor Action System Action
1. Manager login
into the System
2. System validate admin
login.
3. Manager enter
Main successful
scenario warehouses
information and
click to button
submit
4. System check validate and
show message return to
manager
Unsuccessful scenarios Conditions Actions
1. Login fails
(value is invalid 1. System redirect to Login
or does not exist) page and manager need to
2. Add fails
log into the system
(primary key 2. System return message
already exists)
Tangvv
Developer
22/03/2012
last modified date
UC08
User Case No :
Update product
User Case Name
Dinh Tri Duc
Actor
Update product into database
Purpose (1 phrase)
Manager and product Manager Page
Relationships and scope
Primary
Level
1. Administrator needs to log into the system
Preconditions 2. Click on update button in product manager page
Post conditions in words System redirected to update product page
Admin click on update button
Trigger
Actor Action System Action
1. Manager login
into the System
2. System validate admin
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC09
User Case No :
Update category
User Case Name
Dinh Tri Duc
Actor
Update category into database
Purpose (1 phrase)
Manager and category Manager Page
Relationships and scope
Primary
Level
1. Administrator needs to log into the system
Preconditions 2. Click on update button in category manager page
Post conditions in words System redirected to update category page
Admin click on update button
Trigger
Main successful Actor Action System Action
scenario 1. Manager login
into the System
2. System validate admin
login and redirected to
manager page
3. Manager enter
category
information and
click to button
submit
4. System check validate and
show message return to
manager
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC10
User Case No :
Update warehouses
User Case Name
Dinh Tri Duc
Actor
Update warehouses into database
Purpose (1 phrase)
Manager and warehouses Manager Page
Relationships and scope
Primary
Level
1. Administrator needs to log into the system
Preconditions 2. Click on update button in warehouses manager page
Post conditions in words System redirected to update warehouses page
Admin click on update button
Trigger
Main successful Actor Action System Action
scenario 1. Manager login into the
System
2. System validate
admin login and
redirected to manager
page
3. Manager enter
warehouses
information and click
to button submit
4. System check validate
and show message
return to manager
Conditions Actions
Tangvv
Developer
22/03/2012
last modified date
UC11
User Case No :
Search object
User Case Name
Dinh Tri Duc
Actor
Search products by keywords
Purpose (1 phrase)
Manager
Relationships and scope
Primary
Level
Preconditions 1. Administrator or Customer enter keyword to search
Post conditions in words System display the list ofresult for user
Enter key word to search
Trigger
Actor Action System Action
1. Admin or Customer
enter keyword to
search
2. System search in the
Main successful
scenario database and return list
of result
3. system display result
on page
Conditions Actions
Unsuccessful scenarios 1. Data does not exist System return a message
Tangvv
Developer
22/03/2012
last modified date
UC12
User Case No :
Add Order
User Case Name
Dinh Tri Duc
Actor
Insert Order into database
Purpose (1 phrase)
Manager and Manager Page
Relationships and scope
Primary
Level
1. Administrator needs to log into the system
Preconditions 2. Click on add Order in Order manager page
Post conditions in words System redirected to update Order page
Admin click on add button
Trigger
Main successful Actor Action System Action
scenario 1. Manager login
into the System
2. System validate admin
login.
3. Manager enter
Order
information and
click to button
submit
4. System check validate and
show message return to
manager
Conditions Actions
3. Login fails
(value is invalid 3. System redirect to Login
Unsuccessful scenarios or does not exist) page and manager need to
4. Add fails
log into the system
(primary key 4. System return message
already exists)
Tangvv
Developer
22/03/2012
last modified date
UC13
User Case No :
Update Order
User Case Name
Dinh Tri Duc
Actor
Update Order into database
Purpose (1 phrase)
Manager and Order Manager Page
Relationships and scope
Primary
Level
3. Administrator needs to log into the system
Preconditions 4. Click on update button in Order manager page
Post conditions in words System redirected to update Order page
Admin click on update button
Trigger
Actor Action System Action
5. Manager login
into the System
6. System validate admin
login and redirected to
manager page
7. Manager enter
Order
Main successful information and
scenario
click to button
submit
8. System check validate and
show message return to
manager
Conditions Actions
Unsuccessful scenarios
1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC14
User Case No :
Delete Order
User Case Name
Dinh Tri Duc
Actor
Delete Order into database
Purpose (1 phrase)
Manager and Order Manager Page
Relationships and scope
Primary
Level
Group 2 Auto Ancillaries Limited
Page 36
Aptech Computer Education eProject Document
1. Manager login
into the System
2. System validate admin
login and redirected to
manager page
3. Manager
selected value
Main successful
scenario should be
deleted and click
to button delete
4. System check validate and
show message return to
manager
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC15
User Case No :
Delete Product
User Case Name
Group 2 Auto Ancillaries Limited
Page 37
Aptech Computer Education eProject Document
5. Manager login
into the System
6. System validate admin
login and redirected to
manager page
7. Manager
selected value
Main successful
scenario should be
deleted and click
to button delete
8. System check validate and
show message return to
manager
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Tangvv
Developer
22/03/2012
last modified date
UC16
User Case No :
Delete Category
User Case Name
Dinh Tri Duc
Actor
Delete Category into database
Purpose (1 phrase)
Manager and Category Manager Page
Relationships and scope
Primary
Level
5. Administrator needs to log into the system
Preconditions 6. Click on Delete button in Category manager page
Post conditions in words
Admin click on Delete button
Trigger
Actor Action System Action
9. Manager login
into the System
10. System validate admin
login and redirected to
manager page
11. Manager
selected value
Main successful
scenario should be
deleted and click
to button delete
12. System check validate and
show message return to
manager
Tangvv
Developer
22/03/2012
last modified date
UC17
User Case No :
Delete Warehouse
User Case Name
Dinh Tri Duc
Actor
Delete Warehouse into database
Purpose (1 phrase)
Manager and Warehouse Manager Page
Relationships and scope
Primary
Level
Preconditions 7. Administrator needs to log into the system
8. Click on Delete button in Warehouse manager page
15. Manager
selected value
should be
deleted and click
to button delete
16. System check validate and
show message return to
manager
Conditions Actions
Unsuccessful scenarios 1. Login fails (value is System redirect to Login page and
invalid or does not exist) manager need to log into the system
Developer Tangvv
UC18
User Case No :
Register Customers
User Case Name
Dinh Tri Duc
Actor
Register Customers success
Purpose (1 phrase)
Customer and Website
Relationships and scope
Primary
Level
Preconditions 1. Click on button register in website
2. Customer enter information in Register Page
1. Customer click
on Register
Developer Tangvv
UC19
User Case No :
Customers Login
User Case Name
Dinh Tri Duc
Actor
Login in website
Purpose (1 phrase)
Customer and Login Page
Relationships and scope
Primary
Level
1. Click on Login button in website
Preconditions 2. Customer enter username and password
Post conditions in words System redirected Home Page
Customer click on Login button
Trigger
Group 2 Auto Ancillaries Limited
Page 42
Aptech Computer Education eProject Document
1. Customer click
on Login button
in website
Main successful 2. Enter username
scenario and password
information
3. System validate customer
Login and redirected to home
page
Conditions Actions
Unsuccessful scenarios
1. Login fails (value is
System redirect to Login page
invalid or does not exist)
Tangvv
Developer
27/03/2012
last modified date
UC20
User Case No :
Customers Change personal Information
User Case Name
Dinh Tri Duc
Actor
Change personal Information
Purpose (1 phrase)
Custormer and Change information Page
Relationships and scope
Primary
Level
Preconditions 1. Click on Login button in website
2. Click on Change information button
1. Customer click on
Login button in
website
2. System validate
Main successful customer Login and
scenario redirected to home page
3. Customer click on
Change Information
button in website
4. System validate Change
information and
redirected to home page
Conditions Actions
UC21
User Case No :
Customers View Product Detail
User Case Name
Dinh Tri Duc
Actor
1. Customer click
on Login button
in website
Main successful 2. System validate customer
scenario Login and redirected to home
page
3. Click on product
name or product
image
4. details of the products are
displayed
Conditions Actions
Unsuccessful scenarios
1. Login fails 2. System redirect to Login
Page
Developer Tangvv
UC22
User Case No :
Booking
User Case Name
Dinh Tri Duc
Actor
Booking online
Purpose (1 phrase)
Customer,Manager ,product and Order
Relationships and scope
Primary
Level
1. Login
Preconditions 2. Choose only or more product
3. Enter quantity
UC23
User Case No :
Customers cancel Orders
User Case Name
Dinh Tri Duc
Actor
Cancel Order
Purpose (1 phrase)
Customer , manager and order
Relationships and scope
Primary
Level
Preconditions 1. Login success
2. Orders is not transferred
1. Customer click
on Login button
in website
UC24
User Case No :
View order
User Case Name
Dinh Tri Duc
Actor
View order for customer
Purpose (1 phrase)
Customer and ViewOrderPage
Relationships and scope
Group 2 Auto Ancillaries Limited
Page 48
Aptech Computer Education eProject Document
Primary
Level
Preconditions 1. Login success
2. Click view all orders
1. Customer click
on Login button
in website
Conditions Actions
Unsuccessful scenarios 1. System redirect to login
1. Login fails
page
Developer Tangvv
UC25
User Case No :
Feedback
User Case Name
Group 2 Auto Ancillaries Limited
Page 49
Aptech Computer Education eProject Document
1. Customer click
on Login button
in website
UC26
User Case No :
View payment voucher
User Case Name
Dinh Tri Duc
Actor
View payment voucher
Purpose (1 phrase)
Customer and website
Relationships and scope
Primary
Level
Preconditions Login success
Conditions Actions
1. Login
Unsuccessful scenarios 2. System redirect to
fails
login page
Developer Tangvv
UC27
User Case No :
Automatic order buy product
User Case Name
Dinh Tri Duc
Actor
Automatic order buy product
Purpose (1 phrase)
Login page
Relationships and scope
Primary
Level
Preconditions Login success
Trigger No
Conditions Actions
Unsuccessful scenarios 3. Login 4. System redirect to
fails login page
Developer Tangvv
UC28
User Case No :
View Bills
User Case Name
Dinh Tri Duc
Actor
View bill information
Purpose (1 phrase)
Manager And Customer
Relationships and scope
Primary
Level
1. Manager and customer need to Login
Preconditions 2. View bill information
Post conditions in words System redirected Bills Page
Click on view bills information
Trigger
Actor Action System Action
1. Customer click
on Login button
in website
2. System validate
customers login and
Main successful redirected to home
scenario
page
3. View bill
information
Conditions Actions
4. System Architecture :
Presentation Tier
Web-Tier Implementation
Technologles(HTML/JSF/CSS)
Middle-Tier
Aptech Computer Education eProject Document
Business Tier
Implementation Technologles(JSF)
Persistence Tier
Database-Tier Implementation Technologles(SQL
server 2005,SQL server 2008)
6. DataBase Design :
Table: Admin
A_ID Int PK
A_Name Varchar(50)
A_Pass Varchar(50)
Table: Member
M_ID Int PK
M_Name Varchar(50)
Birthday Date
Address Varchar(50)
Gender Varchar(50)
identityCart Int
Email Varchar(50)
bankcart Int
Phone Varchar(50)
M_Pass Varchar(50)
Table: Category
C_Name Varchar(50)
ProductLine Varchar(50)
Company Varchar(50)
Table: Product
P_Name Varchar(50)
P_Title Varchar(50)
P_Image Varchar(50)
Price Double
Status Varchar(50)
Table: ManagerWarehouse
dateIn Date
dateOut Date
Quantity Int
Table: Warehouses
W_Name Varchar(50)
W_Address Varchar(50)
Table: Roles
r_Name Varchar(50)
Table: FeedBack
F_Title Varchar(200)
F_Content Varchar(255)
Table: Orders
ShoppedDate Date
ShippedAddress Varchar(50)
O_Date Date
ShippedCity Varchar(50)
Name Varchar(50)
Total Double
Status Varchar(50)
3832118