Hifza-Khalid/PharmaCentreCentralizedSystem
A Java-based pharmaceutical management system for efficient medicine stock tracking, agent handling, and company record-keeping with MySQL database connectivity.
๐ PharmaCentreCentralizedSystem
๐ Overview
PharmaCentreCentralizedSystem is a Java-based pharmaceutical management system designed to centralize medicine stock tracking, agent management, and company record-keeping. It integrates MySQL with XAMPP and utilizes Java Swing for UI alongside JDBC for database interactions.
๐ฅ Features
๐ Core Functionalities
โ ๐ฅ๏ธ User Interface
- Interactive Splash Screen and Home Page.
- Easy Navigation with a structured menu for Medicines, Agents, and Companies.
โ ๐ Seller Panel
- Medicine record management with attributes: MedID, MedName, Quantity, MFDate, ExpDate.
- Billing System: Add medicines to bill, generate invoices, and print receipts.
โ ๐ Medicine Management
- Full CRUD (Create, Read, Update, Delete) operations.
- Medicines displayed in a structured table view.
โ ๐งโโ๏ธ Agent Management
- Manage agents with fields: AgentID, Name, Age, Contact, Gender, Password.
- CRUD operations to add, update, or remove agents.
โ ๐ข Company Management
- Manage pharmaceutical companies with fields: CompanyID, Experience, Contact, Address.
- Perform CRUD operations seamlessly.
โ ๐๏ธ Database Connectivity
- Integrated with MySQL via JDBC.
- Hosted on XAMPP Server.
- Managed through MySQL Workbench.
๐ ๏ธ Technologies Used
| Technology | Purpose |
|---|---|
| Java (Swing & JDBC) | UI & Backend Logic |
| MySQL (XAMPP, Workbench) | Database Management |
| NetBeans IDE | Development Environment |
| MariaDB | Database Dependency |
๐ Installation & Setup
๐น Prerequisites
Ensure you have the following installed:
โ
JDK 8 or later
โ
NetBeans IDE (or any Java IDE)
โ
XAMPP (for MySQL and Apache Server)
๐น Steps to Run the Project
1๏ธโฃ Clone the Repository
git clone https://github.com/yourusername/PharmaCentreCentralizedSystem.git2๏ธโฃ Start XAMPP Server
- Open XAMPP and start
Apache&MySQLservices.
3๏ธโฃ Set Up the Database
- Open MySQL Workbench and create a new database:
CREATE DATABASE pharma_centre;
- Import the provided
.sqlfile from the repository.
4๏ธโฃ Configure Database Connection in NetBeans
- Add MySQL JDBC Driver to the project.
- Update database credentials in
DBConnection.java.
5๏ธโฃ Run the Application
- Open the project in NetBeans.
- Execute the
Main.javafile.
๐ CRUD Operations
โ Create (INSERT)
INSERT INTO medicines (med_id, med_name, quantity, price) VALUES (101, 'Paracetamol', 50, 10.5);๐ Read (SELECT)
SELECT * FROM medicines;โ๏ธ Update (UPDATE)
UPDATE medicines SET price = 12.0 WHERE med_id = 101;โ Delete (DELETE)
DELETE FROM medicines WHERE med_id = 101;๐ฏ Future Enhancements
๐ Role-based authentication (Admin, Seller, Agents).
๐ Stock alert notifications for expired medicines.
๐ Enhanced reporting system for sales & inventory tracking.
๐ Cloud-based database integration for remote access.
๐ License
This project is licensed under the MIT License.
๐ฌ Contact
๐ง Email: hifzaofpk@example.com
๐ GitHub: Hifza-Khalid