Package UI.InventoryPages
Class StockRequestPage
java.lang.Object
Common.UserInterface
UI.InventoryPages.StockRequestPage
The
StockRequestPage
class provides functionality for submitting
stock requests for medicines. It extends UserInterface
and interacts
with the InventoryRequestManager
to handle inventory requests.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
ConstructorsConstructorDescriptionStockRequestPage
(InventoryRequestManager inventoryRequestManager) Constructs aStockRequestPage
with the specifiedInventoryRequestManager
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Displays options for submitting a stock request.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
StockRequestPage
Constructs aStockRequestPage
with the specifiedInventoryRequestManager
instance.- Parameters:
inventoryRequestManager
- the manager used to handle inventory requests
-
-
Method Details
-
displayOption
public void displayOption()Displays options for submitting a stock request. Prompts the user for medicine name and request value, and submits the request through the inventory request manager.
-