Click on the Category manager Post conditions in words System display information of all Category Trigger Admin click product manager page Main successful scenario Actor Action System A
Trang 1APTECH COMPUTER EDUCATION
Trang 21 Problem Definition 3
1.1 The Proposed System 3
1.2 Boundaries of the System: 4
1.3 Development Environment 5
2 Requirements and Business Flow 7
2.1 Customer Requirement Specification 7
2.2 Activity Diagram 10
3 UserCase Diagram : 16
3.1 User Case Specification 20
4 System Architecture : 56
5 Entity Relationship Diagram : 57
6 DataBase Design : 58
7 Database Diagram : 63
8 Screenshots 64
9 Task Sheet 80
Trang 3The companies manufacturing components for two wheel vehicles and theindustry faced an automatic engine problems with their current system, they feelthe need to change the system So CartStor Webstie be created with the purpose ofresolving these problems and propose effective solutions in the competitivemarket
1 Problem Definition
1.1 The Proposed System
A system needs to be established which takes care of inventories, preparinginvoices, categorizing goods based on consumption pattern, tracking paymentsfrom the customers, tracking the consignment, generating material rejectionreports The system also requires connecting warehouse servers to the server of themanufacturing plant, furnishing the with the necessary information, allow clients
to view the current status of production and stocks at
The system has to be hosted on the Web The firms will have differentdiscounts for customers based on their payment records Each customer hasaccounts for logging into the system and is eligible to query about the productionstatus There would be an authentication process, which would enable the system
to recognize the members or customers
Trang 41.2 Boundaries of the System:
Create a website using JSF And JSP and Microsoft SQL Server 2008
The Website direction to objects: administrators and Users
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 themanufacturing 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 payablesshould then be made available to him, taking into account his rating as adistributor 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 andinform 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 viewingthe Finished Goods inventory levels of the manufacturing unit
The Warehouse server data can be updated as soon as manufacturing unitupdate the current production
The Warehouse accepts the orders in a predefined format from customersthrough mails, faxes, web sites
should be able to track material rejections System should generate materialrejection report
Central Inventory control system must keep a track of the materialconsumption and based on that should be able to categorize fast moving orslow moving, regular or seasonal goods
Trang 5 Financials:
Billings for each order has to be done by the system and credited tothe customers account The system should be able to provide each customerwith his current financial position in terms of details of payment made,outstanding and his rating as a customer with the company The rating as acustomer would be dependent on the volumes of purchase by them, hishistory 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 thecustomer as per his query, i.e the customer may want to know all hisoutstanding balances and the system should provide him with his figures byextracting data from all the firms
Trang 62 Requirements and Business Flow
2.1 Customer Requirement Specification 2.1.1 System administrator
a System Login:
Purpose:Allow users declare identification to used application
Object used: Administrator,Customer
- Allow manager search product, view product information, addnew product with information like: product name, price,description , date in , status , image
Trang 7- Allow manager search wasehouse, view wasehouse information,add new wasehouse with information like: wasehouse name,description ,status,…
- Allow manager search order, view order information, check thestatus of bills and add,update , delete bills
- Execute condition: admin has login
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, price, quantity available by category or by search.Customer can add product to cart
Execute condition: customersor visitors visiting the website
Trang 8b Book product :
Purpose: Allow customer add any bouquets to cart
Object used: customersFunction requirement:
- Allow add a product to cart and review cart information like totalamount, amount for each product in cart, name of product in cartetc
Execute condition:customers
c Checkout to cart:
Purpose: Allow customer payment for his/her cart
Object used:Registered customers
- For the purpose of storing information of administrator, customers
e Input provide by Client:
Inputs for the web-bases application
Trang 9 Outputs from the Web-based application
Process involved in the Web-based application
2.2 Activity Diagram
Figure1 User login
Trang 11Figure2 Change password
Trang 12Figure3 Search object
Figure4 Add new object
Trang 14Figure5 Update an object
Figure6 Booking
Trang 163 UserCase Diagram :
Figure 7 Product Manager
Figure 8.Category Manager
Trang 17Figure 9 WareHouse Manager
Figure 10.Orders Manager
Trang 18Figure 11 Bill Manager
Figure 12 Member Manager
Trang 19Figure 13 FeedBack Manager
Figure 14 Material Manager
Trang 21Figure 15 Customer
3.1 User Case Specification
User Case No : UC01
User Case Name : Login Admin
Purpose (1 phrase) Login into the admin page
Relationships and scope Manager and Admin Page
Preconditions 1 Admin need to enter username and password
information.
Post conditions in words System display message is login successfully.
Trigger Admin click login button
Main successful
scenario
Actor Action System Action
1.Manager enter username and password
2 System validate admin login.
3 The System display message
last modified date 22/03/2012
User Case No : UC02
Trang 22User Case Name View product
Purpose (1 phrase) View information of all products
Relationships and scope Manager and Product Manager Page
Preconditions 1 administrator needs to log into the system
2 Click on the product manager
Post conditions in words System display information of all product
Trigger Admin click product manager page
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login and redirected to manager page
3 Manager click
on the product manager page
4 The system will display the product information page
last modified date 22/03/2012
User Case No : UC03
User Case Name View Category
Purpose (1 phrase) View information of all Category
Trang 23Relationships and scope Manager and Category Manager Page
Preconditions 1 administrator needs to log into the system
2 Click on the Category manager
Post conditions in words System display information of all Category
Trigger Admin click product manager page
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login and redirected to manager page
3 Manager click
on the category manager page
4 The system will display the Category information page
last modified date 22/03/2012
User Case No : UC04
User Case Name View warehouses
Purpose (1 phrase) View information of all wasehouse
Trang 24Relationships and scope Manager and warehouses Manager Page
Preconditions 1 administrator needs to log into the system
2 Click on the warehouses manager
Post conditions in words System display information of all warehouses
Trigger Admin click wasehouse manager page
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login and redirected to manager page
3 Manager click
on the warehouses manager page
4 The system will display the warehouses information page
last modified date 22/03/2012
User Case No : UC05
User Case Name Add product
Purpose (1 phrase) Insert product into database
Relationships and scope Manager and product Manager Page
Trang 25Preconditions 1 Administrator needs to log into the system
2 Click on add button in product manager page
Post conditions in words System redirected to add products page
Trigger Admin click on add button
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login and redirected to manager page
3 Manager enter product 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
or does not exist)
2 Add fails (primary key already exists)
1 System redirect to Login page and manager need to log into the system
2 System return message
last modified date 22/03/2012
User Case No : UC06
User Case Name Add category
Trang 26Purpose (1 phrase) Insert category into database
Relationships and scope Manager and category Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on add category in category manager page
Post conditions in words System redirected to add category page
Trigger Admin click on add button
Main successful
scenario
Actor Action System Action
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
Unsuccessful scenarios
Conditions Actions
1 Login fails (value is invalid
or does not exist)
2 Add fails (primary key already exists)
1 System redirect to Login page and manager need to log into the system
2 System return message
last modified date 22/03/2012
Trang 27User Case No : UC07
User Case Name Add warehouses
Purpose (1 phrase) Insert warehouses into database
Relationships and scope Manager and warehouses Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on add warehouses in warehouses manager page
Post conditions in words System redirected to add warehouses page
Trigger Admin click on add button
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login.
3 Manager enter 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
or does not exist)
2 Add fails (primary key
1 System redirect to Login page and manager need to log into the system
2 System return message
Trang 28already exists)
last modified date 22/03/2012
User Case No : UC08
User Case Name Update product
Purpose (1 phrase) Update product into database
Relationships and scope Manager and product Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on update button in product manager page
Post conditions in words System redirected to update product page
Trigger Admin click on update button
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login and redirected to manager page
3 Manager enter product 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 System redirect to Login page and
Trang 29invalid or does not exist) manager need to log into the system
last modified date 22/03/2012
User Case No : UC09
User Case Name Update category
Purpose (1 phrase) Update category into database
Relationships and scope Manager and category Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on update button in category manager page
Post conditions in words System redirected to update category page
Trigger Admin click on update button
Main successful
scenario
Actor Action System Action
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
Trang 30last modified date 22/03/2012
User Case No : UC10
User Case Name Update warehouses
Purpose (1 phrase) Update warehouses into database
Relationships and scope Manager and warehouses Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on update button in warehouses manager page
Post conditions in words System redirected to update warehouses page
Trigger Admin click on update button
Main successful
scenario
Actor Action System Action
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
Trang 31last modified date 22/03/2012
User Case No : UC11
User Case Name Search object
Purpose (1 phrase) Search products by keywords
Relationships and scope Manager
Preconditions 1 Administrator or Customer enter keyword to search
Post conditions in words System display the list ofresult for user
Trigger Enter key word to search
Main successful
scenario
Actor Action System Action
1 Admin or Customer enter keyword to search
2 System search in the database and return list
Trang 32User Case No : UC12
User Case Name Add Order
Purpose (1 phrase) Insert Order into database
Relationships and scope Manager and Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on add Order in Order manager page
Post conditions in words System redirected to update Order page
Trigger Admin click on add button
Main successful
scenario
Actor Action System Action
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
Unsuccessful scenarios
Conditions Actions
3 Login fails (value is invalid
or does not exist)
4 Add fails (primary key already exists)
3 System redirect to Login page and manager need to log into the system
4 System return message
Trang 33Developer Tangvv
last modified date 22/03/2012
User Case No : UC13
User Case Name Update Order
Purpose (1 phrase) Update Order into database
Relationships and scope Manager and Order Manager Page
Preconditions 3 Administrator needs to log into the system
4 Click on update button in Order manager page
Post conditions in words System redirected to update Order page
Trigger Admin click on update button
Main successful
scenario
Actor Action System Action
5 Manager login into the System
6 System validate admin login and redirected to manager page
7 Manager enter Order
information and click to button submit
8 System check validate and show message return to manager
Unsuccessful scenarios Conditions Actions
Trang 341 Login fails (value is invalid or does not exist)
System redirect to Login page and manager need to log into the system
last modified date 22/03/2012
User Case No : UC14
User Case Name Delete Order
Purpose (1 phrase) Delete Order into database
Relationships and scope Manager and Order Manager Page
Preconditions 1 Administrator needs to log into the system
2 Click on Delete button in Order manager page
Post conditions in words
Trigger Admin click on Delete button
Main successful
scenario
Actor Action System Action
1 Manager login into the System
2 System validate admin login and redirected to manager page
3 Manager selected value should be deleted and click
to button delete
Trang 354 System check validate and show message return to manager
last modified date 22/03/2012
User Case No : UC15
User Case Name Delete Product
Purpose (1 phrase) Delete Product into database
Relationships and scope Manager and Product Manager Page
Preconditions 3 Administrator needs to log into the system
4 Click on Delete button in Product manager page
Post conditions in words
Trigger Admin click on Delete button
Main successful
scenario
Actor Action System Action
5 Manager login into the System
6 System validate admin login and redirected to manager page
Trang 367 Manager selected value should be deleted and click
to button delete
8 System check validate and show message return to manager
last modified date 22/03/2012
User Case No : UC16
User Case Name Delete Category
Purpose (1 phrase) Delete Category into database
Relationships and scope Manager and Category Manager Page
Preconditions 5 Administrator needs to log into the system
6 Click on Delete button in Category manager page
Post conditions in words
Trigger Admin click on Delete button
Actor Action System Action
Trang 37Main successful
scenario
9 Manager login into the System
10 System validate admin login and redirected to manager page
11 Manager selected value should be deleted and click
to button delete
12 System check validate and show message return to manager
Unsuccessful scenarios Conditions Actions
1 Login fails (value is invalid or does not exist)
System redirect to Login page and manager need to log into the system
last modified date 22/03/2012
Trang 38User Case No : UC17
User Case Name Delete Warehouse
Purpose (1 phrase) Delete Warehouse into database
Relationships and scope Manager and Warehouse Manager Page
Preconditions 7 Administrator needs to log into the system
8 Click on Delete button in Warehouse manager page
Post conditions in words
Trigger Admin click on Delete button
Main successful
scenario
Actor Action System Action
13 Manager login into the System
14 System validate admin login and redirected to manager page
15 Manager selected value should be deleted and click
to button delete
16 System check validate and show message return to manager
Unsuccessful scenarios Conditions Actions
Trang 391 Login fails (value is invalid or does not exist)
System redirect to Login page and manager need to log into the system
last modified date 22/03/2012
User Case No : UC18
User Case Name Register Customers
Purpose (1 phrase) Register Customers success
Relationships and scope Customer and Website
Preconditions 1 Click on button register in website
2 Customer enter information in Register Page
Post conditions in words System redirected to Home Page
Trigger Customer click on Register button
2 Customer enter information in Register page
3 System validate customer register and return message
4 Register success , redirect to Home page
Unsuccessful scenarios Conditions Actions
Trang 401 register fails (value is invalid or does not exist) System redirect to register page
last modified date 27/03/2012
User Case No : UC19
User Case Name Customers Login
Purpose (1 phrase) Login in website
Relationships and scope Customer and Login Page
Preconditions 1. Click on Login button in website
2 Customer enter username and password
Post conditions in words System redirected Home Page
Trigger Customer click on Login button
3 System validate customer Login and redirected to home page
Unsuccessful scenarios
Conditions Actions
1 Login fails (value is invalid or does not exist) System redirect to Login page