Sie sind auf Seite 1von 64

Project Report

FINAL YEAR COMPUTER SCIENCE AND ENGINEERING


SESSION (2007-2008)

TO

STORE
MANAGEMENT
SYSTEM
Developed by: - Ramveer Singh Rajput

Store MANAGEMENT SYSTEM


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Project work is one of the most important activity of engineering


curriculums at every irrespective of degree or diploma. This provides us
an opportunity to apply our knowledge, skill and aptitude of real life. It
also provides an opportunity to working a group and share
responsibility.

Project should be technical in nature because the technical project


can be executed much more easily than theoretical one. Proper
execution of places and project is responsible for the economical growth
of a country.

Here in this Project that has been allocated to me, I learn efficient
handling of programs in Visual- Basic.

RAMVEER SINGH RAJPUT

STORE MANAGEMENT SYSTEM 2


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 3


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

I would like to put on my record my sincere gratitude and thanks


to Mr.H.M. Singh, Er.Salil Sharma & K.C. Mittal for helping me to
complete this project.

I would also like to thank my colleagues my friends Mr. Prashant


Kumar, Mr. Neetu and Mr.Atul kumar for helping me to complete this
Project Report. In the College during the project, I learned three most
important facts. These ares-

 Discipline
 Firm Determination
 Taking interest on his job
Like as it is well known fact that these facts play an important role to
become the successful in any private firm or in government sector.
I am also thankful to all employees and software engineers, who
help me to understood critical problems.

Ramveer Singh Rajput


Final Year
C.S. & Engineering

STORE MANAGEMENT SYSTEM 4


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

“This project is dedicated to my parents and my respected


teachers”

I would like to dedicate on my record my sincere gratitude and


thanks to Mr.H.M.Singh this Project.

I would also like to dedicate my colleagues for helping me to


complete this Project Report.

RAMVEER SINGH RAJPUT


Final Year
C.S. & Engg.

STORE MANAGEMENT SYSTEM 5


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

INDEX
STORE MANAGEMENT SYSTEM 6
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
SUBJECT PAGE No.

Certificate………………………………………………...10

Introduction………………………………………………12

H/W & S/W Specification………………………………..15

Introduction of VB……………………………………….16

Introduction of MS Access……………………………....20

Feasibility Study …………………………………………22

Connectivity of V.B. with MS-ACCESS…………………31

About Project ……………………………………………..34

Data Flow Diagram………………………………………..43

Coding…………………………………………………......49

STORE MANAGEMENT SYSTEM 7


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

This is to
STORE MANAGEMENT SYSTEM 8
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
certify that the Project entitled, STORE MANAGEMENT SYSTEM IS a work
done by Mr.RAMVEER SINGH RAJPUT in A partial fulfillment of
Diploma in Computer science & Engg. An award
of BOARD OF TECHNICAL EDUCATION (U.P.) and has been carried
out under my direct supervision and guidance.
This report or a similar report on the topic has not been submitted

for any other examination and does not form part of any other course

undergone by the candidate.

We wish him success in life.

Er.SALIL SHARMA Er.H.M. SINGH


(Project Officer) (Project In charge)

STORE MANAGEMENT SYSTEM 9


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

This work is not a high profile one and my main aim of making of this
project work was to have an understanding of the VB and to get well
acquainted with the efforts and hard work that are required for a major
project work in the same language.

STORE MANAGEMENT SYSTEM 10


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
The output of the project work deals with needs of a Store or shop that
may include record of countable item. The developed application can be used
to manage item stock, Sale record which is the basic requirements of a
STORE MANAGEMENT SYSTEM.

The project is very flexible and it can be modified if the need arises. I
hope the user will find this project work quite pleasing in its output as simple
designing has been done to enhance the view and simple programming
statements and command have been used, so that the user have no problem in
understanding the listing of the project. The application makes use of a MS
Access Database to store the data so as to provide fast and easy retrieval.

The Connectivity between application and database is established using


ADO, one of the most popular connection methods.

HARDWARE AND SOFTWARE


SPECIFICATIONS
Hardware Specifications:-
Development Platform:-
Celeron 1 GHz Processor
28 MB SDRAM
STORE MANAGEMENT SYSTEM 11
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
10 GB HDD
VGA color Monitor
Hardware Compatibility:-
Pentium I and above
32 MB RAM
500 MB Free HDD
VGA color Monitor
Software Specifications:-
Development Platform:-
WIN 98
VISUAL BASIC 6.0

STORE MANAGEMENT SYSTEM 12


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 13


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Visual basic is an event based programming language that revolves


around ready-made object, and it is event driven, that is all the activities in
program. Each object has its own properties, determining its position, size,
color, the appearance and nature of its text, and much more. Each object also
has its own event-handling procedure. The BASIC language was developed
in mid- 1960' s by Professor John Kemeny and Thomas Kurtz of
Dartmounth College as a language for writing simple program. Basic
purpose was to help people learn how to program.

The major reason behind the success and popularity of VB is that it


supports the object-oriented technology, the latest in the software
development. The widespread use of BASIC with various type of computer
and led to many enhancement to the language with the development of the
MICROSOFT WINDOWS GRAPHICAL USER INTERFACE (GUI) in
the late 1980's,

The natural evolution of BASIC was Visual Basic, which was created by
STORE MANAGEMENT SYSTEM 14
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Microsoft Corporation in 1991. Visual Basic greatly simplifies windows
applications development. The object-oriented features in VB allow
programmers to build programs with clarity, extensibility and ease of
maintenance. The addition of new features has transformed VB from a
language that currently facilitates top-down, structured design, to one that
provides object-oriented design.

Why in Visual Basic:-

VISUAL BASIC:-
Visual Basic is not just a language, it’s an interrelated development

environmental in which you can develop, run test and debugging of your

application. VB is event driven object based, Through VB, different project

can be created like standard Exe, DLL, etc Active Control – You can build

your own custom.

Controls:-

VB is also known as Rapid Application development tools and

STORE MANAGEMENT SYSTEM 15


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
massages driven programming.
You can create your won add INS fourth visual basic IDE:-

Visual Basic can be viewed in three distinct states

Design
Execution and
Break.
Visual Basic is a very popular language it allows rapid development of
Windows based application Visual Basic is commonly used for creating font
ends or interfaces of applications. It is an easy to learn and easy to
understand programming language. It supports many wizards, which make
complex tasks easier.
Visual basic is effectively used for developing the prototypes of large
software. Here are the features of Visual Basic.

It is Event Driven Language


It is User Friendly Interface
It has library of user controls

STORE MANAGEMENT SYSTEM 16


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 17


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT
SYSTEM:-
In this age of computer, after the introduction of programming language,
most of the companies started to find out software, which can facilitate their
requirement of making management of the store for maintaining the stock of
items and sale records.
The following store management system has been built using the visual
basic language. There are four main transactions in this store management
system.

1. Maintaining item stock


2. Sale Records

MAINTAINING ITEM STOCK-


In the item maintaining resister we stores the all information related to the
products such as –
 Item name
 Company Name
 Item stock
 Lower limit
 Actual amount
 Sale rate

Item Name:-
STORE MANAGEMENT SYSTEM 18
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Items are specified by their name.
Company name:-
This is another entry in which we enter the name of company.
Item Stock:-
This is the third entry in which we enter the total number of items of
stock.
Lower Limit:-
This is the entry in which we enter the lower limit of items. If we
want a massage about the shortage of items, Lower limit is required. When
the number of items in stock is less then or equal to lower limit, then user
finds massage.
Actual Amount:-
This is the entry in which we enter the actual amount of items.
Sale Rate:-
This is the entry in which we enter the sale rate of items.

SALE RECORDS:-
In the option “Sale records” we have to fill up the following entries.

1. Date

2. Customer Name

3. Item name

4. Company Name
STORE MANAGEMENT SYSTEM 19
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
5. Quantity

6. Cost/Unit (Sale Rate)

7. Discount/Unit (%)

8. Total Price

Date:-
In this option we select the current date, month and year.

Customer Name:-
This is the entry in which we specify the name of the customer.

Item Name:-
This is the entry which is used for specifying the name of particular
item which is purchased by the customer.

Company Name:-
In this option we enter the company name of item which is
purchased.

Quantity:-
STORE MANAGEMENT SYSTEM 20
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
In this option, book issues and deposit we handles the operation
related to the book such as book issues and book deposit.

Cost/Unit (Sale Rate):-


This is the entry in which we specify the sale rate of item.

Discount/Unit (%):-
This is the entry in which we specify the discount.

Total Price:-
Total price is the price of item, is given by the customer.

TABLES:-
Access stores information in the form of a table. The table consists of
rows and columns. Every column pas a field name, data type (text, number,
memo, currency, AutoNumber, yes/no, OLE object, hyperlink, lookup
wizard).

STORE MANAGEMENT SYSTEM 21


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

KEYS:-
The retrieval of data from a database can be faster with primary key. A
Primary Key is a field that uniquely identifies each record in a table. Primary
key field of one table appearing as a normal field in some another table is
called a Foreign Key.
To cascade updating and deletion of related fields, we enforce the referential
integrity .Referential Integrity means that for every foreign key a primary
key has to exist. Whenever a change is made to primary key Access
automatically makes those changes in the foreign key.

RELATIONSHIPS:-
When two tables have single common field, they are said to be
"related". The types of relationships, which the tables in Access can have,
are:
One- to-one

STORE MANAGEMENT SYSTEM 22


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

FEASIBILITY STUDY:-
A quick but comprehensive study reveals that there is no generic
software available to meet the in-house requirements of the Admission
dealer. A comprehensive preliminary analysis shows that a better option
would be to design customized software to meet the user requirement,
keeping in mind the existing time and budgetary constraints.

 Economical Feasibility
 Technical Feasibility
 Operational Feasibility
 Schedule Feasibility

ECONOMICAL FEASIBILITY:-
The proposed system is a computer implementation with many
enhancements in order to improve the efficiency. When the College
Admission Systemis computerized, the paper work will be minimized and
STORE MANAGEMENT SYSTEM 23
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
more timely information will be provided. Thus the proposed system is
economically feasible. It is normal for every organization to choose a system
development only if there is a reduction with respect to the time and cost
overheads.

To be judged feasible, a proposal for the specific project must pass all
these tests. Otherwise, it is not considered as a feasible project. Besides
improving processing accuracy, organizations seek to improve processing
economy. A system suffers from the problem of economy when existing
methods of transmitting, processing, and storing information are very costly.
An organization might discover that the cost of handling the paperwork
associated with each purchase order is Rs. 25. This cost is determined to be a
problem of economy. After the installation of a new method of processing,
the cost per purchase is substantially reduced – from Rs. 25 per order or Rs.
8 per order.

TECHNICAL FEASIBILITY:-
College Admission Systems more secure than the paper work system.
The employee of the College Admission System can update the data time to
time in the computerized system. The existing method of manually doing of
work was less efficient on the basis of this point.

STORE MANAGEMENT SYSTEM 24


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
There are a number of technical issues which are generally raised during
the feasibility stage of the investigation. They are as follows:-
 Does the necessary technology exist to do what is suggested?

 Does the proposed equipment have the technical capacity to


hold the data required to use the new system?

 Can the system be upgraded if developed?

 Are there technical guarantees of accuracy, reliability, ease of


access and data security?

OPERATIONAL FEASIBILITY:-

Computerized College Admission System will be a boon to the


organizations, those who want to lesson the burden on the staff as well as
getting the timely and accurate information as and when required. However
implementation of such a system will require some organizational structure
to be changed. The organizational changes heavily depend upon the intensity
of data and organization's infrastructure. If an Admission dealer uses the
software with security as least priority then current staff could be trained to
STORE MANAGEMENT SYSTEM 25
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
operate and manipulate the software at a very short period of time. However
a big organization or company requiring security as top priority and
decentralization of system, then, some additional staff could be required. For
example, to manipulate SQL Server a DBA will be required, that could
handle the database efficiently. Also administration of the package so that
work could be decentralized with proper security can also be done by either
training the management personnel or by hiring a skilled one.

SCHEDULE FEASIBILITY:-
Schedule feasibility evaluates the time taken in the development of
project. The time schedule required for the development of this project is
very important since more developing time will have effects on machine
time, cost and delays the development of other systems. So the project needs
to be completed within a fixed scheduled time as far as the client is
concerned. The project management team to assess the content reliability and
the project status received the overall feasibility study first. At the
culmination of the feasibility study a feasibility report was submitted to the
management. They evaluated the impact of the proposed changes and after
their approval the system design was initiated.

STORE MANAGEMENT SYSTEM 26


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

MAINTAINBILITY:-
Software maintenance accounts for more effort than any other software
engineering activity. Maintainability is the ease with which a program can be
corrected if an error is encountered, adapted if its environment changes, or
enhanced if the customer desires a change in requirements.

“Effort required locating and fixing an error in a program.”

“The ease with which repair may be made to the software as indicated by the
following sub attributes: analyzability, changeability, stability, testability”

Lower SYSTEM
STORE MANAGEMENT 27
limit
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Company
Name
Actual Amount
Name Item Stock

Sale rate

Store
Manage SYTEM
OPERATOR
Item ment

Forms:-
In Forms the data can be displayed as per the user requirements. The
records are generally displayed one at a time. The fields can be arranged as
STORE MANAGEMENT SYSTEM 28
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
the user them to be. Picture can be added to from. The display and contents
of the form is controlled fully by the user.

Reports:-
Reports are a collection of data selected from fields of either same
table or different tables. Reports are meant for printed or hard copy.

Macros:-
Many a times it happens that we have to perform some actions
repeatedly; certain amount of time and energy is wasted in doing so.
Creating macros can ease this out. Macro is basically a group of actions
performed, which is recorded and can be executed by using a single
command.

OLEDB Data Consumer:-


An OLEDB data consumer is an application that uses OLEDB provided data.
An OLEDB service provider is both a data consumer and data provider.

ActiveX components:-
An ActiveX Component is an executable (EXE) or dynamic link library
(DLL) that contains one or more class modules. Properties, methods and
events defined in a class module in an ActiveX project are exposed at the
STORE MANAGEMENT SYSTEM 29
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
global level. ActiveX components are stand-alone units of executable codes
that can be used by any application that supports ActiveX technology .An
ActiveX component can contain one or more class modules. ActiveX
Components lets you access the same code from more than one application
like class modules. When an ActiveX component is modified, the changes
are immediately available to all the applications that use it.

STORE MANAGEMENT SYSTEM 30


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

CONNECTIVITY OF VB WITH MS-ACCESS

I have used ActiveX Data Object to connect Visual basic with MS-
Access data source.

Features of ADO:-

ADO supports key features for building client/server and web based
applications including the following.

To communicate with data source, ADO uses an OLEDB provider. When


DAO is used data requests are processed by Jet (Joint Engineering
STORE MANAGEMENT SYSTEM 31
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Technology) database engine and then by ODBC (Open Database nativity)
driver.

"RDO is similar to DAO”, but it bypasses Jet and communicates directly


with ODBC. Although RDO provides a variety of features that are not
available in ADO, it lacks the ease of use and flexibility of ADO. ODBC
API provides a low-level interface to ODBC Although ODBC API can be
the most efficient technique for accessing data, it is also the most
cumbersome to use.

If OLEDB provider is not available and ODBC driver is available


OLEDB provider for ODBC driver that comes along with Visual Basic 6 can
be used.

ADO provider and the driver can also be used to access the data in the
database, although it is efficient as going directly from the OLEDB provider
to database. OLEDB Provider can access data that ODBC drivers access.
With OLEDB, for example, data can be accessed in the form of e-mail,
spreadsheets and word processing documents.

OLEDB:-

OLEDB provides an interface to applications that make disparate data


sources look as though they were the same data source. It logically organizes
structured data into columns so that it can be accessed in a common way.

STORE MANAGEMENT SYSTEM 32


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 33


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

The Application Source Code:-


This application has only thirteen forms.
s_m(store management)(Loading form)

The Form-wise application source code is as follows:

STORE MANAGEMENT SYSTEM 34


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Form No:-1

STORE MANAGEMENT SYSTEM 35


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 36


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 37


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 38


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 39


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 40


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 41


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Form -1
Coding:-

Form No:-2
Coding:-
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Menu.Show
End Sub
Form No.:-3

STORE MANAGEMENT SYSTEM 42


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Form No.:-3
Coding:-
Private Sub about_Click()
application.Show
End Sub

Private Sub add_new_item_Click()


add.Show
End Sub

Private Sub analysis_Click()


If Display.Data1.Recordset.Fields(5) <Display.Data1.Recordset.Fields(6) Then
busi_Analysis.Label2.Caption = "profit"
ElseIf Display.Data1.Recordset.Fields(5) = Display.Data1.Recordset.Fields(6) Then
busi_Analysis.Label2.Caption = "no loss no profit"
Else
busi_Analysis.Label2.Caption = "loss"
End If
busi_Analysis.Show
End Sub

Private Sub delete_Click()


delete.Show
End Sub

Private Sub exit_Click()


Dim i As Byte
Beep
i = MsgBox(" Are you sure, You want to exit this Application", vbYesNo, "Exit
Application")
If i = vbYes Then
End
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
STORE MANAGEMENT SYSTEM 43
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Single)
StatusBar1.Panels.item(3).Text = X & " " & Y
End Sub
Private Sub Form_Unload(Cancel As Integer)
If Cancel = 0 Then
i = MsgBox("Do you want to exit this application.", vbYesNo)
If i = vbYes Then
End
Else
Cancel = 1
End If
End If
End Sub
Private Sub modifylist_Click()
modi_1.Show
End Sub
Private Sub music_Click()
Mediaplayer.Show
End Sub
Private Sub salerecord_Click()
Customer_record.Show
End Sub
Private Sub selling_Click()
Sale.Show
End Sub
Private Sub showitemlist_Click()
Display.Show
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
If Button.Index = 1 Then
Display.Show
ElseIf Button.Index = 2 Then
Mediaplayer.Show
End If
End Sub

STORE MANAGEMENT SYSTEM 44


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Form No:-4
Coding:-
Private Sub Command1_Click()
Unload Me
add.Show
End Sub
Private Sub Command2_Click()
Unload Me
modi_1.Show
End Sub
Private Sub Command3_Click()
delete.Show
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Command5_Click()
Unload Me
Sale.Show
End Sub
Private Sub Command6_Click()
Unload Me
Customer_record.Show
End Sub
Private Sub Form_Activate()
Static k As Integer
If (k = 0) Then
Dim St As String
St = ""
Do
If (Val(Data1.Recordset.Fields(3).Value) <= Val(Data1.Recordset.Fields(4).Value))

STORE MANAGEMENT SYSTEM 45


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Then
St = St & " " & Data1.Recordset.Fields(1).Value
End If
Data1.Recordset.MoveNext
Loop Until Data1.Recordset.EOF
If St = "" Then
Else
MsgBox "You are running short of" & St & " " & "Order to be placed for" & St
End If
End If
k=k+1
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Me.Show
End Sub

Form No:-5
Coding:-

Private Sub Command1_Click()


Data1.Recordset.MoveLast
temp = Data1.Recordset.Fields(0).Value
If Text1.Text = "" Then
MsgBox "Enter the item Name"
Text1.SetFocus
ElseIf Text2.Text = "" Then
MsgBox "Enter the Sale Rate"
Text2.SetFocus
ElseIf Text3.Text = "" Then
STORE MANAGEMENT SYSTEM 46
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
MsgBox "Enter the no. of item in stock"
Text3.SetFocus
ElseIf Text4.Text = "" Then
MsgBox "Enter the Company Name"
Text4.SetFocus
ElseIf Text5.Text = "" Then
MsgBox "Enter the LowerLimit"
Text5.SetFocus
ElseIf Text6.Text = "" Then
MsgBox "Enter the Actual Amount"
Text5.SetFocus
Else
Data1.Recordset.AddNew
Data1.Recordset.Fields(0).Value = temp + 1
Data1.Recordset.Fields(1).Value = Text1.Text
Data1.Recordset.Fields(2).Value = Text2.Text
Data1.Recordset.Fields(3).Value = Text3.Text
Data1.Recordset.Fields(4).Value = Text4.Text
Data1.Recordset.Fields(5).Value = Text5.Text
Data1.Recordset.Fields(6).Value = Text6.Text
Data1.UpdateRecord
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End If
End Sub
Private Sub Command2_Click()
Unload Me
Display.Show
End Sub
Private Sub Command3_Click()
Unload Me
modi_1.Show
STORE MANAGEMENT SYSTEM 47
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Command5_Click()
Unload Me
Display.Show
End Sub
Private Sub Command6_Click()
Unload Me
Sale.Show
End Sub

Form No.:-6

Coding:-
Dim i As Integer
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "Please enter the serial no."
ElseIf Text1.Text = 0 Or Text1.Text > i Then
MsgBox "This is not valid serial number"
Else
Unload Me
modify.Show
serial = Val(Text1.Text)
End If
Text1.Text = ""
End Sub

STORE MANAGEMENT SYSTEM 48


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Private Sub Command2_Click()
List1.Clear
List1.AddItem "SERIAL NO" & " " & "NAME"
Data1.Recordset.MoveFirst
While (Data1.Recordset.EOF = False)
List1.AddItem Data1.Recordset.Fields(0).Value & " "&
Data1.Recordset.Fields(1).Value
i = Data1.Recordset.Fields(0).Value
Data1.Recordset.MoveNext
Wend
End Sub
Private Sub Command3_Click()
Unload Me
End Sub

Form no.:-7
Coding:-

Private Sub Command1_Click()


modify.Data1.Recordset.Edit
modify.Data1.Recordset.Fields(0).Value = modify.Text1.Text
modify.Data1.Recordset.Fields(1).Value = modify.Text2.Text
modify.Data1.Recordset.Fields(2).Value = modify.Text3.Text
modify.Data1.Recordset.Fields(3).Value = modify.Text4.Text
modify.Data1.Recordset.Fields(4).Value = modify.Text5.Text
modify.Data1.Recordset.Fields(5).Value = modify.Text6.Text
modify.Data1.Recordset.Fields(6).Value = modify.Text7.Text
modify.Data1.Recordset.Update
End Sub
Private Sub Command10_Click()
Unload Me
modify.Show
End Sub
Private Sub Command11_Click()
Unload Me
STORE MANAGEMENT SYSTEM 49
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Sale.Show
End Sub
Private Sub Command12_Click()
Unload Me
Customer_record.Show
End Sub
Private Sub Command2_Click()
Unload Me
modi_1.Show
modi_1.Text1.SetFocus
End Sub
Private Sub Command7_Click()
Unload Me
Menu.Show
End Sub
Private Sub Command8_Click()
Unload Me
Display.Show
End Sub
Private Sub Command9_Click()
Unload Me
add.Show
End Sub
Private Sub Form_Activate()
Data1.RecordSource = "select * from item_mytabel where serial_no='" +
modi_1.Text1.Text + "'"
If Data1.Recordset.NoMatch = True Then
MsgBox "Invaliad serial number"
Else
Data1.Recordset.Edit
Text1.Text = Data1.Recordset.Fields(0).Value
Text2.Text = Data1.Recordset.Fields(1).Value
Text3.Text = Data1.Recordset.Fields(2).Value
Text4.Text = Data1.Recordset.Fields(3).Value
Text5.Text = Data1.Recordset.Fields(4).Value
Text6.Text = Data1.Recordset.Fields(5).Value
STORE MANAGEMENT SYSTEM 50
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Text7.Text = Data1.Recordset.Fields(6).Value
Data1.UpdateRecord
End If
End Sub

Form No.:-8
Coding:-

Coding:-

Form No.:-9
Coding:-
Private Sub Command1_Click()

STORE MANAGEMENT SYSTEM 51


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Data1.Recordset.FindFirst "item_name= '" & Text3.Text & "' "
Data1.Recordset.Edit
Data1.Recordset.Fields(3).Value = Data1.Recordset.Fields(3).Value - Val(Text2.Text)
Data1.Recordset.Update
Data1.Refresh
Print_record.Show
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If Text1.Text = "" Then
MsgBox "Enter the Cutomer Name"
Text1.SetFocus
ElseIf Text2.Text = "" Then
MsgBox "Enter the Quantity"
Text2.SetFocus
ElseIf Text3.Text = "" Then
MsgBox "Select the Item Name"
Text3.SetFocus
ElseIf Text4.Text = "" Then
MsgBox "Select the Sale Rate"
Text4.SetFocus
ElseIf Text5.Text = "" Then
MsgBox "Select the Company Name"
Text5.SetFocus
ElseIf Text7.Text = "" Then
MsgBox "Enter the Discount"
Text5.SetFocus
End If
a = Text7.Text
b = (Text4.Text * a / 100) * Text2.Text
Text6.Text = (Text2.Text * Text4.Text) - b
End Sub
Private Sub MSFlexGrid1_Click()
If MSFlexGrid1.Col = 1 Then
STORE MANAGEMENT SYSTEM 52
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Text3.Text = MSFlexGrid1.Text
End If
If MSFlexGrid1.Col = 2 Then
Text5.Text = MSFlexGrid1.Text
End If
If MSFlexGrid1.Col = 6 Then
Text4.Text = MSFlexGrid1.Text
End If
End Sub

Form no.:-1
Coding:-
Private Sub add_Click()
Data1.Recordset.AddNew
Data1.Recordset.Fields(0).Value = Label9.Caption
Data1.Recordset.Fields(1).Value = Label10.Caption
Data1.Recordset.Fields(2).Value = Label11.Caption
Data1.Recordset.Fields(3).Value = Label12.Caption
Data1.Recordset.Fields(4).Value = Label13.Caption
Data1.Recordset.Fields(5).Value = Label14.Caption
Data1.Recordset.Fields(6).Value = Label15.Caption
Data1.Recordset.Fields(7).Value = Label16.Caption
Data1.UpdateRecord
End Sub
Private Sub Command1_Click(Index As Integer)
Unload Me
Customer_record.Show
End Sub
Private Sub Command2_Click(Index As Integer)
Unload Me
Sale.Show
End Sub
Private Sub Command3_Click(Index As Integer)
STORE MANAGEMENT SYSTEM 53
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Dim beginpage, numcopies, orientation, i
CommonDialog1.CancelError = True
On Error GoTo errhandler
CommonDialog1.ShowPrinter
beginpage = CommonDialog1.FromPage
endpage = CommonDialog1.ToPage
numcopies = CommonDialog1.Copies
orientation = CommonDialog1.orientation
For i = 1 To numcopies
Next
Exit Sub
errhandler:
Exit Sub
End Sub
Private Sub Form_Activate()
Label10.Caption = Sale.Text1.Text
Label11.Caption = Sale.Text3.Text
Label14.Caption = Sale.Text4.Text
Label13.Caption = Sale.Text2.Text
Label12.Caption = Sale.Text5.Text
Label15.Caption = Sale.Text7.Text
Label16.Caption = Sale.Text6.Text
Label9.Caption = Sale.Combo1.Text + Sale.Combo2.Text + Sale.Combo3.Text
End Sub

Form No.:-11

Form No.:-12

STORE MANAGEMENT SYSTEM 54


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

Form No.:-13
Coding:-

Private Sub Command1_Click()


Data1.Recordset.FindFirst "serial_no = " & Val(Text1.Text) & " "
If Data1.Recordset.NoMatch Then
MsgBox "Plese enter serial_no and delete then"
Else
k = MsgBox("Do you want to sure delete this record", vbYesNo + vbDefaultButton1 +
vbInformation, "error")
If k = vbYes Then
Data1.Recordset.delete
MsgBox "your record has been safely removed"
Text1.Text = ""
End If
End If
Text1.SetFocus
Display.Data1.Refresh
End Sub

Form No.:-1
Coding:-

STORE MANAGEMENT SYSTEM 55


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 56


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

The project i.e. Computerized STORE MANAGEMENT SYSTEM is


developed with a purpose of “change” because change is one thing that is
constant in this world. We all thus have to change according to the time. The
STORE MANAGEMENT SYSTEM 57
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
trivial methodology of life has given way for newer and advanced way of
thinking and living making our living
Standards much more advanced than before. With the advent of the
ICE technology i.e. Information, Communication & Entertainment age, the
role of human has been taken by computers.
“Calculating Employee’s income” as an entity based on this concept is not an
exception and thus has to be applied with newer ideas to make it more time
saving, less expensive, interactive, and simple and effective at the same time.
Thus the idea of Computerized Store management system has been given a
shot.

STORE MANAGEMENT SYSTEM 58


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

This project is applicable to many real world problems, because the


main concern of the project is to allow the operator to access the item
database and generating the report about sale of products

Various steps can be taken to enhance the project like:

 We can make the program more generic by using advanced


technology like .NET, ASP technology.
 Database creation and handling can be done in more powerful data
handling tools like Oracle in which creation of triggers and functions is
possible.

STORE MANAGEMENT SYSTEM 59


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

]
Books Author

Expert Guide To Visual Basic 6 D.Christophor

Visual Basic 6 In Record Time Steve Brown

VISUAL BASIC 6 Project Guide Kevin Hough


STORE MANAGEMENT SYSTEM 60
Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)
Mastering Visual Basic 6 Evangelos Petroutsos

SQL,PL/SQL Ivan Bayross

Software Engineering Roger S. Pressman

Software Configuration Management Babich, W. A

Information Engineering for the advanced practitioner Hares, J. S

Software requirements Davis

STORE MANAGEMENT SYSTEM 61


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

OPERATOR
ENTERS THE
OPERA NEW RECORD
TOR

NEW RECORD
LOG ON
SAVED IN
TO THE
THE
SYSTEM
DATBASE

DATABASE

RECORDS
CAN BE
GENERATION VIEWED
DETAILS OF
ITEM STOCK

STORE MANAGEMENT SYSTEM 62


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 63


Project Report
FINAL YEAR COMPUTER SCIENCE AND ENGINEERING
SESSION (2007-2008)

STORE MANAGEMENT SYSTEM 64

Das könnte Ihnen auch gefallen