Você está na página 1de 89

Hardware shop management system

In the present day world most of the job are done mechanically and it is
very much clear that carrying out sort of business or commercial transactions
manually would be an utter waste of time and resources .Today computer are
used not only for the book keeping purpose but also it changed the way work
is being done by automating the entire operation.
At present storing and retrieving are done in a manual way .This means that it
is difficult to maintain proper data. The project entitled HARDWARE SHOP
MANAGEMENT SYSTEM. This shop manages with the Purchase & Sales
of hardwaes. HARDWARE shop management system deals with the common
operation of a HARDWARE shop.
The existing system is manually operated. The main drawback of the existing
system is it take a lot of time to record the various data and keeping is also
very difficult to create report on basis of various conditions and also the
searching is difficult because of the medium storage like files. So it takes a lot
of manual effort and time. To overcome these drawbacks we implement the
proposed system.
Facilities for generating reports for the efficient management of the
Hardware shop are also provided in the system. Hardware shop management
system has developed in Microsoft VB 6.0 environment (front end) and use
Microsoft SQL 2000(back end) for database. The Hardware shop management
system overcomes all the drawback of the manual system. It performs
efficiently for the better performance of the organization.
Since the automation is preferred to manual labour,automating of an
existing system will certainly lead to a better-integrated working environment,
efficient handling of data and meaningful interaction with the information.It
helps us to reduce the cost for the day-to-day operations and it save our time.

1
NCIT,Chalakudy

Hardware shop management system

STUDY OF EXISTING SYSTEM


In order to elicit the requirement and to identify the elements, inputs, outputs,
subsystems and the procedures the existing had to be examined and analyzed
in detail. This constituted the system study. Records slips, procedures, rules
etc were examined thoroughly. This existing system was studied involving a
complete co-operation from the employees who run the system at present.
PROBLEMS WITH THE EXISTING SYSTEM
Reports could not be prepared in time.

Calculations were sometimes found incorrect, that caused accumulating

problems.
Use and maintains of paper files, registers, and other written matter was

very difficult.
Security of information is time consuming
More man power required.
Data verification and validation was manual.

The existing system is manually operated. The main drawback of the existing
system is it take a lot of time to record the various data and keeping is also
very difficult procedure because it take a large number of space to store details
and difficult to create reports on basis of various conditions and also the
searching is difficult because of the medium storage like files. So it takes a lot
of manual effort and time. To overcome these drawbacks we implement the
proposed system.
In order to overcome this disadvantages the manual system was decided to be
automated with pursue with a front end user interface, which has a variety of
choices to the front end administrator.

2
NCIT,Chalakudy

Hardware shop management system

STUDY OF PROPOSED SYSTEM


Proposed system is fully computerized one. As all the entire working is done
with the aid of computers, this will result in faster processing and improved
performance. This information can be retrieved very quickly by the click of a
button when compared to earlier retrieval from files and registers. The
corresponding details of models, option types, sale, and purchase are also
stored in database for future reference. As all the details are stored in the
computers hard drive the physical storage space requirement can be reduced
to a great extent.
Processing of information manipulation was difficult with manual system, but
as we are doing all the processing with the aid of computers it can be done
very easily and accurately. Creating reports timely needs a quick search in the
huge file cabinets, but with the proposed system reports can be generated in
the winks of an eye lid. This computer system increases the efficiency of the
Hardware shop management system and improves the performance.
The disadvantages of existing system have been solved by automating the
HARDWARE SHOP MANAGEMENT SYSTEM which helps to all the
process of the Organization especially to know the details of customers.
Creating reports timely needs a quick search in the huge file cabinets. This
computer facility increases the efficiency and improves the performance. The
use of the paper file is avoided and all the data are efficiently manipulated by
the system. The ne system facilitates more report to know the status and which
is difficult in the existing system we can reduce error which is occurred
manually and also it is easy to use this proposed system.

ADVANTAGE OF THE PROPOSED SYSTEM


3
NCIT,Chalakudy

Hardware shop management system

It take the less number of time compared to the existing system


It takes less space to store the data.
It is very easy to search and take reports.
It is more efficient.
It is more reliable.
It is easy to work.

FEATURES OF PROPOSED SYSTEM

User friendly environment

Reliable data-entry

Atomized processing

Single-click Result analysis

High Security

Generate reports daily and monthly

4
NCIT,Chalakudy

Hardware shop management system

SYSTEM SPECIFICATION
HARDWARE SPECIFICATION

Processor
Memory
Hard disk
Keyboard
Mouse
Monitor

:
:
:
:
:
:

Pentium iv or Higher
512MB RAM
40 GB or Higher
Standard
Standard
SVGA Color

SOFTWARE SPECIFICATION
Operating System
Front End Tool
Back End Tool

:
:
:

Windows 7 onwards
Microsoft VB 6.0
Microsoft SQL Server 2000

5
NCIT,Chalakudy

Hardware shop management system

SOFTWARE FEATURES
OVERVIEW OF WINDOWS 7
The new features available in Windows 7 are new security tools that user can as
help to keep computer more secure, and new technologies that run in the
background, making computer more efficiently and reliably.
Windows XP has improved upon security, including the new security center,
which allows user to check the status of the important security elements on the
users computer. Windows Firewall, Automatic Updates and Virus Protection
Softwares making it easier to understand how to keep the computer better
protected against viruses and other security threats. Windows 7 is always
dependable and stable, so user can always rely on the performance and
effectiveness of the system.

WINDOWS 7 MARKING FEATURES


Desktop

: Windows 7 screen and background support new color and


graphics.

Dialog Box

: Windows contains text and one or more screen controls that


use to issue instructions to Windows 7.

Hot key

: The combination of an ALT key press combined with


another key that selects command.

Buttons

: The key you press with ALT is displayed with as


underlined letter.

Icons

: Small pictures that represent commands and programs in


Windows 7.

Kernel

: The internal native operating system that console the


hardware and software interaction.
6

NCIT,Chalakudy

Hardware shop management system

OVERVIEW OF MICROSOFT VISUAL BASIC 6.0


VB 1.0 was introduced in 1991. The drag and drop design for creating the user
interface is derived from a prototype from generator developed by Alan
Cooper and his company called Tripod. Microsoft contracted with Cooper and
his associates to develop Tripod into a programmable form system for
Windows 3.0, under the code name Ruby (no relation to Ruby programming
language).
Visual Basic was derived from BASIC and enables the rapid application
development (RAD) of graphical user interface (GUI) applications, access to
database using Data Access Objects, Remote Data Objects, or ActiveX Data
Objects, and creation of ActiveX controls and objects. Scripting languages
such as
VBA and VBScript are syntactically similar to Visual Basic, but perform
differently. A programmer can put together an application using the
components provided with Visual Basic itself. Programs written in Visual
Basic can also use the Windows API, but doing so requires external function
declarations.
The final release was version 6 in 1998. Microsofts extended support ended
in March 2008 and the designated successor was Visual Basic .NET (now
known as simply as Visual Basic). Microsoft Visual basic 6.0 is a language
rapid application development environment that gives you fast, easy, and
intuitive tools to quickly develop Windows applications. Using Visual Basic,
you can develop simple utilities or sophisticated applications. Data access
features allow you to create databases, front-end applications, and scalable
server-side components for most popular database formats. ActiveX
technologies allow you to use the functionality provided by other applications,
and even automate applications and objects created using the Professional or
Enterprise editions of visual basic. Internet capabilities make it easy to
7
NCIT,Chalakudy

Hardware shop management system

provide access to documents and applications across the Internet or intranet


from within your application, or to create Internet Server applications.
Visual Basic 6.0 (Mid 1998) improved in a number of areas including the
ability to create web-based applications. VB6 has entered Microsofts nonsupported phase as of March. Although the Visual Basic 6.0 development
environment is no longer supported, the runtime is supported on Windows
Vista, Windows Server 2008 and Windows 7. Mainstream support for
Microsoft visual Basic 6.0 ended on March 31, 2005. Extended support ended
in March 2008. In response, the Visual Basic user community expressed its
grave concern and lobbied users to sign a petition to keep the product alive.
Microsoft has so far refused to change their position on the matter. Ironically,
around this time 920050, it was exposed that Microsofts new anti-spyware
offering, - Microsoft antispyware (part of the GIANT Software purchase),
was coded in Visual Basic 6.0. Its replacement, Windows Defender, was
rewritten as C++ code.
Visual Basic (VB) is the third-generation event-driven programming language
and Integrated Development Environment (IDE) from Microsoft for its COM
programming model. VB is also considered a relatively easy to learn and use
programming language, because of its graphical development features and
BASIC heritage.
Visual Basic was derived from BASIC and enables the Rapid Application
Development (RAD) of Graphical User Interface (GUI) application, access to
database using Data Access Objects, Remote Data Object, or ActiveX Data
Object, and creation of ActiveX data control and object. Scripting languages
such as VBA and VBScript are syntactically similar to Visual Basic, but
perform differently.

8
NCIT,Chalakudy

Hardware shop management system

A programmer can put together an application using the components provided


with Visual Basic itself. Programs written in Visual Basic can also use the
Windows API, but doing so requires external function declarations.

The final release was version 6 in 1998. Microsofts extended support ended
in March 2008 and the designated successor was Visual Basic.NET (now
known simply as Visual Basic).
Like the BASIC programming languages, Visual Basic was designed to be
easily learned and used by beginner programmers. The language not only
allows programmers to create simple GUI application, but can also develop
complex application. Programming in VB is a combination of visually
arranging components or control on a form, specifying attributes and actions
of those components, and writing additional lines of code for more
functionality. Since default attributes and actions are defined for the
components, a simple program can be created without the programmer having
to write many lines of code. Performance problems were experienced by
earlier versions, but with faster computers and native code compilation this
has become less of issues.
Although programs can be complied into native code executables from
version 5 onwards, they still require the presence of runtime libraries of
approximately 1MB in size. This runtime is included by default in Windows
2000 and later, but for earlier versions of Windows like 95/98/NT it must be
distributed together with the executable.
Forms are created using drag-and-drop techniques. A tool is used to place
controls (eg: text boxes, buttons, etc.) on the form (window). Controls have
attributes and even handlers associated with them. Default values are provided
when the control is created, but may be changed by the programmer. Many
attribute values can be modified during runtime based on user action or
changes in the environment, providing a dynamic application. For example,

9
NCIT,Chalakudy

Hardware shop management system

code can be inserted in to the form resize event handler to reposition a control
so that it remains centered on the form="TA4"manrF9="0ob w: w: cal="24"/>
Visual Basic (VB) is the third-generation event-driven programming language
and integrated development (IDE) from Microsoft for its COM programming

model. VB is also considered a relatively easy to learn and use programming


language, because of its graphical development features and BASIC heritage.
Like the basic programming language, Visual Basic was designed to be easily
learned and used by beginner programmers. The language not only allows
programmers to create simple GUI applications, but can also develop complex
applications. Programming in VB is a combination of visually arranging
components, and writing additional lines of code for the components, a simple
program can be created without the programmer having to write many lines of
code. Performance problems were experienced by earlier version, but with
faster computer and native code compilation this has become less of an
issue.Visual Basic (VB) is the third-generation event-driven programming
language and Integrated Development Environment (IDE) from Microsoft for
its COM programming model. VB is also considered a relatively easy to learn
and use programming language, because of its graphical development features
and BASIC heritage.
Visual Basic was derived from BASIC and enables the Rapid Application
Development (RAD) of Graphical User Interface (GUI) application, access to
database using Data Access Objects, Remote Data Object, or ActiveX Data
Object, and creation of ActiveX data control and object. Scripting languages
such as VBA and VBScript are syntactically similar to Visual Basic, but
perform differently.
A programmer can put together an application using the components provided
with Visual Basic itself. Programs written in Visual Basic can also use the
Windows API, but doing so requires external function declarations.

10
NCIT,Chalakudy

Hardware shop management system

The final release was version 6 in 1998. Microsofts extended support ended
in March 2008 and the designated successor was Visual Basic.NET (now
known simply as Visual Basic).
Like the BASIC programming languages, Visual Basic was designed to be
easily learned and used by beginner programmers. The language not only

allows programmers to create simple GUI application, but can also develop
complex application. Programming in VB is a combination of visually
arranging components or control on a form, specifying attributes and actions

OVERVIEW OF MICROSOFT SQL SERVER 2000


A relational data base management system (RDBMS) is a database
management system (DBMS) that based on the relational model as introduced
by Dr.Edgor.F.Codd. RDBMS are powerful because they require few
assumptions about how data is related or how it will extracted from the
database. So the same database can be viewed in many different ways. An
Important features of relational system that a single database can be spread
across several tables. Microsoft SQL server is a popular commercial RDBMS
for large database.
SQL SERVER is a multi-user DBMS developed by server corporation. It can
be used to store and manipulate large amount of information and automate
repetitive task such as maintaining an inventory and generate invoices.
Enterprise manager is the main administrative console of SQL Server
installation. It provide you with graphical birds eye view of all the SQL
Server installation on your network.
You can perform high-level administrative function that affects one or more
servers, schedule common maintenance task or create and modify the
structure of individual database. Query Analyzer offers a quick and dirty
method for performing queries against any of your SQL server database. Its a
11
NCIT,Chalakudy

Hardware shop management system

great way to quickly to pull information out of database in response to a user


request, test the queries before implementing them in other applications,
create/modify stored procedure and execute administrative task.
SQL Profiler provides a window in to the inner working of your database. You
can monitor many different events type and observe database performance in
real time. SQL profile allows you to capture and replay

system traces that log various activities. Its a great tool for optimizing
database with performance issues or trouble shooting particular problem.
Service manager is used to control the MSSQL server(the main SQL Server
process), MSTDC (Microsoft Distributed transaction Coordinator) and SQL

Server Agent Process. An icon of these services normally resides in the system
tray of machine running SQL server. You can use service manager to start,
stop or pause any of these services.
Date Transformation Services(DTS) provide an extremely flexible method for
importing and data between a Microsoft SQL Server installation and a large
variety of other formats. The most commonly used DTS application is the
import and Export data wizards found in the SQL program group, Books
online is an often overlooked resource provided with SQL Server that contains
answers to a verity of administrative, developed and installation issue. Its
great resources to consult before turning in to the Internet.
Here is the concept of Foreign Key also. A foreignkey in a table is a field
which links that table with another table in the same database. Data Definition
Language is a component of SQL used to create, modify and delete database
structures but not data. These command are normally not user in general user,
who should accessing the database via application. Data Manipulate Language
allows changing the data within the database and Data Control

12
NCIT,Chalakudy

Hardware shop management system

Language,components of SQL server access to data and to the database. And


Data Query Language allows getting data from the database.
SQL is a language that provides an interface to relation database system. In
common usage SQL also encompasses DML (Data Manipulation Language)
for Insert, Update, Deletes and DDL (Data Definition Language) used for
creating and modifying tables and other database structures.

Within a table records are arranged to common reference value, known as


primary key or the key field. The value in the key field is different for
every record and thus help in uniquely identifying records. Since a value in
the table can be replicated across other table there should be a way to maintain
a relation between the two tables. This relation is implemented through the
concept of foreign key. A foreign key in a table is a field, which links that
table to another table.

Features of SQL
SQL can be used by a range of users, including those with little or no
programming language.
It is a non-procedural language

It reduces the amount of time required for creating and maintaining


systems.
It is an English like language.
Date Transformation Services(DTS) provide an extremely flexible method for
importing and data between a Microsoft SQL Server installation and a large
variety of other formats. The most commonly used DTS application is the
import and Export data wizards found in the SQL program group, Books
online is an often overlooked resource provided with SQL Server that contains
answers to a verity of administrative, developed and installation issue. .

13
NCIT,Chalakudy

Hardware shop management system

Here is the concept of Foreign Key also. A foreignkey in a table is a field


which links that table with another table in the same database. Data Definition
Language is a component of SQL used to create, modify and delete database
structures but not data. These command are normally not user in general user,
who should accessing the database via application. Data Manipulate Language
allows changing the data within the database and Data Control
Language,components of SQL server access to data and to the database. And
Data Query Language allows getting data from the database.

COST ESTIMATION AND DEVELOPMENT


PROCESS
FEASIBILTY STUDY
The most difficult part of analysis is the identification of the candidate
systems and evaluation of their performance. A feasibility study is conducted
to select the best system that meets performance requirements. This entails an
identification description, an evaluation of candidate systems, and the
selection of the best system for the job. The new system has advantages such
as we can easily doing transaction in the shop and this application is more
user friendly for the employees.
There are three key considerations are involved in feasibility analysis. They
are:

Technical Feasibility
Economic Feasibility
Behavioral Feasibility

Technical Feasibility: Technical Feasibility determines whether the


technology needed for the proposed system is available and how it can be
integrated with in the organization. It centers on the existing computer system
14
NCIT,Chalakudy

Hardware shop management system

and to what extent it can support the proposed addition. It also involves
financial considerations to accommodate technical enhancements. The
HARDWARE SHOP MANAGEMENT SYSTEM can be done with the
current software technology and available personal.

Economical Feasibility: Economic analysis is the most frequently used


method for evaluating the effectiveness of a candidate system. More
commonly known as cost/benefit analysis, the procedure is to determine the

benefits and savings that are expected from a candidate system and compare
them with costs. If benefits out-weight costs, then the decision is made to
design and implement the system. Otherwise further justification or alteration
in the proposed system will have to be made if it is to have a chance of being
approved. This is an ongoing effort that improves in accuracy at each phase of
the system life cycle.

Behavioral Feasibility: people are inherently resistant to change, and


computers have been known to facilitate change. An estimate should be made
of how strong a reaction the user staff is likely to have toward the
development of a computerized system. It is common knowledge that
computer installed have something to do with turnover, transfers, retraining
and changes in employee job status. Therefore it is understandable that the
introduction of a candidate system requires special effort to educate, sell, and
train the staff on new ways of conducting business.
The current staff can be very much used to run the new system by giving
proper training. Most of the staff has the basic knowledge of a computer and
thus training them is easy. Operational feasibility ensures the operational
integrity of the system.

15
NCIT,Chalakudy

Hardware shop management system

16
NCIT,Chalakudy

Hardware shop management system

COST BENEFIT ANALYSIS


In developing cost estimates for a system, we need to consider several cost
elements. Among them is hardware, personnel, ability, operating, supply cost.
1. Hardware costs relate to the actual purchase or lease of the
computer and peripherals.
2. Personal costs include EPD staff salaries and benefits as well as
pay those involved in developing the system.
3. Facility costs are expenses incurred in the preparation of the
physical site where the application or the computer will be in
operation.
4. Operating of the system.
5. Supply costs are variable costs that increase with increased use of
paper, ribbons, disks, and the like. They should be estimated and
include in the overall cost of the system.
Cost benefit analysis is the procedure that gives a picture of the various costs,
benefit and rules associated with a system. The determination of costs and
benefits entails the following steps:
1.
2.
3.
4.
5.

Identify the costs and benefit pertaining to a given project.


Categorize the various costs and benefit for analysis.
Select a method of evaluation.
Interpret the result of the analysis.
Take action.

17
NCIT,Chalakudy

Hardware shop management system

PROJECT DESCRIPTION
Hardware shop management system deals with the common operation of a
Hardware shop. It handles the registration of item, customer, category,
supplier and company. In the item registration it stores details of items. In the
company registration it store the necessary company details. The category
registration stores details of Hardware the necessary company details. In the
customer registration it stores the necessary customer details.
In Purchase ordering is used for ordering item. Using this window we can
efficiently order item from registered Supplier. Purchase section is used for
purchasing the items that has already ordered through registered customers.
The Hardware shop management system handles the purchase order of
Hardwares then the efficient handled by this system.
Purchase order Display the details of the ordered items between two
particular date, particular dates and all details. But in the case of purchase it
display the details of the purchase item between two particular date, particular
dates and all details. Next one is the sales report it displays the details of the
sold item between two particular date, particular date and all details.
Facilities for generating necessary report for the efficient management of the
Hardware shop are also provided in this system. Hardware shop management
system has developed in Microsoft VB 6.0 environment (front end) and use
Microsoft SQL Server 2000(back end) for database. The proposed system can
easily make reports, can calculate accurate, and as a sum that reduces the man
power, number of employees and development of the firm will not be a matter.
In the case of cost, initial investment will not affect the ongoing process
because the future profit with the proposed system overcomes the problem
and it will be greater than manual work. The Hardware shop management
system overcomes all the drawbacks of the manual system. It performs
efficiently for the better performance of the organization.
18
NCIT,Chalakudy

Hardware shop management system

INHERENT VIEW OF MODULES

The HARDWARE SHOP MANAGEMENT SYSTEM mainly contains


different module like Registration, Transaction and Reports.
They are:

Company Registration
CategoryRegistration
Type Registration
colour Registration
Staff Registration
Customer Registration
Dealer Registration
Item registration
Order
Purchase
Sales

REGISTRATIONS
Item Registration
Item registration window is used to store the item details like item id,
item name, category name, price and details.
Category Registration
Category registration window is used to store the Hardware Category
like Category id, category name,types.
Company Registration
Company registration window is used for storing company details like
company id, company name, supplier name and other informations.

Customer Registration
Customer registration window is used to store the customer details like
customer id, customer name and contact informations.
Supplier Registration
19
NCIT,Chalakudy

Hardware shop management system

Supplier registration is used for storing the supplier details with


contact.
Type Registration
Type Registration is used to stores type id ,type name and category.
Colour Registration
Colour registration is used to store colour id and colour name.
Staff Registration
Staff registration stores the staff details.
TRANSACTIONS

Order
Purchase Order window is used for ordering items.
Purchase
Purchase Window is used for purchasing the item that has already ordered
through registered Supplier.
Sales
Sales module is used for selling the item. The sub module is
REPORT
The report module contains all the reports. This contains the all, monthly and
daily details of the shop.

Order Report
Purchase Report
Sales Report
Item Report
Company Report

Dealer Report
Colour Report
Category Report
Customer Report
Staff Report

Order Report
It displays the details of the ordered items for purchase
Purchase Report
20
NCIT,Chalakudy

Hardware shop management system

It displays the details of the purchasing items


Sales Report
It displays the details of the soled items.
Item Report
It displays the details of item.
Category Report
It displays the details of category
Staff Report
It displays the details of staffs
Customer Report
It displays the details of the customers
Dealer Report
It displays the details of the dealers
Company Registration
It is used to display the details of company.

DATA FLOW DIAGRAM


A Data Flow Diagram is used to define the flow of the Data and the resources
such as information. Data Flow Diagrams are a way of expressing system
requirements and identifying major transformations that will become program
in the system design. So it is the starting point of design phase that
functionally decomposes the requirement specification down into the lowest
level of details. The bubbles represent data transformation and the lines
represent information flow in the system. Data Flow Diagrams are useful in
21
NCIT,Chalakudy

Hardware shop management system

understanding a system and can be effectively used for partitioning. The


system may be an organization, a manual procedure, software system, a
mechanical system or any combination of these.

Rules for Constructing a Data Flow Diagram


Process should be named and numbered for easy reference. Each name should
be representative of the process. The direction of flow is from top to bottom
and from left to right. That is information flow should be from source to
destination. Numbering is given when a process is exploded into lower level
details. The name of the dad stores, sources and destinations are written in
capital letters. Process and data flow names have
The first letter of each word capitalized. The data Flow Diagram is
particularly designed to aid communication. If it contains dozens of process
and data stores it gets too unwieldy. The rule of the thumb is to explode the
DFD into a functional level. Beyond that, it is best to take each function
separately and expand it to show the explosion in a single process. If a user
wants to know what happens within a given process, then the detailed
explosion of that process may be shown. The goal of DFD is to have a
commonly understood model of a system. This diagram is the basis of
structured systems analysis. DFD are supported by other techniques of
structured system analysis such as structure diagrams, and data dictionaries.

Data Flow Diagrams have the objective of avoiding the cost of:

User/developer miss understanding from scratch when the physical


system changes when the physical system, what gets done, often remains

the same when technology changes.


System is inefficient because a system gets computerized before it gets
systematic.

DFD Symbols:22
NCIT,Chalakudy

Hardware shop management system

Data Flow Diagrams are composed of the four basis symbols shown below:

A process represents transformation where incoming data


changed into outgoing data flows

A dataflow is a root, which enables packet of data to travel


from one point to another. Data may flow from a source to a
processor and from data source or process. An arrow line depicts
the flow, with arrowhead pointing in the direction of the flow.
A data store is a repository of data that is to stored for use by one or
more process may be as simple as buffer or queue or sophisticated as
relational database. They should have clear names. If a process nearly uses
the content of store and does not alter it the arrow head goes only from the
store from the process.

A source or sinks a person is a part of an


organization, which enters or receives information from the system, but is
considered to be outside the context of data model.

Context level

23
NCIT,Chalakudy

Hardware shop management system


R e g is t r a t io n D e t a ils
STA FF/
A D M IN
R ep o rt

D e liv e r I t e m

H ard w are
Shop
M anagem en
t S y s te m

SUPPL IER
O r d e r D e t a ils

I te m D e ta ils

B ill

C USTO M ER

24
NCIT,Chalakudy

Hardware shop management system

First level

25
NCIT,Chalakudy

Hardware shop management system

S u p p lie r D e t a ils
SU PPL IER

4 .0
S u p p lie r

B r a n d D e t a ils
BRA ND

1 .0
Brand

B ID

BID

M O D EL

S U P P L IE R
CA TEGO RY

T ID

D eliv er O rd er ed I tem

2 .0
M odel

TYPE

3 .0
Ite m

IT E M

O RDER

Ite m
ID

SU BTYPE

5 .0
O rd er
D e t a ils

T o P la c e t h e O r d e r
STA FF
O R D E R D E T A IL S

I t e m D e t a ils

8 .0
P u rc h as
e

P u rc h a se D e tails

STO CK

CU STO M ER

C U ID

SA LES

S A L E S D E T A IL S

PURCHA SE

C u s t o m e r D e t a ils
6 .0
C u s to m
er

S a l e s D e ta i ls

7 .0
S a le s
D e t a ils

P U R _ D E T A IL S

C USTO M ER

DESIGN PROCESS
26
NCIT,Chalakudy

Hardware shop management system

The term design describes a final system and the process by which it is
developed. It refers to the technical specifications that will be applied in
implementing the candidate system. It also includes the construction of
programs and program testing. The design of a system is correct if a system
build precisely according to the design satisfies the requirements of that
system. Clearly, the goal during the design phase is to produce correct
designs. The goal of the design process is not simply to produce a design for
the system. Instead, the goal is to find the best possible design within the
limitations imposed by the requirements and the physical and social
environment in which the system will operate.
The main purpose of the design phase is to plan a selection for the problem
specified by the required document. The goal of the design process is to
produce a representation of the system; which can be used later to build that
system. The design of a system essentially a blue print or a plan for the
solution for the system.
Design is a creative process; a good design is the key to effective system. The
term DESIGN is defined as The process of applying various techniques
and principles for the purpose of defining a process or a system in sufficient
detail to permit its physical realization. Various design features are followed
to develop the system.
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 cleanly as possible. This step is called Information Level
Design and it is taken independent of any individual DBMS.
In the second step this information level design is transferred in to 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. The organization of the data in the database
is aimed to achieve the following two major objectives.
27
NCIT,Chalakudy

Hardware shop management system

Design a multi step process that focuses on the structure software


applications. Procedural details and interface between modules. The design
process translates the requirement into the representation of software that can
be assessed for quality before coding begins. The design phase is transition
from a user oriented document to the programmers or database personal. The
main purposes of the design phase in to plan a selection for the problems
required document. The goal of the design process is to procedure a
representation of a system; which can be used later to build that system. The
design of a system is essentially a blue print or a plan for the solution for the
system.
Once software requirements have been analyzed and specified, software
design is the first of the three technical activities Design, Code, test that are
required to build and verify software. Each activity transforms information in
a manner that ultimately results in validation of computer software.
The importance of software Design can be started with a single word
quality.Design is the place where quality fostered in software Development.
Design is the only way that we can accurately translate a customers
requirements into a finished software product or system. Without Design, risk
of building an unstable system exists one that will fail when small changes are
made one that may be difficult to test.

The term design describes a final

system and the process by which it is developed. It refers to the technical


specifications that will be applied in implementing the candidate system. It
also includes the construction of programs and program testing. The design of
a system is correct if a system build precisely according to the design satisfies
the requirements of that system. Clearly, the goal during the design phase is to
produce correct designs. The goal of the design process is not simply to
produce a design for the system. Instead, the goal is to find the best possible
design within the limitations imposed by the requirements and the physical
and social environment in which the system will operate.

28
NCIT,Chalakudy

Hardware shop management system

The main purpose of the design phase is to plan a selection for the problem
specified by the required document. The goal of the design process is to
produce a representation of the system; which can be used later to build that
system. The design of a system essentially a blue print or a plan for the
solution for the system.
Design is a creative process; a good design is the key to effective system. The
term DESIGN is defined as The process of applying various techniques
and principles for the purpose of defining a process or a system in sufficient
detail to permit its physical realization. Various design features are followed
to develop the system.
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 cleanly as possible. This step is called Information Level
Design and it is taken independent of any individual DBMS.
In the second step this information level design is transferred in to 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. The organization of the data in the database
is aimed to achieve the following two major objectives.
Data Integrity
Data Independence

29
NCIT,Chalakudy

Hardware shop management system

Normalization
Data structuring is refined through a process called normalization. Data
are grouped in the simplest way possible so that later changes can be made
with a minimum of impact on the data structure. When too many attributes
are grouped together to form entities, some attributes are found to be
entities themselves. Further normalization of these entities into attributes
linked by common data elements to form relationships improves the
effectiveness of the DBMS.
Database normalization is the process of organizing the fields and tables of
a relational database to minimize redundancy. Normalization usually
involves dividing large tables into smaller (and less redundant) tables and
defining relationships between them. The objective is to isolate data so that
additions, deletions, and modifications of a field can be made in just one
table and then propagated through the rest of the database using the defined
relationships.
Edgar F. Codd, the inventor of the relational model, introduced the concept
of normalization and what we now know as the First Normal Form (1NF)
in 1970. Codd went on to define the Second Normal Form (2NF) and Third
Normal Form (3NF) in 1971, and Codd and Raymond F. Boyce defined the
Boyce-Codd Normal Form (BCNF) in 1974. Informally, a relational
database table is often described as "normalized" if it is in the Third
Normal Form. Most 3NF tables are free of insertion, update, and deletion
anomalies.
A standard piece of database design guidance is that the designer should
first create a fully normalized design; then selective denormalization can be
performed for performance reasons.
A typical example of normalization is that a unique ID is stored
everywhere in the system but its name is held in only one table. The name
can be updated more easily in one row of one table.
30
NCIT,Chalakudy

Hardware shop management system

When an attempt is made to modify (update, insert into, or delete from) a


table, undesired side-effects may follow. Not all tables can suffer from these
side-effects; rather, the side-effects can only arise in tables that have not been
sufficiently normalized. An insufficiently normalized table might have one or
more of the following characteristics:

The same information can be expressed on multiple rows; therefore


updates to the table may result in logical inconsistencies. For example, each
record in an "Employees' Skills" table might contain an Employee ID,
Employee Address, and Skill; thus a change of address for a particular
employee will potentially need to be applied to multiple records (one for each
skill). If the update is not carried through successfullyif, that is, the
employee's address is updated on some records but not othersthen the table
is left in an inconsistent state. Specifically, the table provides conflicting
answers to the question of what this particular employee's address is. This
phenomenon is known as an update anomaly.

There are circumstances in which certain facts cannot be recorded at all.


For example, each record in a "Faculty and Their Courses" table might
contain a Faculty ID, Faculty Name, Faculty Hire Date, and Course Code
thus we can record the details of any faculty member who teaches at least one
course, but we cannot record the details of a newly hired faculty member who
has not yet been assigned to teach any courses except by setting the Course
Code to null. This phenomenon is known as an insertion anomaly.

Normalized tables are suitable for general-purpose querying. This means


any queries against these tables, including future queries whose details cannot
be anticipated, are supported. In contrast, tables that are not normalized lend
themselves to some types of queries, but not others.

For example, consider an online bookseller whose customers maintain


wishlists of books they'd like to have. For the obvious, anticipated query
31
NCIT,Chalakudy

Hardware shop management system

what books does this customer want?it's enough to store the customer's
wishlist in the table as, say, a homogeneous string of authors and titles.

With this design, though, the database can answer only that one single
query. It cannot by itself answer interesting but unanticipated queries: What is
the most-wished-for book? Which customers are interested in WWII
espionage? How does Lord Byron stack up against his contemporary poets?
Answers to these questions must come from special adaptive tools completely
separate from the database. One tool might be software written especially to
handle such queries. This special adaptive software has just one single
purpose: in effect to normalize the non-normalized field.

Unforeseen queries can be answered trivially, and entirely within the


database framework, with a normalized table.

The normal forms (abbrev. NF) of relational database theory provide


criteria for determining a table's degree of immunity against logical
inconsistencies and anomalies. The higher the normal form applicable to a
table, the less vulnerable it is. Each table has a "highest normal form" (HNF):
by definition, a table always meets the requirements of its HNF and of all
normal forms lower than its HNF; also by definition, a table fails to meet the
requirements of any normal form higher than its HNF.

The normal forms are applicable to individual tables; to say that an entire
database is in normal form n is to say that all of its tables are in normal
form n.

Newcomers to database design sometimes suppose that normalization


proceeds in an iterative fashion, i.e. a 1NF design is first normalized to 2NF,
then to 3NF, and so on. This is not an accurate description of how
normalization typically works. A sensibly designed table is likely to be in 3NF
on the first attempt; furthermore, if it is 3NF, it is overwhelmingly likely to
32
NCIT,Chalakudy

Hardware shop management system

have an HNF of 5NF. Achieving the "higher" normal forms (above 3NF) does
not usually require an extra expenditure of effort on the part of the designer.

DATABASE DESIGN
Database was designed using RDBMS concept there by enabling the sharing
of data and was normalized to avoid redundancy. This will lead to quicker
application development with low maintenance cost.
The goal of database design is to ensure that the data is represented in such
way that there is no redundancy and no extraneous data is generated. Having
identification all the data on the system, it is necessary to the database. This
model is independent of the physical representation of the data. Once the
conceptual model is designed, it can be mapped to the DBMS/RDBMS that is
actually being used. Two of the widely approaches are:

Entity relationship modeling


Normalization

Entity relationship modeling


A DBMS is a software system that manages the base of an enterprise and
provides facilities to the user to the database with practical case. In relation
database approach; data is organized in logical mathematics, in a tabulating
structure. The data fields become a column in a table under relation model and
each record becomes a row in a table. Relational between various tables are
defined using mathematical function such as JOIN and UNION. The most
important advantage of relational model are its flexibility in describing the
relationship between the various data items.
Normalization
Normalization is the process of analyzing the given relational schema based
on their functional dependencies and primary keys to achieve the desirable
properties of:
Minimizing redundancy.
33
NCIT,Chalakudy

Hardware shop management system

Minimizing the insertion, Deletion and update anomalies.

TABLES
LOGIN
FIELD

DATA

WIDTH

CONSTRAIN

DESCRIPTIO

NAME
Username
password

TYPE
varchar
varchar

T
Primary key

N
User name
password

20
20

FIELD

DATA

WIDT

CONSTRAIN

DESCRIPTIO

NAME

TYPE

Staffid

Int

staffname

varcha

50

Staff name

Staffmno

r
Bigint

Staff Mobile

Staffadds

varcha

50

Address

StaffEmai

r
varcha

50

Staff Email

STAFF

Primary key

Staff ID

CATEGORY
FIEL

DATA

TYPE

WIDT

CONSTRAIN

DESCRIPTIO
N

NAM
E
CID
Cname

Int
Varchar

4
50

Primary key

Category ID
Category name

CUSTOMER
FIELD

DATA

NAME
CustID

TYPE
Int

WIDT
H
4

CONSTRAIN

DESCRIPTIO

T
Primary key

N
Customer ID
34

NCIT,Chalakudy

Hardware shop management system

CustName

varcha

50

Customer name

CustmPhn

r
varcha

50

Customer

o
CustAdds

r
varcha

50

Mobile
Address

Email

r
varcha

50

Email

TYPE
FIELD

DATA

NAME
TypeID

TYPE
Int

TypeNam

Varcha

50

e
CateId

WIDT
H

CONSTRAIN
T
Primary key

DESCRIPTIO
N
Type ID
Type name

r
Int

Foreign key

Category ID

ITEM
FIELD

DATA

WIDTH

CONSTRAIN

DESCRIPTIO

NAME
ItemID

TYPE
Int

T
Primary key

N
Item ID

Itemname

Varchar

50

Item name

TypeName

varchar

50

Type Name

ColorName

varchar

50

Color Name

Price

varchar

50

Price

Reorder

BigInt

Reorder level

Stock

BigInt

Stock Details

COLOR
FIELD

DATA

NAME
ColorID

TYPE
Int

WIDTH
4

CONSTRAIN

DESCRIPTIO

T
Primary key

N
Color ID
35

NCIT,Chalakudy

Hardware shop management system

ColorName

varchar

50

Color name

FIELD

DATA

WIDT

NAME
CompanyId

TYPE
Int

ComName
comPh

Varchar
BigInt

50
8

Company Name
Company Phone

ComEmail

Varchar

50

Email

ComWeb

Varchar

50

Web

FIELD

DATA

WIDT

NAME
DealerId

TYPE
Int

CompNam

Varchar

50

Company Name

e
DealerAdss

Varchar

50

Dealer Name

DealerPh

BigInt

Phone no

DealerEml

Varchar

50

Email

COMPANY

CONSTRAIN

DESCRIPTIO

T
Primary key

N
Dealer ID

DEALER

CONSTRAIN

DESCRIPTIO

T
Primary key

N
Dealer ID

SALES MASTER
FIELD

DATA

WIDTH

NAME
Salesid
Salesdate

TYPE
Int
datetime

4
8

CUID

Int

Totamt

bigint

CONSTRAIN

DESCRIPTIO

T
Primary key

N
Sales ID
Sales date

Foreign key

Customer ID
Total amount

SALES DETAIL
FIELD

DATA

NAME
Sdid

TYPE
Int

Salesid

Int

WIDTH

CONSTRAIN

DESCRIPTIO

T
Primary key

N
Sales details ID

Foreign key

Sales ID
36

NCIT,Chalakudy

Hardware shop management system

ItemID

Int

Foreign key

Item Id

Qty

Int

Quantity

Net

Bigint

Net amount

ORDER MASTER
FIELD

DATA

WIDTH

CONSTRAIN

DESCRIPTIO

NAME
Orderid

TYPE
Int

T
Primary key

N
Order ID

orderdate

datetime

SID
Expdate

Int
datetime

4
8

Status

Bit

FIELD

DATA

WIDTH

CONSTRAIN

DESCRIPTIO

NAME
orddetid

TYPE
Int

T
Primary key

N
Order details ID

Ordered

Int

ItemID
Qua

Int
Int

4
4

Order date
Foreign key

Supplier ID
Experi date
Status

ORDER DETAIL

Order
Foreign key

Item ID
Quantity

PURCHASE MASTER
FIELD

DATA

WIDTH

CONSTRAIN

DESCRIPTIO

NAME
Puid

TYPE
Int

T
Primary key

N
Purchase ID

Orderid

Int

Foreign key

Order ID

Purdate

datetime

Purchase date

Invno

Bigint

Invoice no

Pay

Bigint

Payment

Disc

Bigint

Discount

PURCHASE DETAILS
FIELD

DATA

NAME

TYPE

WIDTH

CONSTRAIN
T

DESCRIPTIO
N
37

NCIT,Chalakudy

Hardware shop management system

Pdetid

Int

Primary key

Purchase details

Puid

Int

Foreign key

ID
Purchase ID

ItemID

Int

Foreign key

Item ID

Qua

Bigint

Quantity

Purate

Bigint

Purchase rate

Salrate

Bigint

Sales rate

INPUT DESIGN
Inaccurate input data are the most common cause of errors in data processing.
Errors entered by data entry operators can be controlled by input design. Input
design is the process of converting user-originated inputs to computer-based
format. In the system design phase, the expanded data flow diagram identifies
logical data flows, data stores, sources, and destinations. A systems flowchart
specifies master files, transaction files, and computer programs. Input data are
collected and organized into groups of similar data. Once identified, appropriate
input media are selected for processing.

In our software, eleven forms are included:


ITEM: This module is used to collect the details of items available in
the shop.The details are stored the table item. Using this module we can
perform the operations like adding new record and retrieving the
details.

38
NCIT,Chalakudy

Hardware shop management system

CATEGORY: This module is used to collect the details of category


available in the shop. The details are stored the table category. Using
this module we can perform the operations like adding new record and
retrieving the details.
TYPE: This module is used to collect the details of type available in the
shop. The details are stored the table type. Using this module we can
perform the operations like adding new record and retrieving the details
COLOR: This module is used to collect the details of product available
in the shop. The details are stored the table color. Using this module we
can perform the operations like adding new record and retrieving the
details.
CUSTOMER: Main purpose of this module is to collect the details of
the customers who interested to buy a Hardware. By using this module
we get the details like name, address, phone number, email. These
details are stored in the table customer.
DEALER: Main purpose of this module is to collect the details of the
dealers who supply the Hardwares. By using this module we get the
details like name, address, phone number, email. These details are
stored in the table dealer.
STAFF: Main purpose of this module is to collect the details of the staff
name, address, phone number, email. These details are stored in the
table staff.
COMPANY: This module is used to collect the details of company such
as company name, company id, price, contacts and other details .
ORDER: This module is used to collect the details of purchase order
and this contains the informations such as dealer, category, type, color
and quantity. The details are stored in two tables named order master
and order details.
PURCHASE: This module is used to collect the details of purchases take
place in the shop. It contains the informations such as item details, amount
39
NCIT,Chalakudy

Hardware shop management system

and invoice number. The details are saved in three tables named purchase
master and purchase details , stock.
SALES: This module is used to collect the details of sales take place in the
shop. It contains the informations such as item details, amount and total
amount. The details are saved in two tables named salesmaster and
salesdetails.

OUTPUT DESIGN
Computer output is the most important and direct source of information to the
user. Efficient, intelligible output design should improve the systems
relationship with the user and help in decision making. A major form of output
is a hard copy from the printer. Printout should be designed around the output
requirements of the user. The output devices to consider depend on factors
such as compatibility of the devise with the system, response time
requirements, expected print quality, and number of copies needed.
We can retrieve the data from tables and print it as report in a particular format.
The software must be capable of generating reports based on the user needs.
So, I include the following reports according to the needs of users in WINN
AGENCIES,THRISSUR. Reports included in my project are:
Order Report: It displays the details of the ordered items for purchase
Purchase Report: It displays the details of the purchasing items
Sales Report: It displays the details of the soled items.
40
NCIT,Chalakudy

Hardware shop management system

Item Report: It displays the details of item.


Category Report: It displays the details of category
Staff Report: It displays the details of staffs
Customer Report: It displays the details of the customers
Dealer Report: It displays the details of the dealers
Company Registration: It is used to display the details of company.

SYSTEM TESTING
Testing is the success of the system. System testing makes a logical assumption
that if all parts of the system are correct, the goal will be successfully achieved.
Inadequate testing or contesting leads to errors that may not appear until months
later.
PURPOSE OF TESTING
Testing is the success of the system. System testing makes a logical assumption
that if all parts of the system are correct, the goal will be successfully achieved. The
following points shows how testing is essential:

Existence of program defects of inadequacies is inferred.


Verifies whether the software behaves as intended by its designer.
Checks conformance with requirement specification / user needs.
Assesses the operational reliability of the system.
Test the performance of the system.
Reflects the frequencies of actual user inputs.
Find the fault which caused the output anomaly.
Detect flaws and deficiencies in the requirements.

41
NCIT,Chalakudy

Hardware shop management system

Exercise the program using data like the real data processed by the

program.
Tests the system capabilities.
Judges whether or not the program is usable in practice.

The testing steps are:

Unit testing
Integration testing
System testing
validation testing

UNIT TESTING
Unit testing is testing changes made in an existing or a new program. Unit
testing focus verification efforts on the smallest unit of software design, the
module. This is known as Module testing . The unit testing focuses
verification error on the smallest unit of the software design. It comprises of
the set of tests performed by an individual programmer prior to the integration
of unit in to large system. The modules are tested separately. This testing is
carried out during programming stage itself.
In this step each module is found to be working satisfactorily as regard to the
expected output from the module. The unit testing was done for every module
in the software for various inputs, such that each line of code is at least once
executed. This testing was carried out during the unit to a large system.
INTEGRATION TESTING
Data can be lost across an interface .one module can have an adverse effort
on another, sub functions, when combined, may not produce the desired
major functions. Integration testing is a systematic testing for constructing
the program structure, while at the same time conducting tests to uncover
errors associated with in the interface. The objective is to take the unit tested
module and build a program structure.
42
NCIT,Chalakudy

Hardware shop management system

All the modules are a combined and tested as a whole. Here correction is
difficult because the vast expenses of all the errors uncovered are corrected
for the next testing steps. We follow bottom-up integration. Bottom up
integration testing as its name implies begins construction and -sling with
atomic modules. Because components are integrated from the bottom up,
accessing required for components subordinate to a given level is always
available and need for stubs is eliminated.

SEQUENTIAL TESTING
Sequential or series testing is checking the logic of one or more programs in
the candidate system, where the output of one program will affect the
processing done by another PROGRAM.
SYSTEM TESTING
System testing executing a program to check logic changes made in it and
with the intension of finding errors-making the program fails. Effective testing
does not guaranties reliability. Reliability is a design consideration. This
testing actually a series of different tests whose primary purpose is to fully
exercise the computer-based system . It begins where integration testing is
completed and finally software is completely assembled as package,
interfacing errors are uncovered and corrected. They are designed to exercise
the program to its external specifications.
ACCEPTANCE TESTING
Acceptance testing is running the system with live data by the actual user. It
be the key factor for the success of any system. The system under
consideration is tested for user acceptance by constantly keeping in touch with
the prospective system users at time of developing and making changes where
ever required.
43
NCIT,Chalakudy

Hardware shop management system

VALIDATION TESTING
Here the inputs are given by the user are validated. That is password
validation, format of date are correct, text box validation. Changes that need
to be done after result of this testing.

SYSTEM IMPLEMENTATION
Implementation is the stage in the project where the theoretical design is
turned into working system and is giving confidence on the new system for
the users that will work effetely and effectively. It involves careful planning,
investigation of the current system and its constraints on implementation,
design of methods to achieve the change over, an evaluations, of change over
methods.
Implementation is the final and important phase. The most critical stage in
achieving a successful new system and in giving the users confidence that the
new system will work and be effective. The system can be implemented only
after through testing is done and if it found to working according to the
specification. This method also offers the greatest security since the old
system can take over if the errors are found or inability to handle certain type
of transactions while using the new system.
At the beginning of the development phase a preliminary implementation plan
is created to schedule and manage the many different activities that must be
integrated into plan. The implementation plans updated throughout the
development phase, culminating in a changeover plan for the operation phase.
The major elements of implementation plan are test plan for the operation
44
NCIT,Chalakudy

Hardware shop management system

phase. The major elements of implementation plan are test plan training plan,
equipment installation plan and a conversion plan.
There are three types of implementation:
Implementation of a computer system to replace a manual system.
Implementation of a new system to replace an existing system.
Implementation of a modified application to replace an existing one, using
the same computer.

SYSTEM MAINTENANCE
Maintenance means restoring to its original condition. it is the enigma of
system development. Maintenance covers a wide range of activities including
correcting coding and design errors, updating documentation and test data,
upgrading user support. Analyst and programmers spend far more maintaining
programs than they do writing them.
In the maintenance phase, the system designed and developed in the
proceeding phase is operated by its users and maintains an ongoing system. It
is characterized by four distinct stages. Initially the new system must be
introduced to the business activity. Mainstreams are the stage, which is called
changeover, and it may take weeks or months. After changeover process the
system enters the routine maintenance stage.
After the computer based business system has been developed for reasonable
period, its performance is evaluated to determine whether the specific claimed
for the system has been achieved. The stage is called System Performance
Evaluation. The modern business system environment is dynamic subject to
many internal and external influences. If a system change is needed the
organization can trigger a change request which may result in a modified
system.
45
NCIT,Chalakudy

Hardware shop management system

To get the effective feedback for further improvisation of the software, for
removing unidentified bugs and collection suggestions for more user
friendliness, the alpha and beta versions of the proposed system is
implemented in few test premises and collected the feedback. Maintenance
can be classified as
Corrective maintenance - repairing processing or performance failures
Adaptive maintenance - changing the program function
Perfective maintenance - enhancing the performance

The HARDWARE SHOP MANAGMENT SYSTEM has been developed


in VB 6.0 all the models are tested separately and put together to form the
main system. Finally the system is tested with real data and everything
worked successfully. Thus the system has all objective identified.
System has been developed in an attractive menu driven fashion. Therefore,
user with minimum knowledge about computer can also be able to operate the
system easily.
The system saves the valuable time in any way. All security aspects are
maintained in the software. The users are given passwords for security
reasons. The system has enough flexibility to meet the needs of the client. The
system is efficient and accurate. All modules in this system look alike with
common menus.
The system is designed in such a way that enhancement can be made in the
future with minor modification or changes.
The existing system has some drawbacks. It was not a user friendly software ,
it do not generate reports daily and some operations like application for loans,
account opening are carry out manually. My software is equipped with all
these

features and it satisfies almost all user needs.

The application is designed in such a way that any further enhancement can
be done with ease. The system has the capability for easy integration with
46
NCIT,Chalakudy

Hardware shop management system

other systems. New modules can be added to the existing system with less
effort.
The system generates only a number of reports. If more detailed reports are
required the system can be directed. In future our system will cover all the
transactions in the organization without any errors and include more and more
facilities for running the system.

Elias M Awad , System Analysis and Design, Galgotia Publications

Michel Otey & Dennielle Otey, Microsoft SQL Server 2000 Developers
Guide, MC Graw Hill

Pankaj Jalote, An Integrated Approach to Software Engineering,


Narosa Publishing House

Tim Patrick, Programming Visual Basic 6.0, IDG Books

47
NCIT,Chalakudy

Hardware shop management system

CODING

Login

Dim rs As New ADODB.Recordset


Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdlogin_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from login where username='" &
Trim(txtuser.Text) & "' and password=" & txtpass.Text & "", con,
adOpenDynamic, adLockOptimistic
If rs.EOF = True Then
MsgBox ("Invalied user")
Else
MDIForm1.Show
End If
End Sub
Private Sub Form_Load()
connection
End Sub

48
NCIT,Chalakudy

Hardware shop management system

Module

Public con As New ADODB.connection


Public Function connection()
If con.State = 1 Then con.Close
con.Open "Provider=SQLOLEDB.1;Password=123456;Persist Security
Info=True;User ID=sa;Initial Catalog=MII;Data Source=."
End Function

Category
Dim rs As New ADODB.Recordset
Private Sub cmbid1_Click()
cmbid1.Visible = True
If rs.State = 1 Then rs.Close
rs.Open "select * from category where cateID=" & cmbid1.Text,
con, adOpenDynamic, adLockOptimistic
TXTCATNAME.Text = rs.Fields(1)
cmbid1.Enabled = False
End Sub
Private Sub cmdedit_Click()
TXTCATID.Visible = False
If cmdedit.Caption = "EDIT" Then
cmbid1.Visible = True
If rs.State = 1 Then rs.Close
rs.Open "select * from category ", con, adOpenDynamic,
adLockOptimistic
While rs.EOF <> True
cmbid1.AddItem (rs.Fields(0))
rs.MoveNext
Wend
cmdedit.Caption = "UPDATE "
cmdnew.Visible = False
Else
con.Execute ("update category set categoryname='" &
TXTCATNAME.Text & "' where cateid=" & cmbid1.Text & "")

49
NCIT,Chalakudy

Hardware shop management system


MsgBox ("UPDATED")
cmdnew.Visible = True
TXTCATID.Visible = True
cmdedit.Caption = "EDIT"
cmbid1.Visible = False
For Each ctl In Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
Next ctl
End If
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdnew_Click()
If cmdnew.Caption = "NEW" Then
Dim ctl As Control
For Each ctl In Controls
If TypeOf ctl Is TextBox Or TypeOf ctl Is ComboBox Then
ctl.Text = ""
End If
Next
If rs.State = 1 Then rs.Close
rs.Open " select * from category ", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = True And rs.EOF = True Then
TXTCATID.Text = 1
Else
rs.MoveLast
TXTCATID.Text = rs.Fields(0) + 1
End If
cmdnew.Caption = "SAVE"
Else
For Each ctl In Controls
If TypeOf ctl Is TextBox Then
If ctl.Text = "" Then

50
NCIT,Chalakudy

Hardware shop management system


MsgBox ("All fields must be entered")
End If
End If
Next
con.Execute ("insert into category values(" & TXTCATID.Text & " ,
'" & TXTCATNAME.Text & "')")
MsgBox ("record saved")
For Each ctl In Controls
If TypeOf ctl Is TextBox Or TypeOf ctl Is ComboBox Then
ctl.Text = ""
End If
Next
cmdnew.Caption = "NEW"
End If
End Sub
Private Sub Form_Load()
cmbid1.Visible = False
connection
End Sub
Private Sub TXTCATID_Click()
TXTCATID.Enabled = False
End Sub
Private Sub TXTCATNAME_KeyPress(KeyAscii As Integer)
Select Case Chr(KeyAscii)
Case 0 To 9
KeyAscii = 0
End Select
End Sub
Private Sub TXTCATNAME_LostFocus()
If rs.State = 1 Then rs.Close
rs.Open "select * from category where categoryname='" &
TXTCATNAME.Text & "'", con, adOpenDynamic
If rs.EOF <> True Then
MsgBox ("company already exisT")
TXTCATNAME.Text = ""
TXTCATNAME.SetFocus
End If

51
NCIT,Chalakudy

Hardware shop management system


End Sub

Order
Dim i As Integer
Dim s, T As Integer
Dim rs As New ADODB.Recordset
Dim l As String
Private Sub cmborderid_Click()

Dim rs1 As New ADODB.Recordset, rs2 As New ADODB.Recordset, rs3


As New ADODB.Recordset
If rs2.State = 1 Then rs2.Close
rs2.Open "select * from Orderdetail where orderid=" &
cmborderid.Text & "", con, adOpenDynamic
txtqty.Text = rs2.Fields(3)
If rs1.State = 1 Then rs.Close
rs1.Open "select * from Ordermaster where orderid=" &
cmborderid.Text & "", con, adOpenDynamic
txtorderid.Text = rs1.Fields(0)
DTPicker1.Value = rs1.Fields(1)
vm = rs1.Fields(2)
txtadvance.Text = rs1.Fields(4)
txtnetamount.Text = rs1.Fields(5)
DTPicker2.Value = rs1.Fields(3)
If rs1.State = 1 Then rs1.Close
rs1.Open "select * from dealer where dealerid=" & vm & "", con,
adOpenDynamic, adLockOptimistic
l = rs1.Fields(2)
cmbdealername.Text = l
If rs2.State = 1 Then rs2.Close
rs2.Open "select * from Orderdetail where orderid=" &
cmborderid.Text & "", con, adOpenDynamic
dc = rs2.Fields(2)
If rs.State = 1 Then rs.Close
rs.Open "select * from Item where itemid=" & dc & "", con,
adOpenDynamic
vi = rs.Fields(1)

52
NCIT,Chalakudy

Hardware shop management system


cmbitemname.Text = vi
If rs3.State = 1 Then rs3.Close
rs3.Open "select * from Item where itemid=" & rs2.Fields(2), con,
adOpenDynamic
h = rs3.Fields(1)
i = 1
While rs2.EOF = False
MSG1.TextMatrix(MSG1.Rows - 1, 0) = rs2.Fields(0)
MSG1.TextMatrix(MSG1.Rows - 1, 1) = h
MSG1.TextMatrix(MSG1.Rows - 1, 2) = rs2.Fields(3)
MSG1.TextMatrix(MSG1.Rows - 1, 3) = rs2.Fields(4)
rs2.MoveNext
MSG1.Rows = MSG1.Rows + 1
Wend
End Sub
Private Sub cmdadd_Click()
Dim m As Integer
If rs.State = 1 Then rs.Close
rs.Open "select * from Item where itemname='" & cmbitemname.Text
& "'", con, adOpenDynamic
v = rs.Fields(0)
If rs.State = 1 Then rs.Close
rs.Open "select * from Item where itemid=" & v, con,
adOpenDynamic
P = rs.Fields(5)
MSG1.TextMatrix(MSG1.Rows - 1, 0) = s
MSG1.TextMatrix(MSG1.Rows - 1, 1) = cmbitemname
MSG1.TextMatrix(MSG1.Rows - 1, 2) = txtqty.Text
MSG1.TextMatrix(MSG1.Rows - 1, 3) = P * txtqty.Text
MSG1.Rows = MSG1.Rows + 1
s = s + 1
T = T + (P * txtqty.Text)
txtnetamount = T - txtadvance.Text
txtadvance.Enabled = False
txtqty.Text = " "
End Sub
Private Sub cmdeditupdate_Click()
Dim rs4 As New ADODB.Recordset

53
NCIT,Chalakudy

Hardware shop management system


If cmdeditupdate.Caption = "EDIT" Then
c = Date
b = DTPicker2.Value
s = b - c
sl = 1
If rs.State = 1 Then rs.Close
rs.Open "select * from Orderdetail", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = True And rs.EOF = True Then
s = 1
Else
rs.MoveLast
s = rs.Fields(0) + 1
End If
cmborderid.Visible = True
txtorderid.Visible = False
If rs.State = 1 Then rs.Close
rs.Open "select * from Ordermaster", con, adOpenDynamic
cmborderid.Clear
rs.MoveFirst
While Not rs.EOF
cmborderid.AddItem rs.Fields(0)
rs.MoveNext
Wend
cmdeditupdate.Caption = "UPDATE"
cmborderid.Visible = True
Else
If rs.State = 1 Then rs.Close
rs.Open "select * from dealer where dealername='" &
cmbdealername.Text & "'", con, adOpenDynamic
k = rs.Fields(0)
con.Execute ("update Ordermaster set orderdate='" &
DTPicker1.Value & "',dealerid=" & k & ",purchasedate='" &
DTPicker2.Value & "',advance=" & txtadvance.Text & ",netamount="
& txtnetamount.Text & "where orderid=" & cmborderid)
con.Execute ("delete from Orderdetail where orderid=" &
cmborderid.Text)
For i = 1 To MSG1.Rows - 2
If rs.State = 1 Then rs.Close

54
NCIT,Chalakudy

Hardware shop management system


rs.Open "select * from Item where itemname='" &
MSG1.TextMatrix(i, 1) & "'", con, adOpenDynamic
Y = rs.Fields(0)
con.Execute ("insert into Orderdetail values(" &
MSG1.TextMatrix(i, 0) & "," & txtorderid.Text & "," & Y & "," &
MSG1.TextMatrix(i, 2) & "," & MSG1.TextMatrix(i, 3) & ")")
Next i
MsgBox ("Record updated")
For Each ctl In Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
Next ctl
cmdeditupdate.Caption = "EDIT"
End If
End Sub
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdnewsave_Click()
txtadvance.Enabled = True
If cmdnewsave.Caption = "NEW" Then
Dim ctl As Control
For Each ctl In Controls
If TypeOf ctl Is TextBox Then
ctl.Text = ""
End If
Next ctl
If rs.State = 1 Then rs.Close
rs.Open "select * from Ordermaster", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = True And rs.EOF = True Then
txtorderid.Text = 101
Else
rs.MoveLast
txtorderid.Text = rs.Fields(0) + 1
End If
If rs.State = 1 Then rs.Close

55
NCIT,Chalakudy

Hardware shop management system


rs.Open "select * from Orderdetail", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = True And rs.EOF = True Then
s = 1
Else
rs.MoveLast
s = rs.Fields(0) + 1
End If
T = 0
cmdnewsave.Caption = "SAVE"
Else
For Each ctl In Controls
If TypeOf ctl Is TextBox Then
If ctl.Text = "" Then
MsgBox ("All fields must be entered")
Exit Sub
End If
End If
Next ctl
If rs.State = 1 Then rs.Close

rs.Open "select * from dealer where dealername='" &


cmbdealername.Text & "'", con, adOpenDynamic
z = rs.Fields(0)
con.Execute ("insert into Ordermaster values(" & txtorderid.Text
& ",'" & DTPicker1.Value & "'," & z & ",'" & DTPicker2.Value &
"'," & txtadvance.Text & "," & txtnetamount.Text & "," & 0 & ")")
For i = 1 To MSG1.Rows - 2
If rs.State = 1 Then rs.Close
rs.Open "select * from Item where itemname='" &
MSG1.TextMatrix(i, 1) & "'", con, adOpenDynamic
Y = rs.Fields(0)
con.Execute ("insert into Orderdetail values(" &
MSG1.TextMatrix(i, 0) & "," & txtorderid.Text & "," & Y & "," &
MSG1.TextMatrix(i, 2) & "," & MSG1.TextMatrix(i, 3) & ")")
Next i
MsgBox ("Record saved")
For Each ctl In Controls

56
NCIT,Chalakudy

Hardware shop management system


If TypeOf ctl Is TextBox Or TypeOf ctl Is ComboBox Then
ctl.Text = ""
End If
Next ctl
cmdnewsave.Caption = "NEW"
End If
MSG1.Clear
MSG1.FormatString = "
"

SLNO

| ITEM NAME

QUANTITY

PRICE

MSG1.Rows = 2
End Sub
Private Sub cmdremove_Click()
Dim n As Integer
n = MSG1.RowSel
txtnetamount = txtnetamount - Val(MSG1.TextMatrix(MSG1.Rows - n,
3))
MSG1.RemoveItem (MSG1.RowSel)
End Sub
Private Sub Form_Load()
cmborderid.Visible = False
order.Height = 7725
order.Width = 11000
connection
cmborderid.Visible = False
If rs.State = 1 Then rs.Close
rs.Open "select * from Item", con, adOpenDynamic
cmbitemname.Clear
rs.MoveFirst
While Not rs.EOF
cmbitemname.AddItem rs.Fields(1)
rs.MoveNext
Wend
If rs.State = 1 Then rs.Close
rs.Open "select * from dealer", con, adOpenDynamic
cmbdealername.Clear
rs.MoveFirst
While Not rs.EOF

57
NCIT,Chalakudy

Hardware shop management system


cmbdealername.AddItem rs.Fields(2)
rs.MoveNext
Wend
End Sub
Private Sub MSG1_Click()
n = MSG1.RowSel
If rs.State = 1 Then rs.Close
rs.Open "select * from Item where itemname='" &
MSG1.TextMatrix(n, 1) & "'", con, adOpenDynamic
d = rs.Fields(1)
cmbitemname.Text = d
txtqty.Text = MSG1.TextMatrix(n, 2)
If cmdeditupdate.Caption = "UPDATE" Then
MSG1.RemoveItem (MSG1.RowSel)
For i = n To MSG1.Rows - 2
MSG1.TextMatrix(i, 0) = Val(MSG1.TextMatrix(i, 0)) - 1
Next i
End If
End Sub

Private Sub txtadvance_KeyPress(KeyAscii As Integer)


If Not IsNumeric(txtadvance & Chr(KeyAscii)) And Not KeyAscii = 8
Then KeyAscii = 0
End Sub
Private Sub txtqty_KeyPress(KeyAscii As Integer)
If Not IsNumeric(txtqty & Chr(KeyAscii)) And Not KeyAscii = 8
Then KeyAscii = 0
End Sub

Report
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub Command1_Click()

58
NCIT,Chalakudy

Hardware shop management system


If Option1.Value = True Then
If Option6.Value = True Then
DataEnvironment1.Command8
DataReport8.Show
ElseIf Option4.Value = True Then
DataEnvironment1.Command11_Grouping DTPicker1
DataReport11.Show
Else
DataEnvironment1.Command12_Grouping DTPicker2, DTPicker3
DataReport12.Show
End If
ElseIf Option2.Value = True Then
If Option6.Value = True Then
DataEnvironment1.Command9
DataReport9.Show
ElseIf Option4.Value = True Then
DataEnvironment1.Command13_Grouping DTPicker1
DataReport13.Show
Else
DataEnvironment1.Command14_Grouping DTPicker2, DTPicker3
DataReport14.Show
End If
ElseIf Option3.Value = True Then
If Option6.Value = True Then
DataEnvironment1.Command10
DataReport10.Show
ElseIf Option4.Value = True Then
DataEnvironment1.Command15_Grouping DTPicker1
DataReport15.Show
Else
DataEnvironment1.Command16_Grouping DTPicker2, DTPicker3
DataReport16.Show
End If
End If
End Sub

59
NCIT,Chalakudy

Hardware shop management system

SAMPLE SCREENS

LOGIN

60
NCIT,Chalakudy

Hardware shop management system

MDI FORM

61
NCIT,Chalakudy

Hardware shop management system

62
NCIT,Chalakudy

Hardware shop management system

CATEGORY

63
NCIT,Chalakudy

Hardware shop management system

TYPE

64
NCIT,Chalakudy

Hardware shop management system

COLOR

65
NCIT,Chalakudy

Hardware shop management system

STAFF

66
NCIT,Chalakudy

Hardware shop management system

COMPANY

67
NCIT,Chalakudy

Hardware shop management system

DEALER

68
NCIT,Chalakudy

Hardware shop management system

CUSTOMER

69
NCIT,Chalakudy

Hardware shop management system

ITEM

70
NCIT,Chalakudy

Hardware shop management system

ORDER

71
NCIT,Chalakudy

Hardware shop management system

PURCHASE

72
NCIT,Chalakudy

Hardware shop management system

SALES

73
NCIT,Chalakudy

Hardware shop management system

REPORT

74
NCIT,Chalakudy

Hardware shop management system

CUSTOMER REPORT

75
NCIT,Chalakudy

Hardware shop management system

DEALER REPORT

76
NCIT,Chalakudy

Hardware shop management system

COLOR REPORT

77
NCIT,Chalakudy

Hardware shop management system

COMPANY REPORT

78
NCIT,Chalakudy

Hardware shop management system

CATEGORY REPORT

79
NCIT,Chalakudy

Hardware shop management system

ITEM REPORT

ORDER REPORT

80
NCIT,Chalakudy

Hardware shop management system

PURCHASE REPORT

81
NCIT,Chalakudy

Hardware shop management system

SALES REPORT

82
NCIT,Chalakudy

Hardware shop management system

83
NCIT,Chalakudy

Hardware shop management system

84
NCIT,Chalakudy

Hardware shop management system

85
NCIT,Chalakudy

Hardware shop management system

86
NCIT,Chalakudy

Hardware shop management system

87
NCIT,Chalakudy

Hardware shop management system

88
NCIT,Chalakudy

Hardware shop management system

89
NCIT,Chalakudy

Você também pode gostar