eproject - sales and purchase management system for mobile shop
DESCRIPTION
eProject - Sales and Purchase Management System for Mobile ShopTRANSCRIPT
Curriculum code: ACCPI11-6608-ACE
Centre Name: ACE-HCMC-3-FPT
Address:131 No Trang Long street , Ward 12 , BinhThanh district, HCMC, VN
Sales and Purchase Management
System for Mobile Shop
Design Document
April 2013
Faculty: Tran PhuocSinh
Batch No.: F3-11-1208-S1
Group No.: 3
Students: Fullname Roll No.
1. NGUYEN NGOC VAN PHONG STUDENT683201
2. NGUYEN THANH NHAN STUDENT684347
3. CAO DUY TUAN STUDENT681982
4. TRAN MINH TRUNG STUDENT683938
6. LE TUAN AN STUDENT556489
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
2
TABLE OF CONTENTS
REVIEW 1 ...................................................................................................................................7
1 -Problem Definition ..................................................................................................................8
1.1.Introduction ............................................................................................................................8
1.2. Existing Scenario ...................................................................................................................8
1.3. Proposed Solution .................................................................................................................8
2 -Customer Requirement Specification ......................................................................................9
2.1.Users of System ......................................................................................................................9
2.2. Functional Requirements .......................................................................................................9
2.2.1. Admin .................................................................................................................................9
2.2.2. Employee ............................................................................................................................9
2.3. System Requirements ............................................................................................................10
2.3.1. Hardware Requirements .....................................................................................................10
2.3.2. Software Requirements ......................................................................................................10
Review 1 - Task Sheet ..................................................................................................................11
REVIEW 2 ...................................................................................................................................12
3 - Architecture and Design of the Project ...................................................................................13
4 - Algorithms .............................................................................................................................14
4.1. Login Algorithm ..................................................................................................................14
4.2. Create Employee Account Algorithm ...................................................................................15
4.3. Insert Supplier Algorithm ......................................................................................................16
4.4. Update Supplier Algorithm ...................................................................................................17
4.5. Delete Supplier Algorithm ....................................................................................................18
4.6. Insert Product Algorithm .......................................................................................................19
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
3
4.7. Update Product Algorithm ....................................................................................................20
4.8. Delete ProductAlgorithm ......................................................................................................21
4.9.Change Password Algorithm ..................................................................................................22
4.10. Make Customer List Algorithm...........................................................................................23
4.11. Make Invoice Algorithm .....................................................................................................24
5 -Process Diagrams ....................................................................................................................25
5.1. Employee...............................................................................................................................25
5.2. Admin ...................................................................................................................................26
6 - Data Flow Diagram (DFD) .....................................................................................................27
6.1. DFD Level 0 – Context Diagram ..........................................................................................28
6.2. DFD Level 1 ..........................................................................................................................29
6.3. DFD Level 2 ..........................................................................................................................30
7 - Entity Relationship (E-R) Diagram .........................................................................................31
7.1. Entities...................................................................................................................................31
7.1.1. User ....................................................................................................................................31
7.1.2. Customer ............................................................................................................................32
7.1.3. Supplier ..............................................................................................................................32
7.1.4. Product ...............................................................................................................................33
7.1.5.Functions .............................................................................................................................33
7.1.6.Sales ....................................................................................................................................34
7.2. E-R Diagram .........................................................................................................................35
Review 2 - Task Sheet ..................................................................................................................36
REVIEW 3 ...................................................................................................................................37
8 - Database Design/Structure ......................................................................................................38
8.1. Data Diagram ........................................................................................................................38
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
4
8.2. Tables ....................................................................................................................................39
8.2.1.[User] Table ........................................................................................................................39
8.2.2. Customer ............................................................................................................................39
8.2.3. Supplier ..............................................................................................................................39
8.2.4. [Function] Table .................................................................................................................40
8.2.5. Product Table .....................................................................................................................40
8.2.6. Sales Table .........................................................................................................................41
8.2.7. Invoice Table ......................................................................................................................41
8.3. Table Constraints ...................................................................................................................42
9 - GUI Design .............................................................................................................................43
9.1. Main ......................................................................................................................................43
9.1.1. Main Frame ........................................................................................................................43
9.1.2. Login Frame .......................................................................................................................43
9.1.3. Configure Frame ................................................................................................................44
9.2. Employee ..............................................................................................................................45
9.2.1. Employee Main Frame ......................................................................................................45
9.2.2. Change Password Frame ...................................................................................................46
9.2.3. Customer Management Frame ..........................................................................................47
9.2.4. Insert Customer Frame ......................................................................................................48
9.2.5. Edit Customer Frame..........................................................................................................50
9.2.6. Sales Management Frame ..................................................................................................52
9.3. Admin ....................................................................................................................................54
9.3.1. Admin Main Frame ............................................................................................................54
9.3.2. User Account Management Frame ....................................................................................55
9.3.3. Create Account Frame .......................................................................................................56
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
5
9.3.4.Edit Account Frame ...........................................................................................................57
9.3.5.About us ..............................................................................................................................58
9.3.6.Supplier Management Frame .............................................................................................59
9.3.7.Insert Supplier Frame .........................................................................................................60
9.3.8.Edit Supplier Frame ...........................................................................................................61
9.3.9. Product Management Frame .............................................................................................62
9.3.10. Insert Product Frame .......................................................................................................63
9.3.11. Edit Product Frame ...........................................................................................................65
9.3.12. Product Details Frame ......................................................................................................67
9.3.13. Report Management Frame ..............................................................................................68
9.3.14.Employee Report ...............................................................................................................69
9.3.15. Product Report ..................................................................................................................69
9.3.16. Supplier Report ...............................................................................................................69
9.3.17. Sales Report......................................................................................................................70
9.3.18. Customer Report .............................................................................................................70
Review 3 - Task Sheet ................................................................................................................71
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
6
This is to certify that
Mr. NGUYEN NGOC VAN PHONG
Mr. NGUYEN THANH NHAN
Mr. TRAN MINH TRUNG
Mr. CAO DUY TUAN
Mr. LE TUAN AN
Have successfully Designed & Developed
Sales and Purchase Management System for
Mobile Shop
Submitted by:
TRAN PHUOC SINH
Date of Issue:
Authorized Signature:
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
7
REVIEW 1
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
8
1 - Problem Definition
1.1. Introduction
The project Sales & and purchase management system for mobile is to develop software
based information of Mobile shopping. In global business market the mobile is most
important accessory in real life. Visualizing the huge opportunity, this is an effort to
maximize the business through the development of this software and keeping the data and
thus increasing the customer base from the local as well as global markets around the world.
Nowadays software is a prominent tool of marketing mantra. With the advent of the
software technologies, world has become a global village. Every year, millions more people
around the world are added to the existing customer base. So considering a big hike in the
revenue in this booming sector and one of the successful businesses through this software
one should be proud to have such a technical deal.
1.2. Existing Scenario
Earlier all this transaction is done manually which requires lot of paper work. Manual
works make the maintenance difficult and also increases possibility of the discrepancies in
data. Even Data retrieving also becomes hectic with this system. To avoid the wastage of
time, company has approached you to make the Automated System.
1.3. Proposed Solution
- To be the user of the system you need a registration.
- On each Mobile phone a fixed commission is charged by the company, which is being
deducted from the rate as the product was sold.
- The user information is kept secret from other users as a company policy because the
whole business is the game of contract.
- When user visits the shown with different offers and advertisements through which he
can update his knowledge regarding the Mobile phone available for sale. Besides that he can
search for specified Mobile phone in our database, if he is interested and needs to book a
Mobile phone or to sale on then he needs a registration to be the member.
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
9
2 - Customer Requirement Specification
2.1. Users of System
- Admin
- Employee
2.2. Functional Requirements
2.2.1. Admin
a. Report
ITEM REPORT: reportdetails and status of the products.
SALES REPORT:report details of the sales invoice.
PURCHASE REPORT: report details of the orders.
EMPLOYEE REPORT: report details of the employees.
CUSTOMER REPORT: report details of the customers.
b. Manager
Insert, Update, Delete datails of the products.
2.2.2. Employee
a. Login system
Login to system by account, link to the main page.As user id rules the system so a person
is known by his uniqueness of his user id. As it is to provide the viable candidate system, so
the user id is being validated with password in different cases to validate the genunity of the
candidate.This module keeps the status of who and when logged in and for which purpose
and how much time.
b. Make the list of customer details
c. Transactions
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
10
SALES: invoiced sales.
PURCHASE: up orders according to customer requirementsif there is no inventory of
products and delete orders which are complete.
2.3. System Requirements
2.3.1. Hardware Requirements
- A minimum computer system that will help you access all the tools in thecourses is a
CoreDuo or better.
- 1G of RAM or better.
2.3.2. Software Requirements
- Java Runtime Environment (JRE) 6
- MS SQL Server 2008
- Window XP or higher
Development Software
JDK 6 or better
Netbeans7.8.1 or better
Java SE 6 or better
MS SQL Server 2008
Technology
Sqljdbc4.jar
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
11
Review 1 : Task Sheet
Project Ref. No.:
eProject Title
Date of Preparation of Activity Plan
Sr.
No. Task
Actual
Start
Date
Actual
Days
Team
Member
Names
Status
01 Problem
Definition Sales and Purchase
Management System
for Mobile Shop
18/0
4/2
01
3
02
All
mem
ber
s
Co
mp
lete
d
02
Customer
Requirement
Specification
03 System
Requirements
Activity Plan Prepared By: Group 3 April 20, 2013
Group Leader Faculty
Nguyen Ngoc Van Phong Tran PhuocSinh
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
12
REVIEW 2
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
13
3 - Architecture and Design of the Project
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
14
4 - Algorithms
4.1. Login Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
15
4.2. Create Employee Account Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
16
4.3. Insert Supplier Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
17
4.4. Update Supplier Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
18
4.5. Delete Supplier Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
19
4.6. Insert Product Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
20
4.7. Update Product Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
21
4.8. Delete Product Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
22
4.9. Change PasswordAlgorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
23
4.10. Make Customer List Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
24
4.11. Make Invoice Algorithms
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
25
5 - Process Diagrams
5.1. Employee
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
26
5.2. Admin
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
27
6 - Data Flow Diagram (DFD)
6.1. DFD Level 0 – Context Diagram
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
28
6.2. DFD Level 1
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
29
6.3. DFD Level 2
DFD Level 2 – User Manager
DFD Level 2 – Login Manager
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
30
DFD Level 2 – Transaction Manager
DFD Level 2 – Report Manager
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
31
DFD Level 2 – Customer Manager
7 - Entity Relationship (E-R) Diagram
7.1. Entities
7.1.1. User
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
32
7.1.2. Customer
7.1.3. Supplier
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
33
7.1.4. Product
7.1.5. Function
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
34
7.1.6. Sales
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
35
7.2. E-R Diagram
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
36
Review 2 : Task Sheet
Activity Plan Prepared By: Group 3 April 28, 2013
Group Leader Faculty
Nguyen Ngoc Van Phong Tran PhuocSinh
Project Ref. No.:
eProject Title
Date of Preparation of Activity Plan
Sr.
No. Task
Actual
Start
Date
Actual
Days
Team
Member
Names
Status
01 Architecture
Sales and Purchase
Management System
for Mobile Shop
21/0
4/2
01
3
07
All
mem
ber
s
Co
mp
lete
d
02 Algorithms
03 Process Diagrams
04 DFD Diagrams
05 E-R Diagrams
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
37
REVIEW 3
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
38
8- Database Design/Structure
8.1. Data Diagram
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
39
8.2. Tables
8.2.1. [User] Table
Sr.
No. Field Name
Data
Type Size Null
Default
Value
Key Table-Field
Ref Description
1 [User_ID] varchar 10 No PK The unique id of user
2 User_Password varchar 1000 No The password of user
3 User_Type varchar 10 No The type of user
4 [User_Name] varchar 50 No The name of user
5 User_Gender varchar 10 Yes The gender of user: male
or female
6 User_Address varchar 100 Yes The address of user
7 User_Phone varchar 20 Yes The phone of user
8 User_Email varchar 100 Yes The email of user
8.2.2. Customer Table
Sr.
No. Field Name
Data
Type Size Null
Default
Value Key
Table-Field
Ref Description
1 Cus_ID int No PK The unique number of
customer
2 Cus_Name varchar 50 No The name of customer
3 Cus_IDNo int No
4 Cus_DoB date Yes
5 Cus_Gender varchar 10 Yes The gender of customer :
male or female
6 Cus_Address varchar 100 Yes The address of customer
7 Cus_Phone varchar 20 Yes The phone of customer
8 Cus_Email varchar 100 Yes The email of customer
8.2.3. Supplier Table
Sr.
No.
Field Name Data
Type Size Null
Default
Value
Key Table-Field
Ref Description
1 Sup_ID int No PK The unique number of
supplier
2 Sup_Name varchar 50 No The name of supplier
3 Sup_Address varchar 100 Yes The address of supplier
4 Sup_Phone varchar 20 Yes The phone of supplier
5 Sup_Email varchar 100 Yes The email of supplier
6 Sup_Web varchar 100 Yes The website of supplier
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
40
8.2.4. [Function] Table
Sr.
No.
Field Name Data
Type Size Null
Default
Value
Key Table-Field
Ref Description
1 Func_ID int No PK The unique number of
function
2 Radio bit Yes 1: Yes, 0: No
3 CPU varchar Yes The CPU of phone
4 Wifi bit Yes 1: Yes, 0: No
5 Camera bit Yes 1: Yes, 0: No
6 Player bit Yes 1: Yes, 0: No
7 Recorder bit Yes 1: Yes, 0: No
8 Video bit Yes 1: Yes, 0: No
9 OS varchar 50 Yes The OS of phone
10 Screen varchar 50 Yes The size of phone screen
11 Mem varchar 50 Yes The memory of phone
12 Other varchar 2000 Yes Other details of phone
8.2.5.Product Table
Sr.
No. Field Name
Data
Type Size Null
Default
Value Key
Table-Field
Ref Description
1 Pro_ID int No PK The unique number of
product
2 Pro_Name varchar 50 No The name of product
3 Sup_ID int No FK Supplier.Su
p_ID
The ID of Supplier
supply Product
4 Pro_Price money No The price of product
5 Func_ID int No FK [Function].F
unc_ID
The ID of Product
Function
6 Pro_Image varchar 100 Yes The image of Product
7 Qty varchar 100 Yes The quantity of Product
8 Pro_Color varchar 20 Yes The Color of Product
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
41
8.2.6.Sales Table
Sr.
No.
Field Name Data
Type Size Null
Default
Value
Key Table-Field
Ref Description
1 Sales_ID int No PK The unique number of
Sales
2 [User_ID] varchar 10 No FK [User].[User
_ID]
The id of User
3 Cus_ID int No FK Customer.C
us_ID
The id of Customer
4 [Sum] money Yes The sum of Sales
5 DoC date Yes The date of Sales
8.2.7.Invoice Table
Sr.
No.
Field Name Data
Type Size Null
Default
Value
Key Table-Field
Ref Description
1 Invoice_ID int No PK The unique number of
Invoice
2 Pro_ID int No
FK Product.Pro
_ID The id of Product
3 Sales_ID int No FK Sales.Sales_
ID The id of Sales
4 Cus_Name varchar 50 Yes The name of Customer
5 Pro_Price money Yes The price of Product
6 SQty int Yes The quatity of Product
saled
7 Total money Yes Pro_Price*Qty
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
42
8.3. Table Constraints
Name Add Delete Update
[User] +
[User].[User_ID] not
exist
+
[User].[User_ID] not
exist in Sales
+
[User].[User_ID]
must exist
Supplier +
Supplier.Sup_ID not
exist
+
Supplier.Sup_ID not
exist in Product
+
Supplier.Sup_ID must
exist
[Function] - +
[Function].Func_ID
must exist
+
[Function].Func_ID
must exist
Product +
Supplier.Sup_ID must
exist
[Function].Func_ID
must exist
Product.Pro_ID not
exist
+
Product.Pro_ID not
exist in Invoice
+
Product.Pro_ID must
exist
Customer - +
Customer.Cus_ID not
exist in Sales
+
Customer.Cus_ID
must exist
Sales +
Customer.Cus_ID
must exist
[User].[User_ID]
must exist
Sales.DoC
-
Invoice +
Sales.Sales_ID must
exist
Product.Pro_ID must
exist
+
Sales.Sales_ID not
exist in Sales
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
43
9- GUI Design
9.1. Main
9.1.1. Main frame
No Name Type Validation Event Description Status 1 btnlogin JButton Action
Performed
Open Login frame Enable
2 btnconnect JButton Action
Performed
Open Configure frame Enable
9.1.2. Login
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
44
No Name Type Validation Event Description Status 1 txtID JTextField Not blank Input id of User Enable
2 txtPass JPasswordFiled Not blank Action
Performed
Input password of User Enable
3 cbbRole JComboBox Input role of User Enable
4 btnSubmit JButton Action
Performed
Check account of User
exist in User
Enable
5 btnReset JButton Action
Performed
Reset all text field Enable
9.1.3. Configure Database
No Name Type Validation Event Description Status 1 txtServer JTextField Not blank Input server name Enable
2 txtPort JTextField Not blank Input port Enable
3 txtDatabase JTextField Not blank Input database name Enable
4 txtUsername JTextField Not blank Input SQL Username Enable
5 txtPassword JPasswordFiled Not blank Input SQL pass Enable
6 btnSubmit JButton Action
Performed
Test and Save Enable
7 btnClose JButton Action
Performed
Close this frame Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
45
9.2. Employee
9.2.1. Employee Main Frame
No Name Type Validation Event Description Status 1 btnAccount JButton Action
Performed
Open Employee Details
Frame
Enable
2 btnSales JButton Action
Performed
Open Sales System
Frame
Enable
3 btnCust JButton Action
Performed
Open Customer
Management Frame
Enable
4 btnHelp JButton Action
Performed
Open Help Enable
5 btnAbout JButton Action
Performed
Open About Frame Enable
6 btnLogout JButton Action
Performed
Log out the System Enable
7 btnExit JButton Action
Performed
Exit the System Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
46
8 txtEmplID JTextField Display the ID of
Employee
Disable
9 txtEmplName JTextField Display the Name of
Employee
Disable
10 rbnGender JTextField Display the Gender of
Employee
Disable
11 txtPhone JTextField Display the Phone of
Employee
Disable
12 txtEmail JTextField Display the Email of
Employee
Disable
13 txtAddress JTextField Display the Address of
Employee
Disable
14 btnChangePas
s
JButton Action
Performed
Open Change Password
Frame
Enable
9.2.2. Change Password Frame
No Name Type Validation Event Description Status 1 lblName JLabel Display name of user Enable
2 lblID JLabel Display id of user Disable
3 txtOldPass JPassword Not blank, contain
more than 6 character
KeyPresse
d
Old user’s password Enable
4 txtNewPass JPassword Not blank, contain
more than 6 character
KeyPresse
d
New user’s password Enable
5 txtConfirmPas
s
JPassword Not blank, contain
more than 6
character, same
txtNewPass
KeyPresse
d
Confirm user’s
password
Enable
6 btnSubmit JButton Action
Performed
Test all field is valid,
change user’s password
and close this dialog
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
47
7 btnReset JButton Action
Performed
Clear all field Enable
9.2.3. Customer Management Frame
No Name Type Validation Event Description Status 1 btnInsert JButton Action
Performed
Test all field is valid,
insert customer details
Enable
2 btnUpdate JButton Action
Performed
Test all field is valid,
insert customer details
Enable
3 btnDelete JButton Action
Performed
Test all field is valid,
Delete customer details
Enable
4 tblShowDetails JTable Show all Customer
Details
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
48
9.2.4. Insert Customer Frame
No Name Type Validation Event Description Status 1 txtName JTextField Not blank Customer’s name Enable
2 txtIdentity JTextField Not blank ,must
be 9 digits
“^\\d{9}$”
Customer’s Identity No Enable
3 rbtnMale JRadioButton Check if Customer’s
gender is Male
Enable
4 rbtnFemale JRadioButton Check if Customer’s
gender is Female
Enable
5 dcDoB JDateChosser Customer’s DoB Enable
6 txtAddress JTextArea Not blank, Address of Customer Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
49
7 txtPhone JTextField Not blank, must
begin with 0 and
contain 7 to 9 number
“^0\\d{7,9}$
Phone number of
Customer
Enable
8 txtEmail JTextField Not blank, must be
format [email protected]
Email of Customer Enable
9 btnSave JButton Action
Performed
Test all field is valid,
Save customer details
Enable
10 btnReset JButton Action
Performed
Clear all field, clear
select of rbtnMale
,rbtnFemale
and cdDoB
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
50
9.2.5. Edit Customer Frame
No Name Type Validation Event Description Status 1 txtID JTextField Not blank, must
begin with EM and
contain 3 number
“^Em\\d{3}$”
Customer’s ID Disable
2 txtName JTextField Not blank Customer’s name Enable
3 txtIdentity JTextField Not blank ,must
be 9 digits
“^\\d{9}$”
Customer’s Identity No Enable
4 rbtnMale JRadioButton Check if Customer’s
gender is Male
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
51
5 rbtnFemale JRadioButton Check if Customer’s
gender is Female
Enable
6 dcDoB JDateChosser Customer’s DoB Enable
7 txtAddress JTextArea Not blank, Address of Customer Enable
8 txtPhone JTextField Not blank, must
begin with 0 and
contain 7 to 9 number
“^0\\d{7,9}$
Phone number of
Customer
Enable
9 txtEmail JTextField Not blank, must be
format [email protected]
Email of Customer Enable
10 btnSave JButton Action
Performed
Test all field is valid,
Save customer details
Enable
11 btnReset JButton Action
Performed
Clear all field, clear
select of rbtnMale
,rbtnFemale
and dcDoB
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
52
9.2.6. Sales Management Frame
No Name Type Validation Event Description Status 1 txtEmplID JTextField Not blank, exist in
User
Employee’s ID Disable
2 txtSalesID JTextField Not blank Sales’s ID Disable
3 txtCustName JTextField Not blank Customer’s Name Disable
4 cbbProdID JConboBox exist in Product Product’s ID Disable
5 txtQty JTextField Not blank, > 0 and
<Qty in Product
Quantity of Product
sales
Disable
6 btnNew JButton Action
Performed
Enable all
txtCustNamecbbProdID,
txtQty
Enable
7 btnInsert JButton Action
Performed
Insert record to Invoice
and tblInvoice
Enable btnUpdate,
btnDelete
Enable
8 btnReset JButton Action
Performed
Clear all JTextField
except txtEmplID
Enable
9 btnUpdate JButton Action
Performed
Disable Disable
10 btnDelete JButton Action
Performed
Print the Invoice Disable
11 tblInvoice JTable Mouse
Clicked
Show the details of
Invoice
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
53
No Name Type Validation Event Description Status 1 txtEmplID JTextField Not blank, exist in
User
Employee’s ID Disable
2 txtSalesID JTextField Not blank Sales’s ID Disable
3 txtCustName JTextField Not blank Customer’s Name Enable
4 cbbProdID JComboBox exist in Product Product’s ID Enable
5 txtQty JTextField Not blank, > 0 and
<Qty in Product
Quantity of Product
sales
Enable
6 btnNew JButton Action
Performed
Save record to Sales Enable
7 btnInsert JButton Action
Performed
Insert record to Invoice
and tblInvoice
Enable btnUpdate,
btnDelete
Enable
8 btnReset JButton Action
Performed
Clear all JTextField
except txtEmplID
Enable
9 btnDelete JButton Action
Performed
Delete the record in
table tblInvoice
Enable
10 btnPrint JButton Action
Performed
Print the Invoice Enable
11 tblInvoice JTable Mouse
Clicked
Show the details of
Invoice
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
54
9.3. Admin
9.3.1. Admin Main Frame
No Name Type Validation Event Description Status
1 btnHome JButton Action
Performed
Open Home frame Enable
2 btnUser JButton Action
Performed
Open User frame Enable
3 btnReport JButton Action
Performed
Open Report frame Enable
4 btnProduct JButton Action
Performed
Open Product frame Enable
5 btnSuplier JButton Action
Performed
Open Supplier frame Enable
6 btnHelp JButton Action
Performed
Open Help frame Enable
7 btnAbout JButton Action
Performed
Open About us frame Enable
8 btnLogout JButton Action
Performed
Log out the system Enable
9 btnExit JButton Action
Performed
Exit the system Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
55
9.3.2. User Account ManagamentFrame
No Name Type Validation Event Description Status 1 btnCreateAcc JButton Action
Performed
Open create account
dialog
Enable
2 btnEditAcc JButton Action
Performed
Open edit account
dialog
Enable
3 txtSearch JTextField Key
Release
Search account id or
account name and
show at tblListAcc
Enable
4 tblListAcc JTable Key
Release
Mouse
Clicked
List Account Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
56
9.3.3. Create Account Frame
No Name Type Validation Event Description Status
1 txtID JTextField Auto initialize when
open create account
dialog
User’s ID Disable
2 txtPass JPassword Not blank, containt
more than 6 character
KeyPressed User’s password Enable
3 txtConfirmPas
s
JPassword Not blank, containt
more than 6
character, same
txtPass
KeyPressed Confirm password of
user
Enable
4 txtName JTextField Not Blank, not
contain number, not
contain special
character
KeyPressed User’s name Enable
5 rbtnMale JRadioButton Check if user’s gender
is Male
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
57
6 rbtnFemale JRadioButton Check if user’s gender
is Female
Enable
7 txtPhone JTextField Not blank, must
begin with 0 and
folow 7 to 9 number
not contain character,
not contain special
character
“^0\\d{7,9}$
KeyPressed Phone number of user Enable
8 txtEmail JTextField Not blank, must be
format [email protected]
KeyPressed Email of user Enable
9 txtAddress JTextArea Not blank, KeyPressed Address of user Enable
10 btnSubmit JButton Action
Performed
Test all field is valid,
create account and
close this dialog
Enable
11 btnReset JButton Action
Performed
Clear all field, set
select cbType item’s
index 0, clear select of
rbtnMale and
rbtnFemale
Enable
9.3.4. Edit Account Frame
No Name Type Validation Event Description Status 1 txtName JTextField Not Blank, not
contain number, not
contain special
character
KeyPressed Name of user Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
58
2 rbtnMale JRadioButton Check if user’s gender
is Male
Enable
3 rbtnFemale JRadioButton Check if user’s gender
is female
Enable
4 txtPhone JTextField Not blank, must
begin with 0 and
folow 7 to 9 number
not contain character,
not contain special
character
“^0\\d{7,9}$
KeyPressed Phone number of user Enable
5 txtEmail JTextField Not blank, must be
format [email protected]
KeyPressed Email of user Enable
6 txtAddress JTextArea Not blank KeyPressed Address of user Enable
7 btnSubmit JButton Test all field is valid,
change information of
user and closethis
dialog
Enable
9.3.5. About us Frame
No Name Type Validation Event Description Status 1 btnClose JButton Action
Performed
Close About us dialog Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
59
9.3.6. Supplier Management Frame
No Name Type Validation Event Description Status 1 btnInsert JButton Action
Performed
Test all field is valid,
insert customer details
Enable
2 btnUpdate JButton Action
Performed
Test all field is valid,
insert customer details
Enable
3 btnDelete JButton Action
Performed
Test all field is valid,
Delete customer details
Enable
4 tblShowDetails JTable Key
Released
Mouse
Clicked
Show all Customer
Details
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
60
9.3.7. Insert Supplier Frame
No Name Type Validation Event Description Status 1 txtName JTextField Not blank Supplier’s name Enable
2 txtAddress JTextArea Not blank, Address of Supplier Enable
3 txtPhone JTextField Not blank, must
begin with 0 and
contain 7 to 9 number
“^0\\d{7,9}$
Phone number of
Supplier
Enable
4 txtEmail JTextField Not blank, must be
format [email protected]
Email of Supplier Enable
5 btnSave JButton Action
Performed
Test all field is valid,
Save Supplier details
Enable
6 btnReset JButton Action
Performed
Clear all field
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
61
9.3.8. Edit Supplier Frame
No Name Type Validation Event Description Status 1 txtName JTextField Not blank Supplier’s name Enable
2 txtAddress JTextArea Not blank, Address of Supplier Enable
3 txtPhone JTextField Not blank, must
begin with 0 and
contain 7 to 9 number
“^0\\d{7,9}$
Phone number of
Supplier
Enable
4 txtEmail JTextField Not blank, must be
format [email protected]
Email of Supplier Enable
5 btnSave JButton Action
Performed
Test all field is valid,
Save Supplier details
Enable
6 btnReset JButton Action
Performed
Clear all field
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
62
9.3.9. Product Management Frame
No Name Type Validation Event Discription Status
1 Pro_Search JTextField Not blank when click
button Go
Information need to
search
Enable
2 btnGo JButton Action
Performed
Search Product
Information
Enable
3 btnInsert JButton Action
Performed
Display Insert Form Enable
4 btnUpdate JButton Action
Performed
Display Update Form Enable
5 btnDelete JButton Not exist in Sale
table
Action
Performed
Delete Product from
database
Enable
6 btnShow JButton Action
Performed
Show Product’s Details Enable
7 JTable1 JTable Key
Released
Mouse
Clicked
Show All Product Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
63
9.3.10. Insert Product Frame
No Name Type Validation Event Description Status
1 Sup_Name JComboBox Supplier Name Enable
2 Pro_Name JTextField Not blank
Length from 3 to
50 characters
Not exsit in
database
Product’s Name Enable
3 Pro_Price JTextField Not blank
Price must be more
than 0
“^\\d+$”
Product’s Price Enable
4 Pro_Image JTextField Not blank
Image must be
exsited in database
Product’s Image Disable
5 btnImage JButton Action
Performed
Display JFileChooser Enable
6 Pro_Status JTextArea Not blank
Length from 10 to
100 characters
Product’s Status Enable
7 Pro_Color JTextField Not blank Product’s Color Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
64
8 btnColor JButton Action
Performed
Display JColorChooser Enable
9 Func_CPU JTextField Not blank Product’s CPU Enable
10 Func_OS JTextField Not blank Product’s Operating
System
Enable
11 Func_Screen JTextField Not blank Product’s Screen Enable
12 Func_Memory JTextField Not blank Product’s Memory Enable
13 Func_Radio JCheckBox Radio Enable
14 Func_Player JCheckBox Player Enable
15 Func_Wifi JCheckBox Wifi Enable
16 Func_Recorde
r
JCheckBox Recorder Enable
17 Func_Camera JCheckBox Camera Enable
18 Func_Video JCheckBox Video Enable
19 Func_Other JTextArea Not blank
Length from 10 to
100 characters
Other of Product Enable
20 btnReset JButton Action
Performed
Clear all data Enable
21 btnInsert JButton Action
Performed
Insert data into database Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
65
9.3.11. Edit Product Frame
No Name Type Validation Event Description Status
1 Pro_ID JTextField Product ID Disable
2 Sup_Name JComboBox Supplier Name Enable
3 Pro_Name JTextField Not blank
Length from 3 to
50 characters
Product’s Name Enable
4 Pro_Price JTextField Not blank
Price must be more
than 0
“^\\d+$”
Product’s Price Enable
5 Pro_Image JTextField Not blank
Image must be
exsited in database
Product’s Image Disable
6 Pro_Quantity JTextArea Not blank
Length from 10 to
100 characters
Product’s Status Enable
7 Pro_Color JTextField Not blank Product’s Color Enable
8 Func_CPU JTextField Not blank Product’s CPU Enable
9 Func_OS JTextField Not blank Product’s Operating
System
Enable
10 Func_Screen JTextField Not blank Product’s Screen Enable
11 Func_Memory JTextField Not blank Product’s Memory Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
66
12 Func_Radio JCheckBox Radio Enable
13 Func_Player JCheckBox Player Enable
14 Func_Wifi JCheckBox Wifi Enable
15 Func_Recorde
r
JCheckBox Recorder Enable
16 Func_Camera JCheckBox Camera Enable
17 Func_Video JCheckBox Video Enable
18 Func_Other JTextArea Not blank
Length from 10 to
100 characters
Other of Product Enable
19 btnReset JButton Action
Performed
Clear all data Enable
20 btnUpdate JButton Action
Performed
Update data in database Enable
21 btnImage JButton Action
Performed
Display JFileChooser Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
67
9.3.12. Product Details Frame
No Name Type Validation Event Description Status
1 ProductTable JTable MouseClicked Show List Product Disable
2 Pro_ID JTextField Product ID Disable
3 Sup_Name JComboBox Supplier Name Disable
4 Pro_Name JTextField Product’s Name Disable
5 Pro_Price JTextField Product’s Price Disable
6 Pro_Color JTextField Product’s Color Disable
7 Func_CPU JTextField Product’s CPU Disable
8 Func_OS JTextField Product’s Operating
System
Disable
9 Func_Screen JTextField Product’s Screen Disable
10 Func_Memory JTextField Product’s Memory Disable
11 Func_Radio JCheckBox Radio Disable
12 Func_Player JCheckBox Player Disable
13 Func_Wifi JCheckBox Wifi Disable
14 Func_Recorder JCheckBox Recorder Disable
15 Func_Camera JCheckBox Camera Disable
16 Func_Video JCheckBox Video Disable
17 Func_Other JTextArea Other of Product Disable
18 bntUpdate JButton Action
Performed
Update Product Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
68
19 btnBack JButton Action
Performed
Back to Product
Management window
Enable
9.3.13. Report Management Frame
No Name Type Validation Event Description Status
1 reportDay JDayChooser Mouse
Clicked
Select day of report Enable
2 btnEmpl JButton Action
Performed
Show the report of the
Employee in select day
Enable
3 btnProd JButton Action
Performed
Show the report of the
Product in select day
Enable
4 btnSupp JButton Action
Performed
Show the report of the
Supplier in select day
Enable
5 btnSales JButton Action
Performed
Show the report of the
Sales in select day
Enable
6 btnCust JButton Action
Performed
Show the report of the
Customer in select day
Enable
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
69
9.3.14. Employee Report
- Show all theemployee on “Select report date”
9.3.15. Product Report
- Show all theproduct on “Select report date”
9.3.16. Supplier Report
- Show all thesupplier on “Select report date”
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
70
9.3.17. Sales Report
- Show all the sales on “Select report date”
9.3.18. Customer Report
- Show all thecustomer on “Select report date”
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
71
Review 3 :Task Sheet
Project Ref. No.:
eProject Title
Date of Preparation of Activity Plan
Sr.
No. Task
Actual
Start
Date
Actual
Days
Team
Member
Names
Status
01 Database
Design
Sales and
Purchase
Management
System for
Mobile Shop
28/0
4/2
01
3
12
All
Members
Co
mp
lete
d
GUI Design
02 First Frame Van
Phong 03 Configure
Frame
04 Login System
Frame
ThanhNh
an
05 Admin Main
Frame
06 User Account
Frame
07 Create Account
Frame
08 Edit Account
Frame
09 About us Frame
10
Supplier
Management
Frame
Duy Tuan 11
Insert Supplier
Frame
12 Edit Supplier
Frame
13
Product
Management
Frame Minh
Trung
14 Insert Product
Frame
Sales and Purchase Management System for Mobile Shop
ACE-HCMC-3-FPT - F3-11-1208-S1 - Group 3
72
15 Edit Product
Frame
16 Product Details
Frame
17
Report
Management
Frame
Van
Phong
18 Employee
Report
Tuan An
19 Product Report
20 Supplier Report
21 Sales Report
22 Customer
Report
23 Employee Main
Frame Van
Phong 24
Sales
Management
Frame
25 Change
Password Frame
ThanhNh
an
26
Customer
Management
Frame
Duy Tuan 27
Insert Customer
Frame
28 Edit Customer
Frame
Activity Plan Prepared By: Group 3 May 10, 2013
Group Leader Faculty
Nguyen Ngoc Van Phong Tran PhuocSinh