0% found this document useful (0 votes)
23 views6 pages

Oop Report

The document outlines a project report for a Medical Store Management System developed using C# and MySQL, focusing on Object-Oriented Programming principles such as encapsulation, inheritance, and polymorphism. It details the design, implementation, and testing of a login interface and backend logic, including user authentication and CRUD operations for managing medicines. The project concludes with suggestions for future improvements, such as enhanced security measures.

Uploaded by

Kaman Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views6 pages

Oop Report

The document outlines a project report for a Medical Store Management System developed using C# and MySQL, focusing on Object-Oriented Programming principles such as encapsulation, inheritance, and polymorphism. It details the design, implementation, and testing of a login interface and backend logic, including user authentication and CRUD operations for managing medicines. The project concludes with suggestions for future improvements, such as enhanced security measures.

Uploaded by

Kaman Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sindh Madressatul Islam University

Department Of Software Engineering


BSE2B
Subject : Object Oriented Programming
Course Instructor : Sir Amjad Ali Khawaja Project
: Medical Store Management System Group
Members :
1. SYED ABDUL UZAIR (BSE-23F-093)
2. KAMRAN ALAM (BSE-23F-061)
3. SHABAZ HANIF (BSE-23F-076)
Content

S.NO Desperation Page no


01 Introduction 1
02 Abstract 2
03 Results and Discussion 2

04 Conclusion 4
05 Reference 4
Medical store management system
Introduction
Object-Oriented Programming (OOP) is a programming paradigm based on the concept of
objects, which contain data and methods. C# is a versatile language that supports OOP
principles, making it suitable for developing complex applications. MySQL is a widely-used
relational database management system that facilitates backend data storage and retrieval.

This project aims to create a login interface using C# with backend connectivity to a MySQL
database for user authentication. It leverages Object-Oriented Programming (OOP)
principles to demonstrate encapsulation, inheritance, and polymorphism.

Objectives

1. Encapsulation: Protect data by defining user access levels.


2. Inheritance: Reuse code through class hierarchies.
3. Polymorphism: Implement interface methods in various ways.

Project Steps

1. Designing the User Interface:

➢ Develop a simple login form using C# (Windows Forms or WPF).


➢ The form will include fields for username and password, and buttons for
login and registration.

2. Implementing the Backend Logic:

➢ Create classes to handle user authentication.


➢ Implement business logic for validating user inputs and managing
sessions.

3. Connecting to a MySQL Database:

➢ Set up a MySQL database to store user credentials.


➢ Establish a connection between the C# application and the MySQL
database.
➢ Implement data access methods to handle user authentication.

4.Testing the Login Functionality:

➢ Conduct unit and integration tests to ensure the login system works as expected.
➢ Validate different scenarios like successful login, failed login, and handling invalid
inputs.

Page | 1
Abstract
This project report documents the development of a login interface using C# with MySQL
database connectivity, demonstrating the principles of Object-Oriented Programming (OOP).
The project aims to implement a functional login system that highlights key OOP concepts
such as encapsulation, inheritance, and polymorphism. The report covers the design,
implementation, and testing phases of the system.

Results and Discussion:


Design and Implementation
User Interface (UI)

Your UI consists of:

➢ Form1: A login form (textusername, textpassword, showpassword,


buttonsingn, buttonreset, etc.)
➢ Form2 : Another form for administrators (textid, textname, textmanu, combodosage,
textquantity, date, etc.)

Backend Logic

Form1

➢ Logging in with specific usernames and passwords (uzair, kamran, shahbaz).


➢ Admins are redirected to the adminstators form upon successful login.
➢ Password visibility toggle (showpassword checkbox).
➢ Exit button (buttonexit) to close the application.
➢ Clear buttons (button3, buttonreset) to clear input fields.

2.Form2:

➢ Loading data into a DataGridView from a database (GetStudentsRecord method).


➢ CRUD operations (buttoninsert, buttonupdate, buttondelete) for managing medicines.
➢ Reset button (buttonreset) to clear input fields.
➢ Data validation before database operations.  Displaying logged-in username (label7).

Page | 2
Database Connectivity

➢ SQL Server: Connection strings are provided (SqlConnection) to connect to the


database (medical-store-management-system).
➢ Queries: Used to SELECT, INSERT, UPDATE, and DELETE data from the Medicine table.
➢ Error Handling: Exception handling (try-catch) for database operations to manage
errors gracefully.

Testing

➢ To test the application:

➢ Ensure your SQL Server database (medical-store-managementsystem) is set up


correctly with the Medicine table.
➢ Test the login functionality with the provided usernames and passwords.
➢ Test the CRUD operations to verify that medicines can be inserted, updated, and
deleted correctly.
➢ Check for validation and error handling when empty fields or invalid data are
entered.

Conclusion :
This project successfully demonstrates the implementation of a login interface using C# with
MySQL database connectivity, showcasing the practical application of OOP principles. The use
of encapsulation, inheritance, and polymorphism in the design and implementation of the
project underscores the robustness and reusability of the code. Future improvements could
include enhanced security measures, such as password hashing and implementing multi-
factor authentication.

References :
Microsoft C# Programming Guide:

➢ https://docs.microsoft.com/en-us/dotnet/csharp/
➢ Comprehensive documentation covering C# language features, syntax, and best
practices.

MySQL Documentation:

➢ https://dev.mysql.com/doc/
➢ Detailed documentation for MySQL database, including installation,
configuration, and SQL syntax.

Page | 3
Page | 4

You might also like