Sei sulla pagina 1di 79

CONTENTS AT A GLANCE

PREFACE

CHAPTER 1 INTRODUCTION TO THE PROJECT

CHAPTER 2 SYSTEM SPECIFICATION

CHAPTER 3 SYSTEM DESIGN

CHAPTER 4 CODING

REFERENCE
TABLE OF CONTENTS

CHAPTER 1: INTRODUCTION TO THE PROJECT

1.1 INTRODUCTION

1.2 HARDWARE REQUIREMENTS

1.3 SOFTWARE REQUIREMENTS

CHAPTER 2: SYSTEM STUDY AND ANALYSIS

2.1 INTRODUCTION
2.2 FEASIBILITY STUDY
2.3 EXISTING SYSTEM
2.4 PROPOSED SYSTEM
CHAPTER 3:

3.1 FRONT END VB


3.2 BACK END ACCESS

CHAPTER 4: TECHNOLOGY

4.1 ABOUT PROJECT

4.2 STUDY OF PROJECT

4.3 DATAFLOW DIAGRAM


4.4 DATABASE DESIGN

4.5 DATABASE TABLE DESIGN

4.6 FORM DESIGN

4.7 TESTING

CHAPETR 5: CONCLUSION

CHAPTER 6: BIBLIOGRAPHY
PREFACE

We are now living in the Computer age. Now the computer is controlling all
the important works in our routine life. Man has invented many electronic devices
but out of these computers has made the greatest impact on society.

Computers are so versatile because they are indispensable to present day


engineers, scientists, businessmen and students. They have strengthened men’s
capability in numerical computations, information processing etc. and there by
increasing the effectiveness of the organization.

To do some specific tasks computer need software. Software may be


Database software, Languages etc. During this summer training, I did work on
“PET SHOP MANAGEMENT SYSTEM ” Software.

This software manages the records of the entire Employee, makes work efficient,
removes redundancy, and removes inconsistency.
SYNOPSIS

As to use this Pet Shop Management System all its user will have a valid
user id and password associated with it. Admin will responsible to provide their
user id and password by creating it. Admin can grant special permission to any
particular working employee. Admin can add new user, delete user, modify user,
generate bills, and get information on cash inflow and outflow. Check stock, get
reports on sales and purchase of products from suppliers and get information on
their regular customers to provide special discounts.

Valid user or working employee will be able to enter product details, their
code, and price and categorize products according to their size and price. This user
can also search any particular product using price and size options as well as using
product code options to check whether it is available in the pet Shop Management
System or not.

Bill section of pet Shop Management System will generate bill details such
as bill number which will be unique for each customer and supplier. If the bill is
for customer, then it will include product type, size, number of items purchased,
tax rate, total rate along with customer name and address.

It the bill is prepared for supplier then it will include supplier name, address,
type of product supplied, and date of receiving, total number of items, total price,
and date of payments, how much is left to be given for that particular supplier.

Admin will also able to prepare balance sheet for their business transactions
for a particular date, between given period, weekly basis or monthly basis or as per
user requirement.
1. INTRODUCTION

Purpose:
This project is compulsory as it is part of the college syllabus and as core
subject. VB came across my mine when choosing the suitable development for the
project as it is my system required offline module. The reason behind this system is
that I’ve developed a new system that can help to reduce the paper work of a pet
shop.
So I decided develop a Pet shop system as my final year project.
Scope:
I am responsible to back-end part of the system. Allowing administrator do
all the maintenance in the system. Allowing all users to register and use our
system. And design the basic function to reduce the workload of the users such as
sales module.
Methodology:
VB is great for developing offline system. Most of the back-end class is built by
VB. For the database that used to store data of the system, I use Ms Access and as
for the connection.
Assessment criteria used:
I have to keep the layout as simple and as direct as possible so users can
easily understand the purpose of my system. Design and develop a special search
engine for search and assign.
Development phases:
Firstly, I discuss the project scope with Employee. After the proposal
being approved by Employee, I have to come out with the function of the system
for all the different parties of users such as customer, Cash in, Employee.
MODULE

This module is the main module which performs all the main operations
in the system. The major operations in the system are:

 Admin login
 Add/Delete/Update/View/Save Employee
 Add/Delete/Update/View/Save Member
 Product module
 Employee module
 Supplier module
 Cash In module
 Employee Report module
ORGANISATION PROFILE

iApple InfoTech has a rich background in Software Development and


continues its entire attention on achieving transcending excellence in the
Development and Maintenance of Software Projects and Products in Many Areas.
Some of them are ERP, Banking, Manufacturing, Insurance and Laying Emphasis
on the Multimedia Projects. These projects are prevalent and have been distributed
and implemented for clients world over. Major software Development Park at
Karumathampatti,Coimbatore, India.

I. About Us

Elucidating the Aborigines of the Company, iApple InfoTech , was


initially iApple Academy IT Training Company .

After stabilizing the iApple InfoTech Products, Mr. R.KARTHIK


B.Tech., M.Sc., handled several Projects for leading Companies like Alstom,
MRL and Spencers. DSEL has confronted challenges and rooted itself has a niche
player in the Multimedia and the Business Software Segment. The Level of
performed has been exemplary leaving it to nothing than the best of benchmark.

The indispensable factors, which give DSEL the competitive advantages


over others in the market may be slated as :

Performance

Pioneering efforts

Client satisfaction

Innovative concepts
Constant Evaluations

Improvisation

Cost Effectiveness

II. Comparison Mission Statement

“To help customer optimize their investments in information


technology, to help them gain a competitive edge in the market place.”

III. Quality policy

“To help our stock holders by regularly reviewing and improving our
process.”

IV. Infrastructure

Nested in an area with built-in area of 2,400 sq.ft. The park has encountered
itself with computing resources that include from IBM. Besides, it also houses
HP/9000, Sun Sparch, DEC Alpha System and over 500 IBM PS/VP nodes over a
Heterogeneous Fiber Optic Network. Microsoft certified Operating system is used
varied from MVS and Aix through OS/400 and OS/2 to SOLARIS, UNIX and
Windows with range of RDBMS, Languages and Case tools.

Major Functions / Activities at skdotCom

Only a few years ago, the World Wide Web was a very design unfriendly
place. But with the advent of Images, Web Pages have become Interactive. This
inter-activity is still limited. In its endeavor to make the Internet more Interactive
Exciting, iApple InfoTech Technologies has set up the Internet Team.
iApple Web Portals:

www.iappleacademy.com www.googlyjobs.com www.studentsproject.in


www.iappleinfotech.com
1.2 HARDWARE REQUIREMENTS

The hardware that is needed for our system is:

Processor (CPU) : Pentium Processor

Primary Memory (RAM) : 64 MB

Hard Disk Drive : 20 GB

Display Size : 14 ’’ Monitor

Text Resolution : 80 Columns by 25 Rows

Key Board : Total 104 keys with 12

Functions keys

Control : American Standard

Printer Available : HP Laser Jet 6 l


Power Requirement : 220 –250 Volts

1.3 SOFTWARE REQUIREMENTS

The software that is needed for our system is:

 Microsoft Visual Basic 6.0


 Microsoft Access 2000
2. SYSTEM STUDY AND ANALYSIS
2.1 INTRODUCTION

System analysis is a process of gathering and interpreting facts,


diagnosing problems and the information to recommend improvements on
the system. It is a problem solving activity that requires intensive
communication between the system users and system developers. System
analysis or study is an important phase of any system development process.
The system is studied to the minutest detail and analyzed. The system
analyst plays the role of the interrogator and dwells deep into the working of
the present system. The system is viewed as a whole and the input to the
system are identified. The outputs from the organizations are traced to the
various processes. System analysis is concerned with becoming aware of the
problem, identifying the relevant and decisional variables, analyzing and
synthesizing the various factors and determining an optimal or at least a
satisfactory solution or program of action.

A detailed study of the process must be made by various techniques


like interviews, questionnaires etc. The data collected by these sources must
be scrutinized to arrive to a conclusion. The conclusion is an understanding
of how the system functions. This system is called the existing system. Now
the existing system is subjected to close study and problem areas are
identified. The designer now functions as a problem solver and tries to sort
out the difficulties that the enterprise faces. The solutions are given as
proposals. The proposal is then weighed with the existing system
analytically and the best one is selected. The proposal is presented to the
user for an endorsement by the user. The proposal is reviewed on user
request and suitable changes are made. This is loop that ends as soon as the
user is satisfied with proposal.

Preliminary study is the process of gathering and interpreting facts,


using the information for further studies on the system. Preliminary study is
problem solving activity that requires intensive communication between the
system users and system developers. It does various feasibility studies. In
these studies a rough figure of the system activities can be obtained, from
which the decision about the strategies to be followed for effective system
study and analysis can be taken.

.
2.2 FEASIBILITY STUDY

An important outcome of the preliminary investigation is the


determination that the system requested is feasible. Feasibility study is
carried out to select the best system that meets the performance
requirements.

Feasibility study is both necessary and prudent to evaluate the


feasibility of the project at the earliest possible time. It involves preliminary
investigation of the project and examines whether the designed system will
be useful to the organization. Months or years of effort, thousand for
millions of money and untold professional embarrassment can be averted if
an in-conceived system is recognized early in the definition phase.

The different types of feasibility are: Technical feasibility, Operational


feasibility, Economical feasibility.

2.2.1 Technical feasibility

Technical Feasibility deals with the hardware as well as software


requirements. Technology is not a constraint to type system development.
We have to find out whether the necessary technology, the proposed
equipments have the capacity to hold the data, which is used in the project,
should be checked to carry out this technical feasibility.

The technical feasibility issues usually raised during the feasibility


stage of investigation includes these

 This software is running in windows 2000 Operating System, which


can be easily installed.
 The hardware required is Pentium based server.
 The system can be expanded.
2.2.2 Behavioral Feasibility

This feasibility test asks if the system will work when it is developed
and installed.

Operational feasibility in this project:

 The proposed system offers greater level of user-friendliness.


 The proposed system produces best results and gives high
performance. It can be implemented easily .So this project is
operationally feasible.
2.2.3 Economical feasibility

Economical Feasibility deals about the economical impact


faced by the organization to implement a new system. Financial
benefits must equal or exceed the costs. The cost of conducting a full
system, including software and hardware cost for the class of
application being considered should be evaluated. Economic
Feasibility in this project:

 The cost to conduct a full system investigation is possible.


 There is no additional manpower requirement.
 There is no additional cost involved in maintaining the proposed
system.
2.3 EXISTING SYSTEM

Existing system refers to the system that is being followed till now. The
existing system requires more computational time, more manual calculations, and
the complexity involved in Selection of features is high. The other disadvantages
are lack of security of data, Deficiency of Data accuracy, Time consuming etc. To
avoid all these limitations and make the working more accurately the system needs
to be computerized. Here in the Electronic bus ticketing, a detailed study of
existing system is carried along with all the steps in system analysis.

2.3.1 Draw backs of existing system.

Here in Pet shop management system, a detailed study of existing system is


carried along with all the steps in system analysis. An idea for creating a better
project was carried and the next steps were followed.

 Lack of security of data.


 More man power.
 Time consuming.
 Consumes large volume of pare work.
 Needs manual calculations.
 No direct role for the higher officials.
 Damage of machines due to lack of attention.
To avoid all these limitations and make the working more accurately the system
needs to be computerized.
2.4 PROPOSED SYSTEM

The aim of proposed system is to develop a system of improved facilities.


The proposed system can overcome all the limitations of the existing system. The
system provides proper security and reduces the manual work. The existing system
has several disadvantages and many more difficulties to work well. The proposed
system tries to eliminate or reduce these difficulties up to some extent. The
proposed system will help the user to reduce the workload and mental conflict. The
proposed system helps the user to work user friendly and he can easily do his jobs
without time lagging.

2.4.1 Advantages of Proposed System

The system is very simple in design and to implement. The system requires

very low system resources and the system will work in almost all configurations. It

has got following features

 Ensure data accuracy.

 Minimize manual data entry.

 Minimum time needed for the various processing

 Greater efficiency

 Better Service

 Minimum time required


 This would help the corporation prepare and organize its schedules

more efficiently on the basis of traffic demand.

 It would provide data on concessions given to various sections.


Introduction to

Microsoft Visual Basic6.0


And
Microsoft Access2000
3.1 TECHNOLOGY

OPERATING SYSTEM - WINDOWS 98

Assortment of appropriate Operating system and Programming


language for any project is very important. Basically it depends upon the nature of
project and its system requirements. Windows provides a Multitasking
Environment, enabling user to run various applications at a time. Windows offer
many advantages to both the user and the programmer besides GUIs such as point-
and-click capabilities and multitasking.

3.2 FRONT END - MICROSOFT VISUAL BASIC 6.0

Microsoft Visual Basic development system is the most productive tool for
creating fast business solutions for Windows and the Web. A comprehensive, rapid
application development environment helps development environment help
developers quickly create and deploy client /server applications, plus easily
program for the Internet using familiar Visual Basic programming tools and
techniques.

The important requirements for a rapid, application-development client/server tool


include:

 Comprehensive resources necessary for successful Windows 2000


development.
 High-performance, scalable application and component creation.
 Increased data application development productivity & control.
 Greater service application development support.
 A robust extensibility model for third party support & availability of
components and add in technology.
 Enterprise application development.

With the introduction of Visual Basic 6.0, Microsoft builds upon its critically
acclaimed RAD enterprise development platform with the features that extended
and enhance the currently robust development environment. These features are
based on five design themes, in turn derived from these customer requirements.

Windows 2000 Development with Visual Basic:

The Microsoft Visual Basic development system now provides the


comprehensive resources necessary for successful Windows 2000 development.
From building e-commerce Web technologies, such as network and component
load balancing, to scalable data driven business applications, Visual Basic 6.0 has
what you need.

 Windows 2000 Developer's Readiness Kit


 Visual studio installer.
 MSDN Library Subscription.
 Microsoft Data Engine.
High Performance, Scalable Application and Component Creation

The goal of any development tool is to facilitate the developer's need for
quick and efficient creation and deployment of high performance, scalable
applications. Visual Basic 6.0 works to address these needs through the delivery of
a quick-executing, native-code environment. Tens of millions of Visual Basic
based applications in use today stand as a testament to the success of Visual Basic
in this area. With Visual Basic 6.0, Microsoft made improvements in the following
areas:
 Deliver native-code compiled performance
 Accelerated Microsoft Win 32 API based forms.
 Provide scalable solutions.
 Facilitate the development of thread-safe, persist able components.
Data-Centric Application Development

Ninety-five percent of developers using Visual Basic create solutions that


access either local or remote database and the vast majority of all corporate
applications are data-centric. In fact, a recent tracking study revealed that Visual
Basic is the most popular development tool used in Conjunction with Microsoft
SQL Server and Oracle Servers. Clearly, developers require more productive ways
to connect to and manipulate data with reduced complexity and open to access to a
wide variety of data sources.

While developing Visual Basic 6.0, Microsoft addressed these important


needs by focusing on the following data-productivity objectives:

 Provide faster and more comprehensive data access.


 Provide an integrated set of data base design and programming tool.
 Simplify the creation of data-centric application for the mobile user.
 Provide support for the latest data base management technology using ActiveX
Data Objects (ADO) and OLEDB.
 Provide easier access to more data types.
 Simplify the creation of reusable data consumers.
Server Application Development and Deployment

In recent years, PC-based enterprise client /server development has


gained widespread acceptance. At the center of these installations is Win 32 or
Internet based server applications. In response to this, Microsoft has enhanced
Visual Basic with the existing new server application features. Microsoft focused
on the following objectives to optimize Visual Basic 6.0 for server application
development.

 Enable the creation of HTML based Web applications.


 Utilize Web sites both inside and outside the corporate firewall as a
measure to reduce deployment costs.
 Debug middle tier components running under Microsoft Transaction
Server.
 Package and deploy middle-tier components with ease and peace of
mind.
Client Development Support
At the heart of the success Visual Basic has enjoyed is the ability it gives
developer to quickly create robust, powerful, and professional client applications,
components and user interfaces. Visual basic 6.0 provides the following
improvements that enhance client application development:

 ActiveX Control creation that gives developers the ultimate in


Win32 flexibility.

 Creation of browser-independent applications.


Enterprise Application Development

As the use of information technology changes to meet new business


needs, the very definition of “enterprise applications” is evolving. While enterprise
infrastructure and applications vary widely across organizations, common
attributes of “enterprise” applications include:

 Being component based for flexibility and scalability.


 Requiring life cycle support, including design, development, management
and analysis.
 Requiring more sophisticated database architectures.
 Being developed by teams.
 Being distributed in nature, integrated with desperate backend system.
3.3 Back End: Microsoft Access

Microsoft access delivers powerful tools for managing and analyzing data.
With XML support, developers can create highly sophisticated

Enterprise - wide database solutions that integrate easily with the web. One can
find comprehensive tools that make building databases more intuitive Features like
Microsoft Pivot table and the Microsoft Pivot chart greatly improve data analysis
capabilities. Microsoft Access is one of the most versatile applications. This
versatility is evidenced by the rich set of tools that even the Most experienced
database user can take advantage of, offering the same level of simplicity for first
time database user. Access extends this versatility by giving developers and more
experienced user’s new functionality, enabling them to access and analyze their
important data as well as build powerful new data base solution. At same time,
access makes it easy for beginning users to discover and use more of the existing
application.
Project Information

4.1 About Project

This project is of PET SHOP MANAGEMENT SYSTEM.

In this project Microsoft Visual Basic has been used as Front End and Microsoft
Access as the back end.

The functions performed by this project are as follows:

 It Stores Information about EMPLOYEE.


 It contains information about CUSTOMER.
 It contains details of CASH IN etc.
 It makes entries for Updating and Deletion.
 It updates/enter details.
Advantages of the System

Advantages of the system over manual record handling are as follows:


 Removes redundancy.
 Reduces errors.
 Provides better protection.
 Makes work easier.
 Reduces manual labor.

4.2 Study of project through Classical Model


A system model is a systematic approach towards software development.
Before any building is built it is necessary to make the drawing of that building,
similar is the case with any software. Here also before any coding of the software
begins, it is necessary to make the model of the software.

A model basically specifies all the steps to be followed during the system
development. This makes the task of the engineer quite simple and helps him build
software, which is less error prone.

Tasks accomplished by system modeling are:

 Define the processes that serve the needs of the view under consideration.
 Represent the behavior of the processes and the assumptions on which
behavior is based.
 Explicitly define both exogenous and endogenous input to the model.
 Represent all linkages that will enable the engineer to better understand the
view.
The model used is shown below:

SYSTEM DEVELOPMENT LIFE CYCLE

A crucial phase in the System Development Life Cycle (SDLC)

Is the successful implementation of the new system design? Implementation includes all
those activities that take place to convert from the old system to the new one. The new
system may be completely new, replacing an existing manual or automated system or it
may be major modification to an existing system. In either case, proper implementation
becomes necessary so that a reliable system based on the requirements of the
organization can be provided.

Successful Implementation may not guarantee improvement in the


organization using the new system, but improper installation will prevent it. It has
been observed that even the best system cannot show good results if the analyst
managing the implementation does not attend to every important detail. This is the
area where the system analyst needs to work most carefully

The proposed system is very simple to implement. As specified prior, the


required Hardware and Software are sufficient for implementing this software. The
implementation process is quite similar to most software’s. So the implementations
of this software become easy.
4.3 DATA FLOW DIAGRAM

Data flow oriented techniques advocate that the major data items
handled by a system must be first identified and then the processing required
on these data items to produce the desired outputs should be determined. The
DFD (also called as bubble chart) is a simple graphical formalism that can
be used to represent a system in terms of input data to the system, various
processing carried out on these data, and the output generated by the system.
It was introduced by De Macro (1978), Gane and Sarson (1979).The
primitive symbols used for constructing DFD’s are:

Symbols used in DFD

A circle represents a process.

A rectangle represents external entity

A square defines a source or destination of the system data.

An arrow identifies dataflow.

Double line with


one end closed indicates data store
Gather
Information

Design of
System
PROC-
OUTPUT
INPUT
ESS
DESIGN
DESIGN
DESIGN

Coding of

Design

Testing of

Software

Debugging of
Software
Data Flow Diagram
4.4 DATABASE DESIGN

A database is an organized mechanism that has the capability of

storing information through which a user can retrieve stored information in

an effective and efficient manner. The data is the purpose of any database

and must be protected.

The database design is a two level process. In the first step, user

requirements are gathered together and a database is designed which will

meet these requirements as clearly as possible. This step is called

Information Level Design and it is taken independent of any individual

Database Management System (DBMS).

In the second step, this Information level design is transferred into a

design for the specific DBMS that will be used to implement the system in

question. This step is called Physical Level Design, concerned with the

characteristics of the specific DBMS that will be used. A database design

runs parallel with the system design. The organization of the data in the

database is aimed to achieve the following two major objectives.

 Data Integrity

 Data independence
4.4(i) INPUT DESIGN

Input design is the process of converting user-originate inputs to a computer-


based format. The goal of design input data is to make data entry as easy, logical
and free. The most common source of data processing errors is inactive input data.
Effective design of the input data minimizes the error made by data entry
operators. Catching errors on input is far less costly than correcting after data
storage is complete.
User-friendly input design enables quick error detecting and correction.
Verification and validation is the most important in input design. Since the system
is used interactively, it has two types of inputs. Interactive input-which is the point
contact of the user with the system and the input to the internal system i.e.
Databases. For full efficiency of the system, it is necessary that the input must be
accurate. Since the user of the system may not be a technical person and may not
know input concepts so it is required that he warn, prevent and correct invalid data
entry.
There are many ways that can be designed to handle such a situation. We
can prevent the user entering invalid data into the databases by warning, neglecting
or messaging appropriately. The user is then allowed to input correct data. Some
help provisions may aid the user to point out the error. In this system inputs are
collected from terminals through keyboard.
4.4) (ii) OUTPUT DESIGN
Output design has been an ongoing activity from the very beginning of the
project. The objective of the output design is to convey the information of all past
activities, current status and to emphasize important events. The output generally
refers to the results and information that is generated from the system.
The output design of the system is accomplished keeping in mind the following
activities:
 Determine what information is to display.
 Decide whether to display or print the information retrieved, processed,
generated from the system.
 Arrange the presentation of information in an acceptable format.
 Decide how to distribute the output to the intended recipients.
In the output design phase one or more output media can be selected.

Out of which the most common ones are CRT displays and print out.

Here only CRT display has been attempted. A rapid enquiry is

obtained from CRT displays. From design is made interesting and

attractive. Easy understanding and effectiveness is made possible.


4.5 DATABASE TABLE DESIGN

Table Name: - Employee

Primary key: fname

Table Name: - Supplier

Primary key: sid


Table Name: - Product Table

Primary key: pcode

Table Name: -Cash bill

Primary key: bno


4.6 APPENDIX
Sample Screen Shots

Main from Coding:

Private Sub Label11_Click()

End

End Sub
Private Sub Label14_Click()

Load Form2

Form2.Show

End Sub

Private Sub Label16_Click()

Load Form3

Form3.Show

End Sub

Private Sub Label18_Click()

Load Form4

Form4.Show

End Sub

Private Sub Label20_Click()

Load Form5

Form5.Show

End Sub

Private Sub Label22_Click()

Load DataReport2

DataReport2.Show

End Sub
Private Sub Label26_Click()

Load DataReport3

DataReport3.Show

End Sub

Private Sub Label28_Click()

Load DataReport1

DataReport1.Show

End Sub
Employee Coding:

Dim cn As ADODB.Connection

Dim rs As ADODB.Recordset

Private Sub CommandButton1_Click()

rs.AddNew
rs!eid = Val(TextBox1.Text)

rs!fname = TextBox2.Text

rs!mname = TextBox3.Text

rs!lname = TextBox4.Text

rs!fathername = TextBox5.Text

rs!address = TextBox6.Text

rs!State = TextBox7.Text

rs!pno = Val(TextBox8.Text)

rs!pno1 = Val(TextBox13.Text)

rs!emailid = TextBox9.Text

If OptionButton1.Value = True Then

rs!maritalstatus = OptionButton1.Caption

Else

rs!maritalstatus = OptionButton2.Caption

End If

rs!sex = Combo1.Text

rs!dob = TextBox10.Text

rs!dept = TextBox11.Text
rs!salary = Val(TextBox12.Text)

rs.Update

MsgBox "New Employee Joined"

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

Combo1.Text = ""

OptionButton1.Value = False

OptionButton2.Value = False
End Sub

Private Sub Form_Load()

Set cn = New ADODB.Connection

Set rs = New ADODB.Recordset

cn.Provider = "microsoft.ace.oledb.12.0;Data source=E:\Garment


management system\garments data.accdb"

cn.CursorLocation = adUseClient

cn.Open

rs.Open "select * from employeeinfo", cn, adOpenDynamic,


adLockOptimistic

End Sub

Private Sub Label10_Click()

rs.MoveFirst

Do While Not rs.EOF

If rs!eid = Val(TextBox1.Text) Then

TextBox2.Text = rs!fname

TextBox3.Text = rs!mname
TextBox4.Text = rs!lname

TextBox5.Text = rs!fathername

TextBox6.Text = rs!address

TextBox7.Text = rs!State

TextBox8.Text = rs!pno

TextBox13.Text = rs!pno1

TextBox9.Text = rs!emailid

If OptionButton1.Value = True Then

OptionButton1.Caption = rs!maritalstatus

Else

OptionButton2.Caption = rs!maritalstatus

End If

Combo1.Text = rs!sex

TextBox10.Text = rs!dob

TextBox11.Text = rs!dept

TextBox12.Text = rs!salary

rs.Update

MsgBox " Employee information is Modified"


End If

rs.MoveNext

Loop

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = "'"

Combo1.Text = ""

OptionButton1.Value = False
OptionButton2.Value = False

End Sub

Private Sub Label11_Click()

Unload Me

End Sub

Private Sub Label27_Click()

Load Form1

Form1.Show

Unload Me

End Sub

Private Sub Label28_Click()

Unload Me

End Sub

Private Sub Label30_Click()

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""
TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

Combo1.Text = ""

OptionButton1.Value = False

OptionButton2.Value = False

End Sub

Private Sub Label31_Click()

Dim c

rs.MoveFirst

Do While Not rs.EOF


If rs!eid = Val(TextBox1.Text) Then

rs.Delete

MsgBox "Employee Disjoined "

c=1

End If

rs.MoveNext

Loop

If c <> 1 Then

MsgBox "Record not Found"

End If

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""
TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

Combo1.Text = ""

OptionButton1.Value = False

OptionButton2.Value = False

End Sub

Private Sub Label32_Click()

Dim c

rs.MoveFirst

Do While Not rs.EOF

If rs!eid = Val(TextBox1.Text) Then

TextBox1.Text = rs!eid

TextBox2.Text = rs!fname

TextBox3.Text = rs!mname

TextBox4.Text = rs!lname
TextBox5.Text = rs!fathername

TextBox6.Text = rs!address

TextBox7.Text = rs!State

TextBox8.Text = rs!pno

TextBox13.Text = rs!pno1

TextBox9.Text = rs!emailid

If OptionButton1.Caption = rs!maritalstatus Then

OptionButton1.Value = True

Else

OptionButton2.Value = False

End If

Combo1.Text = rs!sex

TextBox10.Text = rs!dob

TextBox11.Text = rs!dept

TextBox12.Text = rs!salary

c=1

End If

rs.MoveNext
Loop

If c <> 1 Then

MsgBox " Employee information not Found"

End If

End Sub

Private Sub Label33_Click()

rs.MoveFirst

Do While Not rs.EOF

If rs!eid = Val(TextBox1.Text) Then

TextBox2.Text = rs!fname

TextBox3.Text = rs!mname

TextBox4.Text = rs!lname

TextBox5.Text = rs!fathername

TextBox6.Text = rs!address

TextBox7.Text = rs!State

TextBox8.Text = rs!pno

TextBox13.Text = rs!pno1
TextBox9.Text = rs!emailid

If OptionButton1.Value = True Then

OptionButton1.Caption = rs!maritalstatus

Else

OptionButton2.Caption = rs!maritalstatus

End If

Combo1.Text = rs!sex

TextBox10.Text = rs!dob

TextBox11.Text = rs!dept

TextBox12.Text = rs!salary

rs.Update

MsgBox " Employee information is Modified"

End If

rs.MoveNext

Loop

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""
TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = "'"

Combo1.Text = ""

OptionButton1.Value = False

OptionButton2.Value = False

End Sub

Private Sub Label6_Click()

Load Form1

Form1.Show
Unload Me

End Sub

Private Sub Label7_Click()

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

Combo1.Text = ""
OptionButton1.Value = False

OptionButton2.Value = False

End Sub

Private Sub Label8_Click()

Dim c

rs.MoveFirst

Do While Not rs.EOF

If rs!eid = Val(TextBox1.Text) Then

TextBox1.Text = rs!eid

TextBox2.Text = rs!fname

TextBox3.Text = rs!mname

TextBox4.Text = rs!lname

TextBox5.Text = rs!fathername

TextBox6.Text = rs!address

TextBox7.Text = rs!State

TextBox8.Text = rs!pno

TextBox13.Text = rs!pno1
TextBox9.Text = rs!emailid

If OptionButton1.Caption = rs!maritalstatus Then

OptionButton1.Value = True

Else

OptionButton2.Value = False

End If

Combo1.Text = rs!sex

TextBox10.Text = rs!dob

TextBox11.Text = rs!dept

TextBox12.Text = rs!salary

c=1

End If

rs.MoveNext

Loop

If c <> 1 Then

MsgBox " Employee information not Found"

End If

End Sub
Private Sub Label9_Click()

Dim c

rs.MoveFirst

Do While Not rs.EOF

If rs!eid = Val(TextBox1.Text) Then

rs.Delete

MsgBox "Employee Disjoined "

c=1

End If

rs.MoveNext

Loop

If c <> 1 Then

MsgBox "Record not Found"

End If

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""
TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

Combo1.Text = ""

OptionButton1.Value = False

OptionButton2.Value = False

End Sub
Supplier coding:

Dim cn As ADODB.Connection

Dim rs As ADODB.Recordset

Private Sub CommandButton1_Click()

TextBox12.Text = Val(TextBox10.Text) * Val(TextBox11.Text)


rs.AddNew

rs!sid = Val(TextBox1.Text)

rs!sname = TextBox2.Text

rs!cname = TextBox3.Text

rs!caddress = TextBox4.Text

rs!fnumber = Val(TextBox5.Text)

rs!pno = Val(TextBox6.Text)

rs!pno1 = Val(TextBox13.Text)

rs!cellno = Val(TextBox7.Text)

rs!cellno1 = Val(TextBox14.Text)

rs!emailid = TextBox8.Text

rs!issuedate = TextBox9.Text

rs!qty = Val(TextBox10.Text)

rs!Rate = Val(TextBox11.Text)

rs!amount = Val(TextBox12.Text)

rs.Update

MsgBox "Supplier Information Added"

TextBox1.Text = ""
TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

TextBox14.Text = ""

End Sub

Private Sub Form_Load()

Set cn = New ADODB.Connection

Set rs = New ADODB.Recordset


cn.Provider = "microsoft.ace.oledb.12.0;Data source=E:\Garment
management system\garments data.accdb"

cn.CursorLocation = adUseClient

cn.Open

rs.Open "select * from supplierinfo", cn, adOpenDynamic, adLockOptimistic

End Sub

Private Sub Label10_Click()

rs.MoveFirst

Do While Not rs.EOF

If rs!sid = Val(TextBox1.Text) Then

TextBox2.Text = rs!sname

TextBox3.Text = rs!cname

TextBox4.Text = rs!caddress

TextBox5.Text = rs!fnumber

TextBox6.Text = rs!pno

TextBox13.Text = rs!pno1

TextBox7.Text = rs!cellno
TextBox14.Text = rs!cellno1

TextBox8.Text = rs!emailid

TextBox9.Text = rs!issuedate

TextBox10.Text = rs!qty

TextBox11.Text = rs!Rate

TextBox12.Text = rs!amount

rs.Update

MsgBox " Supplier information is Modified"

End If

rs.MoveNext

Loop

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""
TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

TextBox14.Text = ""

End Sub

Private Sub Label11_Click()

Unload Me

End Sub

Private Sub Label6_Click()

Load Form1

Form1.Show

Unload Me

End Sub
Private Sub Label7_Click()

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""

TextBox14.Text = ""

End Sub
Private Sub Label8_Click()

Dim c

rs.MoveFirst

Do While Not rs.EOF

If rs!sid = Val(TextBox1.Text) Then

TextBox1.Text = rs!sid

TextBox2.Text = rs!sname

TextBox3.Text = rs!cname

TextBox4.Text = rs!caddress

TextBox5.Text = rs!fnumber

TextBox6.Text = rs!pno

TextBox13.Text = rs!pno1

TextBox7.Text = rs!cellno

TextBox14.Text = rs!cellno1

TextBox8.Text = rs!emailid

TextBox9.Text = rs!issuedate

TextBox10.Text = rs!qty

TextBox11.Text = rs!Rate
TextBox12.Text = rs!amount

c=1

End If

rs.MoveNext

Loop

If c <> 1 Then

MsgBox " Supplier Not Found"

End If

End Sub

Private Sub Label9_Click()

Dim c

rs.MoveFirst

Do While Not rs.EOF

If rs!sid = Val(TextBox1.Text) Then

rs.Delete

MsgBox "Supplier Record Deleted "

c=1

End If
rs.MoveNext

Loop

If c <> 1 Then

MsgBox "Record not Found"

End If

TextBox1.Text = ""

TextBox2.Text = ""

TextBox3.Text = ""

TextBox4.Text = ""

TextBox5.Text = ""

TextBox6.Text = ""

TextBox7.Text = ""

TextBox8.Text = ""

TextBox9.Text = ""

TextBox10.Text = ""

TextBox11.Text = ""

TextBox12.Text = ""

TextBox13.Text = ""
TextBox14.Text = ""

End Sub
4.7 TESTING

Testing is a process of executing a program with the interest of finding

an error. A good test is one that has high probability of finding the yet

undiscovered error. Testing should systematically uncover different classes

of errors in a minimum amount of time with a minimum amount of efforts.

Two classes of inputs are provided to test the process

1. A software configuration that includes a software requirement

specification, a design specification and source code.

2. A software configuration that includes a test plan and procedure, any

testing tool and test cases and their expected results.

Testing is divided into several distinct operations:

1. Unit Testing

Unit test comprises of a set tests performed by an individual


program prior to the integration of the unit into large system. A
program unit is usually the smallest free functioning part of the whole
system. Module unit testing should be as exhaustive as possible to
ensure that each representation handled by each module has been
tested. All the units that makeup the system must be tested
independently to ensure that they work as required.

During unit testing some errors were raised and all of them
were rectified and handled well. The result was quiet satisfactory and
it worked well.
2. Integration Testing
Integration testing is a system technique for constructing the
program structure while at the same time conducting tests to uncover
errors associated with interfacing. The objective is to take unit tested
modules and build a program structure that has been dictated by
design. Bottom-up integration is the traditional strategy used to
integrate the components of a software system into functioning whole.

Bottom-up integration consists of unit test followed by testing of the


entire system. A sub-system consists of several modules that communicated
with other defined interface.

The system was done the integration testing. All the modules were tested
for their compatibility with other modules .They test was almost successful.
All the modules coexisted very well, with almost no bugs. All the modules
were encapsulated very well so as to not hamper the execution of other
modules.

3. Validation Testing
After validation testing, software is completely assembled as a package,
interfacing errors that have been uncovered and corrected and the final series
of software test; the validation test begins. Steps taken during software
design and testing can greatly improve the probability of successful
integration in the larger system. System testing is actually a series of
different tests whose primary purpose is to fully exercise the compute –
based system.
4. Recovery Testing
It is a system that forces the software to fail in a variety of ways and
verifies that the recovery is properly performed.
5. Security Testing
It attempts to verify that protection mechanisms built into a system will
in fact protect it from improper penetration. The system’s security must of
course be tested from in vulnerability form frontal attack.
6. Stress Testing
Stress tools are designed to confront programs with abnormal
situations. Stress testing executes a system in a manner that demands
resources in abnormal quantity and volume.
7. Black Box Testing
Black box testing is done to find out the following information as shown
in below:
1. Incorrect or missing functions.
2. Interface errors.
3. Errors or database access.
4. Performance error.
5. Termination error.
The mentioned testing is carried out successfully for this
application according to the user’s requirement specification.

8. Test Data Output


After preparing test data, the system under study is tested using
the test data. While testing the system using test data, errors are again
uncovered and corrected by using above testing and corrections are
also noted for future use.
5. CONCLUSION & FUTURE ENHANCEMENT

The project Pet shop is completed, satisfying the required design specifications.
The system provides a user-friendly interface. The software is developed with
modular approach. All modules in the system have been tested with valid data and
invalid data and everything work successfully. Thus the system has fulfilled all the
objectives identified and is able to replace the existing system. The constraints are
met and overcome successfully. The system is designed as like it was decided in
the design phase. This software has a user-friendly screen that enables the user to
use without any inconvenience. This would help the corporation prepare and
organize its schedules more efficiently on the basis of traffic demand. Besides, it
would provide data on concessions given to various sections.
6. BIBLIOGRAPHY

BOOKS:

1. Charles Hampfed (2000) ‘Visual Basic’ University of


Toronto
2. Herbert Schildt (2000) ‘Visual Basic 6.0’ Tata McGraw Hill
3. John Zukowski (2000) ‘Visual Basic 6.0’ ‘BPB Publications
4. Jamie Jaworsky ‘Visual Basic 6.0’Techmedia
5. Stefen Denninger ‘Visual Basic 6.0’Author’s Press
6. Ian Somerville ‘Software engineering’
7. Rajeev mall ‘Software engineering’
8. Elmasri Navathe ‘Fundamentals of database systems’

ONLINE REFERENCE:

www.w3schools.com
www.theserverside.com
www.visual.com

Potrebbero piacerti anche