04.stock Maintenance System
04.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.
Sales
Purchase
Company name
Company name
Items ordered
Items ordered
Inventory
System
Select from
the Menu
Display the
Transaction Details
Company
Name
Price/Item
No of Items
ordered
1.PURCHASE
1.SALES
2.COMPANY NAME
2.COMPANY NAME
3.PRICE/ITEM
3.PRICE/ITEM
5.TOTAL PRICE
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:
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
End Sub
FORM2
Dim db As Database
Dim rs As Recordset
Dim i As Integer
FORM3
Dim db As Database
Dim rs As Recordset
Dim i As Integer
FORM4
Dim db As Database
Dim rs As Recordset
Dim r, i As Integer
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
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.