Professional Documents
Culture Documents
ABSTRACT
The main objective of this project is to overcome the work load and time consumption
which makes the maintenance of the stock in an organization as a tedious process. This
project provides complete information about the details of the stock to the users. This
project identifies the amount of stock available,the product that is purchased faults in the
product,products that are replaced,products that have been sold,and the date at which the
products are bought and sold in a particular concern.Separate modules have been created
for purchasing, viewing stock details,selling, details and delivery details.As a whole
,marketing process can be improved if stock has been maintained properly.
This project is developed with help of visual basic 6.0 as a front end and oracle 9i
as back end. The application software Rational Rose is also used.
I
Stock maintenance system
CONTENTS
I
Abstracts
II
List of figures
III
List of tables
Introduction
1. 1.1 problem
1.2 problem definition
System tools
2. 2.1 MS-VISUAL basic
2.2 ORACLE9i
Methodology
3. 3.1 concept
3.2 database connectivity
System requirement
4. 4.1 hardware requirement
4.2 software requirement
5. System modules
5.1 structural diagram
5.1.1 use case diagram
5.1.2 class diagram
5.1.3 state diagram
5.1.4 activity diagram
5.1.5 sequence diagram
5.1.6 collaboration diagram
5.2 module diagram
5.2.1 stock module
5.2.2 sales module
5.2.3 delivery module
5.2.4 replacing the fault module
Stock maintenance system
7. Testing
LIST OF FIGURES
FIG NO TITLE PAGE NO
OVER ALL DIAGRAM
1. USE CASE DIAGRAM
Stock maintenance system
2. CLASS DIAGRAM
3. STATE DIAGRAM
4. ACTIVITY DIAGRAM
5. SEQUENCE DIAGRAM
6. COLLABORATION DIAGRAM
STOCK MODULE
1. USE CASE DIAGRAM
2. CLASS DIAGRAM
3. STATE DIAGRAM
4. ACTIVITY DIAGRAM
5. SEQUENCE DIAGRAM
6. COLLABORATION DIAGRAM
SALES MODULE
1. USE CASE DIAGRAM
2. CLASS DIAGRAM
3. STATE DIAGRAM
4. ACTIVITY DIAGRAM
5. SEQUENCE DIAGRAM
6. COLLABORATION DIAGRAM
DELIVERY MODULE
1. USE CASE DIAGRAM
2. CLASS DIAGRAM
3. STATE DIAGRAM
4. ACTIVITY DIAGRAM
5. SEQUENCE DIAGRAM
6. COLLABORATION DIAGRAM
4. ACTIVITY DIAGRAM
5. SEQUENCE DIAGRAM
6. COLLABORATION DIAGRAM
II
LIST OF TABLES
TABLE NO TITLE PAGE NO
1. STOCK MODULE
Stock maintenance system
2. SALES MODULE
3. DELIVERY MODULE
4. REPLACING THE FAULTS MODULE
III
1. INTRODUCTION
1.1 PROBLEM
Stock maintenance system
Stock Maintenance gives an idea about how products are maintained in the
particular concern. The products that are to be purchased, the products that are to be sold
are maintained here.
This project also gives idea about the faults in the purchased product and the products
that are to be replaced also been given. Further some additional details of the current
stock that is available in the store is also given.
Stock maintenance in this project is done in an authorized way. The password and user id
has been set here. As a whole the marketing process can be improved if the stock is
maintained properly.
1.2PROBLEM DEFINITION:
The stock has to be maintained properly since the whole marketing process can be
improved. Stock maintenance in this project gives the idea about how products are
maintained in a particular concern.
The stock details which includes the amount of stock available, the stock is to be
purchased, the date or the time it is being bought or delivered, the amount that is already
available are maintained in this project.
The stock maintenance in this project is understood by goin through the modules that is
being involved. The whole economic status is being improved properly if stock is
maintained.
Stock maintenance system
2. SOFTWARE TOOLS
2.1 MS-VISUAL BASIC:
Visual Basic 6.0 is fastest and easiest way to create single user and client/server
applications for Microsoft Windows. Visual Basic 6.0 provides complete set of tools to
simplify rapid application development both for the experienced professional and new
windows programmers.The “Visual” part refers to the method used to create Graphical
User Interface.The “Basic” part refers to the BASIC language used by more
programmers than any other language in the history of computing. It is an ideal
programming language for developing sophisticated professional applications for
Microsoft.
3. METHODOLOGY
3.1 CONCEPT
Storing of information about the stock values and updating the stock values for
each organization which is using this system, keeps track of all the information about the
stock exchange that are made by the customers, having registration feature of adding up
new customers to the organization are provided in this system.
1. Use data link file : any data link file already stored can be specified.
2. Use ODBC Data source name : any ODBC DSN can be specified.
3. Use connection string : choose build to create a new connection String
specifying the OLEDB provider.
Stock maintenance system
4.SYSTEM REQUIREMENT
4.1 Hardware Requirements:
5.SYSTEM MODULES
5.1 STRUCTURE DIAGRAM
OVERALL DIAGRAM
5.1.1 USE CASE DIAGRAM:
Use case diagram is a diagram that shows the interaction between the user and the
system to captures the user’s goal.
Stock maintenance system
STORE
KEEPER
address
phone no
USER
name ORDER DEALER
address
price name
request() amount address
purchase()
dispatch() sends price details()
close() request replacing defected items()
DB MANAGER
update()
display()
ORDER LINE
COMPANY MANAGER
quantity
price id
address
supply items()
Fig 1.2
Stock maintenance system
create requirement
from customer
check availablity
receive
payroll
supply
request and
products
receive item
yes
check for
damage
no
replace damaged
items
Fig 1.4
Stock maintenance system
capture deal
dispatch product
detail of defect
replace defect
close order
Fig 1.5
Stock maintenance system
USER
ORDER
DB MANAGER
Fig 1.6
Stock maintenance system
CLASS DIAGRAM:
complain() deliver()
purchase() send defects details()
DEALER ORDER
name price
address amount
replace() dispatch()
request return() close()
DB MANAGER
update details()
display details()
COMPANY
name
address
supply items()
set limit()
Fig 2.2
STATE DIAGRAM:
Stock maintenance system
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
Stock maintenance system
COLLABORATION DIAGRAM:
Stock maintenance system
price deal
verify price
DEALER STORE KEEPER
capture deal
set limit
COMPANY DB MANAGER
MANAGER
Fig 2.7
Stock maintenance system
CLASS DIAGRAM:
STORE KEEPER
DB MANAGER user id
password
update details()
display details() deliver()
send defects details()
Fig 2.8
STATE DIAGRAM:
Stock maintenance system
ACTIVITY DIAGRAM:
SEQUENCE DIAGRAM:
Stock maintenance system
COLLABORATION DIAGRAM:
Stock maintenance system
receive payment
DB MANAGER
Fig 2.13
CLASS DIAGRAM:
Fig 2.14
Stock maintenance system
STATE DIAGRAM:
ACTIVITY DIAGRAM:
Stock maintenance system
COLLABORATION DIAGRAM:
Stock maintenance system
DB MANAGER
details about defect
DEALER
update details
USER
COMPANY
MANAGER
fig 2.18
Stock maintenance system
CLASS DIAGRAM:
complain() deliver()
purchase() send defects details()
DEALER
DB MANAGER name
address
update details()
display details() replace()
request return()
COMPANY
MANAGER
replace product()
Fig 2.19
STATE DIAGRAM:
Stock maintenance system
ACTIVITY DIAGRAM:
COLLABORATION DIAGRAM:
Stock maintenance system
LOGIN FORM:
Fig 6.1
OUTPUT:
Fig 6.2
CODING:
MAIN FROM:
Fig :6.3
Stock maintenance system
STOCK MAINTENANCE:
Fig 6.4
Stock maintenance system
UPDATE:
Fig :6.5
NEW ENTRY:
Fig 6.6
Stock maintenance system
SHOW ALL:
Fig :6.7
CODING:
str = "delete from Stock where itemcode='" & rs!itemcode & "'"
db.Execute str
db.Close
connectme
MsgBox "Deleted Successfully", vbOKOnly
cmbitype.Visible = True
Else
frmStockDetails.SetFocus
End If
End If
End Sub
txtnetwt.Text = !netweight
txtdate.Text = !date_of_entry
txtquantity.Text = !quantity
txtprice.Text = !price
p = txtprice.Text
q = txtquantity.Text
txtamount.Text = p * q
End With
End Sub
cmdFIrst.Enabled = True
cmdPrev.Enabled = True
rs.MoveNext
Display
Else
rs.MoveLast
Display
cmdNext.Enabled = False
cmdLast.Enabled = False
End If
If Err.Number = 3021 Then
MsgBox "NO CURRENT RECORD"
cmdNext.Enabled = False
cmdLast.Enabled = False
cmdPrev.Enabled = False
cmdFIrst.Enabled = False
End If
End Sub
cmdFIrst.Enabled = False
End If
Err:
If Err.Number = 3021 Then
MsgBox "NO CURRENT RECORD"
cmdNext.Enabled = False
cmdLast.Enabled = False
cmdPrev.Enabled = False
cmdFIrst.Enabled = False
End If
End Sub
Stock maintenance system
SALES MASTER:
Fig 6.8
Stock maintenance system
OUTPUT:
Fig :6.9
Stock maintenance system
Fig :6.10
Fig :6.11
Stock maintenance system
CODING:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim p, q As Double
Command1.Enabled = True
Label17.Visible = False
txtcname.Visible = False
Call save
connectme
End Sub
Unload Me
frmSaleentry.Show
frmSaleentry.SetFocus
End If
End Sub
Private Sub saleanother()
rs.Open "select itemtype from stock group By itemtype ", db, adOpenKeyset,
adLockOptimistic
While rs.EOF <> True
cmbitype.AddItem rs!itemtype
rs.MoveNext
Wend
rs.Close
rs.Open "select itemtype from stock group By itemtype ", db, adOpenKeyset,
adLockOptimistic
rs.Close
End Sub
Private Sub save()
txtcname.Text = ""
cmbitype.Clear
cmbicode.Clear
txtiname.Text = ""
txtnetwt.Text = ""
txtdate.Text = ""
txtdate.Text = Format$(Date, "dd/mm/yyyy")
txtquantity.Text = ""
txtprice.Text = ""
txtamount.Text = ""
Stock maintenance system
End Sub
i=i+1
txtbillno.Text = i
Else
i = Val(z)
i=i+1
txtbillno.Text = i
End If
Else
rs1.Close
End If
Else
txtbillno.Text = 7000
rs1.Close
End If
End Sub
End Sub
Private Sub cmbicode_Click()
Call Reset
rs.Open "select * from stock where itemtype=" & "'" & cmbitype.Text & "'" & " and
itemcode=" & "'" & cmbicode.Text & "'", db, adOpenKeyset, adLockOptimistic
With rs
txtiname.Text = !itemname
Stock maintenance system
txtnetwt.Text = !netweight
txtquantity.Text = ""
txtprice.Text = !price
End With
rs.Close
txtquantity.SetFocus
End Sub
cmbicode.Clear
txtiname.Text = ""
txtnetwt.Text = ""
txtquantity.Text = ""
txtdate.Text = ""
txtprice.Text = ""
txtamount.Text = ""
End Sub
Stock maintenance system
DELIVERY MODULE:
Fig :6.12
Stock maintenance system
OUTPUT:
Fig :6.13
Stock maintenance system
Fig :6.14
CODING:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
rs.Close
End Sub
End Sub
y = x - Val(txtoquantity.Text)
If y < 0 Then
MsgBox "Sorry Not Enough Stock.So Delivery is not Possible "
rs.Close
Exit Sub
End If
rs!quantity = y
rs.Update
MsgBox "item is Delivered"
End If
rs.Close
rs.Open "select * from itemorder where itemcode=" & "'" & cmbicode.Text & "'" & "
and billnumber=" & "'" & cmbbillno.Text & "'", db, adOpenDynamic, adLockPessimistic
With rs
.Update "DELIVERY_DATE", txtddate.Text
.Update "deliver", txtdeliver.Text
End With
rs.Close
rs.Open "select billnumber,itemcode,deliver from itemorder where billnumber=" & "'"
& cmbbillno.Text & "'" & " and billnumber=" & "'" & cmbbillno.Text & "'", db,
adOpenDynamic, adLockPessimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub Command2_Click()
Command1.Enabled = False
MSHFlexGrid2.Visible = True
rs.Open "select * from itemorder where deliver is not NULL", db, adOpenDynamic,
adLockPessimistic
Set MSHFlexGrid2.DataSource = rs
rs.Close
End Sub
Stock maintenance system
Fig :6.15
OUTPUT:
Fig :6.16
Stock maintenance system
CODING:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
rs.MoveNext
Wend
rs.Close
rs.Open "select billnumber,Customername,itemcode,amount from itemorder where
billnumber=" & "'" & temp & "' and deliver is not NULL", db, adOpenDynamic,
adLockPessimistic
Set MSHFlexGrid1.DataSource = rs
rs.Close
End Sub
Command2.Enabled = False
Else
Command1.Enabled = False
Label1.Visible = False
txtnoreplace.Visible = False
End If
End Sub
Command1.Enabled = True
Command2.Enabled = True
Call Resetall
db.Close
Call Form_Load
End Sub
TABLES DESIGN
STOCK MODULE:
NAME NULL? TYPE
ITEMTYPE VARCHAR2(60)
ITEMCODE NUMBER(35)
ITEMNAME VARCHAR2(100)
NETWEIGHT VARCHAR2(70)
DATE_OF_ENTRY DATE
QUANTITY NUMBER(35)
PRICE NUMBER(10,2)
SALES MODULE:
NAME NULL? TYPE
BILLNUMBER NUMBER(35)
ITEMTYPE VARCHAR2(60)
ITEMCODE NUMBER(35)
ITEMNAME VARCHAR2(60)
NETWEIGHT VARCHAR2(50)
SALE_DATE DATE
QUANTITY NUMBER(35)
PRICE NUMBER(35)
AMOUNT NUMBER(10,2)
DELIVERY MODULE:
NAME NULL? TYPE
BILLNUMBER NUMBER(35)
Stock maintenance system
ITEMCODE NUMBER(35)
CUSTOMERNAME VARCHAR2(60)
ORDER_DATE DATE
DELIVERY_DATE DATE
ORDERED VARCHAR2(60)
QUANTITY
AMOUNT NUMBER(10,2)
DELIVER VARCHAR2(50)
REPLACE MODULE:
NAME NULL? TYPE
BILLNUMBER NUMBER(35)
ITEMCODE NUMBER(35)
CUSTOMERNAME VARCHAR2(60)
REPLACE_DATE DATE
REPLACE_QUANTIT VARCHAR2(60)
Y
REPLACE VARCHAR2(68)
8.1 CONCLUSION
Thus the project gives the detailed explanation about how stock is maintained in
an organization.it also gives idea about how stocks are to be purchased and how to be
maintained in a company.
Stock maintenance system
9. REFERENCE
9.1 REFERENCE BOOKS