An open API service indexing awesome lists of open source software.

https://github.com/omarrsakr/pharmacy-management

Pharmacy Management ๐Ÿ’Š A static desktop application built using C# And Database designed for managing pharmacy operations. It features multiple modules to handle various aspects of pharmacy management, including agent management, billing, medicine tracking, and manufacturer records.
https://github.com/omarrsakr/pharmacy-management

database gui guna-ui

Last synced: 9 months ago
JSON representation

Pharmacy Management ๐Ÿ’Š A static desktop application built using C# And Database designed for managing pharmacy operations. It features multiple modules to handle various aspects of pharmacy management, including agent management, billing, medicine tracking, and manufacturer records.

Awesome Lists containing this project

README

          

# ๐Ÿ’Š๐Ÿฅ Pharmacy Management System




GitHub stars
GitHub forks
Repo Views


Pull Requests
Contributors
License


Last Commit
Repo Size
Top Language




Pharmacy Management: ู†ุธุงู… ุฅุฏุงุฑุฉ ุตูŠุฏู„ูŠุฉ ุดุงู…ู„ ู…ุจู†ูŠ ุจู€ C# ู„ุฅุฏุงุฑุฉ ุงู„ุนู…ู„ูŠุงุช ุงู„ูŠูˆู…ูŠุฉุŒ ุงู„ู…ุฎุฒูˆู†ุŒ ูˆุงู„ููˆุงุชูŠุฑ ุจูƒูุงุกุฉ ุนุงู„ูŠุฉ. ๐Ÿ’Š๐Ÿ“Š

[ Pharmacy Management Demo](https://omarrsakr.github.io/Pharmacy-Management/) โ€ข
[Documentation](https://github.com/OmarrSakr/Pharmacy-Management/wiki) โ€ข
[Report Issues](https://github.com/OmarrSakr/Pharmacy-Management/issues)


**`Pharmacy Management System`** is a comprehensive desktop application built with **`C# Windows Forms`** designed to streamline pharmacy operations. It features multiple integrated modules for **employee management**, **billing systems**, **medicine inventory tracking**, and **manufacturer records** with secure data handling through file storage and database connectivity.

BuySpot Store Demo

## ๐Ÿ“Š Project Stats

- ๐Ÿ’Š **Modules**: 4 Core Management Systems
- ๐Ÿฅ **Target**: Pharmacy & Healthcare Facilities
- ๐Ÿ’ป **Platform**: Windows Desktop Application
- โญ **Rating**: 4.6/5 (based on healthcare professionals feedback)
- ๐ŸŒ **Visitors**: Repo Views

---

## ๐Ÿง‘โ€๐Ÿ’ป Tech Stack


C#
.NET Framework
Windows Forms
SQL Server
LocalDB
File Handling
Visual Studio

---

## ๐Ÿ“ท Screenshots


Main Dashboard
Agent Management
Billing System


Medicine Inventory
Manufacturer Records
Search Functionality


Data Entry Form
Reports Section
Settings Panel

---

## ๐Ÿ“‘ Table of Contents

- [๐Ÿš€ Features](#-features)
- [๐Ÿง‘โ€๐Ÿ’ป Technologies Used](#-technologies-used)
- [๐Ÿ“‚ Project Structure](#-project-structure)
- [๐Ÿ”ง Installation](#-installation)
- [โš™๏ธ Usage](#๏ธ-usage)
- [๐Ÿ”‘ Login Information](#-login-information)
- [๐Ÿ’พ Database Configuration](#-database-configuration)
- [๐Ÿ“Š System Modules](#-system-modules)
- [๐Ÿ”’ Security Features](#-security-features)
- [๐Ÿ“Œ Future Enhancements](#-future-enhancements)
- [โš ๏ธ Important Notes](#๏ธ-important-notes)
- [๐Ÿค Contributing](#-contributing)
- [๐Ÿ“ช Feedback](#-feedback)
- [๐Ÿ“œ License](#-license)

---
## ๐ŸŒ Live Demo

Check out the live demo of **Pharmacy Management** at ๐Ÿ‘‰ [Pharmacy-Management Demo](https://omarrsakr.github.io/Pharmacy-Management/)

---

## ๐Ÿš€ Features

- ๐Ÿ‘ฅ **Agent Management**: Complete employee records with add, search, edit, and delete functionality
- ๐Ÿ’ฐ **Billing System**: Comprehensive transaction recording with detailed bill generation
- ๐Ÿ’Š **Medicine Inventory**: Advanced stock tracking with batch, expiry, and pricing management
- ๐Ÿญ **Manufacturer Management**: Detailed supplier records and communication tracking
- ๐Ÿ” **Secure Authentication**: Login system with credential protection
- ๐Ÿ“Š **Data Persistence**: File-based storage with database integration
- ๐Ÿ–ฅ๏ธ **Desktop Optimized**: Responsive Windows Forms interface
- ๐Ÿ” **Advanced Search**: Quick data retrieval across all modules
- ๐Ÿ“ˆ **Financial Tracking**: Enhanced billing and transaction monitoring
- โšก **Real-time Updates**: Instant data synchronization across modules

---

## ๐Ÿง‘โ€๐Ÿ’ป Technologies Used

- **C# Windows Forms**: Core application framework for user interface development
- **.NET Framework**: Runtime environment and base class library
- **SQL Server LocalDB**: Local database engine for data storage
- **File Handling**: Text file operations for data persistence and backup
- **ADO.NET**: Data access technology for database connectivity
- **Visual Studio**: Integrated development environment
- **Object-Oriented Programming**: Modular design with class-based architecture

๐Ÿ“ฆ **Dependencies**

- [.NET Framework 4.7.2+](https://dotnet.microsoft.com/download/dotnet-framework)
- [SQL Server LocalDB](https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-express-localdb)
- [Visual Studio 2019+](https://visualstudio.microsoft.com/) (for development)

---

## ๐Ÿ“‚ Project Structure

```
Pharmacy-Management/
โ”œโ”€โ”€ ๐Ÿ“ Forms/
โ”‚ โ”œโ”€โ”€ ๐Ÿ  Home.cs # Main dashboard interface
โ”‚ โ”œโ”€โ”€ ๐Ÿ‘ฅ AgentManagement.cs # Employee management form
โ”‚ โ”œโ”€โ”€ ๐Ÿ’ฐ Billing.cs # Transaction and billing form
โ”‚ โ”œโ”€โ”€ ๐Ÿ’Š MedicineInventory.cs # Medicine stock management
โ”‚ โ”œโ”€โ”€ ๐Ÿญ ManufacturerRecords.cs # Supplier management form
โ”‚ โ””โ”€โ”€ ๐Ÿ” Login.cs # Authentication form
โ”œโ”€โ”€ ๐Ÿ“ Data/
โ”‚ โ”œโ”€โ”€ ๐Ÿ—„๏ธ PHARMACYOB.MDF # SQL Server database file
โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ savedLogin.txt # Login credentials backup
โ”‚ โ””โ”€โ”€ ๐Ÿ“Š InventoryData.txt # Medicine stock data
โ”œโ”€โ”€ ๐Ÿ“ Models/
โ”‚ โ”œโ”€โ”€ ๐Ÿ‘ค Agent.cs # Employee data model
โ”‚ โ”œโ”€โ”€ ๐Ÿ’Š Medicine.cs # Medicine data model
โ”‚ โ”œโ”€โ”€ ๐Ÿญ Manufacturer.cs # Supplier data model
โ”‚ โ””โ”€โ”€ ๐Ÿ’ฐ Transaction.cs # Billing data model
โ”œโ”€โ”€ ๐Ÿ“ Resources/
โ”‚ โ”œโ”€โ”€ ๐Ÿ–ผ๏ธ Icons/ # Application icons
โ”‚ โ””โ”€โ”€ ๐ŸŽจ Images/ # UI graphics
โ”œโ”€โ”€ ๐Ÿ”ง App.config # Application configuration
โ”œโ”€โ”€ ๐Ÿ“„ Program.cs # Application entry point
โ””โ”€โ”€ ๐Ÿ“• README.md # Project documentation
```

---

## ๐Ÿ”ง Installation

### **Prerequisites**

- Windows 10/11 (64-bit recommended)
- .NET Framework 4.7.2 or higher
- Visual Studio 2019 or later (for development)
- SQL Server LocalDB

### **Installation Steps**

1. **Clone the repository**

```bash
git clone https://github.com/OmarrSakr/Pharmacy-Management.git
```

2. **Navigate to project directory**

```bash
cd Pharmacy-Management
```

3. **Open in Visual Studio**

- Launch Visual Studio
- Open `PharmacyManagement.sln`

4. **Configure Database Connection**
- Update the connection string in the code:

```csharp
public SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=E:\PROJECT_OOP\FO_ORGANIZATION\PHARMACY-MANAGEMENT\PROJECT_FO_3\PHARMACYOB.MDF;Integrated Security=True;");
```

5. **Build and Run**
- Press `F5` or click `Start Debugging`
- Ensure all dependencies are restored

---

## ๐Ÿ“‹ System Requirements

- **OS**: Windows 10/11
- **RAM**: 4GB minimum (8GB recommended)
- **Storage**: 500MB free space
- **Framework**: .NET Framework 4.7.2+
- **Database**: SQL Server LocalDB
- **Resolution**: 1024x768 minimum

---

## โš™๏ธ Usage

### **Getting Started**

1. **Launch Application**: Run the executable or start from Visual Studio
2. **Login**: Use the provided credentials (see Login Information section)
3. **Navigate Modules**: Access different management sections from the main menu
4. **Manage Data**: Add, edit, search, and delete records as needed
5. **Generate Reports**: Use billing module for transaction reports

### **Daily Operations**

- **Morning Setup**: Check inventory levels and expiring medicines
- **Customer Service**: Process sales and generate bills
- **Inventory Updates**: Add new stock and update medicine information
- **End-of-Day**: Review transactions and generate daily reports

---

## ๐Ÿ”‘ Login Information

### **Default Credentials**

- **Username**: `admin`
- **Password**: `123`

### **Security Implementation**

```csharp
// Login validation with file backup
string filename = @"E:\Project_OOP\FO_organization\Pharmacy-Management\savedLogin.txt";
using (FileStream myfile = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.Write))
{
using (StreamWriter sw = new StreamWriter(myfile))
{
sw.WriteLine($"username: {username.Text}\t password:{password.Text}");
}
}

if (name == "admin" && pass == "123")
{
Hide();
Home basic = new Home();
basic.ShowDialog();
}
else
{
MessageBox.Show("Error, your Username or Password is incorrect");
username.Text = password.Text = null;
}
```

### **Changing Login Credentials**

To modify the default login credentials:

```csharp
// Update these values in the Login.cs file
string defaultUsername = "admin"; // Change to your preferred username
string defaultPassword = "123"; // Change to your secure password
```

**โš ๏ธ Important**: Always use strong passwords in production environments!

---

## ๐Ÿ’พ Database Configuration

### **Connection String Setup**

The application uses SQL Server LocalDB. Update the connection string to match your file path:

```csharp
public SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=[YOUR_PROJECT_PATH]\PHARMACYOB.MDF;Integrated Security=True;");
```

### **Database Tables**

- **Agents**: Employee information and management data
- **Medicines**: Inventory details with batch and expiry tracking
- **Manufacturers**: Supplier contact and product information
- **Transactions**: Billing and sales transaction records

---

## ๐Ÿ“Š System Modules

### **1. Agent Management Module**

- โž• **Add New Agents**: Complete employee registration
- ๐Ÿ” **Search & Filter**: Quick employee lookup
- โœ๏ธ **Edit Records**: Update employee information
- ๐Ÿ—‘๏ธ **Delete Agents**: Remove inactive employees
- ๐Ÿ“‹ **View Details**: Comprehensive employee profiles

### **2. Billing System Module**

- ๐Ÿ’ฐ **Process Sales**: Record customer transactions
- ๐Ÿงพ **Generate Bills**: Create detailed invoices
- ๐Ÿ“Š **Transaction History**: View past sales records
- ๐Ÿ’ณ **Payment Tracking**: Monitor payment methods
- ๐Ÿ“ˆ **Financial Reports**: Daily/monthly sales summaries

### **3. Medicine Inventory Module**

- ๐Ÿ’Š **Stock Management**: Track available quantities
- ๐Ÿ“… **Expiry Monitoring**: Alert for expiring medicines
- ๐Ÿท๏ธ **Batch Tracking**: Manage batch numbers and dates
- ๐Ÿ’ฒ **Price Management**: Update and maintain pricing
- โš ๏ธ **Low Stock Alerts**: Inventory threshold warnings

### **4. Manufacturer Management Module**

- ๐Ÿญ **Supplier Records**: Maintain manufacturer databases
- ๐Ÿ“ž **Contact Information**: Store communication details
- ๐Ÿ“ฆ **Product Catalog**: Track supplied medicines
- ๐Ÿค **Relationship Management**: Supplier interaction history
- ๐Ÿ“‹ **Contract Details**: Agreement and terms tracking

---

## ๐Ÿ”’ Security Features

- **๐Ÿ” Authentication System**: Secure login with credential validation
- **๐Ÿ“ Data Backup**: Automatic file-based backup system
- **๐Ÿ›ก๏ธ Input Validation**: Prevent malicious data entry
- **๐Ÿ”’ Session Management**: Secure user session handling
- **๐Ÿ“Š Audit Trail**: Track user activities and changes
- **โš ๏ธ Warning System**: Alert for unauthorized access attempts

---

## ๐Ÿ“Œ Future Enhancements

- ๐Ÿ” **Enhanced Authentication**: Multi-user system with role-based access
- ๐ŸŒ™ **Dark Mode Theme**: Modern UI with theme switching
- ๐Ÿ“ฑ **Mobile Compatibility**: Responsive design for tablets
- โ˜๏ธ **Cloud Integration**: Online backup and synchronization
- ๐Ÿ“ง **Email Notifications**: Automated alerts and reports
- ๐Ÿ“Š **Advanced Analytics**: Business intelligence and insights
- ๐Ÿ”„ **Auto-Updates**: Automatic software update system
- ๐ŸŒ **Multi-Language**: Support for Arabic and other languages
- ๐Ÿ“ค **Data Export**: Excel and PDF report generation
- ๐Ÿ”” **Smart Alerts**: AI-powered inventory predictions

---

## โš ๏ธ Important Notes

- **๐Ÿฅ Desktop Application**: Designed specifically for Windows desktop environments
- **๐Ÿ—„๏ธ Database Dependency**: Requires SQL Server LocalDB for full functionality
- **๐Ÿ“ File Path Critical**: Ensure correct database file path configuration
- **๐Ÿ”’ Credential Security**: Default login credentials should be changed in production
- **๐Ÿ’พ Regular Backups**: Implement regular data backup procedures
- **๐Ÿ–ฅ๏ธ System Requirements**: Verify .NET Framework compatibility
- **๐Ÿ”ง Development Environment**: Visual Studio required for code modifications
- **๐Ÿ“Š Data Integrity**: Always validate data before making changes

---

## ๐Ÿค Contributing

We welcome contributions to improve the Pharmacy Management System! Here's how to contribute:

### **Getting Started**

1. **Fork the repository** - Click the "Fork" button at the top right

2. **Clone your fork**

```bash
git clone https://github.com/YourUsername/Pharmacy-Management.git
```

3. **Create a feature branch**

```bash
git checkout -b feature/your-feature-name
```

4. **Make your changes**

- Follow C# coding standards
- Test thoroughly on Windows environment
- Update documentation as needed

5. **Commit your changes**

```bash
git add .
git commit -m "Add: detailed description of your changes"
```

6. **Push to your branch**

```bash
git push origin feature/your-feature-name
```

7. **Submit a Pull Request**
- Provide clear description of changes
- Include screenshots for UI modifications
- Reference any related issues

### **Contribution Guidelines**

- Follow Microsoft C# coding conventions
- Include unit tests for new functionality
- Update README for new features
- Ensure backward compatibility
- Test on multiple Windows versions

---

## ๐Ÿ“ช Feedback

๐Ÿ’ก **Found bugs or have suggestions?**
We value your feedback to make this system better!

**GitHub Issues**: [Report bugs or request features](https://github.com/OmarrSakr/Pharmacy-Management/issues)

**Email Contact**:

Email Me

**What to Include:**

- Detailed bug descriptions
- Steps to reproduce issues
- System environment information
- Feature enhancement suggestions
- Screenshots if applicable

Your feedback helps improve healthcare management efficiency! ๐Ÿฅ

---

## ๐Ÿ“œ License

Licensed under the **MIT License**.
See the [LICENSE](./LICENSE.md) file for complete details.

---

**โญ If you found this project helpful, please give it a star! โญ**

*Built with โค๏ธ by Omar Sakr*

[![Follow on GitHub](https://img.shields.io/github/followers/OmarrSakr?style=social)](https://github.com/OmarrSakr)