Herbaldoc
Herbaldoc
Introduction
Synopsis
System Specification
Hardware Configuration
Software Configuration
System Analysis
Existing System
Proposed System
Program Specification
Future Enhancement
Conclusion
Appendix
A. Table design
B. Data Flow Diagram
C. Source Code
D. Output Screen
Bibliography
SYNOPSIS
herbal Agencies. The main aim of this project is to computerize all the works in the
organization.
The herbal management system has developed in Visual basic 6.0 and Ms access.
First, we will enter the username and password and their check it. If it correct then it will
allow the user to enter into the program section. This system consists of various sub
modules.
1) Customer details
2) Stock entry
3) Stock details
4) Herbal details
5) Sales details
6) Bill preparation
7) Salesman details
The customer details has the following sub division
1. Herbal
2. Agencies
3. Hospital
Reports
1) Customer wise
2) Stock wise
3) Herbal wise
4) Sales wise
5) Salesman wise
2. Hardware and Software Specification
RAM : 128 MB
PROBLEM DEFINITION
The project HERBAL MANAGEMET SYSTEM in which all herbal item of a
company is maintained. The day today reports are collected and processed by the
company.
EXISTING SYSTEM
The existing system is not a interactive processing system, because it uses
FOXPRO. The old version used FoxPro is the semi RDBMS and there is no interactive
report generation method.
PROPOSED SYSTEM:
Our proposed system, data is maintained correctly.
The execution speed is very faster. Calculation will be accurate
Reduces computation time in preparation of various reports.
Up to date sales can be maintained
Recording all the day transaction
3. SOFTWARE SPECIFICATION
Microsoft Visual Basic is one of the best GUIs and version 6.0 is the latest
version of the popular programming language. With its new features, Visual Basic is an
even stronger contender in the application development area then ever before.
Microsoft Visual Basic, the fastest and easiest to create applications for Microsoft
windows. Visual Basic provides with a complete set of tools to simplify Rapid
Application Development (RAD).
The “Visual” part refers to the method used to create the graphical user interface
(GUI), Rather than writing numerous lines of code to describe the appearance and
location of interface elements, we simply add rebuilt objects into place on screen. The
“Basic” part refers to the BASIC (Beginners All - Purpose Symbolic Instruction Code)
language, a language used by more programmers than any other language in the history
of computing. Visual Basic has evolved from the original BASIC language and now
contains several hundred statements, functions and keywords, many of which relate
directly to the windows GUI.
The purpose of Visual Basic is to develop robust stand-alone application, games,
and utilities less time than it takes in other languages. We can use also ActiveX
technology to create internet-enabled applications that are limited only by our
imagination.
Visual Basic 6.0 is the newest addition to the family of Visual Basic products. It
allows us to create Windows applications for our PC without being an expert in C++ or
other programming languages.
Visual Basic 6.0 is specially designed to utilize the Internet. It comes with several
controls that allow us to create web-based applications called ActiveX executables. They
will work just like stand-alone visual basic application, but they are accessed through the
Microsoft Internet explorer 3.1 Web browser. This allows us to revise our applications
and distribute them through the Internet.
Some new features in visual basic 6.0 are given below:
VB 6.0 is most productive tool for creating high-performance enterprise
and web-based applications.
VB 6.0 integrated visual database tools and new data environment
designer can visually design oracle and MS SQL sever databases and create
reusable data access queries all without leaving the VB environment.
Data report designer can quickly drag and drop custom data-bound
controls to create forms or reports. Creation of custom data hierarchies is as
easy as filling out a dialog box and dragging the command to the form.
VB 6.0 professional edition is designed for individual professional or
corporate developer who needs to create a client/server or Internet based
applications.
With the emergence of dynamic HTML page designer, multimedia rich
applications can be developed using the document.
Object model and dynamic HTML surface.
ADO CONTROL:
The ADO Data control user Microsoft ActiveX Data Objects (ADO) to quickly
create connections between data-bound control and data provides. Data-bound controls
are any controls that feature a Data Source property. Data provides can be any source
written to the OLEDB specification. We can also easily create our own data provider
using Visual Basic’s class module.
Although we can use the ActiveX Data Objects directly in our applications, the
ADO Data control has the advantage of being a graphic control (with back and Forward
buttons) and an easy-to-use interface that allows we to create database applications with a
minimum of code.
USES:
DATA REPORTS:
The Microsoft Data Reports designer is a versatile data report generator that
features the ability to be created, banded hierarchical reports. Used in conjunction with a
data source such as the Data Environment designer, we can create reports from several
different relational data tables. In addition on to creating printable reports, we can also
export the report to HTML or text files.
TEXTBOX:
A Text Box control, sometimes called an edit field or edit control, displays
information entered at design time, entered by the user, or assigned to the control in code
at run time.
TIMER:
A Timer control can execute code at regular intervals by causing a Timer event to
occur. The timer control, invisible to the user, is useful for background processing
TOOL BAR:
A Label control is a graphical control and we can use to display text that a user
can’t change directly.
LIST BOX:
A List Box control displays a list of items from which the user can select one or
more, if the number of items exceeds the number that can be displayed, a scroll bar is
automatically added to the List Box control. If no item is selected, the List Index property
value is -1. The first item in the list is List Index 0, and the value of the List Count
property is always one more than the largest List Index value.
COMBO BOX:
A Combo Box control combines the features of a Text Box control and List Box
control-users can enter information in the text box portion or select an item from the list
box portion of the control.
CHECK BOX:
A Check Box control displays an X when selected; the X disappears when the
Check Box is cleared. Use this control to give the user a True/False of Yes/No option.
We can use Check Box controls in, groups to display multiple choices from which the
user can select one or more. We can also set the value of a heck Box programmatically
with the Value property.
COMMAND BUTTON:
A Drive List Box control enables a user select a valid drive at run time.
Use this control to display a list of all the valid drives in a user’s system. We can
create dialog box that enable the user to open a file from a list of files on a disk in any
available drive.
FILE LIST BOX CONTROL:
A File List Box control locates and lists files in the directory specified by the Path
property at run time. We use this control to display a list of files selected by file type. We
can create dialog boxes in our application that, for example, enables the user to select a
file or group of files.
SCROLL BAR CONTROLS:
Scroll bars provide easy navigation through a long list of items or a large amount of
information.
STATUS BAR CONTROL:
A Status Bar control provides a window, usually at the bottom of a parent from,
through, which an application can display, various kinds of status data. The status Bar
can be divided up into a maximum of sixteen panel objects that are contained in a Panels
collection.
EVENTS:
An event is a specific action that occurs on or with a certain object. Visual Basic
can respond to a variety of events: mouse clicks, changes in data, forms opening or
closing, and many others. Events are usually the result of user action.
DELETE:
The delete event occurs when the user performs some action, such as pressing the
DEL key, to delete a record, but before the record is actually deleted.
CHANGE EVENT:
The change event occurs when the contents of a text box or the text portion of a
combo box change. It also occurs when we move from one page to another page in a tab
control. Examples of this event include entering a character directly in the text box or
combo box or changing the control’s Text property setting by using a macro or Visual
Basic.
LOAD and UNLOAD EVENTS
The Load event occurs when a form is opened and its records are displayed.
The Unload event occurs after a form is closed but before it’s removed from the screen.
When the form is reloaded, Microsoft Access redisplays the form and reinitializes the
contents of all controls.
3.2 MS-ACCESS 2000
such as tracking customer order or maintaining music collection. If our database isn’t
TABLES:
In table Design view, we can create an entire table from scratch, or add, delete, or
customize an existing table’s fields.
FORMS:
We can use forms for a variety of purposes. Most of the information in a form
comes from an underlying record source. Other information in the form is stored in the
form’s design. We create the kink between a form and its record source by using
graphical called controls. The most common type of control used to display and enter
data is a text box.
REPORTS:
MODULE:
Provides basic data access using the ActiveX data objects (ado) object model.
Also provides classes that support data formatting opens a specified database in a
workspace object and returns references to the database object that represents it.
DATABASE:
An object variable that represents the Database objects that we want to open.
3.3.ABOUT WINDOWS’ 2000
When the authorized user enters into the system the main form appears.
In the main form there are 3 menus,
1. Master
2. Transaction
3. Report
Master:
It includes the details
1. Herbal
2. Agencies
3. Hospital
4. Sales Man
1. Herbal
This form consists of the fields like Herbal Id, Herbal Name, Manufacuring date, Expriy
Date, Quantity, price, Total. In this form to herbal id number is automatically generated. We
have to enter the all the Fields of the Herbal.
2.Agencies
In this form the fields used are Agencies id, Agencies name, TNGST No, DL No, Address,
City , Phone no City is maintained. The Agencies id is automatically generated
TRANSACTION
1. Purchase:
In this form we maintained customer id, customer name, Address, City , Phone no
are maintained . The customer id is automatically generated
1. Sales:
In this form we maintained Sales id, Product id, Customer id, quantity,
Date Of sales, Mode of Payment( Cash/ Credit), Rate, Total etc., are maintained.
Quantity of Product is automatically updated in product stock. Amount is
Automatically updated while we sales the product in credit.
2. Bill Preparation:
In this form we maintained Bill No, Bill Date, Customer id , Customer
Name , Product name, Product Price ,Quantity, rate , total maintained.
REPORT
It includes the reports like
1. Customer
2. Stock
3. Herbal
4. Sales
5. SalesMan
1. Customer Report:
enhancements. It is not possible to this software in the broad concern. This is only
for the limited sections. But in the following days it will be further developed and
that will satisfy our requirements in any point of view. We also improve this
The developed s/w for and concern is a flexible one. It can be made to run
on the higher version. It can also be made to run on all kinds of platforms.
Agencies Details
Customer Details
Sales Details
Sno FieldName Datatype
1 Sales id Number
2 Productid Number
3 Productname Text
4 Customerid Number
5 Price number
6 Quantiyt Number
7 Totalamount Number
Salesman details
HERBAL
AGENCIES HOSPTIAL SALES MAN
TRANSACTION
AGENCIES HOSPITAL
LOGIN FORM
End Sub
MAIN FORM
End Sub
AGENCES FORM
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim rs1 As New ADODB.Recordset
Dim sql As String
Dim aid As Integer
Private Sub Command1_Click()
Set rs1 = con.Execute("select count (agentid) from agencie")
If (rs1.Fields(0) = 0) Then
Text1.Text = 1
Else
Set rs1 = con.Execute("select max(agentid) from agencie")
Text1.Text = rs1.Fields(0) + 1
End If
Call clrfun
Text1.SetFocus
rs.AddNew
End Sub
Sub clrfun()
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Mask = ""
End Sub
Sub disp()
Text1.Text = rs(0)
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Mask = rs(6)
End Sub
CUSTOMER FORM
PURCHASE FORM
SALES FORM
Sub clrfun()
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End Sub
Sub disp()
Text1.Text = rs(0)
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
End Sub
Private Sub Text5_LostFocus()
Text2.Text = Val(Text5.Text) * Val(Text6.Text)
End Sub
BILL FORM
HOSPITAL FORM
Sub disp()
Text1.Text = rs(0)
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
End Sub
HERBAL FORM
Sub clrfun()
Text2.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
Sub disp()
Text1.Text = rs(0)
Text2.Text = rs(1)
DTPicker1.Value = rs(2)
DTPicker1.Value = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Text = rs(6)
End Sub
Private Sub Text6_LostFocus()
Text7.Text = Val(Text5.Text) + Val(Text6.Text)
End Sub
Login Form
Main Form
AGENCIES FORM
CUSTOMER FORM
PURCHASE FORM
SALES PREPARATION
BILL PREPARATION
SALES MAN FORM
HOSPITAL DETAILS
DataReport1
Data Report2
BIBLIOGRAPHY
BIBLIOGRAPHY
Comdex Publishers