Vous êtes sur la page 1sur 33

Ex.No.

3 STOCK MAINTAINANCE
17.08.09

PROBLEM STATEMENT:
To develop a project “STOCK MAINTENANCE SYSTEM” using the Rational
Rose Software for the UML diagrams and to implement the software in Visual Basic.
The Customer can view the products and can purchase.The Administrator can
maintain the Product details in a Database to Update the Product Details and Add New
Products in the Database.

REQUIREMENT ANALYSIS:
It is a process of analyzing the User needs and transforming into a problem
requirement. This application allows the Customer to view the product details through the
database and the database is maintained by the Administrator to enter, update and add the
new products to the Database. The requirements are
1. Customer
2. Administrator
3. Products
4. Database

DATA MODELING:
The project can be explained diagrammatically using the following diagrams:
 Use Case Diagram
 Class Diagram
 Sequence Diagram
 Collaboration Diagram
 Activity Diagram

USE CASE DIAGRAM:


A Use Case is a set of Scenarios tied together by a common user goal.A scenario is a
sequence of steps describing an interaction between a user and a system

ACTORS:
An actor is a role that a user plays with respect to the System. The actors are:
 Administrator
 Database
USE CASE :

1.UseCase Name: CUSTOMER

Description:
The Customer can login in to the system and view the stock details and purchase.

Steps:
• Enter the user ID and Password.
• Press the view Button to view the details of the products.

2.UseCase Name :ADMINISTRATOR

Description:
The Administrator can login into the system and add or remove the stock based on
minimum availability in the database.

Steps:
• Enter the admin ID of the Password.
• Maintain the Recording Level.
• Add or Remove the products by pressing the corresponding buttons.

CLASS DIAGRAM:
A Class diagram describes the types of objects in the system and the various kinds
of static relationships that exist among them.
Description:
The classes used in this project are
• Customer
• Administrator
• Database

SEQUENCE DIAGRAM:

A Sequence Diagram is a kind of interaction diagram in which an object is shown


as a box at a top of a dashed vertical line. This vertical line is called as object’s lifeline.
The lifeline represents the object’s life during the interaction. Object deletion
is shown with a large X. object’s can be destroyed by another message.

Description:
The various scenarios of the sequence diagram used in this project are
• Customer
• Database
• Administrator
COLLABORATION DIAGRAM:
In a Collaboration diagram, object’s are shown as icons. As on a sequence
diagram, arrow indicate the message sent within the given Use Case. The sequence is
indicated by numbering the messages.

Description:
This diagram contains the group of classes created, interfaces and the elements
that work together to provide the overall behavior of the project. It also describes the
relationship between each classes and how they relate with each other.
ACTIVITY DIAGRAM:
The Activity diagram describes the sequencing of activities, with the support for
both conditional and parallel behavior. An activity diagram is a variant of state diagram.

Description:
The Activity diagram is similar to traditional flowchart. It captures the event that
happens either within an object or within a group of objects.

Steps:
• Check whether the person is Customer or Administrator.
• If Customer, view the Products by giving the Product ID.
• If Administrator, select the any one of the option Like view the detail or
update or add new.
• In Customer view, check the product quantity.
• Then Check for the minimum quantity.
• In Result Analysis, view the Product Name
• To Quit the System, click the end process.
IMPLEMENTATION:
FORM 1:(STOCK MAINTAINANCE)

Private Sub Command1_Click()


Form2.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 2:(STOCK-INTRODUCTION)
Dim p As New passenger
Dim c As New cancel

Private Sub Check1_Click()


Form11.Show
End Sub

Private Sub Check2_Click()


Form3.Show
End Sub

Private Sub Check3_Click()


Form16.Show
End Sub

Private Sub Command1_Click()


c.customer
End Sub

Private Sub Command2_Click()


p.admins
End Sub

Private Sub Command3_Click()


Form16.Show
End Sub

Private Sub form_Click()


Dim x1 As Single, y1 As Single, x2 As Single
Dim y2 As Single, twopi As Single, i As Single
Scale (-1, 1)-(1, -1)
x1 = -1
y1 = -1
twopi = 8 * Atn(1)
For i = 0 To twopi Step 0.05
x2 = 0.5 * Cos(i)
y2 = 0.5 * Sin(i)
Line (x1, y1)-(x2, y2)
x1 = (0.95 * x1) + (0.05 * x2)
y1 = (0.95 * y1) + (0.05 * y2)
Next i
End Sub

Private Sub Form_Load()


Dim m$
m$ = "after you click on the ok buttonto make"
m$ = m$ & "this button go away,a click on the form"
m$ = m$ & "will display the picture"
MsgBox m$
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 3:(AUTHENTICATION-ADMINISTRATOR)

Private Sub Command1_Click()


If Text1.Text = "administrator" And Text2.Text = "12345admin" Then
Form4.Show
Else
MsgBox "please verify the username and password and type again"
End If
End Sub

Private Sub Text2_Change()


Text2.PasswordChar = "*"
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 4:(PHARMACY)

Private Sub Check1_Click()


Form5.Show
End Sub

Private Sub Check2_Click()


Form10.Show
End Sub

Private Sub Check3_Click()


Form17.Show
End Sub

Private Sub Check4_Click()


Form18.Show
End Sub

Private Sub Command1_Click()


Form2.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 5:(STOCK AVAILABILITY)

Private Sub Check1_Click()


Form6.Show
End Sub

Private Sub Check2_Click()


Form7.Show
End Sub

Private Sub Check3_Click()


Form8.Show
End Sub

Private Sub Check4_Click()


Form9.Show
End Sub

Private Sub Command1_Click()


Form4.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 6:(TABLETS)

Private Sub Command1_Click()


Form5.Show
End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Update
End Sub

Private Sub Command3_Click()


Form19.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 7:(SYRUBS/TONICS)

Private Sub Command1_Click()


Form5.Show
End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Update
End Sub

Private Sub Command3_Click()


Form19.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 8:(SURGER/FIRST AID ITEMS)

Private Sub Command1_Click()


Form5.Show
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.Update
End Sub

Private Sub Command3_Click()


Form19.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 9:(OTHER AVAILABLE ITEMS)

Private Sub Command1_Click()


Form5.Show
End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Update
End Sub

Private Sub Command3_Click()


Form19.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 10:(STOCK PURCHASE)

Private Sub Command1_Click()


Form6.Text1 = Form6.Text1 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command10_Click()


Form6.Text10 = Form6.Text10 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command11_Click()


Form7.Text1 = Form7.Text1 + 1
MsgBox "purchased successfully"
End Sub
Private Sub Command12_Click()
Form7.Text2 = Form7.Text2 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command13_Click()


Form7.Text3 = Form7.Text3 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command14_Click()


Form7.Text4 = Form7.Text4 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command15_Click()


Form7.Text5 = Form7.Text5 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command16_Click()


Form7.Text6 = Form7.Text6 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command17_Click()


Form7.Text7 = Form7.Text7 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command18_Click()


Form7.Text8 = Form7.Text8 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command19_Click()


Form7.Text9 = Form7.Text9 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command2_Click()


Form6.Text2 = Form6.Text2 + 1
MsgBox "purchased successfully"
End Sub
Private Sub Command20_Click()
Form7.Text10 = Form7.Text10 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command21_Click()


Form8.Text1 = Form8.Text1 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command22_Click()


Form8.Text2 = Form8.Text2 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command23_Click()


Form8.Text3 = Form8.Text3 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command24_Click()


Form8.Text4 = Form8.Text4 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command25_Click()


Form8.Text5 = Form8.Text5 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command26_Click()


Form9.Text1 = Form9.Text1 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command27_Click()


Form9.Text2 = Form9.Text2 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command28_Click()


Form9.Text3 = Form9.Text3 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command29_Click()


Form9.Text4 = Form9.Text4 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command3_Click()


Form6.Text3 = Form6.Text3 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command30_Click()


Form9.Text5 = Form9.Text5 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command31_Click()


Form4.Show
End Sub

Private Sub Command4_Click()


Form6.Text4 = Form6.Text4 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command5_Click()


Form6.Text5 = Form6.Text5 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command6_Click()


Form6.Text6 = Form6.Text6 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command7_Click()


Form6.Text7 = Form6.Text7 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command8_Click()


Form6.Text8 = Form6.Text8 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Command9_Click()


Form6.Text9 = Form6.Text9 + 1
MsgBox "purchased successfully"
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 11:(CUSTOMER WELCOME)

Private Sub Command1_Click()


Form12.Show
End Sub

Private Sub Command2_Click()


Form2.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 12:(AUTHENTICATION-CUSTOMER)

Private Sub Command1_Click()


If Text1.Text = "user" And Text2.Text = "user" Then
Form13.Show
Else
MsgBox "please verify the username and password and type again"
End If
End Sub

Private Sub Text2_Change()


Text2.PasswordChar = "*"
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 13:(CUSTOMER-ENTRY OPTIONS)

Private Sub Check1_Click()


Form19.Show
End Sub

Private Sub Check2_Click()


Form14.Show
End Sub

Private Sub Check3_Click()


Form15.Show
End Sub

Private Sub Command1_Click()


Form11.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 14:(CUSTOMER-VIEW PRODUCTS AND PURCHASE)

Private Sub Command1_Click()


If Val(Form6.Text1) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form6.Text1 = Form6.Text1 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text1 = "ASPIRIN"
Form15.Text11 = "2"
End If
End Sub

Private Sub Command10_Click()


If Val(Form6.Text10) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text10 = Form6.Text10 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command11_Click()


If Val(Form7.Text1) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form7.Text1 = Form7.Text1 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text4 = "CETIRIZ"
Form15.Text14 = "47"
End If
End Sub

Private Sub Command12_Click()


If Val(Form7.Text2) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form7.Text2 = Form7.Text2 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text5 = "DOLO"
Form15.Text15 = "38"
End If
End Sub

Private Sub Command13_Click()


If Val(Form7.Text3) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form7.Text3 = Form7.Text3 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text6 = "TOREX"
Form15.Text16 = "38"
End If
End Sub

Private Sub Command14_Click()


If Val(Form7.Text4) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text4 = Form7.Text4 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command15_Click()


If Val(Form7.Text5) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text5 = Form7.Text5 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command16_Click()


If Val(Form7.Text6) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text6 = Form7.Text6 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command17_Click()


If Val(Form7.Text7) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text7 = Form7.Text7 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command18_Click()


If Val(Form7.Text8) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text8 = Form7.Text8 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command19_Click()


If Val(Form7.Text9) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text9 = Form7.Text9 - 1
MsgBox "purchased successfully"
End If
End Sub
Private Sub Command2_Click()
If Val(Form6.Text2) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form6.Text2 = Form6.Text2 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text2 = "REVITAL"
Form15.Text12 = "4"
End If
End Sub

Private Sub Command20_Click()


If Val(Form7.Text10) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form7.Text10 = Form7.Text10 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command21_Click()


If Val(Form8.Text1) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form8.Text1 = Form8.Text1 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text7 = "ZENFLOX EYE DROPS"
Form15.Text17 = "76"
End If
End Sub

Private Sub Command22_Click()


If Val(Form8.Text2) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form8.Text2 = Form8.Text2 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text8 = "FLUCONAZOLE GEL 0.5%"
Form15.Text18 = "96"
End If
End Sub

Private Sub Command23_Click()


If Val(Form8.Text3) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form8.Text3 = Form8.Text3 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command24_Click()


If Val(Form8.Text4) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form8.Text4 = Form8.Text4 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command25_Click()


If Val(Form8.Text5) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form8.Text5 = Form8.Text5 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command26_Click()


If Val(Form9.Text1) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form9.Text1 = Form9.Text1 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command27_Click()


If Val(Form9.Text2) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form9.Text2 = Form9.Text2 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command28_Click()


If Val(Form9.Text3) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form9.Text3 = Form9.Text3 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command29_Click()


If Val(Form9.Text4) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form9.Text4 = Form9.Text4 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text9 = "PROPYL"
Form15.Text19 = "237"
End If
End Sub

Private Sub Command3_Click()


If Val(Form6.Text3) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form6.Text3 = Form6.Text3 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text3 = "FOURTS B"
Form15.Text13 = "6"
End If
End Sub

Private Sub Command30_Click()


If Val(Form9.Text5) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tommorow"
Else
Form9.Text5 = Form9.Text5 - 1
MsgBox "purchased"
MsgBox "ok"
Form15.Text10 = "B PROTEIN"
Form15.Text20 = "175"
End If
End Sub

Private Sub Command31_Click()


Form19.Show
End Sub

Private Sub Command32_Click()


Form15.Show
End Sub

Private Sub Command33_Click()


Form9.Show
End Sub

Private Sub Command34_Click()


Form8.Show
End Sub

Private Sub Command35_Click()


Form7.Show
End Sub

Private Sub Command36_Click()


Form6.Show
End Sub

Private Sub Command4_Click()


If Val(Form6.Text4) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text4 = Form6.Text4 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command5_Click()


If Val(Form6.Text5) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text5 = Form6.Text5 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command6_Click()


If Val(Form6.Text6) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text6 = Form6.Text6 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command7_Click()


If Val(Form6.Text7) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text7 = Form6.Text7 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command8_Click()


If Val(Form6.Text8) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text8 = Form6.Text8 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Command9_Click()


If Val(Form6.Text9) < 11 Then
MsgBox "only minimum number of products are available so you cant purchase"
MsgBox "please come tomorrow"
Else
Form6.Text9 = Form6.Text9 - 1
MsgBox "purchased successfully"
End If
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 15:(PROVIDE BILL)

Private Sub Command1_Click()


Text21.Text = Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) +
Val(Text14.Text) + Val(Text15.Text) + Val(Text16.Text) + Val(Text17.Text) +
Val(Text18.Text) + Val(Text19.Text) + Val(Text20.Text)
End Sub

Private Sub Command2_Click()


Form13.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 16:(EXIT)

Private Sub Command1_Click()


End
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 17:(ADMIN-EMPLOYEE DETAILS)

Private Sub Command1_Click()


Form4.Show
End Sub

Private Sub Command2_Click()


Adodc1.Recordset.AddNew
End Sub

Private Sub Command3_Click()


Adodc1.Recordset.Update
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.Delete
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 18:(ADMIN-GAIN DETAILS)

Private Sub Command1_Click()


Text5.Text = Val(Text1.Text) - Val(Text2.Text) - Val(Text3.Text) - Val(Text4.Text)
End Sub

Private Sub Command2_Click()


Form4.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub

FORM 19:(CUSTOMER-STOCK CHECK)

Private Sub Option1_Click()


DataReport1.Show
End Sub

Private Sub Option2_Click()


DataReport2.Show
End Sub

Private Sub Option3_Click()


DataReport3.Show
End Sub

Private Sub Option4_Click()


DataReport4.Show
End Sub

Private Sub Form_Load()


Label1.ForeColor = RGB(Rnd * 255, Rnd * 255, Rnd * 255)
End Sub
CUSTOMER.CLS

Option Explicit
'##ModelId=4862047500CB

Private cuname As String


'##ModelId=4862047A029F

Private prodid As Integer


'##ModelId=486204820119

Private password As String


'##ModelId=4862048601F4

Private prodprice As Integer


'##ModelId=48620500006D

Public NewProperty As cust


'##ModelId=486204A903B9

Public Sub display()


Form11.show
End Sub

ADMINISTRATOR.CLS

Option Explicit

'##ModelId=486203D303C8
Private sname As String

'##ModelId=486204090138
Private pid As Integer

'##ModelId=4862041202EE
Private pname As String

'##ModelId=4862041700CB
Private passwd As String

Dim i As Integer

'##ModelId=486204F303B9
Public NewProperty As admin

'##ModelId=48620447031C

Public Sub authenticate()


MsgBox “successful”
End Sub

'##ModelId=4862045201B5

Public Sub enterresult()


Form3.show
End Sub

DATABASE.CLS

Option Explicit
'##ModelId=4862047500CB

Private prodname As String


'##ModelId=4862047A029F

Private prodid As Integer


'##ModelId=486204820119

Private prodquantity As String


'##ModelId=4862048601F4

Private prodprice As Integer


'##ModelId=48620500006D

Public Sub verifyuser()


MsgBox “verified”
End Sub

Public Sub adddata()


MsgBox “updated”
End Sub
TESTING-STOCK MAINTAINANCE

TESTING:
Testing is the process of executing a program with the intent of finding errors.

TEST CASE 1:

BLACKBOX TESTING:
Black box testing or behavioral testing on the functional requirements of software.
Black box testing enables the software Engineer to drive sets of input condition that will
fully exercise all functional requirements for a program.

Input:
Product Name or Product ID
Output:
View the Product Details which is purchased.
Remark:
Expected result is obtained.

TEST CASE 2:

VALIDATION TESTING:
Validation testing refers to different set of activities that ensures that the software
that has been built to traceable to customer requirements.

CUSTOMER DETAILS:

Input:
Customer Name, ID,Product Name, ID.
Output:
View and Purchase operations are carried out.
Remark:
Expected result is obtained.

ADMINISTRATOR DETAILS:

Input:
Admin Name, Admin ID, Product ID.
Output:
Add, View and Update operations are carried out.
Remark:
Expected result is obtained.

RESULT CHECKING:

Input:
Given the Product ID.
Output:
Total Purchased Products are displayed.
Remark:
Expected result is obtained.

RESULT ANALYSIS:

Input:
Products in the database act as an input.
Output:
Product information like Name, ID, Quantity and its price is displayed.
Remark:
Expected result is obtained.
CONCLUSION:
Thus the STOCK MAINTENANCE SYSTEM was developed using Rational Rose
for UML (Unified Modeling Language) diagrams and the software was implemented in
Visual Basic and the output was verified.

Vous aimerez peut-être aussi