GitHunt
HI

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.git

2๏ธโƒฃ Start XAMPP Server

  • Open XAMPP and start Apache & MySQL services.

3๏ธโƒฃ Set Up the Database

  • Open MySQL Workbench and create a new database:
    CREATE DATABASE pharma_centre;
  • Import the provided .sql file 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.java file.

๐Ÿ”„ 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

Hifza-Khalid/PharmaCentreCentralizedSystem | GitHunt