Академический Документы
Профессиональный Документы
Культура Документы
Mr: HO BAO LINH, NGUYEN PHAN TRUONG AN, MANH THAI SON, VO THANH TUNG
Submitted by: HO BAO LINH Date of Issue: Jul - 10 - 2010 Authorized Signature: _________
Management
Table of Content
Review 1 REQUIREMENT ANALYZE......................................... 4 1. Problem definition .................................................................... 5 2. Customer requirement specification ......................................... 6 3. Function diagram ...................................................................... 7 Review 2 DATABASE DESIGN .................................................... 8 1. Entity Relationship Diagram .................................................... 9 2. Entity - Attributes .................................................................. 10 3. Table........................................................................................ 12 4. Relationship table ................................................................... 15 5. Data Flow Diagram ................................................................. 16 6. Task sheet................................................................................ 19 Review 3 DESIGN FORM ............................................................ 20 1. Main function .......................................................................... 21 1.1 Main form(Login) .............................................................. 21 1.2 Login form ......................................................................... 23 1.3 Profile Form ....................................................................... 24 1.4 Change pass Form.............................................................. 25 2. Function Admin ...................................................................... 26 2.1 User Manager Form ........................................................... 26 2.2 Add Item and Category Form ............................................ 29 2.3 Change price Form ............................................................ 31 3. Sales Function ......................................................................... 33 3.1 Search Item ........................................................................ 33
Project Group No : 3 Signature Date Prepared by (Student) Approved by (Faculty)
Management
3.2 Produce bills Form ............................................................. 34 3.3 View and Report Inventory Form...................................... 37 3.4 Notice Exception Form ...................................................... 39 4. Sales Manager Function ......................................................... 40 4.1 Check Statistic Form.......................................................... 40 4.2 View Report From Sales Form .......................................... 42 4.3 Create Sales Chart Form .................................................... 43 5. Inventory manager Function ................................................... 44 5.1 Statistics inventory form .................................................... 44 5.2 Create trends Form ............................................................ 46 6. Task sheet................................................................................ 47
Prepared by (Student)
Approved by (Faculty)
Management
Review 1
REQUIREMENT ANALYZE
Prepared by (Student)
Approved by (Faculty)
Management
1. Problem definition
Introduction Camp connection is general stores selling various fast moving consumer goods (FMCG). The store is in existence from almost 5 years and is situated in the heart of the city. Since last 2-3 years it has been doing exceptionally well because of the huge complexes built around the area and people prefer to visit the nearest place to buy various FMCG. The store is able to cater to the need of people but at the same time finding it difficult to manage the sales and stock details. Existing Scenario The owner of the store has employed salesmen, sales manager, and inventory manager. Salesmen look after selling the products to the customers; sales manager is looking after producing the invoices and managing sales related data whereas inventory manager is taking care of stock checking and re-ordering the products. The sales manager and inventory manager maintain the registers of the various records required. But due to increase in sales they are finding it difficult to manage the large amount of transactions which are causing discrepancies in the data. Proposed Solution Now a days use of computers is the best to manage the large amount of data easily and effectively. And hence looking at the situation at the store, the owner of the shop has decided to move a step ahead and make use of computer to maintain the data. At the same time he has also thought of expanding the products in the stores by including the fruits, juices etc. He has thought of development of Sales and Inventory Management System (SIMS) which will store all the information and required data can be retrieved with ease. You are expected to develop a Sales and Inventory Management System (SIMS) so that users can manage the details and admin functionalities. There are registered people in the system: sales people working in the shop, inventory managers, admin. Each one of them may have some exclusive privileges.
Prepared by (Student)
Approved by (Faculty)
Management
User CPU Pentium IV 3.0GHz RAM: 512 MegaByte HDD: 20 GigaByte Java Runtime Environment (JRE) SQL Server 2005
Management
3. Function diagram
BEGIN
Message Login again Username Password
No
Check
Yes
Admin Application
Salesmen Application
Process
Process
Process
Process
END
FlowChat: Sales and Inventory Management System
Project Group No : 3 Signature Date Prepared by (Student) Approved by (Faculty)
Management
Review 2
DATABASE DESIGN
Prepared by (Student)
Approved by (Faculty)
Management
Inventories
m m
contain
contain m
Sales
contain 1 m
Categories
contain
Units
1
Users
Prepared by (Student)
Approved by (Faculty)
Management
2. Entity - Attributes
2.1 Inventory entity
Status ItemID
Name
Inventories
Price
VAT
NumberCurrent
Exception
sales
AddressCus
Payment
Prepared by (Student)
Approved by (Faculty)
Phone
Users
IDCard
Gender
CategoryID
CategoryName
UnitID
UnitName
Prepared by (Student)
Approved by (Faculty)
Management
3. Table
3.1 Inventories table
Name itemID Data int Length 5 Validation primary key Description this is the key field of the Inventories table Name of the item
foreign key
name categoryID
varchar int
30 5
this is key of type of the item this is key of unit of the item Number of such units available currently int the inventory this is price of a item
unitID
int
foreign key
numberCurrent
int
default 0
date
datetime
varchar varchar
Management
varchar
100
this is address of customer this is phone of customer payment modes default 0 promotion money the total amount of the transaction
15 30
status exception
bit varchar
true/false 1000
password
varchar
100
worktype IDCard gender birthOfYear address email phone Project Group No : 3 Signature Date
30 20
amount
int
categoryName
varchar
30
unitName
varchar
30
Prepared by (Student)
Approved by (Faculty)
Management
4. Relationship table
Prepared by (Student)
Approved by (Faculty)
Management
User
User Details
Prepared by (Student)
Approved by (Faculty)
Management
ADMIN APP
User
Add user
User details
Username password
Salesmen App
User details
LOGIN
Report items category-wise
User detail s
Prepared by (Student)
Approved by (Faculty)
Management
User
Commands User information
Check account
Account
Get permission
SQL queries
ResultSet
Process
DFD LEVEL 1-1 Data Process
Prepared by (Student)
Approved by (Faculty)
Management
6. Task sheet
Project Ref. No. Sr. No. Project Title Date of Preparation of Activity Plan Actual Start Date Actual Days Team Member Name Son, Linh Completed 06/07/2010 6 Linh, An, Tung
Task
Status
Prepared by (Student)
Approved by (Faculty)
Management
Review 3
DESIGN FORM
Prepared by (Student)
Approved by (Faculty)
Management
1. Main function
1.1 Main form(Login) There have 4 choices to login Administrator: can control every function in the program (Administrator, Sales, Sales Manager, Inventory Manager). Account of admin is: admin pass: admin. Sales: just can control Sales function . Sales Manager: can use Sales Manager function. Inventory Manager: can use only Inventory Manager function.
Prepared by (Student)
Approved by (Faculty)
Management
Constraint
Event
JMenu
Prepared by (Student)
Approved by (Faculty)
Management
Action Performed
Prepared by (Student)
Approved by (Faculty)
Constraint
Event
ActionPerformed
JTextField
Prepared by (Student)
Approved by (Faculty)
Management
Prepared by (Student)
Approved by (Faculty)
Management
Control Type
Event
JTextField
JButton
2. Function Admin
2.1. User Manager Form Admin can add new user with work type for each user and after that password will be encrypt.
Prepared by (Student)
Approved by (Faculty)
Management
Constraint
Event
JButton
ActionPerformed
Prepared by (Student)
Approved by (Faculty)
Management
Constraint must choice not empty and not blank character not empty must coincide with txtPassword
Event
JTextField txtBirthOfYear txtIDCard txtPhone txtEmail txaAddress rdbMale JRadioButton rdbFemale btnAdd btnReset btnCancel JButton ActionPerformed JTextArea Male or Female 7-17 digital or null vd: a@a.a or null 4 digital or null
Prepared by (Student)
Approved by (Faculty)
Management 2.2. Add Item and Category Form Admin can add new item with all information and change price with change price button.
Constraint
Event
cboUnit txtNumber
Project Group No : 3 Signature Date
JTextField
Prepared by (Student) Approved by (Faculty)
Management
ActionPerformed
MouseClicked
Prepared by (Student)
Approved by (Faculty)
Management
Event
ActionPerformed
MouseClicked
2.3. Change price Form Admin can change price in another window. You click to a row you want to change and edit it, finally you press the Change button.
Prepared by (Student)
Approved by (Faculty)
Management
Control Type
Constraint
Event
ActionPerformed MouseClicked
Prepared by (Student)
Approved by (Faculty)
Management
3. Sales Function
Sales people just can use Sales function above. 3.1 Search Item Admin can search item in four ways: search with item id, Name, Category and Price. Or you press the Refresh button to display all item.
Control Type
Constraint
Event
KeyReleased
Approved by (Faculty)
Management
JComboBox
StateChanged
JButton
ActionPerformed
JTable
3.2 Produce bills Form Admin can create produce bill for customer. First, you have to enter ItemID throw Browse button, second you enter all information and press Add button, the information will be display to the table below.
Prepared by (Student)
Approved by (Faculty)
Management
Control Name jTabbedPane1 btnBrowse txtItemID txtQuantity txtDiscountItem ccbStatus btnAdd txtNameCus
Constraint
Event
JTextField
integer float
JCheckBox JButon
= ActionPerformed
not empty JTextField 7-15 digital or null JTextArea JCombobox JTextField JTable Jlabel JtextField JButton ActionPerformed float
After you create produce bill successfully, you go to Bill Details to see or delete bills.
Prepared by (Student)
Approved by (Faculty)
Management
Control Type
Constraint integer
Event
JTextField txtDateFrom enter valid date type txtDateTo btnDelete btnRefresh btnPrint
Project Group No : 3 Signature Date Prepared by (Student) Approved by (Faculty)
JButton
ActionPerformed
Management
MouseClicked
3.3 View and Report Inventory Form Admin can check quantity of each product or display empty product automatically. You check to the box and press Report button to report for inventory manager.
Prepared by (Student)
Approved by (Faculty)
Management
Constraint
Event
cboTo btnViewItem btnViewQuantity btnRefresh btnCheck btnUncheck tblItem btnReport JTable JButton ActionPerformed JButton ActionPerformed
Prepared by (Student)
Approved by (Faculty)
Management 3.4 Notice Exception Form Admin can send feedback to Sales manager throw this form.
Event
ActionPerformed
JMenuBar ActionPerformed
Approved by (Faculty)
Management
Control Type
Constraint
Event
txtMoney txtDayMoney
Project Group No : 3 Signature Date
Management
txtBillCancel txtDayBillCancel txtItem txtDayItem btnViewBill btnViewBillCancel btnViewItem btnPrint btnRefresh lblTitleTable lbl JLabel JTable JButton Action Performed enter valid date type enter valid date type
Prepared by (Student)
Approved by (Faculty)
Management 4.2 View Report From Sales Form And check feedback form Sales.
Constraint
Event
JMenuItem
ActionPerformed
JTextArea
Prepared by (Student)
Approved by (Faculty)
Management 4.3 Create Sales Chart Form Finally, admin can create a sale chart for each item in each month.
Constraint
Event
ValueChanged
ActionPerformed
Approved by (Faculty)
Management
Prepared by (Student)
Approved by (Faculty)
Management
Control Name txtCategories txtCategoriesAvai txtItem txtItemAvai txtItemNumber txtItemNot txtItemSold btnViewItemNot
Control Type
Constraint
Event
JTextField
JButton btnViewItemSold lblNameItem txtQuantity btnUpdate btnCancel bnViewAll btnPrint btnRefresh lblTitleTable tblInventory JLabel JTable JButton JLabel JTextField
ActionPerformed
ActionPerformed
Prepared by (Student)
Approved by (Faculty)
Management
5.2 Create trends Form Admin can create Generate inventory trends for each item.
Constraint
Event
ValueChanged
ActionPerformed
Prepared by (Student)
Approved by (Faculty)
Management
6. Task sheet
Project Ref. No. Sr. No. 1 2 3 4 Project Title Activity Plan Prepared by Date of Preparation of Activity Plan Actual Start Date 06/08/2010 06/16/2010 06/08/2010 06/09/2010 Actual Days 8 6 14 14 Team Member Name Linh Linh Son Tung
Task
Status
Main Function Admin Function Sales Function Sales Manager Function Inventory Manager Function Inventory Management
06/09/2010
14
An
Completed
Prepared by (Student)
Approved by (Faculty)