0% found this document useful (0 votes)
15 views13 pages

04.stock Maintenance System

The document outlines a Stock Maintenance System designed for inventory management between manufacturers, dealers, and shopkeepers. It includes various diagrams such as use case, activity, sequence, collaboration, component, class, and deployment diagrams to illustrate the system's functionality and structure. The project is implemented using Visual Basic and Rational Rose software, focusing on real-time transaction recording and stock management.

Uploaded by

Arul Anand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views13 pages

04.stock Maintenance System

The document outlines a Stock Maintenance System designed for inventory management between manufacturers, dealers, and shopkeepers. It includes various diagrams such as use case, activity, sequence, collaboration, component, class, and deployment diagrams to illustrate the system's functionality and structure. The project is implemented using Visual Basic and Rational Rose software, focusing on real-time transaction recording and stock management.

Uploaded by

Arul Anand
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

STOCK MAINTENANCE SYSTEM

PROBLEM DOMAIN:
INVENTORY SYSTEM is a real time application used in the merchant’s day to day
system. This is a database to store the transaction that takes places between the Manufacturer,
Dealer and the Shop Keeper that includes stock inward and stock outward with reference to the
dealer. Here we assume our self as the Dealer and proceed with the transaction as follows:
The Manufacturer is the producer of the items and it contains the necessary information
of the item such as price per item, Date of manufacture, best before use, Number of Item
available and their Company Address.
The Dealer is the secondary source of an Item and he purchases Item from the
manufacturer by requesting the required Item with its corresponding Company Name and the
Number of Items required. The Dealer is only responsible for distribution of the Item to the
Retailers in the Town or City.
The Shop Keeper or Retailer is the one who is prime source for selling items in the
market. The customers get Item from the Shop Keeper and not directly from the Manufacturer or
the Dealer.
The Stock is the database used in our System which records all transactions that takes
place between the Manufacturer and the Dealer and the Dealer and the Retailer.

USE CASE DIAGRAM:

Sales
Purchase

Company name
Company name

DEALER SHOP KEEPER


Price/item Price/Item
PRODUCER

Items ordered
Items ordered

Total price Total price


ACTIVITY DIAGRAM:

Inventory
System

Select from
the Menu

Purchase Sales Stock Exit

Display the
Transaction Details

Company
Name

Price/Item

No of Items
ordered

Total Price If Availability > No of


Items Ordered

Displays Insufficient Displays price


no of items of Items
SEQUENCE DIAGRAM:

PRODUCER DEALER SHOPKEEPER

1.PURCHASE

1.SALES

2.COMPANY NAME

2.COMPANY NAME

3.PRICE/ITEM

3.PRICE/ITEM

4.NO OF ITEMS ORDERED

4.NO OF ITEMS ORDERED

5.TOTAL PRICE

5.CHECKING WITH AVAILABILITY

6.ITEMS INSUFFICIENT/TOTAL PRICE


COLLABORATION DIAGRAM:

5: 3.PRICE/ITEM
9: 5.TOTAL PRICE
PRODUC DEALER
ER
1: 1.PURCHASE
3: 2.COMPANY NAME
7: 4.NO OF ITEMS ORDERED

4: 2.COMPANY NAME
8: 4.NO OF ITEMS ORDERED
10: 5.CHECKING WITH AVAILABILITY

2: 1.SALES
6: 3.PRICE/ITEM
11: 6.ITEMS INSUFFICIENT/TOTAL PRICE

SHOPKEE
PER

COMPONENT DIAGRAM:

MANUFA DEALER SHOPKE


CTURER EPER

DATABASE
CLASS DIAGRAM:

MANUFACTURER
Manufacturer Name
Company Name
Date of Manufactured
Address
Contact Number
Price

Purchase()
Sales()

DEELER
Dealer Name
Date of Items Received
Address
Contact Number
Price
No of Items Ordered
No of Items Sold

Purchase()
Sales()
Show stock Details()
SHOPKEEPER
ShopKeeper Name
Address
Contact Number
Price
No of Items Ordered

Purchase()
Sales()

DEPLOYMENT DIAGRAM:

Process
or

Printer
Mouse

Keyboar
d
CODING:

FORM1

Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


Form3.Show
End Sub

Private Sub Command2_Click()


Form4.Show
End Sub

Private Sub Command3_Click()


Form5.Show
End Sub

Private Sub Command4_Click()


End
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")

End Sub

FORM2

Dim db As Database
Dim rs As Recordset
Dim i As Integer

Private Sub Command1_Click()


Form1.Show
End Sub

Private Sub Command2_Click()


rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
rs.Edit
If Text7.Text = "" Then
MsgBox "enter the no of items ordered"
Else
rs(6) = Text7.Text
rs(7) = rs(5) * rs(6)
rs(4) = rs(4) + Val(Text7.Text)
Text8.Text = rs(7)
Text5.Text = rs(4)
Text4.Text = rs(3)
rs.Update
GoTo l1
End If
End If
rs.MoveNext
Next i
l1: End Sub

Private Sub Command3_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub

Private Sub Command4_Click()


rs.AddNew
rs(0) = Text1.Text
rs(1) = Text2.Text
rs(2) = Text3.Text
rs(3) = Text4.Text
rs(4) = Text5.Text
rs(5) = Text6.Text
rs(6) = Text7.Text
rs(7) = Text8.Text
rs.Update
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")
End Sub
Private Sub List1_Click()
Text1.Text = List1.Text
rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Text = ""
Text8.Text = ""
End If
rs.MoveNext
Next i
End Sub

FORM3

Dim db As Database
Dim rs As Recordset
Dim i As Integer

Private Sub Command1_Click()


rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
rs.Edit
If Text4.Text = "" Then
MsgBox "Enter the no of items needed"
Else
rs(6) = Text4.Text
If rs(6) <= rs(4) Then
rs(7) = rs(5) * rs(6)
rs(4) = rs(4) - Val(Text4.Text)
Text2.Text = rs(4)
Text5.Text = rs(7)
Else
MsgBox " ITEM NOT SUFFICIENT"
End If
rs.Update
GoTo l1
End If
End If
rs.MoveNext
Next i
l1: End Sub

Private Sub Command2_Click()


Form1.Show
End Sub

Private Sub Command3_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")
End Sub

Private Sub List2_Click()


Text1.Text = List2.Text
rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
Text2.Text = rs(4)
Text3.Text = rs(5)
Text4.Text = ""
Text5.Text = ""
End If
rs.MoveNext
Next i
End Sub

FORM4

Dim db As Database
Dim rs As Recordset
Dim r, i As Integer

Private Sub Command1_Click()


Form1.Show
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")
MSFlexGrid1.FixedRows = 0
MSFlexGrid1.FixedCols = 0

r=0

MSFlexGrid1.ColWidth(0) = 2000
MSFlexGrid1.ColWidth(1) = 2000
MSFlexGrid1.ColWidth(2) = 2000
MSFlexGrid1.ColWidth(3) = 1700
MSFlexGrid1.ColWidth(4) = 1750
MSFlexGrid1.ColWidth(5) = 1650

'MSFlexGrid1.ForeColor = "GREEN"
MSFlexGrid1.TextMatrix(0, 0) = "COMPANY NAME"
MSFlexGrid1.TextMatrix(0, 1) = "COMPANY ADDRESS"
MSFlexGrid1.TextMatrix(0, 2) = "CONTACT NUMBER"
MSFlexGrid1.TextMatrix(0, 3) = "DATE OF ORDER"
MSFlexGrid1.TextMatrix(0, 4) = "ITEMS AVAILABLE"
MSFlexGrid1.TextMatrix(0, 5) = "PRICE/ITEM"
rs.MoveFirst
r=1
Do Until rs.EOF

MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 0
MSFlexGrid1.Text = rs(0)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 1
MSFlexGrid1.Text = rs(1)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 2
MSFlexGrid1.Text = rs(2)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 3
MSFlexGrid1.Text = rs(3)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 4
MSFlexGrid1.Text = rs(4)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 5
MSFlexGrid1.Text = rs(5)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 6
'MSFlexGrid1.Text = rs(6)
'MSFlexGrid1.FixedRows = r
'MSFlexGrid1.FixedCols = 7
'MSFlexGrid1.Text = rs(7)
r=r+1
rs.MoveNext
Loop
End Sub

FORMS

FORM1: MAIN MENU


FORM2: PURCHASE DETAILS

FORM3: SALES DETAILS

FORM4: STOCK DETAILS


RESULT:

Thus the project is to develop for stock maintenance system using the Rational Rose Software
from the UML diagram and to implement the employee details and successfully executed using
visual basic and rational rose.

You might also like