This Java GUI project aims to create a pharmacy management system. It provides functionalities to add drugs to different categories, remove drugs, display drug lists, order drugs, and get the total sales. The system operates within the pharmacy's capacity.
(in UMLdiagram.png)
-
App Class:
- Serves as the entry point for the application.
- Initializes, launches, and displays the GUI.
- Contains the
start
method to initialize and display the GUI by loading the "capacity.fxml" file. - Contains the
main
method to launch the JavaFX application.
-
Drugs Class:
- Represents a drug entity with attributes such as name, ID, price, available quantity, and category.
- Includes static lists to store drugs categorized as cosmetics, prescription, and others.
-
Project Class:
- Extends the
Drugs
class and represents the main logic and functionality of the pharmacy management system. - Contains methods to handle different functionalities such as switching windows, adding drugs, removing drugs, placing orders, and getting sales.
- Extends the
- add.fxml: UI for adding a drug to the pharmacy system.
- capacity.fxml: UI for setting the capacity of the pharmacy system.
- main.fxml: Main UI of the pharmacy system for navigating functionalities.
- place.fxml: UI for placing an order in the pharmacy system.
- remove.fxml: UI for removing a drug from the pharmacy system.
To run the application:
- Compile all Java files.
- Launch the application using the
App
class.
- [Youssef Ashraf ElNaggar]
- [Youssef.ashraf.elnaggar@gmail.com]