You are on page 1of 70

AUTO ANCILLARIES LIMITED

This is to certify that


Mr./Ms : MAI THANH TIEN TRIEN NGUYEN HO DUONG NGUYEN THI TU QUYNH NGO THANH LAM ACCP0611A-09 ACCP0611A-18 ACCP0611A-15 ACCP0610-05

Has successfully Designed , Developed and Hosted

AUTO ANCILLARIES LIMITED


Submitted by : Mr. VO VAN HAI Authorized Signature :

REMARKS OF TEACHER :
eProject Page 1

AUTO ANCILLARIES LIMITED


eProject

Page 2

AUTO ANCILLARIES LIMITED

ACKNOWLEDGEMENT We would like to acknowledge all those whose have given me moral support and helped in making the project a success. We wish to express our gratitude to the eProject Team at the Head Office , who guided and helped us . We would also like to express my gratitude to all the staff members of our centre for not only providing us with the opportunity to work with them on this project , but also for their support and encouragement throughout the process. We also express our sincere gratitude to the eProjects Team at the Aptech Head Office and our project guide at the organization , for his valuable guidance and support for the completion of this project. And finally ,We would like to offer many thanks to all our colleagues for their valuable suggestion and constructive feedback.

eProject

Page 3

AUTO ANCILLARIES LIMITED


Chapter 1: Project Brief .................................................................................................
I. II. III.

Introduction........................................................................................... 04 Problem Definition................................................................................ 05 Customer Requirement Specification................................................... 07


1. Customer Requirement................................................................... 07 2. Hardware / Software Requirement.................................................. 09

Chapter 2: Project Design................................................................................................ I. Architecture & Design................................................................................... 10 II. DFD.............................................................................................................11 III. ERD............................................................................................................ 19 IV. Entiry and Property..................................................................................... 27 V. Table Design...............................................................................................33 VI. Relationship Diagram................................................................................ 39
VII.

Flow of Application..............................................................................47

VIII. Site Map.....................................................................................................51

Chapter 3: Web design ....................................................................................................


I.

Web electric commerce............................................................................... 53

II. Web Admin................................................................................................. 56

Chapter 4: User guide & Task sheet ............................................................................... 65

Chapter 1: Project Brief


eProject Page 4

AUTO ANCILLARIES LIMITED


I . INTRODUCTION Auto Ancillaries Limited (AAL) is in the business of manufacturing important ancillaries for the two-wheeler and four-wheeler automobile industry. For the past few months they have been facing problems with their current system. Due to the problems they have felt the need for a change in their system. For this purpose, they have approached you to develop products. They would like you to study the problem at hand, and evolve a strategy for solving the current problems. In addition to this, they also want you to suggest solutions using which the company will get an added competitive edge in this cut-throat competitive market. The diagram given below in Figure 1 shows the interrelationship of various departments of the AAL and its customers in relation to the "Invoicing and finished goods handling" system, the scope of the project.

Other Warehouse Dealer

Fa cto

Management

Despatch
Department

Invoicing and finished goods

(2) DD (1)

(1) Invoic

Order

Processing
department

HO Store
Keeper

Productio n Direct Customer(OEM )

Quality
Control

II. PROBLEM DEFINITION AAL has an annual turnover of $ 15 million. The company has 4 factories and 4 warehouses. The clients of AAL are Original Equipment Manufacturer (OEM).
eProject Page 5

AUTO ANCILLARIES LIMITED


The company reaches to the customer through dealers. A distribution set up for AAL is as follows:
A to A cilla u n rie s L ite im d

Factor ies.

Factori es

Factori es

Factor ies

De er as l W Ware Houses The Ware Houses dispatch the orders directly to the OEMs and other customers. There are two types of dealers Regular dealers and Exclusive dealers. Regular dealers are the general dealers for other companies as well as for AALs products. Exclusive dealers cater only to the AALs product line. The company is thus required to have an elaborate system in place wherein all customers receive material without any delay and the dealers are updated with their stocks. Presently the company is facing the following problems:
1.

There is no automation involved to speed up the distribution process or any other business process. Credibility with customers seems to be declining recently due to slip-ups on customer order processing and dispatches. Finished goods stock is not being managed properly and holding costs are high. Difficulties in communication and updating data due to distributed set up.
Page 6

2.

3.

4.

eProject

AUTO ANCILLARIES LIMITED


5. 6.

Maintaining stocks at ware houses Preparing Invoices as well as dispatching the related documents and routing them to relevant departments or locations. Calculating discounts and other taxes and levies Delivering material in time Categorizing items as Fast or Slow moving while controlling inventory Prioritizing orders based on customers requirement and distance Increasing material rejection from customers Discrepancy between ordered and invoiced quantities due to either partial availability of stocks or due to clerical oversights. Insufficient checks in the current system for ensuring customer credit limits are not exceeded. Analyzing sales data to streamline production volumes.

7. 8. 9. 10. 11. 12.

13.

14.

III . CUSTOMER REQUIREMENT SPECIFICATION (CRS ) 1. Registration of Member (Customer) to the Site
eProject Page 7

AUTO ANCILLARIES LIMITED


2. Creation, Maintenance and Updating of Database, which will contain Information regarding all transactions made Details of Customers Details of the Warehouses Details of items and stocks Details of the purchase orders Details of invoices Details of Material rejections

3. Login and verification 4. Entering query parameters by the user (Inventory status of company, rating of the customer, outstanding with the companies etc) 5. The company databases should maintain the following Details of customers Other information like inventory, order status etc. that it wants to forward to the service 6. Transmitting the queries to the servers of each Company. 7. Each server has to perform the search as per the query parameters. 8. The server has to transfer the data to the Web Site. 9. Presenting the result to the user in a consolidated format. 10.Accepting order booking from user. 11.Forwarding booking request to the particular Company server. 12.The order should be booked, server database updated in terms of availability. 13.The billing for the order is to be calculated taking into account the customer entitlements in terms of discount and credit period. 14.The member account should be updated in terms of finances and transactions. Hardware

eProject

Page 8

AUTO ANCILLARIES LIMITED


A minimum computer system that will help you access all the tools in the courses is a Pentium IV or better 1024 Megabytes of RAM or better Windows XP (or higher if possible) Software Notepad/HTML editor / J2EE Java JDK 1.6 or better SQL Sever 2005 or better IE 5.0/ Netscape 6.0 or better Jboss 5.0

Chapter 2: Project Design


eProject Page 9

AUTO ANCILLARIES LIMITED


I . ARCHITECTURE& DESIGN
Tier 1 Presentation tier User Interface JSP Pages & HTML Pages

Tier 2 Middle tier

Business logic EJB Components

Tier 3 Database tier

Database Access SQL Server

II. DATA FLOW DIAGRAM ( DFD )


eProject Page 10

AUTO ANCILLARIES LIMITED

D ea ler EM /O

Ad m in

D ealer EM /O

U se r Infor C o m m an d execu te U ser infor U se r Accoun t Info r o rd er R e po rt o rde r

C om m a nd req ue st U ser infor V isito r R equ est d ow nlo a d m a nua l

R esu lt re qu e st U ser Accou nt 0 Invoice G o ods han dling syste m & In form a tio n d o w n lo ad V isitor

U ser In for

U se r Accoun t

C om m a n d e xecute

R esult e xe cu te

U se r Accoun t esult e xe cu te R

Em plo yee

Ad m in

Em p loyee

DFD Level Context Invoice & Goods handling system

eProject

Page 11

AUTO ANCILLARIES LIMITED


User Infor User Account 1 Account management Command Execute Result Execute Admin

User infor Visitor User Account Infor download Request download manual

2 Download manual management

User Account manual User Infor User infor Infor rating customer

6 Rating customer management

Request download manual Infor download

User Account Command request Result request

User Acount

Request infor rating customer Infor rating customer

User infor

Dealer/OEM

Data store

Employee

Status product Order infor Order infor Update invoice infor Infor rating product Invoice Report order Order infor Infor rejection product Report rejection product Request status product Result update invoice Request status product Status product Invoice infor Result update invoice Command execute Result execute

3 Order & Invoice management

4 Product management

Infor rejection product

5 Rejection product management

DFD Level 0 AAL Web site

eProject

Page 12

AUTO ANCILLARIES LIMITED


1.1 Register

New visitor

Register visitor infor

Register visitor infor

New Dealer/OEM

Update infor

Visitor

D1

Account user

1.7 Delete visitor account User account

Get User name _ Password User name _ Password Update infor Request delete visitor account

1.2 User login

Request edit account infor

1.3 Edit account

D2

Account employee

Admin

Update infor

User name _ Password

Get User name _ Password

User name _ Password

D3

Outstanding Outstanding infor

1.6 Edit account Request edit account infor

1.5 Employee login

User name _ Password

Request outstanding infor Dealer/OEM Outstanding infor

1.4 Check outstanding

Employee

DFD Level 1 Account manager

eProject

Page 13

AUTO ANCILLARIES LIMITED

Visitor Request download manual Request download manual

Dealer/OEM

Manual

2.1 Download manual management

Manual

Manual

D4

Manual

DFD Level 1 Download manual management

eProject

Page 14

AUTO ANCILLARIES LIMITED

Dealer/OEM

Employee

Confirm order Request confirm order Order infor Invoice

Order infor Request confirm order Invoice infor Result update invoice

3.1 Receive order management

3.2 Deceive invoice management

Invoice

3.3 Invoicing management

Infor update invoice Order infor Result update invoice

D5

Order

D6

Invoice

DFD Level 1 Order & Invoice management

eProject

Page 15

AUTO ANCILLARIES LIMITED

Dealer/OEM

Employee

Infor inventory Request infor inventory Infor rating product Result update product Infor imported product

Result imported product Infor update product

Rating product management

Inventory management

Update product management

Imported product management

Infor rating product Infor inventory

Infor update product Result update product Infor imported product Result imported product

D9

Rating product

D8

Warehouse

D7

Product

DFD Level 1 Product management

eProject

Page 16

AUTO ANCILLARIES LIMITED

Report Dealer/OEM Infor rejection product

5.1 Rejection product management

Infor rejection product

D10

Reject

DFD Level 1 Rejection product management

eProject

Page 17

AUTO ANCILLARIES LIMITED

Request infor rating customer Employee Infor rating customer

6.1 Detail rating customer

Infor rating customer

D13

Rating customer

Infor rating customer

6.1 Process infor rating

No. order

No. pay not in time

D12

Order

D11

Customer

DFD Level 1 Rating Customer management

III. E R DIAGRAM (ERD) 1. User :

eProject

Page 18

AUTO ANCILLARIES LIMITED

EmpRole_tbl PK EmpRole RoleName PK

Role_tbl Role_Id RoleName

Employee_tbl PK Employee_Id Password FirstName LastName Address HomePhone Email EmpRole PK FK1

Customer_tbl Customer _Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes

FK1

eProject

Page 19

AUTO ANCILLARIES LIMITED

2. Imported :

EmpRole_tbl PK EmpRole RoleName PK

Employee _tbl Employee_Id Password FirstName LastName Address HomePhone Email EmpRole PK FK1

WareHouse_tbl WareHouse_Id Factory _Id WareHouseName Address Phone Email Fax PK

Factory _tbl Factory _Id FactoryName Address Phone Email Fax

FK1

Imported _tbl PK FK2 FK1 Batch_tbl PK FK2 FK1 Batch_Id Product_Id Imported_Id Begin_Seri End_Seri Notes Status Product _tbl PK Product_Id ProductName Category _Id RefPrice Unit ImagePath Info_technology Description Notes Status PK Category _tbl Category _Id CatName Notes Imported_Id WareHouse_Id Employee_Id ImportedDate

FK1

eProject

Page 20

AUTO ANCILLARIES LIMITED

3. Order :

eProject

Page 21

AUTO ANCILLARIES LIMITED


Customer_tbl PK FK1 Customer_Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes Order _tbl PK FK1 Batch_tbl PK FK2 FK1 Batch_Id Product_Id Imported_Id Begin_Seri End_Seri Notes OrderDetails _tbl PK,FK2 PK,FK1 Order_Id Batch_Id Notes Order_Id Customer_Id OrderDate Notes PK Role_tbl Role_Id RoleName

Product _tbl PK Product_Id ProductName Category _Id RefPrice Unit ImagePath Info_technology Description Notes Status PK

Category _tbl Category_Id CatName Notes

FK1

4. Invoice :
eProject Page 22

AUTO ANCILLARIES LIMITED


WareHouse_tbl PK FK1 WareHouse_Id Factory _Id WareHouseName Address Phone Email Fax PK Factory_tbl Factory _Id FactoryName Address Phone Email Fax Order _tbl PK Invoice_tbl PK FK2 FK1 FK3 FK4 Invoice_Id Employee_Id Customer_Id Order_Id WareHouse_Id SumMoney InvoiceDate FK1 Customer_Id OrderDate Notes Status Order_Id PK FK1

Customer_tbl Customer _Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes

InvoiceDetails_tbl PK,FK2 PK,FK1 Invoice_Id Batch_Id Discount Price Notes Product _tbl

Employee_tbl PK Employee_Id Password FirstName LastName Address HomePhone Email EmpRole

Role_tbl PK Role_Id RoleName

Batch_tbl PK FK2 FK1 Batch_Id Product_Id Imported_Id Begin_Seri End_Seri Notes Status

PK

Product_Id ProductName Category _Id RefPrice Unit ImagePath Info_technology Description Notes Status

FK1

FK1

EmpRole_tbl PK EmpRole RoleName

Category _tbl PK Category _Id CatName Notes

5. Outstanding:
eProject Page 23

AUTO ANCILLARIES LIMITED

Employee_tbl PK Role_tbl PK Role_Id RoleName PK FK1 Order _tbl Order _Id Customer_Id OrderDate Notes Status Employee_Id Password FirstName LastName Address HomePhone Email EmpRole

FK1

Invoice_tbl PK Customer_tbl PK FK1 Customer_Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes FK2 FK1 FK3 FK4 Invoice_Id PK Employee_Id Customer_Id Order_Id WareHouse_Id SumMoney InvoiceDate Outstanding_tbl Outstanding _Id Invoice_Id Employee_Id Customer_Id OutstandingDate ExpireDate Detbs Status

FK2 FK1

eProject

Page 24

AUTO ANCILLARIES LIMITED

6. Payment:

Role_tbl Customer_tbl PK FK1 Customer_Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes PK Role_Id RoleName Outstanding _tbl PK Outstanding _Id Invoice_Id Employee_Id Customer_Id OutstandingDate ExpireDate Detbs Status

FK2 FK1

PaymentDetails _tbl Payment _tbl PK FK2 FK1 Payment_Id Employee_Id Customer_Id PaymentDate PK,FK1 PK,FK2 Outstanding _Id Payment_Id Payment Notes

Employee _tbl PK Employee_Id Password FirstName LastName Address HomePhone Email EmpRole EmpRole_tbl PK EmpRole RoleName

FK1

eProject

Page 25

AUTO ANCILLARIES LIMITED

7. Reject :

eProject

Page 26

AUTO ANCILLARIES LIMITED


Customer _tbl PK FK1 Customer _Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes PK Role _tbl Role_Id RoleName

Reject _tbl RejectDetails _tbl PK,FK2 PK,FK1 Reject _Id Batch _Id Notes PK FK1 Reject _Id Customer _Id RejectDate Notes

Batch_tbl PK FK2 FK1 Batch _Id Product _Id Imported _Id Begin _Seri End_Seri Notes PK

Product _tbl Product _Id ProductName Category _Id RefPrice Unit ImagePath Info_technology Description Notes Status PK

Category _tbl Category _Id CatName Notes

FK1

Imported _tbl PK FK2 FK1 Imported _Id WareHouse _Id Employee _Id ImportedDate PK FK1

WareHouse _tbl WareHouse _Id Factory _Id WareHouseName Address Phone Email Fax PK

Factory _tbl Factory _Id FactoryName Address Phone Email Fax

eProject

Page 27

AUTO ANCILLARIES LIMITED


8. Feedback :

Customer_tbl PK FK1 Customer _Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes PK

Role_tbl Role_Id RoleName

Feedback _tbl PK,FK2 PK,FK1 Product _Id Customer _Id FeedbackInfor Rating RatingDate

Rate_tbl PK,FK2 PK,FK1 Factory _Id Customer_Id Rating InforRating PayNotInTime Product_tbl PK Product_Id ProductName Category _Id RefPrice Unit ImagePath Info_technology Description Notes Status

FK1

Factory _tbl PK Factory _Id FactoryName Address Phone Email Fax

eProject

Page 28

AUTO ANCILLARIES LIMITED

IV. ENTITY AND PROPERTY

Product_Id

Begin_Seri

Batch_Id

BATCH

End_Seri

Imported_Id

Notes

Category _Id

CatName

CATEGORY

Notes

Email

Notes

Fax

Customer_Id

Password

Role_Id

CUSTOMER

FirstName

LoggedName

LastName

Address

Phone

CompanyName

eProject

Page 29

AUTO ANCILLARIES LIMITED

HomePhone

Employee_Id

FirstName

EmpRole_Id

EMPLOYEE

LastName

Password

Address

Email

Factory _Id

Phone

FactoryName

FACTORY

Email

Address

Fax

WareHouse_Id

Employee_Id

Imported_Id

IMPORTED

ImportedDate

Invoice_Id Employee_Id Customer_Id

InvoiceDate

ENVOICE

SumMoney

WareHouse _Id

Order_Id

Order_Id Customer_Id

OrderDate

ORDER

Notes

eProject

Page 30

AUTO ANCILLARIES LIMITED

Invoice _Id Outstanding _Id Detbs

Employee_Id

OUTSTANDING

OutstandingDate

Status Customer_Id

ExpireDate

Payment_Id

PAYMENT

PaymentDate

Employee_Id

Customer_Id

Status

Product_Id

Notes

ProductName

PRODUCT

Description

Category _Id

Info_technology

RefPrice

Unit

ImagePath

Reject_Id Customer_Id

Notes

REJECT

RejectDate

eProject

Page 31

AUTO ANCILLARIES LIMITED


Role_Id

ROLE

RoleName

EmpRole_Id

EMPROLE

RoleTName

Factory _Id WareHouse _Id WareHouseName

Fax

WAREHOUSE

Address

Email

Phone

Customer_Id

FeedbackInfor

FEEDBACK

RatingDate

Rating

Notes

ORDERDETAILS

Batch_Id

Notes Batch_Id

Discount

INVOICEDETAILS

Price

eProject

Page 32

AUTO ANCILLARIES LIMITED


Payment

PAYMENTDETAILS

Notes

Payment_Id

Outstanding _Id

Reject_Id

Notes

REJECTDETAILS

Batch_Id

InforRating Factory _Id Customer_Id

Rating

RATE

PayNotInTime

eProject

Page 33

AUTO ANCILLARIES LIMITED

V . TABLE DESIGN

Field Name Customer_Id Role_Id LoggedName Password FirstName LastName Address CompanyName Phone Email Fax Notes

Data Type bigint int varchar(30) varchar(50) Varchar(100) Varchar(100) text varchar(100) Varchar(20) varchar(200) varchar(50) text

Null No No No No No No No No No No No Yes

Table :Customer_tbl Key References Tables Pk Fk Role_tbl

Description Stores the identification number of the customer Stores the identification number of the role of the customer Stores the name the customer use to log in Stores the password of the customer Stores the First Name of the customer Stores the Last Name of the customer Stores the Address of the customer Stores the Company Name of the customer Stores the Phone of the customer Stores the Email of the customer Stores the Fax of the customer Stores the Notes about the customer

Field Name Role_Id RoleName

Data Type int varchar(100)

Null No No

Table :Role_tbl Key References Tables Pk

Description Stores the identification number of the role Stores the name of the role

Field Name Employee_Id EmpRole_Id

Data Type varchar(30) int

Null No No

Table :Employee_tbl Key References Tables Pk Fk Type_tbl

Description Stores the identification number of the employee Stores the identification number of the type of the

eProject

Page 34

AUTO ANCILLARIES LIMITED


Password FirstName LastName Address HomePhone Email Varchar(50) Varchar(100) Varchar(100) text Varchar(20) varchar(200) No No No No Yes Yes employee Stores the password of the employee Stores the First Name of the employee Stores the Last Name of the employee Stores the Address of the employee Stores the Phone of the employee Stores the Email of the employee

Field Name EmpRole_Id RoleName

Data Type int varchar(200)

Null No No

Table :EmpRole_tbl Key References Tables Pk

Description Stores the identification number of the type of the customer Stores the name of the type

Field Name Order_Id Customer_Id Order_Date Notes

Data Type varchar(20) bigint datetime text

Null No No No Yes

Table :Order_tbl Key References Tables Pk Fk Cutomer_tbl

Description Stores the identification number of the purchasing order Stores the identification number of the customer Stores the date when the purchasing order was input Stores the Notes about the purchasing order

Field Name Batch_Id Product_Id Imported_Id Begin-Seri End_Seri Notes

Data Type varchar(20) bigint varchar(20) Varchar(16) Varchar(16) text

Null No No No No No Yes

Table :Batch_tbl Key References Tables Pk Fk Fk Product_tbl Imported_tbl

Description Stores the identification number of the batch Stores the identification number of the product type the batch belongs to. Stores the identification number of the merchandise importing order Stores the beginning number of the series the batch belongs to Stores the ending number of the series the batch belongs to Stores the Notes about the batch

Field Name Product_Id ProductName

Data Type bigint varchar(200)

Null No No

Table :Product_tbl Key References Tables Pk

Description Stores the identification number of the product Stores the name of the Product

eProject

Page 35

AUTO ANCILLARIES LIMITED


Category_Id RefPrice Unit ImagePath Info_technology Description Status Notes int Float varchar(10) Varchar(200) text text bit text No No No Yes Yes Yes No Yes Fk Category_tbl Stores the identification number of the category Stores the reference price of the Product Stores the unit of the Product Stores the Image Path of the Product Stores the technology information of the Product Stores a brief description of the Product Stores the status of the Product (whether being produced or not) Stores the notes about the Product

Field Name Category_Id CatName Notes

Data Type int nvarchar(200) text

Null No No No

Table :Category_tbl Key References Tables Pk

Description Stores the identification number of the category Stores the name of the category Stores the notes about the category

Field Name WareHouse_Id Factory_Id WareHouseName Address Phone Email Fax

Data Type int int varchar(100) text varchar(20) varchar(200) int

Null No No No No No No No

Table :WareHouse_tbl Key References Tables Pk Fk Factory_tbl

Description Stores the identification number of the warehouse Stores the identification number of the factory the warehouse belongs to Stores the name of the Warehouse Stores the Address of the Warehouse Stores the Phone of the Warehouse Stores the Email of the Warehouse Stores the Fax of the Warehouse

Field Name Factory_Id FactoryName Address Phone Email Fax

Data Type int varchar(100) text varchar(20) varchar(200) varchar(50)

Null No No No No Yes Yes

Table :Factory_tbl Key References Tables Pk

Description Stores the identification number of the factory Stores the name of the factory Stores the Address of the factory Stores the Phone of the factory Stores the Email of the factory Stores the Fax of the factory

Table :Invoice_tbl

eProject

Page 36

AUTO ANCILLARIES LIMITED


Field Name Invoice_Id Employee_Id Customer_Id Order_Id WareHouse_Id SumMoney InvoiceDate Data Type varchar(50) varchar(30) bigint varchar(20) int float datetime Null No No No No No No No Key Pk Fk Fk Fk Fk Employee_tbl Customer_tbl Order_tbl WareHouse_tbl References Tables Description Stores the identification number of the invoice Stores the identification number of the employee Stores the identification number of the customer Stores the identification number of the purchasing order Stores the identification number of the warehouse Stores the total value of the goods indicated by the invoice Stores the date when the invoice was input

Field Name Factory_Id Customer_Id Rating InforRating PayNotInTime

Data Type int bigint Int text int

Null No No Yes Yes Yes

Table :Rate_tbl Key References Tables Pk Factory_tbl Pk Customer_tbl

Description Stores the identification number of the factory Stores the identification number of the customer Stores the rating level of the customer the factory gave Stores the rating information given Stores the quantity of certificates of payment which are expired

Field Name Product_Id Customer_Id FeedbackInfor Rating RatingDate

Data Type bigint bigint text int Datetime

Null No No No No No

Table :FeedBack _tbl Key References Tables Pk Product_tbl Pk Customer_tbl

Description Stores the identification number of the product Stores the identification number of the customer Stores the feedback information Stores the rating level of the product the customer gave Stores the date when the rating was given

Field Name Reject_Id Customer_Id RejectDate Notes

Data Type varchar(20) bigint datetime text

Null No No No Yes

Table :Reject_tbl Key References Tables Pk Fk Customer_tbl

Description Stores the identification number of the merchandise rejecting order Stores the identification number of the customer Stores the date when the merchandise rejecting order was input Stores the notes about the merchandise rejecting order

eProject

Page 37

AUTO ANCILLARIES LIMITED


Field Name Payment_Id Employee_Id Customer_Id PaymentDate Data Type varchar(20) varchar(30) bigint Datetime Null No No No No Table :Payment_tbl Key References Tables Pk Fk Fk Employee_tbl Customer_tbl Description Stores the identification number of the certificate of payment Stores the identification number of the employee Stores the identification number of the customer Stores the date when the certificate of payment was input

Field Name Outstanding_Id Invoice_Id Employee_Id Customer_Id OutstandingDate ExpireDate Debts Status

Data Type Varchar(50) Varchar(50) Varchar(50) Varchar(50) Datetime Datetime Float Bit

Null No No No No No No No No

Table :Outstanding_tbl Key References Tables Pk Fk Fk Fk Invoice_tbl Employee_tbl Customer_tbl

Description Stores the identification number of the debt Stores the identification number of the invoice Stores the identification number of the employee Stores the identification number of the customer Stores the date when the debt was input Stores the date when the debt would expire Stores the debts the customer had to pay for a specific invoice Indicate whether the debt is acquitted

Field Name Order_Id Product_Id Notes

Data Type varchar(20) bigint Text

Null No No Yes

Table :OrderDetails_tbl Key References Tables Pk Order_tbl Pk Product_tbl

Description Stores the identification number of the purchasing order Stores the identification number of the product Stores the notes about the purchasing order

Field Name Invoice_Id Batch_Id Discount Price Notes

Data Type varchar(50) int float float Text

Null No No No No Yes

Table :InvoiceDetails_tbl Key References Tables Pk Invoice _tbl Pk Batch_tbl

Description Stores the identification number of the invoice Stores the identification number of the batch Stores a specific discount for a batch of an invoice Stores the real price of the batch Stores the notes about the invoice

eProject

Page 38

AUTO ANCILLARIES LIMITED


Field Name Reject_Id Batch_Id Notes Data Type varchar(20) int Text Null No No Yes Table :RejectDetails_tbl Key References Tables Pk Reject_tbl Pk Batch_tbl Description Stores the identification number of the merchandise rejecting order Stores the identification number of the batch Stores the notes about the merchandise rejecting order

Field Name Imported_Id WareHouse_Id Employee_Id ImportedDate

Data Type varchar(20) int varchar(30) datetime

Null No No No No

Table :Imported_tbl Key References Tables Pk Invoice _tbl Fk Fk WareHouse_tbl Employee_tbl

Description Stores the identification number of the merchandise importing order Stores the identification number of the warehouse Stores the identification number of the employee Stores the date when the merchandise importing order was input

Field Name Outstanding_Id Payment_Id Payment Notes

Data Type varchar(20) varchar(20) float text

Null No No No Yes

Table :PaymentDetails_tbl Key References Tables Pk Outstanding_Id Pk Payment_Id

Description Stores the identification number of the debt Stores the identification number of the certificate of payment Stores the amount of money paid by the customer for a payment transaction Stores the notes about the payment transaction

eProject

Page 39

AUTO ANCILLARIES LIMITED

I.

Relatioship Diagram

1.

Overview:

eProject

Page 40

AUTO ANCILLARIES LIMITED

eProject

Page 41

AUTO ANCILLARIES LIMITED

2. User:

eProject

Page 42

AUTO ANCILLARIES LIMITED

3. Import :

eProject

Page 43

AUTO ANCILLARIES LIMITED

4.Order :

eProject

Page 44

AUTO ANCILLARIES LIMITED

5. Invoice :

eProject

Page 45

AUTO ANCILLARIES LIMITED

6. Outstanding Payment :

eProject

Page 46

AUTO ANCILLARIES LIMITED

7. Reject :

eProject

Page 47

AUTO ANCILLARIES LIMITED

8. Feedback :

eProject

Page 48

AUTO ANCILLARIES LIMITED

VII. FLOW OF APPLICATION


Display Welcome page

Click on Login label

Display Login Screen

Welcome Screen

Display Login Screen

Input User name and Password

Invalid User name or Password

No

Valid

Yes

Display Admin Home Screen

Admin

Check Role

User

Display User Home Screen

Login Screen
eProject Page 49

AUTO ANCILLARIES LIMITED

Display Admin Home Screen

Select Menu Items

Display Desired Screen

Admin Home Screen

ADMIN

User Management

Employee Management

Admins Menu

Display User Home Screen

Select Menu Items

Display Desired Screen

eProject

Page 50

AUTO ANCILLARIES LIMITED


User Home Screen

DEALER/ OEM

Manage profile

View Products information

Order Products

View Invoices

View Outstanding state

View Payment

Rate Products

Reject Products

Dealers Menu

MEMBER

View Products

Rate Products

Download manual support

Manage Profile

Members Menu

WAREHOUSE SUPERVISOR

Manage Profile

Manage Products

Manage Importing Order

Manage Invoices

Manage order

Warehouse supervisors Menu

eProject

Page 51

AUTO ANCILLARIES LIMITED


ACCOUNTANT

Manage Profile

Manage Outstanding

Manage Payment

Accountants Menu

MANAGER

Manage Profile

Rate customers

View business state

Customers Menu

eProject

Page 52

AUTO ANCILLARIES LIMITED


VIII. SITEMAP

User Logs in ( Login_page.jsp )

Error Message (Error.jsp)

No

Valid?

Yes

Check role

Admin home page (Admin_home_page.jsp)

Member (Member_homepage .jsp)

Manager (Manager.jsp)

Accountant (Accountant.jsp)

Dealer/OEM (Dealer_homepage.jsp)

Warehouse supervisor (Warehouse_supervisor.jsp)

Admin home page (Admin_home_page.jsp)

1. Manage User 2. Manage Employee

User_Managerment.jsp Employee_Managerment.jsp

D ealer /O M E (D ealer _hom epage

.jsp )

1. M anage profile 2.V iewP roducts Inform ation 3.O rder P roducts 4.V iewInvoices 5.V iewO utstanding state 6.V iewP aym ent 7.R P ate roducts 8.R eject P roducts

D ealer _profile .jsp V iew _product .jsp O rder .jsp V iew _invoice .jsp V iew _outstanding .jsp V iew _paym ent .jsp R ate _product .jsp R eject _product .isp

eProject

Page 53

AUTO ANCILLARIES LIMITED


Member (Member_homepage.jsp)

1. View Products 2.Rate Products 3.Download manual support 4.Manage Profile

View_product.jsp Rate_product.jsp Support.jsp Member_profile.jsp

Manager (Manager.jsp)

1.Manage Profile 2.Rate customers 3.View business state

Manager_profile.jsp Rate_customer.jsp View_bussiness.jsp

Warehouse supervisor (Warehouse_supervisor.jsp)

1.Manage Profile 2.Manage Products 3.Manage Importing 4.Manage Order 5.Manage Invoice

WarehouseEmp_profile.jsp Manage_product.jsp Import.jsp View_Order.jsp Invoice.jsp

Accountant (Accountant.jsp)

1.Manage Profile 2.Manage Oustanding 3.Manage Payment

Accountant_profile.jsp Manage_oustanding.jsp Manage_payment.jsp

eProject

Page 54

AUTO ANCILLARIES LIMITED

Chapter 3: Web design


I. Web electric commerce 1) Customer

Detail Product Page : linkBig :

View Product Page : linkDetails : link to Detail Product Page linkRate : link to Rate Product Page

eProject

Page 55

AUTO ANCILLARIES LIMITED

Rate Product Page : areaInfo : rate information of the customer for a specific product radioRate1 : set rating level of the product equal to 1 radioRate2 : set rating level of the product equal to 2 radioRate3 : set rating level of the product equal to 3 radioRate4 : set rating level of the product equal to 4 radioRate5 : set rating level of the product equal to 5 BtnSave : update database(Rate_tbl) BtnCancel : set areaInfo blank, radioRate5 checked

2) Dealer

Oustanding List Page : GridDebt :view debt details (OutstandingID,InvoiceID,SumMoney,SumPayed,Discount,Status) txtCus: the name of the Customer which those debts belong to linkPayment : link to Payment Page

eProject

Page 56

AUTO ANCILLARIES LIMITED

Order Page : txtID : ID of the new purchasing order txtCus : the name of the customer who order merchandises txtDate: the Order_Date cmbProduct : lists the name of the Products for the customer to order txtQuantity: quantity of the Product the customer want to order txtPrice : price of the product GridOrder :view details of the purchasing order(ProductID,ProductName,Quantity,Price) cbDelete :checked if wanting to delete an ordering row in the new purchasing order BtnAdd : add an ordering row in the new purchasing order BtnDelete : delete ordering rows which are checked in the new purchasing order btnSave : save the new purchasing order,update Order_tbl and DetailsOrder_tbl

Invoice Page Invoice ID : Order ID Product Name Quantity Order Date Ware House

Invoice Page : GridInvoice :view invoice details of the corresponding customer(InvoiceID,ProductName,Quantity,OrderDate,Warehouse) txtID: the ID of the Invoice

eProject

Page 57

AUTO ANCILLARIES LIMITED

II. Web Admin 1) Admin

Customer List Page : BtnViewD ata : refresh

gridCustomer after deleting BtnDelete : delete a customer -> changing status in Customer_tbl GridCustomer :view data of a customer (ID,Name,Role,Address,Role) cbDelete :checked if wanting to delete a customer linkAddRole : link to Role Page

Role Page : txtRoleID : create a new Role ID Page 58

eProject

AUTO ANCILLARIES LIMITED


txtRoleName : create the name of the new Role BtnSave : create a new role in Role_tbl, update an existing role BtnCancel : set txtRoleID and txtRoleName blank

C h a n g e P a ss w o rd P a g e E m p l o y e e ID : O ld P as s w o r d : N ew P as sw ord :

U p d a te

C ancel

ChangePasswordPage : txtEmpID : ID of the employee the admin want to change txtOldPassword : the Old Password of the employee txtNewPassword : the new Password of the employee BtnCancel : set all the textboxes blank BtnUpdate : update the password of an existing employee

Employee List Page : BtnViewData : refresh gridEmp after registering a new employee GridEmp :view data of an employee (ID,Name,Address,Phone,Type) linkRegister : link to Register Employee Page linkChangePass : link to ChangePasswordPage linkType : link to Type Page

eProject

Page 59

AUTO ANCILLARIES LIMITED

Register Employee Page : txtEmpID : ID of the new employee txtPass : password of the new employee txtConfirm : confirm the password of the new employee txtFName : First Name of the new employee txtLName : Last Name of the new employee txtAddress : address of the new employee txtPhone : phone of the new employee txtEmail : email of the new employee cmbType : type of the new employee BtnCancel : set all the textboxes blank BtnRegister : create a new employee,updating the Employee_tbl

Type Page : txtTypeID : create a new Type ID txtTypeName : create the name of the new Type BtnSave : create a new role in Type _tbl, update an existing type BtnCancel : set txtTypeID and txtTypeName blank

eProject

Page 60

AUTO ANCILLARIES LIMITED

2) Accountant

Outstanding Page : txtID : ID of the new debt txtEmp : name of the employee cmbCus : name of the Customer cmbInvoice : ID of the corresponding Invoice txtDebts : the amount of money the customer have to pay txtOutDate : the date when the debt is input txtExpire : the date when the debt will expire BtnSave : create a new debt in Outstanding _tbl

Outstanding List Page Check New Outstanding Check Payment View Data Outstanding ID Invoice ID Custom er Outstanding Date Status

Outstanding List Page : BtnViewData : refresh gridOut after create a new debt GridEmp :view data of outstanding(ID,InvoiceID,Customer,Date,Status) linkCheck New: link to Outstanding Page linkCheck Payment: link to Payment Page

eProject

Page 61

AUTO ANCILLARIES LIMITED


Payment Page View Data Payment ID Outstanding ID Customer Payed Status

Payment Page : BtnViewData : refresh gridPay after create a new certificate of payment GridPay :view data of certificates of payment (PaymentID,OutstandingID,Customer,Payed,Status)

Payment Page txtID : ID of the new certificate of payment txtEmpName : the name of the Employee who input the certificates of payment txtDate: the Oustanding_Date txtPay: amount of money being paid txtOustandingID : ID of the corresponding debt areaNotes : Notes about the new certificate of payment BtnPay : create a new certificate of payment in Payment_tbl,update Payment_tbl and DetailsPayment_tbl BtnCancel : set all the textboxes and textarea blank

3) SUPERVISOR

eProject

Page 62

AUTO ANCILLARIES LIMITED

Warehouse List Page : linkWarehouse : link to Warehouse Page linkFactory : link to Factory Page BtnViewData : refresh gridWarehouse after adjusting GridWarehouse :view data of a warehouse (ID,WarehouseName,FactoryName,Address,Phone) linkAddRole : link to Role Page

Warehouse Page txtID : ID of the warehouse txtName : name of the warehouse cmbFactory : list the names of the Factories available txtAddress : address of the warehouse txtPhone : phone of the warehouse txtEmail : email of the warehouse txtFax : fax of the warehouse BtnSave : Save the new warehouse detail in Warehouse_tbl, update an existing warehouse in Warehouse_tbl BtnCancel : set all the textboxes blank

eProject

Page 63

AUTO ANCILLARIES LIMITED

Category Page : txtID : ID of the Category txtName : create the name of the new Category BtnSave : create a new Category detail in Category _tbl, update an existing Category in Category _tbl BtnCancel : set txtID and txtName blank

Product Page : txtProductID : ID of the product txtName : name of the product cmbCategory : list the names of the categories available txtRefPrice : reference price of the Product txtUnit : unit of the Product txtPath : image path of the Product btnBrowse : choose the image path from the folder lists areaDes : description of the Product txtInfo : the technology information of the Product areaDes : notes about the Product Page 64

eProject

AUTO ANCILLARIES LIMITED


BtnSave : Save the new product detail in Product_tbl , update an existing Product in Product_tbl BtnCancel : set all the textboxes and textareas blank

Order Page Customer : Order ID Product Invoice Quantity Order Date

Order Page : cmbCus : list the name of the customers available GridOrder :view details of the purchasing order(OrderID,ProductName,Quantity,OrderDate) of the corresponding customer cbStatus : whether the purchasing order is solved btnInvoice : link to Invoice Page

Invoice Page : txtID : ID of the new invoice cmbWarehouse : lists the name of the warehouses for the warehouse supervisor to choose txtDate: the Invoice_Date txtCus : the name of the customer cmbOrder : lists the ID of the Orders availble (not solved) cmbProduct : lists the name of the products available cmbBatch : lists the ID of the batches available Page 65

eProject

AUTO ANCILLARIES LIMITED


txtPrice : the real price of the batch txtDiscount: specific discount for a batch of the invoice GridInvoice :view details of the invoice (OrderID,ProductName,Quantity,Price) cbDelete :checked if wanting to delete a invoice detail in the new invoice txtTotal : the total value of the goods indicated by the invoice BtnAdd : add a invoice detail in the new invoice BtnDelete : delete invoice details which are checked in the new invoice btnSave : save the new invoice,update Invoice_tbl and DetailsInvoice_tbl

Import Page : txtID : ID of the new the merchandise importing order cmbWarehouse : lists the name of the warehouses for the warehouse supervisor to choose txtBatchID : the ID of the batch btnNew : create a new batch in Batch_tbl cmbProduct : lists the name of the products available txtDate: the Import_Date txtBegin: the beginning number of the series the batch belongs to txtEnd: the ending number of the series the batch belongs to areaNotes : notes about the merchandise importing order GridImport :view details of the merchandise importing order (BatchID,ProductName,BeginSeries,EndSeries) cbDelete :checked if wanting to delete an merchandise importing detail in the new merchandise importing order BtnAdd : add an merchandise importing detail in the new merchandise importing order BtnDelete : delete merchandise importing details in the new merchandise importing order btnSave : save the new merchandise importing order, update Imported_tbl and Batch_tbl

eProject

Page 66

AUTO ANCILLARIES LIMITED

Factory Page : txtID : ID of the factory txtName : name of the factory txtAddress : address of the factory txtPhone : phone of the factory txtEmail : email of the factory txtFax : fax of the factory BtnSave : Save the new factory detail in Factory _tbl, update an existing factory in Factory _tbl BtnCancel : set all the textboxes blank

Product List Page : linkAdd : link to Product Page linkCategory : link to Category Page BtnViewData : refresh gridProduct after adjusting BtnDelete : updating status of the product ( whether being produced or not) GridProduct :view product details (ID,Name,RefPrice,Category) cbDelete :checked if wanting to changing status of a product

eProject

Page 67

AUTO ANCILLARIES LIMITED

Chapter 4: USER GUIDE & TASK SHEET


I. USER GUIDE 1. System Requirement - Operating system : Win XP or higher - Database : SQL Server 2005 - Web Server : Jboss 4.2.2 - Web Browser : IE6.0 or higher , Firefox3.0 or higher - Software : J2sdk1.6 or higher 2. Install and Run Application - Deploy AAL.ear in Jboss - Execute the jsp pages

eProject

Page 68

AUTO ANCILLARIES LIMITED

II.TASK SHEET
Project Ref.No: Auto Ancilary LTD Sr. Task No 1. 2. 3. Analysis Data Flow Diagarm Database Design Project Title: Activity Plan Prepared By: All Member ACCP0611 A-18 ACCP0611 A-09 ACCP061005 ACCP0611 A-15 ACCP0611 A-09 ACCP0611 A-15 ACCP0611 A-15 ACCP0611 A-09 ACCP0611 A-15 ACCP061005 ACCP0611 A-18 ACCP0611 A-09 Date of Preparation of Activity Plan : Actual Start Date 30-10-2008 01-11-2008 01-11-2008 Actua l Days 2 3 8 Team Mate Name All Member Nguyen Ho Duong Mai Thanh Tien Trien Ngo Thanh Lam Nguyen Thi Tu Quynh Mai Thanh Tien Trien Nguyen Thi Tu Quynh Ngo Thanh Lam Mai Thanh Tien Trien Nguyen Thi Tu Quynh Ngo Thanh Lam Nguyen Ho Duong Mai Thanh Tien Trien Nguyen Thi Tu Quynh Nguyen Ho Duong Ngo Thanh Lam Status Completed Completed Completed

AAL AAL AAL

Sitemap & flow application

AAL

06-11-2008

Completed

Interface Design

AAL

07-11-2008

Completed

6 7.

Design template Implement Warehouse supervisor role Implement Accountant Implement Dealer/OEM Implement Admin manager , member

AAL AAL

09-11-2008

Completed

8. 9.

AAL AAL

10

AAL

eProject

Page 69

AUTO ANCILLARIES LIMITED

eProject

Page 70

You might also like