Professional Documents
Culture Documents
Jewelleryreport 131104085529 Phpapp01
Jewelleryreport 131104085529 Phpapp01
S.S.I.T ,Tumkur. 1
Jewellary Shop Management
ACKNOWLEDGMENT
S.S.I.T ,Tumkur. 2
Jewellary Shop Management
D EDICATED
TO OUR BELOVED
PARENTS WHO SACRIFICED THEIR
TODAY FOR OUR BETTER TOMMOROW
S.S.I.T ,Tumkur. 3
Jewellary Shop Management
S.S.I.T ,Tumkur. 4
Jewellary Shop Management
SYNOPSIS
which is used by the jewellary vendors to record the sales and stock of
MICROSOFT VISUAL BASIC 6.0 and ORACLE 8.0V.The main intension behind
designing and developing this project is to enable has to transact in easy,and it also
maintain the details about the available and outstanding stocks of gold and gems.
The search facility provides a faster and easiest way of viewing the
against all those intruders who tries to enter into our application.This package
maintains all possible reports like ready ornaments bill report,ordered ornaments bill
the users chance to stay cool in transaction and to excel amidst ever increasing
complexity.
S.S.I.T ,Tumkur. 5
Jewellary Shop Management
S.S.I.T ,Tumkur. 6
Jewellary Shop Management
CONTENTS
3. Introduction to Oracle .
4. Tables .
5. Screens .
6. Reports .
7. Source Code .
9. Conclusion .
10. Bibiliography .
S.S.I.T ,Tumkur. 7
Jewellary Shop Management
S.S.I.T ,Tumkur. 8
Jewellary Shop Management
different types of ornaments . which may be is different fashions and values. It’s a
necessity for the vendors that they need to record the images of their ornaments and
current updated prices and other design details. I have developed a project to maintain
developed this project using software package ORACLE as back-end and VISUAL
BASIC 6.0 V as the front-end that contains the following forms for storing the details
as follows :
1 . Jewellary form : This form maintains the images of the ornaments i.e., ornament
2 . Gold master form : This form maintains details regarding the gold i.e., gold id ,
type,price/gram,stock.
3 . Gems master form : this form holds information about gems i.e., gems id, gems
4 . Design details form : This form allows to enter the details of newly arrived
ornaments i.e., ornament name, design number, gold id, ready item no, weight, price,
5 . Ready item bill form : this formcontains the details of the ready made ornaments
and cost. If we select a particular category of a jewellary we will get the clear-cut
details about that design. M ore over, it also allows us to enter the details of customer
who is buying it. –his custid, custname, address, phone. And can even continue with
6 . Ordered item bill form : This form maintains the wish list of the customer about the
ornament, customer details who ordered that ornament and can here also allows to
S.S.I.T ,Tumkur. 9
Jewellary Shop Management
7 . Bill detail form : This form informs about the transaction details.
8 . Query form : This is the most important form, because we can check the database in
different ways by putting queries . we can get the more detailed information from this
form.
1. Ready bill report : This report summarizes the details of all the ready
ornaments.
2. Ordered bill report : This report summarizes the details of all the ordered
ornaments.
3. customer detail report : This gives summarized details about the customer.
4. Gold details report : This report summarizes the details of gold details.
5. Gems details report : This report summarizes the details about gems.
Beside these forms other form for ,the entry of the password, reset backend is also
being maintained . Jewellary Shop Management also has the following important
It is Menu-based i.e., Whenever the user wishes for particular form to open
like ready item,ordered item can open and carry their work.if the user wants to
add a new record into the database then,can click ‘ add’ /’insert’.The file menu
Our project provides extensive search facility.It searches for the users record
The important feature report generation is also included in this project.It helps
the user in generating the reports. The user can get a hardcopy of the required
bil
S.S.I.T ,Tumkur. 10
Jewellary Shop Management
programming using C and C++ was a pain to the programmer. One had to write pages
of code to display a very simple command button on the screen. Visual Basic makes
Environment (IDE).
Using Visual Basic, One can create various types of programs. One can create
effective very easily here. Not only that, users can create their own controls that can be
plugged in with other tools using ActiveX. One can also write effective Internet
programs using Visual Basic. All these can do with minimum labor and time.
Visual Basic follows the standard syntax of basic, except that some new
language features have been added to it to give more flexibility to the programmer.
Visual Basic makes use of GUI for creating robust and powerful applications.
The GUI which enable users to interact with an application. This feature makes it
One of the most significant changes in Visual Basic 6.0 is the Integrated
world to describe the interface and environment that we use to create our applications.
It is called integrated because we can access virtually the entire development tool that
we need from one screen called an interface. The IDE is also commonly referred to as
S.S.I.T ,Tumkur. 12
Jewellary Shop Management
the design environment, or the program. Integrated development is one in which we
Menu Bar
Tool Bar
Project Explorer
Toolbox
Form Designer
Menu Bar - This menu bar displays the commands that are
required to build and application. The main menu items have sub menu items can be
shortcuts to some of the commonly used Menu items. It gives the quick access to
commonly used menu commands. The tool bar is clicked once to carry out the action
represented by it.
determine the Initial positions of the forms in your application. This window is useful
Tool Box- The toolbox contains a set of controls that are used
to place on a format design time their by creating the user interface area.
middle of the screen, and in it you can design and edit the applications user interface.
The same window displays a text editor in which you can enter and edit the
applications code.
S.S.I.T ,Tumkur. 13
Jewellary Shop Management
The form designer displays two windows for each form:
under the project explorer window. It exposes the various characteristics of selected
objects.
define the characteristics of an object such as size, color etc or sometimes the way in
which it behaves. For e.g., a Text box accepts properties such as Enabled, Font, Multi
various things that can happen in a program. In an event driven application, the
program statements are executed only when a particular event calls a specific part of
sequence of statements executed as unit and it instructs the application how to perform
a certain task.
Control structures - Control structures are programming statements that affect program
execution, based on the outcome of some logical comparison. There are two types of
S.S.I.T ,Tumkur. 14
Jewellary Shop Management
1. Decision Structures- These structures enable the program to make decisions
on how it will operate based on test conditions. There are If-Then, If-Then-Else, Select
case.
Record set -A Record set object represents a base table or the records that results from
running a query. The record set objects are used to manipulate the data in database at
Menu Editor - to create new menus and menu bars, add new commands to existing
menus, replace existing menu commands with your own commands and change and
Popup Menus - a popup menu is floating menu is displayed over a form, independent
of the menu bar. The item displayed on the pop-up menu depend on where the pointer
was located when the right mouse button was passed there fore, popup menus are also
maintains multiple forms within single character form. An MDI application allows
the user to display multiple documents at the same time, with each document
user in row and column format. The grid control offers a convenient way for to display
table data to the user. The users can navigate the tables values using scroll bars.
S.S.I.T ,Tumkur. 15
Jewellary Shop Management
Therefore, the grid control does not have to be large as the table, because the grid
The data Bound Grid is better at displaying data retrieved directly from a
Database.
The Flex grid is better at displaying data in unbound mode. That is data
supplied by the program. Flex Grid does offer some binding capability, but bound
data must be read only table form. This is often the only practical way to display
location in the MSFlex Grid at which the row and column intersect.
Almost every programmer uses a data grid for one project or another. A
grid enables users to view and edit data in a scrollable table form. This is often the
only practical way to display multiple set of data. Many other controls can make
Some of the other frequently used controls that should include the following:
long operations.
Chart: it is used to create pie, bar, line and many other types of charts.
which allows faster, more flexible access to multiple data providers, and ADO wraps it
all into easy-to-use interface. This means that we can write database applications that
S.S.I.T ,Tumkur. 16
Jewellary Shop Management
can easily scale from single-user data bases such as access to complex client server
systems as oracle or almost any other database that is either an OLEDB provider, or
ODBC provider.
The ADO control can access E-mail, Graphics and virtually any data
provider of OLEDB. As soon as the connection established that could build enterprise
solutions from the wide range of functionality supplied from the connection object.
With Visual Basic 6.0 Microsoft introduced a new data access options
called RDO or Remote Data Objects. Unlike DAO, RDO requests are passed directly
Microsoft solution was a new data access option, called ADO, or ActiveX Data objects.
Like RDO, ADO requests aren’t processed by Jet, so it can take advantages of the
features of many Client /server database. In addition, it is the preferred method for
accessing data with Visual Basic 6.0; it is the method that we recommended for
ADO is based on the object model that refers to data using the same
syntax that use for referring to objects like forms and controls. Although RDO and
DAO are also based on object modes. The ADO model is both simplified and
improved
S.S.I.T ,Tumkur. 17
Jewellary Shop Management
Application
JET ODBC
Data Source
access a wide variety of data sources. That is, OLEDB is not restricted to ISAM, jet or
even relational data source but is capable of dealing with any type of data information
regardless of its format or storage method. Can support both relational and non-
relational data sources, including messages, File system and other non traditional data
sources.
its complex interfaces but virtually all of OLEDB’s functionality is exposed by ADO.
S.S.I.T ,Tumkur. 18
Jewellary Shop Management
can now access an even broader variety of data sources using both OLEDB service
providers and existing ODBC drivers through its OLEDB for ODBC intermediate
interface. Native providers are supported for Oracle, SQL, Server, Jet and FoxPro and
more flexible access to multiple data providers. ADO wraps it all in to one easy-to-use
interface.
Access
Visual LAN/
Basic Internet/
Applic ADO Intranet OLEDB Oracle
ation
Exchange
in Visual Basic 6.0 the Data Environment can be used, much like a Data control by
binding other controls such as text box, label, check box to the designer. This designer
time.
S.S.I.T ,Tumkur. 19
Jewellary Shop Management
Data Environment Designer is a powerful, sophisticated interface, which
access to data.
Data Environment Designer is a new feature with visual Basic 6.0 it create
connection and command objects that can use for building forms and developing
When the Designer window is opened for the first time for a project, one
Data Environment object and one connection object are shown. To create a new
connection object, click on the Add connection button in the designer tool bar or click
on the arrange by objects toolbar button to display the connection folder, then right –
click on that folder and select Add connection from its shortcut menu.
2) Enter an SQL statement that does the query that user wants.
Data Report:
Data Report utility introduced for the first time in Visual Basic 6.0 is used
to design reports. Data Report Designer is a flexible report generator that can create
The fields can be dragged from the Data Environment Designer to the
data report designer. The data report can be bound to any bound control, but it works
connection object represents a connection to a database that is used at the data source
To create a Data Report, select Add Data Report from the project menu,
use the list for the Add toolbar button to select Data Report or use the shortcut menu
S.S.I.T ,Tumkur. 20
Jewellary Shop Management
for the project Explorer window. This opens the data report window with a report that
contains five default sections; Report Header, Page Header, Detail, Page Footer and
Report Footer.
To associate the Data Report with the command object created, set the
data source property of the report to the name of the Data Environment object that
Contains the command object and set the Data member property to the name of the
command object.
database vendor must provide an ODBC driver for data access. Once this driver is
configured on every client machine. This is called as a data source. The user can
configure multiple data sources with same or different drives on the same machine.
Thus using ODBC, it is possible to access heterogeneous data from any client.
network, the server required a data base management system (DBMS) like Oracle or
Microsoft SQL server. This DBMS manages the databases that are stored on the server.
Although the application software is run on the client, it uses data that
stored on the server. To make this communication between the client and the data
If an Oracle database is the data source, we can use either the ODBC driver
S.S.I.T ,Tumkur. 21
Jewellary Shop Management
Before any application can access an ODBC database, the ODBC drivers must
installed and a data Source Name (SN) created using the Control Panel. The DSN used
2. Here various data sources associated with various drivers exist. Our
objective is to create a new data source using ODBC driver for Oracle.
3. Select the add button to as a new ODBC data source, Lists of ODBC drivers
that are currently installed in the system are displayed. Select the ODBC
5. Click on the select button and find the Access database you want to use.
6. Click on the OK button that displays the data source administrator dialog
S.S.I.T ,Tumkur. 22
Jewellary Shop Management
S.S.I.T ,Tumkur. 23
Jewellary Shop Management
INTRODUCTION TO ORACLE
Every business enterprise marinating large volumes of data for its operations. With
more and more people accessing these data for their work the need to maintain its
integrity and relevance increases. Normally, with the traditional methods of storing
data and information in files, the chances that the data loses its integrity and validity
systems. Objects can be defined as reusable software codes with little or no change to
the code.
One performs all activities related to the database (server) and the other
performs activities that help the user to interact with the application (clients).
interface between the user and the database. Further, it also checks for the validation
S.S.I.T ,Tumkur. 24
Jewellary Shop Management
Data Base Management System: - A DBMS consist of inter related data and a set
of programs to access that data. The collection of data is usually referred to as the
database, contains information about one particular enterprise. The primary goal of a
relational structure and data are stored in the tables. In a table, the rows represent the
unique entities or records and columns represent attributes. Records are access by the
values stored in the columns of the table. Relations are specified using common
tasks. It acts as a transparent interface between the physical storage and the logical
presentation of data. It provides a set of flexible and sophisticated tools for handling
Define database.
SQL *Plus - it is a structured query language supported by Oracle through SQL *Plus
we can store, retrieve, edit, enter and run SQL commands and PL/SQL blocks.
Forms - this is a graphical tool used for generation and executing forms based
applications. A form basically comprises blocks and fields.
Introduction to SQL - Oracle’s database language is SQL, which is used for storing
and retrieving information in oracle. A table is a primary database object of SQL that
is used to store data. A table holds data in the form of rows and columns. In order to
communicate with the database, SQL supports the following categories of commands:
Normalization
Normalization is the process of removing redundancy. Here data are grouped in
simplest way possible so that later changes can be made with a minimum impact on
S.S.I.T ,Tumkur. 26
Jewellary Shop Management
S.S.I.T ,Tumkur. 27
Jewellary Shop Management
TABLE STRUCTURE
ADMINISTRATOR DETAILS:
DESIGN DETAILS:
GOLD DETAILS:
GEMS DETAILS:
ORDERED SEQUENCE :
SEQUENCE NO:
S.S.I.T ,Tumkur. 31
Jewellary Shop Management
S.S.I.T ,Tumkur. 32
Jewellary Shop Management
S.S.I.T ,Tumkur. 33
Jewellary Shop Management
S.S.I.T ,Tumkur. 34
Jewellary Shop Management
S.S.I.T ,Tumkur. 35
Jewellary Shop Management
S.S.I.T ,Tumkur. 36
Jewellary Shop Management
S.S.I.T ,Tumkur. 37
Jewellary Shop Management
S.S.I.T ,Tumkur. 38
Jewellary Shop Management
S.S.I.T ,Tumkur. 39
Jewellary Shop Management
S.S.I.T ,Tumkur. 40
Jewellary Shop Management
SOURCE CODE
GoldMaster Code :
S.S.I.T ,Tumkur. 41
Jewellary Shop Management
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
End Sub
S.S.I.T ,Tumkur. 42
Jewellary Shop Management
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Not ((KeyAscii >= 65 And KeyAscii <= 90) Or (KeyAscii >= 97 And KeyAscii <= 122)
Or (KeyAscii >= 48 And KeyAscii <= 57) Or KeyAscii = 8) Then
KeyAscii = 0
End If
End Sub
ReadyItem Code :
S.S.I.T ,Tumkur. 46
Jewellary Shop Management
Dim db As New ADODB.Connection
Dim com As New ADODB.Command
Dim msno, rep As Integer
Dim bch, cch As String
rs1.Open "select * from design where name='" & Combo1.Text & "' ", db, adOpenStatic,
adLockReadOnly
If Not rs1.EOF Then
Combo2.AddItem rs1!DESNO1
S.S.I.T ,Tumkur. 47
Jewellary Shop Management
Combo2.AddItem rs1!DESNO2
Combo2.AddItem rs1!DESNO3
Combo2.AddItem rs1!DESNO4
Combo2.AddItem rs1!DESNO5
End If
rs1.Close
rsrd.Open "select * from readyitems where riname='" & Combo1.Text & "' ", db,
adOpenStatic, adLockReadOnly
If Not rsrd.EOF Then
Text4.Text = rsrd!rino
Text5.Text = rsrd!rwt
Text9.Text = rsrd!rprice
Text10.Text = rsrd!wastage
Text11.Text = rsrd!rtotprice
goldid = rsrd!gid
End If
rsgm.Open "select * from goldmaster where gid= '" & goldid & "'", db, adOpenStatic,
adLockReadOnly
If Not rsgm.EOF Then
Text1.Text = rsgm!gid
Text2.Text = rsgm!Type
Text3.Text = rsgm!price_gram
End If
'rs2.Open "select * from readyitems where rino='" & Combo1.Text & "' ", db,
adOpenStatic, adLockReadOnly
'If Not rs2.EOF Then
End Sub
End If
Com.CommandText = "update seqno set sno=" & msno & " "
com.Execute
com.CommandText = "update readyitems set istock=istock-1 where riname='" &
Combo1.Text & "'"
com.Execute
com.CommandText = "commit"
com.Execute
MsgBox "stock updated"
End Sub
Function update_rbno()
Dim rs3 As New ADODB.Recordset
rs3.Open "select sno from seqno ", db, adOpenStatic, adLockReadOnly
If Not rs3.EOF Then
msno = rs3!sno
End If
bch = "b"
msno = msno + 1
bch = bch & msno
Text14.Text = bch
End Function
OrderedItem Code :
Dim db As New ADODB.Connection
Dim com As New ADODB.Command
Dim bch As String
Dim cch As String
Dim och As String
Dim msno, ocsno, mqty, nqty As Integer
Dim rep As Integer
Private Sub Command1_Click()
Dim rs1 As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
f1 = 0
com.ActiveConnection = db
com.CommandType = adCmdText
If MsgBox("are you sure ", vbInformation + vbYesNo, "reservation") = vbYes Then
rs1.Open "select * from orderedbill where bno='" & Text14.Text & "' ", db,
adOpenStatic, adLockReadOnly
If Not rs1.EOF Then
f1 = 1
MsgBox "this bill no already exists"
Exit Sub
End If
If f1 = 0 Then
com.CommandText = "insert into orderedbill values('" & Text14.Text & "',to_date('" &
Text15.Text & "','mm/dd/yyyy'),'" & Text1.Text & "', '" & Combo1.Text & "' ," &
Text5.Text & ", '" & Text3.Text & "'," & Text4.Text & "," & Text16.Text & ",'" &
Combo2.Text & "'," & Text2.Text & "," & Text17.Text & "," & Text18.Text & "," &
Text11.Text & "," & Text7.Text & "," & Text8.Text & "," & Text9.Text & ",'" &
Text13.Text & "' )"
com.Execute
MsgBox "record is inserted into orderedbill table"
If rep = 0 Then
com.CommandText = "insert into cust values('" & Text13.Text & "','" & Text6.Text &
"','" & Text10.Text & "'," & Text12.Text & ")"
MsgBox "record is inserted into cust table"
S.S.I.T ,Tumkur. 51
Jewellary Shop Management
com.Execute
End If
com.CommandText = "update oseq set sno=" & msno & " "
com.Execute
com.CommandText = "update ocustseq set sno=" & ocsno & " "
com.Execute
com.CommandText = "update gemsmaster set gstock=gstock-" & mqty & " where
gemsname='" & Combo2.Text & "'"
com.Execute
com.CommandText = "update goldmaster set stock=stock-" & nqty & " where type
='" & Combo1.Text & "'"
com.Execute
com.CommandText = "commit"
com.Execute
Command4.Enabled = True
End If
End If
End Sub
S.S.I.T ,Tumkur. 52
Jewellary Shop Management
rsgm.Open "select * from goldmaster where type= '" & Combo1.Text & "' ", db,
adOpenStatic, adLockReadOnly
If Not rsgm.EOF Then
Text5.Text = rsgm!price_gram
End If
End Sub
Function update_bno_ono()
Dim rs3 As New ADODB.Recordset
rs3.Open "select sno from oseq ", db, adOpenStatic, adLockReadOnly
If Not rs3.EOF Then
msno = rs3!sno
End If
bch = "b"
cch = "oc"
och = "o"
msno = msno + 1
bch = bch & msno
och = och & msno
Text14.Text = bch
Text1.Text = och
End Function
S.S.I.T ,Tumkur. 56
Jewellary Shop Management
S.S.I.T ,Tumkur. 57
Jewellary Shop Management
CONCLUSION
where all the process was carried out manually. I had put my sincere effort to
Full attempt is made to make the software bug free but as we know
S.S.I.T ,Tumkur. 58
Jewellary Shop Management
S.S.I.T ,Tumkur. 59
Jewellary Shop Management
BIBILOGRAPHY
-By Korth
S.S.I.T ,Tumkur. 60
Jewellary Shop Management
S.S.I.T ,Tumkur. 61