You are on page 1of 65

TABLE OF CONTENTS

SLNO CONTENTS PGNO


1 Introduction to project
2 Modules
3 Hardware and software requirements
4 Introduction to vb.net
5 Introduction to Microsoft sql server
6 Data flow diagram
7 System analysis
8 System testing and validation
9 Screenshots
10 Tables
11 Coding
12 Conclusion
13 Future enhancement
14 Bibliography
INTRODUCTION TO PROJECT

The Inventory management record system is very simple and for very beginner
mini project. It is based on the menu-driven program for elementary database
management. It consists of following features Writing the data and Reading
the data and Modify the record, Delete the record.
Inventory management system is a computer-based system for tracking
inventory levels, orders, sales and deliveries. It can also be used in the
manufacturing industry to create a work order, bill of materials and other
production-related documents. Companies use inventory management
software to avoid product overstock and outages. It is a tool for organizing
inventory data that before was generally stored in hard-copy form or in
spreadsheets. System Analysis refers into the process of examining a situation
with the intent of improving it through better procedures and methods.
System Analysis is the process of planning a new System to either replace or
complement an existing system. But before planning is done the old system
must be thoroughly understood and the requirements determined. System
Analysis is therefore, the process of gathering and interpreting facts,
diagnosing problems and using the information to re-comment improvements
in the system. Or in order words, system Analysis means a detailed explanation
or description. Before computerized a system under consideration, it has to be
analysed. We need to study how it functions currently, what are the problems,
and what are the requirements that the proposed system should meet.
Modules

1. Enquiry Module
2. Quotation Module
3. Purchase Order Module
4. Sales Module
5. Transaction Module

DESCRIPTION
1. Enquiry Module: The Enquirer generated may be modified or cancelled
during enquiry amendment. Seller details and required date are allowed
to modify during the enquiry amendments.
2. Quotation Module: Quotations received are recorded into the system.
On entering the enquiry number, the Seller details appear on the screen
and the system accepts the quotation details such as opening date, price
basis.
3. Purchase Order Module: The entire information will be stored in the
purchase order master file and in the detail file.
4. Sales Module: The Sales module gives you quick links to various aspects
of this system manager related to taking and processing customer orders.
5. Transaction Module: It is from this table that the inventory quantities
finally get updated and serial/lot numbers get updated.
HARDWARE/SOFTWARE REQUIREMENTS
Hardware requirements
 Processor : Intel Pentium IV 2.8GHz

 RAM : 256MB RAM

 Keyboard : 104 keys

 Monitor : 15” SVGA monitor

 Hard Disk Drive : 40GB

 Mouse : logical mouse

 Printer : HP Laser jet 1000 series

 Compact Disk Drive : 52xLG

Software Requirements
 Operating system : windows 10
 Front-End : VB.NET
 Back-End : My SQL
 Tools : Microsoft Visual Studioc2019
INTRODUCTION TO VISUAL BASIC
SOFTWARE SPECIFICATION

WINDOWS 2000 PROFESSIONAL

Windows 2000 professional is an operating system Microsoft 2000 is a Graphical User


Interface(GUI) based operating system that is successor to Dos.

FEATURES OF WINDOWS 2000 PROFESSIONAL

Windows 2000 professional is considered more user friendly than its counterpart MS-DOS. It
can support long filenames as compared to the eight letter file names supported by Dos.
Starting in windows 2000, files could have name up to 255 characters long. A Web browser
called with Internet Explorer comes a part of windows 2000 professional.

Windows 2000 professional has another important feature called outlook Express. Outlook
Express we can send and receive Electronic Mail Message. Outlook Express also provides
facility for managing this message.
Windows 2000 professional Provider Internet Collaboration through its yet another feature
called Net Meeting. It helps in works together, sharing information exchanging files and
documents during conference using data, audio and video.
Windows 2000 professional provides with security zones features. This features helps to
assign Security option to website in using windows 2000, there is no remembering any codes
as if it is a GUI based Operating System.

VISUAL BASIC.NET
Microsoft visual basic.NET (VBNET) is an object oriented .Net language Visual basic is one of the
languages this are directed towards meeting the objectives of the .NET initiative of creating
distributed application it has initiated the capability of rapid application development From its earlier
versions and strengthened consider the implementation of object-oriented features Visual Basic .NET
is a powerful object-oriented language that provides features such as abstraction, encapsulation,
inheritance , and polymorphism in addition, it provides many other features that did not exist in the
earlier version. Such as multithreading and structured exception handling.

Features of Visual Basic .NET


Some of the key features introduced in Visual Basic .NET are as follows

 Inheritance

 Constructors and Destructors

 Overloading

 Overriding

 Structured exception handling

 Multithreading

Inheritance
Inheritance is the ability of a class to derive its characteristics from an existing class. Using
Visual Basic.NET you can create a class that provides basic.
Functionality so that other classes can inherit its members. The derived classes can further override
the inherited properties and methods to provide new functionality. Visual Basic .NET provides the
Inherits keyword to implement inheritance.

Constructors and Destructors


VisualBasic.NET supports constructors and destructors. A Constructor is a special type of
method that is invoked when you create a new instance of a class. A constructor is used to initialize
the members of the class. A destructor on the other hand, is invoked, when an object is destroyed. A
destructor releases the resources used by an object.

Overloading
Overloading enables methods to be defined with the same but different parameters. In other words, it
allows you to have multiple implementations of a method. In Visual Basic NET you can create
multiple methods with the same name in a class provided their parameter list is different.

Overriding
Overriding is the capability of a derived class to override the characteristics of the parent class. Visual
Basic NET has introduced the Overrides keyword for providing a new implementation of an inherited
member in the derived class. The methods that can be over ridden by the derived classes need to be
marked as veritable in the base class.

Structured Exception Handling


Exception are the errors that are generated at runtime as a result of an erroneous statement or
condition or because of some unexpected behavior of the application. For the program to be able to
handle such exception visual basic NET supports structured exception handling the consists of
protected blocks of code and filters for the possible exception that can be raised by the program.

Multithreading
Visual Basic .NET Provides full support for creating multithreaded applications.
Multithreading enables an application to contain one or more threads that can share the workload in
an application by executing one at a time.

Templates in Visual Basic Project


There are various types of templates available in Visual Basic Project.
 Console Application

 Windows Application

 Class Library

 Windows Class Library

 Asp.Net Web Application

 Asp.Net Web Services

 Web Control Library

 Windows Service

 Empty Project

 Empty Web Project

Console Application
This template is used to create & console application that can be ran from the
command line. A console application has a character user interface.

Windows Application
This template is used to create the individual structure windows supplication.

Class Library
This template is used to create a class or a reusable component that exposes some
functionality that can be used in various projects.

Windows Class Library


This template is used to create a custom control that can be added to the user interface. For
example you can create your own control to display the current time and use the control
while designing the user interface for your application.

Asp.Net Web Application


This template is used to create a web application. To be able to create an ASP .NeT web
application. You must have internet information services(IIS) 5.0 installed on your computer.

Asp.Net Web Services


This template is used to create a web service. Which is a component that can be made available to
other application via the web. A web service uses standards such as HTTP and XML to
communication with client applications.

Web Control Library


This template is used to create a custom control that can be used in web applications.

Windows Service
This template is used to create an application that does not have a user interface. A windows service is
a program that runs in the background of windows and can start automatically when the computer is
started. For example, you can create a windows service that monitors the performance of the system.
Empty Project
This template is used to create an empty project. f you want to add any file or component, you need to
do so manually.

Empty Web Project


This template is used to create an empty web project.

VARIOUS TYPES OF WINDOWS


Windows Forms Designer
When you create new window application project in VB.NET a form automatically added to the
project.
A Form is the basic unit in any windows based application and is used to accept user input and
perform some action based on the input.

The Solution Explorer Windows


The solution Explorer window lists the solution name, the project name, and all the forms and
modules that are used in the project.

The properties Window


The properties windows displays the properties that are associated with an object.

The Output Window


The Output window displays messages for the status of various features provided in the VB.NET IDE.

The Task List Window


The Task list window displays a list of errors along with the source. (the file and the line number).

The Server Explorer Window


Server Explorer window is a bandy tool for various administrative tasks such for monitoring the
performance of other machines on a network and locating and connecting to the various servers on the
network.
INTRODUCTION TO MICROSOFT SQL SERVER
Microsoft SQL Server is a relational database management system (RDBMS) that supports a
wide variety of transaction processing, business intelligence and analytics applications in
corporate IT environments. Microsoft SQL Server is one of the three market-leading database
technologies, along with Oracle Database and IBM's DB2.
Like other RDBMS software, Microsoft SQL Server is built on top of SOL, a standardized
programming language that database administrators (DBAs) and other IT professionals use to
manage databases and query the data they contain. SQL Server is tied to Transact-SQL (-
SQL), an implementation of SQL from Microsoft that adds a set of proprietary programming
extensions to the standard language.

Inside SQL Server's architecture -How SQL Server works


Like other RDBMS technologies, SQL Server is primarily built around a row-based table
structure that connects related data elements in different tables to one another, avoiding the
need to redundantly store data in multiple places within a database. The relational model also
provides referential integrity and other integrity constraints to maintain data accuracy. Those
checks are part of a broader adherence to the principles of atomicity, consistency, isolation
and durability, collectively known as the ACID properties, and are designed to guarantee that
database transactions are processed reliably.

one core component of Microsoft SQL Server is the SQL Server Database Engine, which
Controls data storage, processing and security. It includes a relational engine that processes
Commands and queries and a storage engine that manages database files, tables, pages,
indexes, data buffers and transactions. Stored procedures, triggers, views and other database
objects are also created and executed by the Database Engine.
Sitting beneath the Database Engine is the SQL Server Operating System, or SQLOS.
SQLOS handles lower-level functions, such as memory and /O management, job scheduling
and locking of data to avoid conflicting updates. A network interface layer sits above the
Database Engine and uses Microsoft's Tabular Data Stream protocol to facilitate request and
response interactions with database servers. And at the user level, SQL Server DBAs and
developers write T-SQL statements to build and modify database structures, manipulate data,
implement security protections and back up databases, among other tasks.

SQL Server services, tools and editions


Microsoft also bundles a variety of data management, business intelligence (BI) and analytics
tools with SQL Server. In addition to the R Services and now Machine Learning Services
technology that first appeared in SQL Server 2016, the data analysis offerings include SQL
Server Analysis Services, an analytical engine that processes data for use in BI and data
visualization applications, and SQL Server Reporting Services, which supports the creation
and delivery of BI reports.
On the data management side, Microsoft SQL Server includes SQL Server Integration
Services, SQL Server Data Quality Services and SQL Server Master Data Services. Also
bundled with the DBMS are two sets of tools for DBAs and developers: SQL Server Data
Tools, for use in developing databases, and SQL Server Management Studio, for use in
deploying, monitoring and managing databases.

SQL Server editions


Microsoft offers SQL Server in four primary editions that provide different levels of the
bundled Services. Two are available free of charge: a full-featured Developer edition for use
in database development and testing, and an Express edition that can be used to run small
databases with up to 10 GB of disk storage capacity. For larger applications, Microsoft sells
an Enterprise edition that includes all of SQL Server's features, as well as a Standard one with
a partial feature set and limits on the number of processor cores and memory sizes that users
can configure in their database servers. Other editions include a Standard version, Web
version and a Business Intelligence version. The Business Intelligence version provides Self
Service and Corporate Business Intelligence tools with the Standard Edition capabilities.
However, when SQL. Server 2016 Service Pack 1 (SP1) was released in late 2016, Microsoft
made some of the features previously limited to the Enterprise edition available as part of the
Standard and Express ones. That included In-Memory OLTP, Poly Base, column store
indexes, and partitioning, data compression and change data capture capabilities for data
warehouses, as well as several security features. In addition, the company implemented a
consistent programming model across the different editions with SQL Server 2016 SP1,
making it easier to scale up applications from one edition to another.

History
The original SQL Server code was developed in the 1980s by the former Sybase Inc., which
is now owned by SAP. Sybase initially built the software to run on Unix systems and
minicomputer platforms. It, Microsoft and Ashton-Tate Corp., then the leading vendor of PC
databases, teamed up to produce the first version of what became Microsoft SQL Server,
designed for the OS2 operating system and released in 1989.
Ashton-Tate stepped away after that, but Microsoft and Sybase continued their partnership
until 1994, when Microsoft took over all development and marketing of SQL Server for its
own operating systems. The year before, with the Sybase relationship starting to unravel,
Microsoft had also made the software available on the newly released Windows NT after
modifying the 16- bit OS/2 code base to create a 32-bit implementation with added features;
it focused on the Windows code going forward. In 1996, Sybase renamed its version
Adaptive Server Enterprise, leaving the SQL Server name to Microsoft.

Versions of SQL Server


Between 1995 and 2016, Microsoft released ten versions of SQL Server. Early versions were
aimed primarily at departmental and workgroup applications, but Microsoft expanded SQL
Server's capabilities in subsequent ones, turning it into an enterprise-class relational DBMS
that could compete with Oracle Database, DB2 and other rival plat forms for high-end
database uses. Over the years, Microsoft has also incorporated various data management and
data analytics tools into SQL Server, as well as functionality to support new technologies that
emerged, including the web, cloud computing and mobile devices.

SQL Server 2012:


Prior versions included SQL Server 2005, SQL Server 2008 and SQL Server 2008 R2, which
was considered a major release despite the follow-up sound of its name. Next to come were
SQL Server 2012 and SQL Server 2014. SQL Server 2012 offered new features, such as
column store indexes, which can be used to store data in a column-based format for data
warehousing and analytics applications, and Always on Availability Groups, a high
availability and disaster recovery techno logy. (Microsoft changed the spelling of the latter's
name to Always On when it released SQL Server 2016.)

SQL Server 2014:


SQL Server 2014 added In-Memory OLTP, which lets users run online transaction
processing OLTP) applications against data stored in memory-optimized tables instead of
standard disk-based ones. Another new feature in SQL Server 2014 was the buffer pool
extension, which integrates SQL Server's buffer pool memory cache with a solid-state drive -
another feature designed to boost I/O throughput by offloading data from conventional hard
disks.

Microsoft SQL Server 2016:


Microsoft SOL Server 2016, which became generally available in June 2016, was developed
as part of a "mobile first, cloud first" technology strategy adopted by Microsoft two years
earlier Among other things, SQL Server 2016 added new features for performance tuning,
real-time operational analytics, and data visualization and reporting on mobile devices, plus
hybrid cloud support that lets DEAs nun databases on a combination of on-premises systems
and public cloud services to reduce 1T costs. For example, a SQL Server Stretch Database
technology moves infrequently accessed data from on-premises storage devices to the
Microsoft Azure cloud, while keeping the data available for querying, if needed.
SQL Server 2016 also increased support for big data analytics and other advanced analytics
applications through SQL Server R Services, which enables the DBMS to run analytics
applications written in the open source R programming language, and Poly Base, a
technology that lets SQL Server users access data stored in Hadoop clusters or Azure blob
storage for analysis. Also, SQL Server 2016 was the first version of the DBMS to run
exclusively on 64-bit servers based on x64 microprocessors. And it added the ability to run
SQL Server in Docker containers, a virtualization technology that isolates applications from
each other on a shared operating system.

SQL Server 2017:


Microsoft SQL Server ran exclusively on Windows for more than 20 years. But, in 2016,
Microsoft said it planned to also make the DBMS available on Linux, starting with a new
version released as a community technology preview that November and initially dubbed
SQL Server v Next; later, the update was formally named SQL Server 2017, and it became
generally available in October of that year.
The support for running SQL Server on Linux moved the database platform onto an open
source operating system commonly found in enterprises, giving Microsoft potential inroads
with customers that don't use Windows or have mixed server environments. SQL Server 2017
also expanded the Docker support added for Windows systems in the previous release to
include Linux-based containers. Another notable feature in SQL Server 2017 is support for
the Python programming language, an open source language that is widely used in analytics
applications. With its addition, SQL Server R Services was renamed Machine Learning
Services (In-Database) and expanded to run both R and Python applications. Initially, the
machine learning toolkit and a variety of other features are only available in the Windows
version of the database software, with a more limited feature set supported on Linux.

SQL Server 2019:


SQL Server 2019 is slated to release in late 2019; however, a preview is available for
download. SQL Server 2019 CTP 3.0 is currently the latest public version available for
preview only as an Evaluation Edition. SQL Server 2019 was shown in September 2018,
introducing new features and tweaks focusing on performance, security and increasing work
volume data

SQL Server 2019 allows users to join SQL Server, HDFS, and Spark containers together
using a new Big Data Cluster feature. SQL Server 2019 also introduces column store index
builds, rebuilds and static data masking. Accelerated Data Recovery is also new, which
performs and undoes a redo phase in the oldest page log sequence number. As an example,
this is done in the case scenario where the user closes an application which was running for
an extended period of time, so the user does not have to wait long for the application to close.

Always On Availability Groups, available in SQL Server 2012, has been changed to simplify
administration of availability groups. This adds support to MSDB and Master system
databases. Other changes to features include the expansion to operations users can perform
with Always Encrypted data; additional Poly base connectors for SQL Server, Oracle,
MongoDB and Teradata; additional persistent memory options for storage; and improvements
on Query Processing.

Security features in SQL Server


The advanced security features supported in all editions of Microsoft SQL Server starting
with SQL Server 2016 SP1 include three technologies added to the 2016 release: Always
Encrypted, which lets user update encrypted data without having to decrypt it first; row-level
security, which enables data access to be controlled at the row level in database tables; and
dynamic data masking, which automatically hides elements of sensitive data from users
without full access privileges.
Other notable SQL Server security features include transparent data encryption, which
encrypts data files in databases, and fine-grained auditing, which collects detailed
information on database usage for reporting on regulatory compliance. Microsoft also
supports the Transport Layer Security protocol for securing communications between SQL
Server clients and database servers.
Most of those tools and the other features in Microsoft SOL Server are also supported in
Azure SQL Database, a cloud database service built on the SQIL Server Database Engine.
Alternatively, users can run SQL Server directly on Azure, via a techno logy called SQL
Server on Azure Virtual Machines; it configures the DBMS in Windows Server virtual
machines running on Azure. The VM offering is optimized for migrating or extending on-
premises SQL Server applications to the cloud, while Azure SQL Database is designed for
use in new cloud-based applications.

In the cloud, Microsoft also offers Azure SQL Data Warehouse, a data warehousing service
based on a massively parallel processing (MPP) implementation of SQL Server. The MPP
version, originally a stand-alone product called SQL Server Parallel Data Warehouse, is also
available for on-premises uses as part of the Microsoft Analytics Platform System, which
combines it with Poly Base and other big data technologies.

SYSTEM DESIGN

INTRODUCTION
The design phase is the life cycle phase in which the detailed design of the selected system in
the study phase is accomplished. In the design phase, the technical specifications are prepared
for the performance of all allocated tasks. It also includes the construction of programs and
program testing. In the design phase, the first step is to determine the output is to be produced
and in what format. Second, input data and master files have to be designed to meet the
requirements of proposed output. The system analyst has to define the methods of capturing
and input programs and format of the output and its use by the users.
The design is a solution, the translation of requirements into center ways of meeting. The
design 1s actually the process of analysing, organizing and developing a database model that
accurately reflects the organization functioning in the real world and implementing that
model by creating a database requires an appropriate methodology. System can be divided
into two phases:
1. Logical Design
2. Physical Design

Logical Design
The logical design describes the detail specification for the proposed system. We can say that
if describes its own feature. Input, output, file (table) and database in manner that meets the
project needs. In logical design work with users is done to develop general design, choose
best design. develop system flow charts, identify hardware, software and personal needs and
revise estimates etc.

Physical Design
The purpose of physical design is to translate the logical description of data into the technical
specification for storing and retrieving data. The goal is to create design for storing data that
will provide adequate performance and ensure database integrity, security and recovery.
Physical database design does not include implementing files and databases (i.e. creating
them and loading data into them).

Input Design
The input design specifies the number in which the user enters the data to the system for
processing at later stage. Input design can insure the reliability of the system and provide an
accurate result. The input determines whether the user interacts with the system efficiently or
not. The input design can also be explained as a link between the user and the world. Input
design consists of those steps necessary to put transactions data into usable form of
processing. While designing the input for the Crime Reporting System for police departments
of KPK has the following objectives were kept in mind as guidelines.
1. Reducing the amount of input
2. Avoiding errors in data
3. Keeping extra steps
4. Keeping the process simple
5. Avoiding delays

Data Capturing
In input design only those items are captured which must actually be the subject of input
while designing the input, following points were kept in mind.
1. Crime information
2. Complaint report record
3. Admin in formation
4. User information

Input Validation
Input validation is general term given to method, aim for detecting errors in the input. The
main thing, which is considered in the input, is that what the chances of error are? Following
are input validation used for centralized system for Crime Reporting System for police
department.
1. Empty entry Control
2. Data Type Validation
3. Not Null

Output Design
A system is considered to be successful or unsuccessful on the basis of output design. The
term "output" means that after compilation of physical design what errors come out of the
computer system for the user. The output in project is considered as the backbone of the
project. All managerial design is actually made through these reports. Basically the reports
are very important aspect of the output. The user creates various reports in response to
queries.

Data Base Design


Database Design is a creative process of transforming:
1. Problems into Solution
2. The description of solution
3. Intelligent database design is perhaps the most critical element of an optimal solution with
respect to performance. In fact, poor design is usually the culprit for poorly performing
solutions.
4. Designer of the database should satisfy the user.

Architectural Design
The primary objective of architectural design is to develop a modular program structure and
represent the control relationship between them.
Conceptual Database Design
Tells the user exactly
1. What the system will do
2. Describe the functions of the systems
3. The system will work in the following areas
4. Unique authorized access to all registered users

5. Purchasing of products
6.Data Validation checks
7. The system is defined by its boundaries, entities, attributes, and relationship

Modular Design
Modular design occurs after data; architecture and interface designs have been established. In
and world, the modular specification required to be define algorithmic details would be stated
in a natural language such as English because it is easily understandable. And then that
straight forward plain English are converted to diagrams. There is no question that graphics
tools such as flow charts or box diagrams provide excellent pictorial patterns that readily
depict modular details. However graphical tools are misused, the wrong picture may lead to
wrong software. In this section we will demonstrate some of our basic modules by using
Flow Charts. Such as form entry, deletion, insertion, updating and reports

Data Flow Diagram


The Data Flow Diagram (DFD) is the graphical representation of the processes and the flow
of data among them. A data flow diagram illustrates the processes, data stores, external
entities and the connecting data flows in a system. It is a common practice to draw a context-
level Data Flow Diagram first which shows the interaction between the system and outside
entities.
A data flow diagram is a graphical tool used to describe and analyse movement of data
through a system. They are the central tool and forms the basis from which the other
components are developed. The transformation of data from input to output may be described
logically and independently of physical components associated with the system. These are
known as
The logical data flow diagrams. The physical data flow diagrams show the actual implements
And movements of data between people, departments and workstations. A full description of
a System actually consists of a set of data flow diagrams. Using two familiar notations
Yourdon, Gane and Sarson notation develops the data flow diagram. Each component in a
DFD is labelled with a descriptive name. Process is further identified with a number that will
be used for identification purpose. The development of DFD's is done in several levels. Each
process in lower level diagrams can be broken down into a more detailed DFD in the next
level. The top level diagram is often called context diagram. It consists a single process bit,
which plays vital role in studying the current system. The process in the context level
diagram is exploded into other process at the first level DFD.
The idea behind the explosion of a process into more process is that understanding at one
level of detail is exploded into greater detail at the next level. This is done until further
explosion is necessary and an adequate amount of detail is described for analyst to understand
the process. Larry Constantine first developed the DFD as a way of expressing system
requirements in a graphical form, this lead to the modular design.
A DFD is also known as a "bubble Chart" has the purpose of clarifying system requirements
and identifying major trans formations that will become programs in system design. So it is
the starting point of the design to the lowest level of detail. A DFD consists of a series of
bubbles joined by data flows in the system.

DFD SYMBOLS
In the DFD, there are four symbols
A square defines a source (originator) or destination of system data.
An arrow defines data flow. It is the pipeline through which the information flows.
A circle or a bubble represents a process that transforms incoming data flow into out going
data
flows.
An open rectangle is a data store, data at rest or a temporary repository of data.

Process

→ DATA FLOW

Data store

Source/Sink (External Entity)

CONSTRUCTING A DFD
There are several rules of thumb that are used in drawing DFD's. They are

 Process should be named and numbered for an easy reference. Each name should be
representative of the process.

 The direction of flow is from top to bottom and from left to right. Data traditionally
flow from source to the destination although they may flow back to the source. One
way to indicate this is to draw long flow line back to a source. An alternative way is
to repeat the source symbol as a destination. Since it is used more than once in the
DFD, It is marked with a short diagonal.

 When a process is exploded into lower level details, they are numbered.

RULES GOVERNING THE DFD's

PROCESS
 No process can have only outputs.

 No process can have only inputs. If an object has only inputs then it must be a sink.

 A process has a verb phrase label.

DATA STORE
 Data cannot move directly from one data store to another data store, a process must move
data.

 Data cannot move directly from an outside source to a data store. Data must be moved by a
process that receives data from the source and places the data into the data store.

 Data cannot move directly to an outside sink from a data store. Data must be moved by a
process.

 A data store has a noun phrase label.

SOURCE OR SINK
 Data cannot move directly from a source to a sink. It must be moved by a process.

 A source or sink has a noun phrase label.

DATA FLOW
 A data flow has only one direction of flow between symbols. It may flow in both
directions between a process and a data store to show a read before an update.

 A fork in a data flow means that exactly the same data goes from a common location to
two or more different processes, data stores, or source/sinks.

 A join in a data flow means that exactly the same data come from any of two or more
different processes, data stores, or source/sinks to a common location

 A data flow cannot go directly back to the same process it leaves.

 A data flow to a data store means update.

 A data flow from a data store means retrieve or use.

 A data flow has a noun phase label.

Advantages of DFD:

 DFD is a Graphical tool used for requirements analysis.

 DFD depicts information flow without explicit representation of procedure logic.

 DFD also depicts real-time system with help of some extends notions.
DATA FLOW DIAGRAM
SYSTEM ANALYSIS

System Analysis is the process of gathering and interpreting facts, diagnosing problems, and
using the information to recommend improvements to the system. Analysis specifies what the
system should do whereas design states how to accomplish the objective. System analysis is
an activity that encompasses most of the tasks that are collectively called computer system

engineering

System analysis is conducted with the following objectives in mind.

1. Identify the Customer's need.

2. Evaluate the system concept for feasibility

3. Perform economic and technical analysis.

4. Allocate functions to hardware, software people, database and other system elements.

5. Establish cost and schedule constraints.

6. Create system definition that forms the foundation for all subsequent engineering
work.

Identification of Need
The first step of the analysis process involves the identification of need. The success of a
system depends largely on how accurately a problem is defined. User need identification and
analysis are concerned with what the user needs rather than what he / she wants. This step is
intended to help the user and the analyst understand the real problem rather than its
symptoms.
This package has been developed in order to overcome the difficulties encountered while
using he manual system. Faster and timely generation of reports is another motivating factor
for the development of this package. All project are feasible -given unlimited resources and
infinite time. It is both necessary and prudent to evaluate the feasibility of a project at the
earliest possible time. Feasibility and risk analysis are related in many ways.
If project risks are great, the feasibility of producing quality software is reduced.

Feasibility Study
Feasibility study is conducted once the problem is clearly understood. Feasibility study is a
high level capsule version of the entire system analysis and design process. The objective is
determined quickly at a minimum expense how to solve the problem but to determine if the
problem is worth solving.
The system has been tested for feasibility in the following points.
 Economic Feasibility

 Technical Feasibility

 Operational Feasibility

The measure of the cost effectiveness of a project or solution. It takes into account
costs and benefits. Thus it is often called Cost-Benefit Analysis.
Costs can be divided into development costs (one-time costs to setup a system) and operating
costs (ongoing costs after system has been placed in operation). Operating costs are either
fixed (same or nearly the same every month, quarter, year, etc.) and variable (vary in
proportion to some usage factor- i.e. production costs, hourly workers wages, supplies, etc.).
Benefits can be divided into tangible benefits (those that are easily quantified change in
savings for the firm after the system is implemented) and intangible benefits) (those which
are almost impossible to quantify - customer goodwill, employee morale, better service, etc.).
Since the system is a web based, any number of users or citizens can use it from anywhere
anytime. Hence the system is proved to be economically feasible.

Technical Feasibility
The project entitles "Gas Agency Management System" is technically risibility because of the
below mentioned feature. The Project was developed for platform dependent environment.
Visual Basic.Net and MS SQL Server used to develop the system. Hence the system is
proved to be technically feasible.

Operational Feasibility
The measure of how well the solution of problems will work in the organization. (Is the
problem worth solving?) It is also a measure of how people feel about the system project. The
effective use of the user or viewer can easy to view in local area news or current affairs in
city. It also gives citizens easy access to tangible benefits, through online applications. This
kind of automation will surely reduce the time and energy which previously consumed in
manual work. Hence, the system is proved to be operationally feasible.

STEPS IN FEASIBILITY ANALYSIS


The technical issues raised during the feasibility stage of investigation include existence of
necessary technology to support the proposed system, the prospects of ability to expand the
system if developed etc.

Feasibility analysis involve in seven steps.

 Form a project team and appoint a project leader.

 Prepare system flowcharts.

 Enumerate potential candidate systems.

 Determine and evaluate performance and cost effectiveness of each candidate system.

 Weight system performance and cost data.

 Select the best candidate system.

 Prepare and report final project directive to management.

EXISTING SYSTEM AND PROPOSED SYSTEM

Need For Computerization


A computer based information systems usually needed for the following purpose. Inherent
ability to calculate, sort and retrieve data with greatest speed than that of people doing the
same tasks is possible with computers. They facilitate for good transactions with speed.
Further the transaction processing can be altered to attain desired results. The computer
carries out steps, including arithmetic if any, correctly and more importantly carries out the
process in the same manner each time. Use of computer simplifies the result of retrieving
information from stage, more so in results involving complex searches. It ensures safe
guarding sensitive and important data in a from that is accessible to any authorized persons.
That is the cost of maintaining the system must be less than the expected savings to be
generated by the implementation of the system.
Now a day all the communications are running mainly on the basis of
computerization. Starting from E-Mails the computerized system has got its own impact on
the general human life.
The computerized system has made the relations effective. All most all the
necessary information can be obtained from the application. The information is stored in the
form of Windows application. The windows applications will contain several pages and they
will display the required information within seconds.

The following are the same of the advantages of the computerized system is:
 The information can be provided with ease and minimum amount of time.

 Updating can be made faster and efficiently.

 Creation and maintenance of records will be easy.

 Calculations are accurate and faster.

 Generation of reports is faster and report formats are presentable in no time for
management information system.

 The communication can be done in due course.

 Computerization facilitates and coordinates all the resources.

Existing System
The existing system is basically a console interface system with no computational power and
very less user friendliness. The features and Requirements of the proposed system and arrived
at after conducting a Series of surveys, keeping and views the various problems faced by the
users in the existing system. Also certain drawbacks, which are present in the existing
system, are considered so as to make the new proposed system reach the user early. As far as
possible the original procedure is maintained for easy user interface.
The main objective of the proposed system is to computerize the Operations of news
management and market price Management that will allow the company and user interacts
with each other through this site. The user searches the site as he searches the directory.
The Existing system is single user interface. It need the user who is working with the system
should posses good knowledge in working with system. Even though he is well trained, we
can't assure his better performance. The end users need to reach the office physically to
clarify certain doubts. It requires huge amount of paper work also.

Problems in Existing System


Some of the problems in the existing system are given below:
 All the work for data entry in the gas agency are handled manually.

 The user needs to spend large amount of time to record the information manually.

 It became difficult for the user to search from the large amount of records.

 (It makes him very difficult to modify the records if he need any modification.

 He does not have very high security and anyone can modify his records.

 User cannot access the information easily.

 It gives him more problem while maintaining large amount of records.

 There is a high risk of misplacing the record due to mishandling.

Proposed System
 Using this software, it saves the time of the user that he use to spend by doing the
work manually.
 It allows the user to enter the record in short span of time without any mistake, if he

 does any mistake he can rectify those mistake in short span of time.
 It allows the user to search a particular record from large amount of records or from
thousand records within a few second.

 If any changes are required by the user he can do that in short span of time, without
deleting the previous record.

 The user has the advantage of deleting or modifying the record in short span of time.

 If this software is used then there is no chance of repeating in the consumer number
and serial number.
 This software provides very high security and only authorized person can access the
records.
 It help in saving paper, time.
TESTING

What is Software Testing?


software testing is an activity to check whether the actual results match the expected results
and ensure that the software system is Defect free. It involves execution of a software
component or system component to evaluate one or more properties of interest. Software
testing also helps to identify errors, gaps or missing requirements in contrary to the actual
requirements. It can be either done manually or using automated tools. Some prefer saying
Software testing as a white box and Black Box Testing.

What is Software Testing Life Cycle (STLC)?


Software Testing Life Cycle (STLC) is defined as a sequence of activities conducted to
perform Software Testing.
It consists of series of activities carried out methodologically to help certify your software
product.
VERIFICATION &VALIDATION (V&V MODEL)

Developer’s Life Cycle Tester’s Life Cycle


(Verification Phase) (Validation Phase)

BRS (Business req. Acceptance testing


specification)
↓ ↑
System testing
SRS (System req.
specification)
↓ ↑

HLD (High level System integration


design) testing

↓ ↑
LLD (Low level Component testing
design)

↓ ↑
implement Unit testing

↓ ↑

CODE
Diagram - Different stages in Software Test Life Cycle

Requirement Analysis

Test Planning

Test Case Development



Environment setup

Test Execution

Test Cycle Closure

Software testing is the process of executing a program with intension of finding errors in the
code. It is a process of evolution of system or its parts by manual or automatic means to
verify that it is satisfying specified or requirements or not. Generally, no system is perfect
due to
communication problems between user and developer, time constraints, or conceptual
mistakes by developer. To purpose of system testing is to check and find out these errors or
faults as early as possible so losses due to it can be saved.
Testing is the fundamental process of software success. Testing is not a distinct phase in
system development life cycle but should be applicable throughout all phases i.e. design
development and maintenance phase. Testing is used to show incorrectness and considered
to success when an error is detected.
OBJECTIVES OF SOFTWARE TESTING
The software testing is usually performed for the following objectives.

Software Quality Improvement


The computer and the software are mainly used for complex and critical applications and a
bug or fault in software causes severe losses. So a great consideration is required for checking
for quality of software.

Verification and Validation


Verification means to test that we are building the product in right way .i.e. are we using the
correct procedure for the development of software so that it can meet the user requirements.
Validation means to check whether we are building the right product or not.

Software Reliability Estimation


The objective is to discover the residual designing errors before delivery to the customer. The
failure data during process are taken down in order to estimate the software reliability.

PRINCIPLES OF SOFTWARE TESTING


software testing is an extremely creative and challenging task. Some important principles of
software testing are as given:

 All tests should be traceable to customer requirements.

 Testing time and resources should be limited i.e. avoid redundant testing.

 It is impossible to test everything

 Use effective resources to test.

 Test should be planned long before testing begins i.e. after requirement phase.
 Test for invalid and unexpected input conditions as well as valid conditions.

 Testing should begin in "in the small" and progress towards testing "in the large".

 For the most effective testing should be conducted by an independent party Document
test cases and test results.

 Examining what the software not doing which it expected to do and also checking
what it is doing that was not expected to do.

STRATEGY FOR SOFTWARE TESTING


Different levels of testing are used in the test process; each level of testing aims to test
different aspects of the system.

The First Level is unit testing. In this testing, individual components are tested to ensure that
they operate correctly. It focuses on verification efforts.
The Second Level is integration testing. It is a systematic technique for constructing the
program structure. In this testing, many tested modules are combined into the subsystems
which are then tested. The good here is to see if the modules can be integrated properly.
The Third Level is integration testing? System testing is actually a series of different tests
whose primary purpose is to fully exercise computer based system.

System Testing
System testing is the stage of implementation that is aimed at ensuring that the system
accurately and efficiently before live operation commences. Testing is the vital to the success
of the system. System testing makes a logical assumption that if all parts of the system are
Correct, then the goal will be successfully achieved. A series of testing are done for the
Proposed system before the system is ready for the user acceptance testing.

The testing steps are:


 Unit testing

 Integration testing

 Validation

 Output testing
 User acceptance testing

Unit testing
unit testing focuses verification efforts of the smallest units of the software design the
module. This is also known as module testing. The modules are tested separately. This testing
was carried out during programming stage itself. In this testing each module is found to be
working satisfactorily as regards to the expected output from the module. Unit test focus on
the verification affect on the smallest unit of the software design (module). In unit testing we
use the control structures of the procedural design to derive test cases. The local data
structures are examined to ensure that the data stored temporarily maintains its integrity
during all steps in the algorithm execution.
Boundary conditions are tested to ensure that the module operates properly at boundaries to
limit or restrict the processing. Al independent paths through the control structures are
exercised to ensure that the all statement in the module have been executed at least once.
The module interface is tested to ensure that information properly flows in to and out of the
program until test. Finally all error-handling paths are tested.

Integration testing
Data can be lost across an interface; one module can have adverse efforts on another.
Integration testing is a systematic testing for constructing the program structure, while at the
same time conducting tests to uncover errors associated within the interface. The objective is
to take unit tested tod modules and build a program structure. All the modules are combined
and tested as a whole. Here correction is difficult because the vast expenses of the entire
program complicate the isolation of causes. Integration testing addresses the issues associate
with the dual problems of verification and program construction. Integration testing is a
systematic technique for constructing the program structures while of the same time
conducting tests to uncover the errors associated with the interfacing. The objectives is take
unit tested modules and build a program structure that has been dictated by design. The
integration testing can be either top-down integration or bottom-up integration.
In top down integration, modules are integrated by moving down words through the control
hierarchy. The modules subordinate to the main program module are incorporated into the
structure either by the depth first or breadth first manner. In bottom-up integration the
construction and testing begins of the lower level in the program structure, since the modules
are integrated from the bottom-up processing required modules subordinates to given level is
always available and the need for the stubs are eliminated.
Validation Testing
It is the culmination of integration testing, software is completely assembled as a package and
interfacing errors have been uncovered. Validation testing provides the final assurance that
the software meets all functional behaviour and performance requirements the software once
validated must be combined with other system elements.
After each validation test case has been conducted. On end of file the two possible
conditions exist. They are

i. The function or performance characteristics confirm to specification and are accepted.


ii. A deviation from specification is uncovered and a deficiency list is created.
The deviation or error discovered, as this stage is a project can rarely be corrected prior to
scheduled completion. It 1s necessary to negotiate with the customer to establish a method
form solving deficiencies.

objectives of testing

The rules that serve for testing are


1. Testing is a process of execution of a program with the intent of finding an error.
2. A good test case is the one that has high probability of finding
3. A successful test is the one that uncovers an undiscovered error.

System Implementation
The implementation is the final and important phase. It involves user training. system testing
and successful running of the developed proposed system. The user tests the developed
proposed system and changes are made according to their needs. The users are trained to
operate the developed systems.
Implementation is the process of converting a new or revised system design into an
operational one. It is the key stage in achieving a successful new system because, usually it
involves a lot of upheaval in the user department. It must therefore be carefully planned and
controlled. Apart from planning the two major tasks of preparing for implementation are
education and training of users and testing of the system. Training has to be given to the user
regarding the new system is implemented successfully, training of the user is one of the most
important tasks of the developer. For that purpose user manuals are prepared and handed over
to the user to operate the developed system. Here the user is trained to operate the developed
system.
WHAT IS VALIDATION IN SOFTWARE TESTING? OR WHAT IS
SOFTWARE VALIDATION?
validation is determining if the system complies with the requirements and performs
functions for which it is intended and meets the organization's goals and user needs.

 Validation is done at the end of the development process and takes place after
verifications are completed.

 It answers the question like: Am I building the right product?

 Am I accessing the right data (in terms of the data required to satisfy the requirement).

 It is a High level activity.

 Performed after a work product is produced against established criteria ensuring that
the product integrates correctly into the environment.

 Determination of correctness of the final software product by a development project


with respect to the user needs and requirements.

↓ __________________________________________ ↓
Verification

Needs and
Specification Process Product
Expectation of
Customer →

↑____________________________________ Validation_________________________ ↑
According to the Capability Maturity Model (CMM) we can also define validation as The
process of evaluating software during or at the end of the development process to determine
whether it satisfies specified requirements.
product can pass while verification, as it is done on the paper and no running or functional
application is required. But, when same points which were verified on the paper is actually
developed then the running application or product can fail while validation. This may happen
because when a product or application is build as per the specification but these specifications
are not up to the mark hence they fail to address the user requirements.

Advantages of Validation:
1. During verification if some defects are missed then during validation process it can be
caught as failures.
2. If during verification some specification is misunderstood and development had happened
then during validation process while executing that functionality the difference between the
actual result and expected result can be understood.
3. Validation is done during testing like feature testing, integration testing, system testing.
load testing, compatibility testing, stress testing, etc.
4. Validation helps in building the right product as per the customer's requirement and helps
in satisfying their needs.

Validation is basically done by the testers during the testing. While validating the product if
some deviation is found in the actual result from the expected result then a bug is reported or
an incident is raised. Not all incidents are bugs. But all bugs are incidents. Incidents can also
be of type 'Question' where the functionality is not clear to the tester.

hence, validation helps in unfolding the exact functionality of the features and helps the
testers understand the product in much better way. It helps in making the product more user
friendly.
SCREEN SHOTS
Login page
TABLES
Database Design
The most important step in system designing is the Data Storage Design. The Database
management (DBMS) allows the data to be protected and organized separately from other
resources. Database is identified as an integrated collection of data. Computer data
management function can support a database. The three major objectives of database are data
centralization between data must be maintained. Direct access techniques are used to permits
efficiency flexible linking, although sequential organization can be used in a database

Data Integrity results in more consistence information. One update being achieves a new
record status for all applications which insulation of application program from the changing
aspects of physical data organization. The objective seeks to allow of application and to allow
modifications to application program without recognizing the physical data.

The table design that is being designed through my sql in which the connectivity would be
formed powerful to retrieve the data that is being applied the project.
CODING
Home Form
Public Class DashBoard
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
With ManageInventory
.TopLevel = False
Panel4.Controls.Add(ManageInventory)
.BringToFront()
.Show()
End With
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


With ManageBuyer
.TopLevel = False
Panel4.Controls.Add(ManageBuyer)
.BringToFront()
.Show()
End With
End Sub

Private Sub Panel4_Paint(sender As Object, e As PaintEventArgs) Handles


Panel4.Paint

End Sub

Private Sub Label4_Click(sender As Object, e As EventArgs) Handles Label4.Click


Me.Hide()
Loginfrm.Show()

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


With ManageSeller
.TopLevel = False
Panel4.Controls.Add(ManageSeller)
.BringToFront()
.Show()
End With
End Sub

Private Sub Button9_Click(sender As Object, e As EventArgs) Handles Button9.Click


With AddBuyer
.TopLevel = False
Panel4.Controls.Add(AddBuyer)
.BringToFront()
.Show()
End With
End Sub

Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click


With AddSeller
.TopLevel = False
Panel4.Controls.Add(AddSeller)
.BringToFront()
.Show()
End With
End Sub

Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click


With AddInventory
.TopLevel = False
Panel4.Controls.Add(AddInventory)
.BringToFront()
.Show()
End With
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


Purchase.Show()
End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click


With Report
.TopLevel = False
Panel4.Controls.Add(Report)
.BringToFront()
.Show()
End With
End Sub

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click


With Settings
.TopLevel = False
Panel4.Controls.Add(Settings)
.BringToFront()
.Show()
End With
End Sub

Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick


Label5.Text = DateTime.Now.ToString("HH:mm:ss")
End Sub

Private Sub DashBoard_Load(sender As Object, e As EventArgs) Handles MyBase.Load


Timer1.Start()
End Sub
End Class

Login Form
Imports System.Data.SqlClient

Public Class Loginfrm


Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView
Dim gen As String

Dim getuser As String


Dim att As Object
Private Sub Button1_Click(sender As Object, e As EventArgs)

End Sub

Private Sub Label4_Click(sender As Object, e As EventArgs)


Application.Exit()
End Sub
Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles
Button1.Click
If ComboBox1.SelectedIndex = "0" Then
If TextBox1.Text = "admin" And TextBox2.Text = "admin" Then
MessageBox.Show("Welcome Admin")

ComboBox1.Text = "--Select Type--"


TextBox1.Text = ""
TextBox2.Text = ""
Visible = False
Me.Hide()

DashBoard.Show()

Else
MessageBox.Show("login fail")
End If
End If

If ComboBox1.SelectedIndex = "1" Then


con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con.Open()
Try
getuser = "select b_id from buyer where b_name='" & TextBox1.Text & "'
and pass='" & TextBox2.Text & "'"
com = New SqlCommand(getuser, con)
dr = com.ExecuteReader()
If (dr.Read()) Then
MsgBox("Welcome User.")

ComboBox1.Text = "--Select Type--"


TextBox1.Text = ""
TextBox2.Text = ""
Me.Hide()
home.Show()
Else
MsgBox("something Wrong")

End If
Catch ex As Exception
MsgBox(ex.Message)
End Try

End If
End Sub

Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles


PictureBox2.Click
Application.Exit()
End Sub

Private Sub Loginfrm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub Label5_Click(sender As Object, e As EventArgs) Handles Label5.Click

End Sub
End Class
Add Buyer form
Imports System.Data
Imports System.Data.SqlClient

Public Class AddBuyer


Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView
Dim att As Object
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


Me.Hide()
DashBoard.Show()

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


Try
Dim sqlConnection As SqlConnection = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con = sqlConnection
Catch ex As Exception
End Try
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
TextBox4.Text = "" Then
MessageBox.Show("Enter all the required fields")
ElseIf IsNumeric(TextBox1.Text) = True Then
MessageBox.Show("Name should not be numeric ")
ElseIf IsNumeric(TextBox2.Text) = False Then
MessageBox.Show("Contact should be numeric ")
ElseIf TextBox2.Text.Length < 10 Or TextBox2.Text.Length > 10 Then
MessageBox.Show("Please enter valid contact number")
Else
Dim com = New SqlCommand("insert into
buyer( b_name,b_number,b_addr,pass)values('" & TextBox1.Text & "','" & TextBox2.Text &
"','" & TextBox3.Text & "','" & TextBox4.Text & "')", con)
con.Open()
com.ExecuteNonQuery()
MsgBox("New Infromation Inserted Successfullyy..")
Hide()
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
End If

End Sub
Private Sub AddBuyer_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub
End Class

Manage Buyer Form

Imports System.Data
Imports System.Data.SqlClient

Public Class ManageBuyer


Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView
Dim att As Object
Private Sub ManageBuyer_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'InventoryDataSet1.buyer' table.
You can move, or remove it, as needed.
Me.BuyerTableAdapter.Fill(Me.InventoryDataSet1.buyer)

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs)


Try
Dim sqlConnection As SqlConnection = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con = sqlConnection
Catch ex As Exception
End Try
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Then
MessageBox.Show("Enter all the required fields")
ElseIf IsNumeric(TextBox1.Text) = True Then
MessageBox.Show("Name should not be numeric ")
ElseIf IsNumeric(TextBox2.Text) = False Then
MessageBox.Show("Contact should be numeric ")
ElseIf TextBox2.Text.Length < 10 Then
MessageBox.Show("Please enter valid contact number")
Else
Dim com = New SqlCommand("insert into
buyer( b_name,b_number,b_addr)values('" & TextBox1.Text & "','" & TextBox2.Text &
"','" & TextBox3.Text & "')", con)
con.Open()
com.ExecuteNonQuery()
MsgBox("New Customer Infromation Inserted Successfullyy..")
Hide()
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
End If

End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""

End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click


con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con.Open()
Try
str = "Select b_name,b_number,b_addr from buyer where b_id='" +
TextBox4.Text + "'"
com = New SqlCommand(str, con)
dr = com.ExecuteReader()
If dr.Read() Then
TextBox1.Text = dr.GetValue(0).ToString()
TextBox2.Text = dr.GetValue(1).ToString()
TextBox3.Text = dr.GetValue(2).ToString()

End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
Try

If TextBox4.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Then


MessageBox.Show("Enter all the required fields")
ElseIf IsNumeric(TextBox1.Text) = True Then
MessageBox.Show("Name should not be numeric ")
ElseIf IsNumeric(TextBox2.Text) = False Then
MessageBox.Show("Contact should be numeric ")
ElseIf TextBox2.Text.Length < 10 Then
MessageBox.Show("Please enter valid contact number")
Else
con.Open()
str = "update buyer set b_name='" + TextBox1.Text + "', b_addr='" +
TextBox3.Text + "',b_number='" + TextBox2.Text + "' where b_id='" + TextBox4.Text +
"'"
com = New SqlCommand(str, con)
com.ExecuteNonQuery()
MsgBox("New Data Updated Successfully..")

TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox4.Text = ""
End If
Using con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
str = "select * from buyer"
com = New SqlCommand(str, con)
da = New SqlDataAdapter(com)
dt = New DataTable()
dv = New DataView()
da.Fill(dt)
DataGridView1.DataSource = New BindingSource(dt, att)
End Using
con.Close()
Catch ex As Exception
MsgBox("ex.Tostring")

End Try

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
Try
con.Open()
str = "delete from buyer where b_id='" + TextBox4.Text + "'"
com = New SqlCommand(str, con)
com.ExecuteNonQuery()
con.Close()
MsgBox("deleted sucessfully")
Using con
str = "select * from buyer"
com = New SqlCommand(str, con)
da = New SqlDataAdapter(com)
dt = New DataTable()
dv = New DataView()
da.Fill(dt)
DataGridView1.DataSource = New BindingSource(dt, att)
End Using
Catch ex As Exception
End Try

End Sub

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click


Me.Hide()
DashBoard.Show()
End Sub
End Class

Add inventory

Imports System.Data
Imports System.Data.SqlClient
Public Class AddInventory
Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
ComboBox2.Text = "--select--"
ComboBox1.Text = ""
End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


Me.Hide()
DashBoard.Show()
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


Try
Dim sqlConnection As SqlConnection = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con = sqlConnection
Catch ex As Exception
End Try
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
ComboBox2.Text = "" Or ComboBox1.Text = "" Then
MessageBox.Show("Enter all the required fields")
ElseIf IsNumeric(TextBox1.Text) = True Then
MessageBox.Show(" Item name should not be numeric ")
ElseIf IsNumeric(TextBox2.Text) = False Then
MessageBox.Show("Quantity should be numeric ")
ElseIf IsNumeric(TextBox3.Text) = False Then
MessageBox.Show("Please enter valid price")

Else
Dim com = New SqlCommand("insert into
invent( item,category,quantity,price,status)values('" & TextBox1.Text & "','" &
ComboBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "','" &
ComboBox2.Text & "')", con)
con.Open()
com.ExecuteNonQuery()
MsgBox("New Infromation Inserted Successfullyy..")
Hide()
con.Close()

TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
ComboBox2.Text = "--select--"
ComboBox1.Text = "--select--"
End If
End Sub

Private Sub AddInventory_Load(sender As Object, e As EventArgs) Handles


MyBase.Load

End Sub
End Class
Form Report
Imports System.Data
Imports System.Data.SqlClient
Public Class Report
Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView
Dim att As Object
Private Sub Panel1_Paint(sender As Object, e As PaintEventArgs) Handles
Panel1.Paint

End Sub

Private Sub Report_Load(sender As Object, e As EventArgs) Handles MyBase.Load


'TODO: This line of code loads data into the 'InventoryDataSet4.purchase'
table. You can move, or remove it, as needed.
Me.PurchaseTableAdapter.Fill(Me.InventoryDataSet4.purchase)
Try

Using con = New SqlConnection("Data


Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\transport.mdf;Integrated Security=True")
str = "SELECT * FROM purchase "
com = New SqlCommand(str, con)
da = New SqlDataAdapter(com)
dt = New DataTable()
dv = New DataView()
da.Fill(dt)

DataGridView1.DataSource = New BindingSource(dt, att)


End Using
Catch ex As Exception

End Try
End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")

Try
con.Open()
str = "delete from purchase where p_id='" + TextBox1.Text + "'"
com = New SqlCommand(str, con)
com.ExecuteNonQuery()
con.Close()
MsgBox("deleted sucessfully")
Using con
str = "select * from purchase"
com = New SqlCommand(str, con)
da = New SqlDataAdapter(com)
dt = New DataTable()
dv = New DataView()
da.Fill(dt)
DataGridView1.DataSource = New BindingSource(dt, att)
End Using
Catch ex As Exception
End Try
End Sub
End Class

Manage Seller form


Imports System.Data
Imports System.Data.SqlClient
Public Class ManageSeller
Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView
Dim att As Object
Private Sub ManageSeller_Load(sender As Object, e As EventArgs) Handles
MyBase.Load
'TODO: This line of code loads data into the 'InventoryDataSet2.seller' table.
You can move, or remove it, as needed.
Me.SellerTableAdapter.Fill(Me.InventoryDataSet2.seller)

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


Try
Dim sqlConnection As SqlConnection = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con = sqlConnection
Catch ex As Exception
End Try
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Then
MessageBox.Show("Enter all the required fields")
ElseIf IsNumeric(TextBox1.Text) = True Then
MessageBox.Show("Name should not be numeric ")
ElseIf IsNumeric(TextBox2.Text) = False Then
MessageBox.Show("Contact should be numeric ")
ElseIf TextBox2.Text.Length < 10 Then
MessageBox.Show("Please enter valid contact number")
Else
Dim com = New SqlCommand("insert into
seller( s_name,s_number,s_addr)values('" & TextBox1.Text & "','" & TextBox2.Text &
"','" & TextBox3.Text & "')", con)
con.Open()
com.ExecuteNonQuery()
MsgBox("New Seller Infromation Inserted Successfullyy..")
Hide()
con.Close()
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
End If

End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""

End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click


con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con.Open()
Try
str = "Select s_name,s_number,s_addr from seller where s_id='" +
TextBox4.Text + "'"
com = New SqlCommand(Str, con)
dr = com.ExecuteReader()
If dr.Read() Then
TextBox1.Text = dr.GetValue(0).ToString()
TextBox2.Text = dr.GetValue(1).ToString()
TextBox3.Text = dr.GetValue(2).ToString()

End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
Try

If TextBox4.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Then


MessageBox.Show("Enter all the required fields")
ElseIf IsNumeric(TextBox1.Text) = True Then
MessageBox.Show("Name should not be numeric ")
ElseIf IsNumeric(TextBox2.Text) = False Then
MessageBox.Show("Contact should be numeric ")
ElseIf TextBox2.Text.Length < 10 Then
MessageBox.Show("Please enter valid contact number")
Else
con.Open()
str = "update seller set s_name='" + TextBox1.Text + "', s_addr='" +
TextBox3.Text + "',s_number='" + TextBox2.Text + "' where s_id='" + TextBox4.Text +
"'"
com = New SqlCommand(Str, con)
com.ExecuteNonQuery()
MsgBox("New Data Updated Successfully..")

TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox1.Text = ""
End If
Using con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
str = "select * from seller"
com = New SqlCommand(Str, con)
da = New SqlDataAdapter(com)
dt = New DataTable()
dv = New DataView()
da.Fill(dt)
DataGridView1.DataSource = New BindingSource(dt, att)
End Using
con.Close()
Catch ex As Exception
MsgBox("ex.Tostring")

End Try

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click


con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
Try
con.Open()
str = "delete from seller where s_id='" + TextBox4.Text + "'"
com = New SqlCommand(Str, con)
com.ExecuteNonQuery()
con.Close()
MsgBox("deleted sucessfully")
Using con
str = "select * from seller"
com = New SqlCommand(Str, con)
da = New SqlDataAdapter(com)
dt = New DataTable()
dv = New DataView()
da.Fill(dt)
DataGridView1.DataSource = New BindingSource(dt, att)
End Using
Catch ex As Exception
End Try

End Sub

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click


Me.Hide()
DashBoard.Show()
End Sub
End Class
Purchase Form
Imports System.Data
Imports System.Data.SqlClient
Public Class Purchase
Dim con As New SqlConnection
Dim da As New SqlDataAdapter
Dim com As SqlCommand
Dim ds As New DataSet
Dim dr As SqlDataReader
Dim str As String
Dim dt As DataTable
Dim dv As DataView
Dim att As Object
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
Me.Hide()
DashBoard.Show()
End Sub

Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.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 = ""
ComboBox1.Text = ""

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click


con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con.Open()
Try
str = "Select s_name,s_number,s_addr from seller where s_id='" +
TextBox11.Text + "'"
com = New SqlCommand(str, con)
dr = com.ExecuteReader()
If dr.Read() Then
TextBox1.Text = dr.GetValue(0).ToString()
TextBox2.Text = dr.GetValue(1).ToString()
TextBox3.Text = dr.GetValue(2).ToString()

End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try

End Sub

Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click


con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con.Open()
Try
str = "Select b_name,b_number,b_addr from buyer where b_id='" +
TextBox12.Text + "'"
com = New SqlCommand(str, con)
dr = com.ExecuteReader()
If dr.Read() Then
TextBox10.Text = dr.GetValue(0).ToString()
TextBox9.Text = dr.GetValue(1).ToString()
TextBox8.Text = dr.GetValue(2).ToString()

End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try

End Sub

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click


con = New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")
con.Open()
Try
str = "Select item,category,quantity,price,status from invent where
i_id='" + TextBox13.Text + "'"
com = New SqlCommand(str, con)
dr = com.ExecuteReader()
If dr.Read() Then
TextBox7.Text = dr.GetValue(0).ToString()
ComboBox1.Text = dr.GetValue(1).ToString()
TextBox6.Text = dr.GetValue(2).ToString()
TextBox5.Text = dr.GetValue(3).ToString()
TextBox4.Text = dr.GetValue(4).ToString()

End If
Catch ex As Exception
MsgBox(ex.ToString)
End Try

End Sub

Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click

If TextBox11.Text = "" Or TextBox12.Text = "" Or TextBox13.Text = "" Then


MessageBox.Show("Enter all the details ")

Else

Try
con = New SqlConnection("Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|
DataDirectory|\inventory.mdf;Integrated Security=True")

Catch ex As Exception
MsgBox(ex.Message)
End Try
com = New SqlCommand("insert into purchase
(s_id,s_name,s_number,s_addr,b_id,b_name,b_number,b_addr,i_id,item,category,quantity,p
rice,status,date)values('" & TextBox11.Text & "','" & TextBox1.Text & "','" &
TextBox2.Text & "','" & TextBox3.Text & "','" & TextBox12.Text & "','" &
TextBox10.Text & "','" & TextBox9.Text & "','" & TextBox8.Text & "','" &
TextBox13.Text & "','" & TextBox7.Text & "','" & ComboBox1.Text & "','" &
TextBox6.Text & "','" & TextBox5.Text & "','" & TextBox4.Text & "','" &
DateTimePicker1.Text & "')", con)
con.Open()
com.ExecuteNonQuery()
MsgBox("Purchase Data Inserted Successfullyy..")
Hide()
con.Close()

DateTimePicker1.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
TextBox6.Text = ""
TextBox7.Text = ""
TextBox8.Text = ""
TextBox9.Text = ""
TextBox10.Text = ""
TextBox11.Text = ""
TextBox12.Text = ""
TextBox13.Text = ""
TextBox2.Text = ""
TextBox1.Text = ""
ComboBox1.Text = ""

End If

End Sub

Private Sub Label18_Click(sender As Object, e As EventArgs) Handles Label18.Click


Me.Hide()
DashBoard.Show()
End Sub

Private Sub Purchase_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub
End Class
 CONCLUSION

This project is designed to meet the requirements of Online Invenrory Management. It has
been developed in VB & MYSQL keeping in mind the specifications of the system. For
designing the system we have used simple data flow diagrams. Overall the project teaches
us the essential skills like:

 Using system analysis and design techniques like data flow diagram in designing the
system.

 Understanding the database handling and query processing


Overall, the system is useful for all the users to maintain information at various levels. It
connects admin and employee and thus easy to maintain. Now admin can easily set the task
or any notifications to the respective users without having a person to send to users and
users can be managed.

Future Enhancement

The project has a very vast scope in future. The project can be implemented on intranet in
future. Project can be updated in near future as and when requirement for the same arises,
as it is very flexible in terms of expansion. With the proposed software of database Space
Manager ready and fully functional the user is now able to manage and hence run the entire
work in a much better, accurate and error free manner. The following are the future scope
for the project.
• Discontinue of particular Users eliminate potential threats.
• Bar code Reader based system
BIBILIOGRAPHY

During the development of our system, we have taken the reference from Books
and journals,
which we would like to mention in this section.
These books acted as our tutors during the system development..
System Analysis And Design
- Kenneth E. Kendall, Julie E. Kendall
An Analysis and Design of Information Systems
- Grayce M. Booth
Software Engineering
- Roger S. Pressman
Database Management System
- James A. Larson
Professional Visual Studio 2017
- Bruce Johnson
These are the following links which assist me at each and every step in
completing this
project, without them
 https://tutorials.visualstudio.com/vs-get-started/intro
 www.mysql.com
 https://visualstudio.microsoft.com/vs/getting-started/
 www.w3schools.com

You might also like