0% found this document useful (0 votes)
167 views25 pages

UML Diagram Case Study

Case study related to java language code on stock management system.

Uploaded by

Zumer Fatima
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)
167 views25 pages

UML Diagram Case Study

Case study related to java language code on stock management system.

Uploaded by

Zumer Fatima
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/ 25

TASK 1:

Use Case modelling:


TASK 2: Class Diagram modelling:
TASK 3: Data Entity Model or ERD (Entity Relationship Diagram)
TASK 4:
Using Visual Basic to create the GUI
Figure 4.1: Sample Prototype Design of the Stock GUI

Figure 4.2: Sample Prototype Design of the GUI


Figure 4.3: Sample Prototype Design of the GUI
Figure 5.1: Stock management Form Codes
Figure 5.2: Stock management Form Code
Figure 6: Original source code with “Public class”
Figure 7: Original source code of “Select items”
Figure 8: Original source code of “Product table”
Figure 9: Enter data on output screen of product 1
Figure 10: Show output screen of product 1
Figure 11: Enter data on output screen of product -2
Figure 12: Show data on output screen of product -2

Step 2: The Front-End GUI Design connected to MS Access database


Here are the following completed Graphical User Interface (GUI) Design.
 I arranged the layout of the GUI and made it more look professional.
 I renamed the buttons as shown into the following figures below.
 The names I have given for the functions of the button are:
Buttons: Next, Previous, Save, First Item, Last Item, Delete, Reset, Exit.
Elements: Product code, Description, Category, Location, Product code,
Supplier info, Item type.
Stock management: In stock, Allocated, Free stock, On Order, Last order
date, Re-order date, Re-order Qty, Cost Price, Stock take Qty.

Figure 13: The completed GUI of stock management system


Figure 14: The completed GUI of Enter Product details
Step 3: Modification of the source code to activate the GUI
This step is where I modified the source code of each code that has underline which is
show in figure 7 by using code commands which is shown in figure 15 below.
Modified button example for the previous button will be:
Prev btn click
.moveprevious()
Modified button example for the next button will be:
Next btn click
.movenext()
Modified button example for the save button will be:
Save btn click
.movesave()
Modified button example for the delete button will be:
Delete btn click
.movedelete()
Modified button example for the reset button will be:
Reset btn click
.movereset()
Modified button example for the exit button will be:
Exit btn click
.moveexit()
Figure 15: Underline the save button in figure below

Step 4: Activation and implementation of the Front-End GUI Form

Figure 16: The execution of the GUI displaying the information on the
first entry after modification of the code
Original source code for the GUI
This sector will show the source codes that were used to design the GUI (Graphical
user interface).
After completing the layout design of the Graphical user interface by adding the labels,
textbox and buttons, the source code that is shown in figure 17 was modified so that the
GUI will function as how it was designed. The figure 17 will show the original source
code which made during the process on designing the layout of the GUI.
Figure 17: Original source code

Modified source code to activate the GUI


This sector will show the completed codes layout design of the GUI. This sector also
shows the new modified codes of the GUI including the annotations.
Figure 18: Original source code
Figure 19: Original source code

Figure 20: Original source code


Figure 21: Original source code
References:
Menaka Baskarpillai - Updated date May 15 2018 - visual basic stock management 2017 – Available at:
[Accessed 30 Jan. 2020].

Ken Carney, Home and Learn - visual basic byval and byref – Available at:
https://www.homeandlearn.co.uk/NET/nets9p4.html [Accessed 30 Jan. 2020].

Copyright © 2017 Robert I. Kabacoff, Ph.D. - Rstudio cluster plot – Available at:
https://www.statmethods.net/advstats/cluster.html [Accessed 28 Jan. 2020].

Copyright © ITSOURCECODE.COM-2021 https://itsourcecode.com/free-projects/database-design-


projects/sales-inventory-system-database-design/ [Accessed 2021].

You might also like