Srs
Srs
1. SYNOPSIS
1.2 Problem:
They also use DOS based systems with monotonous Look & duplication of data
having many gaps & inefficiency in forecasting due to batch process or lack of
information due to either manual systems or old software. So, there is a Lack of
Tools for manipulation of data.
1
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Departmental store is a place where we get all our daily use products.
These products are the basic requirements such as clothes, utensils, grocery, toys, watches
etc. From the administrator point of view, the management of these products is not an
easy job. Since they need to keep track of the products, their various suppliers, the
customer details, their employees etc. All these jobs are done mostly manually or using
some old software.
The project aims to develop software which will store data about their
different products, their manufactures, product’s Inventory status, customer records and
even the record of their employees. This system provides accounting, inventory,
invoicing information in integrated fashion, preferably with Graphics User Interface
(GUI).
Fig 1.1
2
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Hardware Requirement:
Minimum 10GB HDD
Processor Type P-II & onwards
Software:
Operating Systems Windows98 & onwards
1.7 Modules:
Inventory
Sales & purchase
Employee details
1.8 Conclusion:
Here we have tried to develop a software that will help the administrator
to have a quick access to all the information flow in the departmental store.
3
DEPARTMENTAL STORE MANAGEMENT SYSTEM
2. INTRODUCTION
4
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Economic feasibility
Operational feasibility
Technical feasibility
Scheduled & Resource feasibility
5
DEPARTMENTAL STORE MANAGEMENT SYSTEM
6
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Schedule feasibility :
It is measure of how reasonable the project schedule is
Are the deadlines reasonable?
Can the deadline be extended?
Is the deadline desirable or compulsory if yes how much?
Resource Feasibility:
For our system we discussed the schedule of the project it took 2 days for
arranging the schedule also we have made research on the user requirements and what is
the flow actually user wants.
7
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Data Gathering
Study of Existing System
Analyzing problem
Studying various documents
Feasibility study for further improvement
8
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Unorganized data
Error prone data
Tedious calculation for user
Time delay in calculating & generating reports
Complications in analyzing stored data
Poor report generation
Increases the paper work
Chances of Information Leakage or Loss of Information increases
Maintaining records is not Integrated
Duplication of data
They also use DOS based systems with monotonous Look & duplication of data
having many gaps & inefficiency in forecasting due to batch process or lack of
information due to either manual systems or old software. So, there is a Lack of Tools for
manipulation of data.
9
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Creating a database for the stores containing the information present with them on
the paper in the existing system.
Access to database will be based on logon-id and password. Different person will
have different login-id and a distinct set of access rights.
The developed system will also print bills and reports and maintain various
transactions of the super-market.
It will have a comfortable and user friendly GUI.
The user interface will be designed using VB 6.0 and database will be
implemented in MS-ACCESS.
Also the system is intended to take very few inputs from the user.
10
DEPARTMENTAL STORE MANAGEMENT SYSTEM
4. SYSTEM DEVELOPMENT
Requirement Gathering
Analysis
Design
Coding
Testing
Maintenance
Fig 4.1
11
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Requirement Gathering: The works begins with the information gathering. Developer
and customer meet and define the overall objectives for the software, identify whatever
requirements are known, and outline areas where further definition is mandatory.
In our software development process, we gathered information from the various
developers and users to know about the existing system. This will help us to develop a
proposed system.
Analysis: After gathering all the requirements from the user, we need to distribute the
various requirements that we have already collected. We discard the unnecessary
requirements & only consider the relevant requirements. Also some requirements that
have not been considered but are very much needed also need to be discovered to avoid
changes in the project in the later stages.
Data Structure
Software Architecture
Procedural Detail
Interface Characterization
The design process translates requirements into a representation of the
software that can be assessed for quality before coding begins. The design process is
documented and become a part of the software configuration. That means, in a design
process we designed the form layouts of the system, which in turn used for the coding
purposes.
Coding: In the coding process the design must be translated into a machine-readable
form. If design is performed in a detailed manner, coding can be accomplished
mechanistically. For coding purposes we used Visual Basic 6.0 language.
Testing: The testing process focuses on the logical internals of the software, ensuring
that all statements have been tested, and on the functional externals, that is, conducting
testes to uncover errors and ensure that defined input will produce actual results that
agree with required results.
Maintenance: After all of these processes, the maintenance of the system takes into
consideration. It is required because of the errors that have been encountered in the
system or because the customer requires functional or performance enhancements.
12
DEPARTMENTAL STORE MANAGEMENT SYSTEM
DATA REQUIRQMENTS:
The data requirements process may be based on interviews with the database
users, and on the designer’s own analysis of the organization. The major characteristics of
the departmental stores are:
The departmental store is organized into branches. Each branch is located in a
particular area and is identified by a unique name. The store monitors the assets
of each branch.
Customers of the departmental store are identified by their customer-id values. It
stores each customer’s name and address where the customer lives. Customer
may have accounts with the store for their purchasing purposes.
Employees of the departmental store are identified by their employee-id values.
The management stores the name, addresses, position, salary of each employee.
It also keeps track of the employee’s start date and, thus, length of employee.
The departmental store also keeps the information of the suppliers. Each supplier
is identified by its supplier-id. It also stores the name, address and product-id
that the supplier can supply.
The departmental store also keeps the information of all of the inventories. Each
product is identified by its product-id.
13
DEPARTMENTAL STORE MANAGEMENT SYSTEM
ENTITY_SET DESIGNATION:
From the characteristics of the data requirements we begin to identify
entity set and their attributes:
The BRANCH entity set, with attributes branch no, location, manager, target and
sales.
The STOCK entity set, with attributes supplier-id, product-id, category, quantity
and pay rate.
The CUSTOMER entity set, with attributes Cust_Id, Cname, Address,
Phone_no, Total_Amt and Balance.
The EMPLOYEE entity set, with attributes Emp_Id, Ename, Branch_Id, Gender,
Address, Phone_no, Date of Birth, Position, Hire_Date, Salary, Order_Id,
Purchase.
The SUPPLIER entity set, with attributes supplier-id, supplier-name, product-id,
Address and Phone_no.
The DAMAGES entity set, with attributes Emp_Id, supplier-id, product-id,
quantity, price and replaced. It is a weak entity set.
14
DEPARTMENTAL STORE MANAGEMENT SYSTEM
E-R Diagram
15
DEPARTMENTAL STORE MANAGEMENT SYSTEM
B rn o Loc M an
P a id E nam e
Cnam e P ty p
o r id A ddr P hno
w o rk s
O id E id
Sal fo r
B ranc h
c id Tam t B id
A ddr
D O B
G iv e s
Bal C u s to m e r
O rde r
E m p lo y e e S a le s
T a rg e t
P os
P hno
A vai
D am g or
R ep not
o rde r
supl g iv e s
o rd e r
P id
chk updt
fo r
del
C hk S u p p lie r A dd
tra n updt
S id S id Snam e
Snam e
P hno P id C a te
Q ty
Addr
Snacks
S id P a yrt
Q ty W t
C id C a te E xp ry
Q ty
Snam e P ay rt C a te
Tam t
D am ages V e g_ F rut G ro ssary Snam e
S id
P ay rt U te n s ils S id
P a y rt P id
q ty P id C a te
R epl P id
P id
C a te
P a y rt Typ
T yp Snam e
P ri Q ty
Snam e
S id
Toys
S id S id
Snam e
M e d ic in e Q ty P id
P id
S id
C lo th e s
H o s ie ry Q ty
Q ty
W t P a y rt
P a y rt Snam e c o lo r
E x p ry S id P id
C a te Q ty
P id
Snam e C a te
P a y rt
Fig 4.2
16
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fig 4.3
17
DEPARTMENTAL STORE MANAGEMENT SYSTEM
18
DEPARTMENTAL STORE MANAGEMENT SYSTEM
(Level 0)
S a le s R e p o r t
S e a r c h / M o d if y S u p p lie r S a le s M an a g e r
S e a r c h / M o d if y P r o d u c t s
P la c e o r d e r f o r C u s t o m e r
D e liv e r y R e p o r t P a y m e n t
C h e c k A v a ila b le S t o c k
D e p artm e n tal
R e c e p tio n is t S to re U n a v a ila b le S t o c k O r d e r
M anagem ent
S y s te m E m p lo y e e D e t a il
R e c e ip t f o r C u s t o m e r
P a y m e n t fo r C u s to m e r
A tte n d a n c e R e c o rd
P a y s lip
S e a r c h / A d d E m p lo y e e C le rk
Fig 4.4
19
DEPARTMENTAL STORE MANAGEMENT SYSTEM
A DFD that represent the system response to one event within a single
process symbol is called DFD fragment. A DFD fragment is created for each event in the
event list (expanded into the event table). Each DFD fragment is a self-contained model
showing how the system responds to a single event. The analyst usually creates DFD
fragments on at a time, focusing attention on just part of the system.
Each DFD fragment represents all processing for an event within single process symbol.
But the fragments show details of interactions between the process, external agents, and
internal data stores. The data stores used on a DFD fragment represent entities on the
ERD. Each DFD fragment shows only those data stores that are actually needed to
respond to the event.
20
DEPARTMENTAL STORE MANAGEMENT SYSTEM
(Level-1)
Fig 4.5
21
DEPARTMENTAL STORE MANAGEMENT SYSTEM
(Level-2)
Fig 4.6
22
DEPARTMENTAL STORE MANAGEMENT SYSTEM
(Level 3)
Fig 4.7
23
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fig 4.8
24
DEPARTMENTAL STORE MANAGEMENT SYSTEM
M a in
B il
id l,P
ro d
Qt y ,P
Pa
y s
lip
G e t S to c k fro m P ay s lip to D e live ry to
T ran s ac tio n
S u p p lie r E m p lo y e e C u s to m e r
Fig 4.9
25
DEPARTMENTAL STORE MANAGEMENT SYSTEM
G e t S to c k fro m
S u p p lie r
Q
l
ta i
ty
,P
e
k d
ro
d
c
S to
S u p p lie r O rd e r
U p d atin g S to re in S to c k
D e tail
Fig 4.10
26
DEPARTMENTAL STORE MANAGEMENT SYSTEM
T r a n s a c t io n
P ay
s lip
am e
B i ll
E id ,n
B il
P ay
l
s lip
S to c k B ill G e t E m p lo y e e S a la ry B ill to P ay s lip to
C alc u latio n In f o . C alc u latio n C u s to m e r E m p lo y e e
A tte n d a n c e
Q ty
d
R ec o rd
,P i
Q ty
,
P id
R e c o rd
O rde r A vailab ility
d e tail o f S to c k
Fig 4.11
27
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fig 4.12
28
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fig 4.13
29
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Start
Stop
Fig 4.14
30
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Start
Stop
Fig 4.15
31
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Start
Add to Database
Update/Delete from
Database
Stop
Fig 4.16
32
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Start
Display Damages
Form
Update/Delete from
Add to Database
Database
Stop
Fig 4.17
33
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fig 4.18
34
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fig 4.19
35
DEPARTMENTAL STORE MANAGEMENT SYSTEM
36
DEPARTMENTAL STORE MANAGEMENT SYSTEM
37
DEPARTMENTAL STORE MANAGEMENT SYSTEM
5. Program List:
38
DEPARTMENTAL STORE MANAGEMENT SYSTEM
39
DEPARTMENTAL STORE MANAGEMENT SYSTEM
6.TABLE STRUCTURE:
Branch Table:
Branch_No: This field stores the IDs of the various branches located in different
areas. Branches have different branch ID.
Location: This field stores the name of the locations of each branch.
Manager: This field contains the name of the managers of the branch.
Emp_Id: This field gives the ID of the Branch Manager.
Target: This field gives the information about target sale of each branch.
Sales: This field gives the information about the actual sales of each
Branch.
Customer:
Cust_Id: This field stores the Ids of each customer, which is unique to each
one.
Cust_name: This field stores the name of each employee.
Address: This field gives the addresses of each customer.
Phone_No: This column stores the phone numbers of employees.
Total_Amt: This column gives the total purchases of employees.
Balance: This field stores the balances remaining for the customers , if any.
40
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Employee:
Description:
Emp_Id: This field stores the Ids of the each employee, which is also
unique to each other.
Ename: This field stores the name of each employee.
Branch_Id: This field stores the branch id of the employee.
Address: This store the information of the employees addresses.
Phone no: This field stores the phone numbers of the employees.
Date of Birth: It stores the birthdates of each employee.
Position: This column stores the positions of each employee.
Hire Date: This field stores the hiring date of each employee.
Salary: This column stores the salary of the employees.
Bill_No: This field stores the order id of the employee.
Purchases: This field gives the information about the total purchases of the
employee.
41
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Supplier:
Supp_Id: This field stores the Ids of each supplier, which is unique to each
one.
Sname: This field stores the name of each supplier.
Address: This field gives the addresses of each supplier.
Phone No: This column stores the phone numbers of supplier.
Reasonable: This field just tells that whether the supplier provides us with
reasonable discounts, schemes, products in a profitable price.
Clothes:
42
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Fruits_Veg:
Grossary:
43
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Hosiery:
Medicine:
44
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Snacks:
Toys:
45
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Utensils:
Order_Customer:
46
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Order_supplier:
47
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Damages:
Cust_Id: This field gives id of the customer who have reported damages.
Sup_Id: This field gives id of the supplier to whom we need to contact.
Prod_Id: This field gives id of the damaged product
Quantity: This column gives total quantity of the damaged products.
PayRate: This field stores the price of each product.
Replaced: This field gives whether the damaged products are replaced or not
48
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Salary Sheet:
Emp_Id: This field stores the Ids of the each employee, which is
also unique to each other.
Ename: This field stores the name of each employee.
Basic_Salary: This field stores the basic salary given to all
employees.
Dearness_Allowance: This field stores the dearness allowance decided for
the employees
Travelling_Allowance: This field stores the traveling allowance decided for
the employees.
Medical_Allowance: This field stores the medical allowance decided for
the employees.
Overtime: This field stores the overtime given to employee, If
any.
Bonus: This field stores the bonus given to employee, If any.
Providend_Fund: This field stores the amount for the Providend Fund
decided for the employees.
Gross_Salary: This field stores the Gross Salary given to the
employees.
Service_Charge: This field store the charges for the various services
provided by the company.
Income_Tax: This field stores the income tax paid by the employee.
Net_Salary: This field store the Net Salary given to the employee.
49
DEPARTMENTAL STORE MANAGEMENT SYSTEM
7. REPORT LIST
Sales Report
Purchase Report
Salary Sheet Report
Customer Bill Report
50
DEPARTMENTAL STORE MANAGEMENT SYSTEM
8. SYSTEM TESTING
Testing plays a critical role in quality assurance for software. Due to the
limitations of the verification methods for the previous phases, design and
requirements faults also appear in the code. Testing is used to detect these errors, in
addition to the errors introduced during the coding phase.
Testing is a dynamic method for verification and validation, where the
system to be tested is executed and the behavior of the system is observed. Due to
This, testing observes the failure of the system, from which the presence of faults can
be deduced. However, separate activities have to be performed to identify the faults.
8.1Approaches:
Black-Box Testing:
In the black-box testing, the internal logic of the system under testing is not
considered and the test cases are decided from the specification or the requirements. It is
often called functional testing. Equivalence class partitioning, boundary value analysis,
and cause effecting graphing are examples of methods for selecting test cases for black-
box testing. State–based testing is another approach in which the system is modeled as a
state machine and then this model is used to select test cases using some transition or path
based coverage criteria. State–based testing can also be viewed as grey-box testing in that
it often requires more information than just the requirements.
White-Box Testing:
In white-box testing, the test cases are decided entirely on the internal
logic of the program or module being tested. The external specifications are not
considered. Often a criterion is specified, but the procedure for selecting test case is left
to the tester. The most common control flow-based criteria are statement coverage and
branch coverage, and the common data flow-based criteria are all-defs and all-uses.
Mutation testing is another approach for the white-box testing that creates mutants of the
original program by changing the original program. The testing criterion is to kill all the
mutants by having the mutant generate a different output from the original program.
51
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Test Approach:
The model used to develop the software is the waterfall model. So the testing
phase comes only once in the entire lifetime of the project. Therefore it has to be
intensive and as thorough as possible.
First and foremost we have to check the hardware interfaces. While checking the
visual interface the interconnection and the links have to be checked. This will be
done by going through various links and checking if the desired pages open up.
This will be followed by testing the database business layer interface. Here the
interactions between the validation and query scripts and the database have to be
checked.
Next we check the GUI and business layer interfaces. Here the form validation
and scripts acting on the form come into the picture.
The inventory triggers have to be checked for. This includes testing whether the
triggers are activated on reaching minimum levels or not.
This will be succeeded by integration testing. The individual models are
integrated and tested for proper interface. This will require 3 days.
System testing will focus on system integration.
User acceptance will focus on the testing by the user and then giving an approval
of the system.
52
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Features to be tested:
The hardware has to be tested to check whether the standard output values
expected are satisfied or not. The test cases involved in this are as follows
To check the machine speed.
The software interface testing is to be done next in this section. Here we have to
test the various links which provide the interfaces between different pages. The
test cases involved in this are as follows:
To check links which are independent of the data entered.
To check the links which are dependent on the data entered.
The input fields have to be checked whether only valid values are being accepted
i.e. the form validation is done without any bugs in it. The various test case
involved are
By entering wrong and invalid values
By entering values on the boundary.
By entering skeptical data.
The database on the server side should be checked for any inconsistencies.
The various test cases involved are as follows:
By entering values which are repeated to make the database inconsistent.
The database also has to be checked for maximum possible entries which it can
accept and handle.
The entered values are not allowed and are out of bounds
The data inputs on the screen in the different forms are the sole interest and
information only known to the customer. So it need not be checked by the
developers and testers.
The machine speeds of the client machine, which may result into better speed of
the software, is the lookout of the customer and is not an element to be considered
for testing.
53
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Case 1 (Interface):
Purpose:
To check links which are independent of the data entered and to check the links
which are dependent on the data entered.
Inputs:
In case of independent links there would not be any inputs whereas in case of
dependent links the fields, the value of which decides the links are to be entered.
Example of dependent links is the form entered which is to be validated before accepting
the information into the database. The data entered will be valid and invalid as well as on
the boundary. Independent links are the ones in which the links are given on the screen
and the pages to which they jump is prefixed and does not change based on any input.
In case of independent links the prefixed pages to which the links are pointing
should be checked. If the links are functioning properly then the test is passed. In case of
dependent links on entering the valid input the output should be generated. In case of
invalid input an error message should be displayed. This will indicate whether the test has
been passed or failed.
Test Procedure:
The required fields are entered and the links are clicked on and the results are
observed and noted down. The valid input is entered and the results are verified. The
invalid input is entered and the results are verified. The boundary conditions are also
checked and verified.
54
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Case 2 (Database):
Purpose:
The purpose of this test case is to check the capability of the database. It
will verify the amount of data that can be handled as well as determine the dependability
of the data.
Inputs:
The inputs to the software will be data which can prove to be inconsistent
and can damage the dependability of the software. The data entered will be in voluminous
quantities so that the capability of the database can be tested.
Test Procedure:
Enter the data in such a way that the inputs have same time slots allotted
or same usernames allotted. If the database accepts those then the system fails there itself.
The same process will be carried out in case of each input field to check for
consistencies. The data will be then entered in large quantities. If the database is capable
of handling it without losing any access time then the database will pass the test. 5%
level of tolerance is acceptable.
55
DEPARTMENTAL STORE MANAGEMENT SYSTEM
9. CONCLUSION
Here we have tried to develop a system that will synchronize the data
stored at various places to be maintained at a single location with proper accessibility and
security. The system will store the various records of different products, distributors and
various transactions in a uniform format. Effective management will be done to maintain
minimum inventory levels of food and other essential commodities. The user will get
critical information as unavailability of a certain product or expiry of some goods
beforehand. User can also make any updates to previously entered information and also
delete any obsolete data which is not required anymore. Thus, we tried to provide the
store administrator with an easy way to access his data.
56
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Every variable has being named according standard convention. There is no number
allowed at the beginning of each variable.
Every table has being named with underscore sign in between two words.
Every function has been named starting with corresponding name with underscore sign
separating two records to maintain consistency.
57
DEPARTMENTAL STORE MANAGEMENT SYSTEM
58
DEPARTMENTAL STORE MANAGEMENT SYSTEM
59
DEPARTMENTAL STORE MANAGEMENT SYSTEM
60
DEPARTMENTAL STORE MANAGEMENT SYSTEM
61
DEPARTMENTAL STORE MANAGEMENT SYSTEM
62
DEPARTMENTAL STORE MANAGEMENT SYSTEM
63
DEPARTMENTAL STORE MANAGEMENT SYSTEM
64
DEPARTMENTAL STORE MANAGEMENT SYSTEM
65
DEPARTMENTAL STORE MANAGEMENT SYSTEM
66
DEPARTMENTAL STORE MANAGEMENT SYSTEM
67
DEPARTMENTAL STORE MANAGEMENT SYSTEM
68
DEPARTMENTAL STORE MANAGEMENT SYSTEM
69
DEPARTMENTAL STORE MANAGEMENT SYSTEM
70
DEPARTMENTAL STORE MANAGEMENT SYSTEM
71
DEPARTMENTAL STORE MANAGEMENT SYSTEM
About Us Form
72
DEPARTMENTAL STORE MANAGEMENT SYSTEM
73
DEPARTMENTAL STORE MANAGEMENT SYSTEM
12. CODE:
FORM : frmSplash.frm
ProgressBar1.Value = ProgressBar1.Value + 1
End If
inti = inti + 1
lblno.Caption = inti & "%"
End Sub
74
DEPARTMENTAL STORE MANAGEMENT SYSTEM
FORM: frmLogin.frm
‘***********************************************************************
Private Sub cmdOk_Click()
End Sub
75
DEPARTMENTAL STORE MANAGEMENT SYSTEM
FORM : frmcustinfo.frm
‘***********************************************************************
Public Sub moves()
txtcname = MSFlexGrid1.TextMatrix(X, 2)
txtcid = MSFlexGrid1.TextMatrix(X, 1)
txtaddr = MSFlexGrid1.TextMatrix(X, 3)
txtph = MSFlexGrid1.TextMatrix(X, 4)
txtpur = MSFlexGrid1.TextMatrix(X, 5)
txtbalance = MSFlexGrid1.TextMatrix(X, 6)
End Sub
‘***********************************************************************
‘** LOCKS ALL THE TEXTS BOXES SO THAT NO EDITION CAN BE DONE **
76
DEPARTMENTAL STORE MANAGEMENT SYSTEM
txtaddr.locked = False
txtbalance.locked = False
txtcid.locked = False
txtcname.locked = False
txtph.locked = False
txtpur.locked = False
End Sub
‘***********************************************************************
Public Sub setrecordcount()
j = MSFlexGrid1.Rows - 2
txtrecord.Text = " Record " & X & " Of " & j
End Sub
txtaddr.Text = rs!Address
txtbalance.Text = FormatCurrency(rs!Balance)
txtcid.Text = rs!Cust_Id
txtcname.Text = rs!Cname
txtph.Text = rs!Phone_no
txtpur.Text = FormatCurrency(rs!Total_Purchase)
End Sub
‘***********************************************************************
Private Sub cmdadd_Click()
On Error GoTo SaveErr:
Unload Me
frmcustadd.Show
frmcustadd.Caption = "Customer Add"
77
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Exit Sub
SaveErr:
MsgBox Err.Description
End Sub
cmdupdate.Visible = False
cmdcancel.Visible = False
cmddelete.Visible = True
cmdadd.Visible = True
cmdsearch.Visible = True
cmdback.Visible = True
cmdedit.Visible = True
cmdrefresh.Visible = True
rs.Close
End Sub
‘***********************************************************************
Private Sub cmdclose_Click()
End
End Sub
78
DEPARTMENTAL STORE MANAGEMENT SYSTEM
rs.Open
With rs
If .RecordCount = 1 Then
FLAG1 = True
MsgBox "This Is Last Record. You Can't Delete This Record.", _
vbCritical, "DELETE RECORD"
Else
FLAG1 = False
End If
If .EOF Then
.MovePrevious
End If
End If
End If
End With
rs.Close
Exit Sub
79
DEPARTMENTAL STORE MANAGEMENT SYSTEM
DeleteErr:
MsgBox Err.Description
End Sub
cmdupdate.Visible = True
cmdcancel.Visible = True
cmddelete.Visible = False
cmdadd.Visible = False
cmdback.Visible = False
cmdedit.Visible = False
cmdrefresh.Visible = False
cmdsearch.Visible = False
rs.Close
End Sub
‘***********************************************************************
Private Sub cmdfirst_Click()
On Error GoTo FirstErr
X=1
moves
setrecordcount
Exit Sub
FirstErr:
MsgBox Err.Description
End Sub
80
DEPARTMENTAL STORE MANAGEMENT SYSTEM
X = r1
moves
setrecordcount
Exit Sub
LastErr:
MsgBox Err.Description
End Sub
‘***********************************************************************
Private Sub cmdnext_Click()
On Error GoTo NextErr
Exit Sub
NextErr:
MsgBox Err.Description
End Sub
‘***********************************************************************
Private Sub cmdrefresh_Click()
rs.Open
MSFlexGrid1.Refresh
rs.Requery
81
DEPARTMENTAL STORE MANAGEMENT SYSTEM
rs.Close
End Sub
Exit Sub
PreviousErr:
MsgBox Err.Description
End Sub
‘***********************************************************************
Private Sub cmdsearch_Click()
On Error GoTo SearchErr
rs.Open
r = InputBox("Enter Customer's ID Or Customer's Name You Want To Search...?", _
"Get Information")
rs.MoveFirst
While Not rs.EOF
Wend
rs.Close
Exit Sub
SearchErr:
82
DEPARTMENTAL STORE MANAGEMENT SYSTEM
MsgBox Err.Description
End Sub
rs.Open
i = MSFlexGrid1.RowSel
Do While i > 1
If Not rs.EOF Then rs.MoveNext
i=i-1
Loop
i = MSFlexGrid1.RowSel
X=i
setrecordcount
Call display
rs.Close
End Sub
83
DEPARTMENTAL STORE MANAGEMENT SYSTEM
For j = 1 To 6 Step 1
MSFlexGrid1.ColWidth(j) = 2000
Next j
MSFlexGrid1.TextMatrix(0, 1) = "Cust_Id"
MSFlexGrid1.TextMatrix(0, 2) = "Cust_name"
MSFlexGrid1.TextMatrix(0, 3) = "Address"
MSFlexGrid1.TextMatrix(0, 4) = "Phone_no"
MSFlexGrid1.TextMatrix(0, 5) = "Total_Purchase"
MSFlexGrid1.TextMatrix(0, 6) = "Balance"
84
DEPARTMENTAL STORE MANAGEMENT SYSTEM
Loop
rs.Close
r1 = MSFlexGrid1.Rows - 2
X=1
Exit Sub
FormErr:
MsgBox Err.Description
End Sub
FORM: frmcustadd.frm
‘*********************************************************************
Private Sub cmdback_Click()
Unload Me
frmcustinfo.Show
End Sub
‘*********************************************************************
Private Sub cmdclose_Click()
Unload Me
End Sub
‘********************************************************************
Private Sub Form_Load()
Set cnn1 = New ADODB.Connection
With cnn1
.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;Data
Source=supriya1"
.Open
End With
Call rs.Open("select * from Customer", cnn1, adOpenDynamic, adLockOptimistic)
rs.Close
85
DEPARTMENTAL STORE MANAGEMENT SYSTEM
End Sub
rs.Close
Exit Sub
SaveErr:
MsgBox Err.Description
End Sub
‘***********************************************************************
Private Sub txtbalance_KeyPress(KeyAscii As Integer)
End Sub
86
DEPARTMENTAL STORE MANAGEMENT SYSTEM
If Not ((KeyAscii >= 97 And KeyAscii <= 122) Or (KeyAscii >= 65 And KeyAscii <=
91) Or KeyAscii = 8 Or KeyAscii = 32) Then
MsgBox "Please Enter The Characters"
KeyAscii = 0
End If
End Sub
‘***********************************************************************
Private Sub txtph_KeyPress(KeyAscii As Integer)
‘***********************************************************************
Private Sub txttotal_KeyPress(KeyAscii As Integer)
End Sub
87
DEPARTMENTAL STORE MANAGEMENT SYSTEM
For making an exe file select make project name.exe under the File menu.
Once the user has completed with the coding the application, and tested on multiple
machines, it is ready to be deployed. In order to deploy any application, the user can use
the Package and Deployment Wizard Provided by Microsoft. The prerequisite of
deploying an application is packaging.
2) After selecting the administration module project, click on the Package button.
3) As per the requirements, select the type of packaging as Standard Setup Package.
The Wizard will then take over and perform the rest of the packaging steps for you. You
will see all the required files, including the runtime files, automatically being included.
1) Select the package you want to deploy, and click on the Deploy button.
The wizard will then take over and perform the rest of the deployment steps for you.
88
DEPARTMENTAL STORE MANAGEMENT SYSTEM
89
DEPARTMENTAL STORE MANAGEMENT SYSTEM
For any system that is developing, there is always room for more
development.
Whenever a change in existing software system is include and then release, it
is said that the latest release is an advanced version of the software system.
The system can be made compatible with different data base such as access.
90
DEPARTMENTAL STORE MANAGEMENT SYSTEM
16. Bibliography
References
Mastering VB 6.0.
Programming in Visual Basic By Julia Case Bradley, Anita C. Millspaugh
An Integrated Approach to Software Engineering By Pankaj Jalote.
Software Engineering By Pressman
DataBase System Concepts By Silberschatz, Korth, Sudarshan
SQL the Complete Reference By Groff Weinberg
Softwares
91
DEPARTMENTAL STORE MANAGEMENT SYSTEM
92