Professional Documents
Culture Documents
“Develop a windows application for Medical Shop Management System and Perform
Crud operations”
Submitted by:
CERTIFICATE
Certified that this micro project report title “Develop a windows application for Medical
Shop Management System and Perform Crud operations” is the bonafide work of Pratik
Nichit Roll no: 1426 of year diploma in Information Technology for the course: Database
management Course code: 22416 during the academic year 2021-22, who carried out the
micro project work under my supervision.
CERTIFICATE
Certified that this micro project report title “Develop a windows application for Medical
Shop Management System and Perform Crud operations” is the bonafide work of Pawan
Pagare Roll no: 1427 of year diploma in Information Technology for the course: Database
management Course code: 22416 during the academic year 2021-22, who carried out the
micro project work under my supervision.
CERTIFICATE
Certified that this micro project report title “Develop a windows application for Medical
Shop Management System and Perform Crud operations” is the bonafide work of Ayuti
Pardeshi Roll no: 1428 of year diploma in Information Technology for the course: Database
management Course code: 22416 during the academic year 2021-22, who carried out the
micro project work under my supervision.
CERTIFICATE
Certified that this micro project report title “Develop a windows application for Medical
Shop Management System and Perform Crud operations” is the bonafide work of Saloni
Pavaskar Roll no: 1429 of year diploma in Information Technology for the course: Database
management Course code: 22416 during the academic year 2021-22, who carried out the
micro project work under my supervision.
CERTIFICATE
Certified that this micro project report title “Develop a windows application for Medical
Shop Management System and Perform Crud operations” is the bonafide work of
Aparna Pawar Roll no: 1430 of year diploma in Information Technology for the course:
Database management Course code: 22416 during the academic year 2021-22, who carried
out the micro project work under my supervision.
We would like to express our special thanks of gratitude to our friends our group
members as well as our teachers, who gave us opportunity to do this wonderful micro project
on the topic “Develop a Database for employee pay roll system of an organization Add
sample data and perform queries on it using GUI tool.” which also helped us in doing a
lot of Research and we came to know about so many new things we all really thankful to all
Secondly, we would also like to thank our parents and friends who helped us a lot in
VISION:
Achieve excellence in quality technical education by imparting knowledge, skills and abilities to
build a better technocrat.
MISSION:
M1: Empower the students by inculcating various technical and soft skills.
VISION:
“To confer technical education in IT field to generate value based output.”
MISSION:
PO1 Basic and Discipline specific knowledge: Apply knowledge of basic mathematics,
science and engineering fundamentals and engineering specialization to solve the
engineering problems.
PO2 Problem analysis: Identify and analyse well-defined engineering problems using
codified standard methods.
PO7 Life-long learning: Ability to analyses individual needs and engage in updating in
the context of technological changes.
Title 1
Certificate 2
Acknowledgement 6
1. Annexure I 10
2. Annexure II 14
3. Annexure III 33
4. Annexure IV 35
5. Log Book 40
7. Evaluation Sheet 7
Annexure-I
Micro-Project Proposal
1. Arrangement of groups and representatives for groups that are not usually
represented as partners in main projects.
6. An eligible project idea addressing one of the four Priority Axes and a work
plan for a micro project including a description of how the capacity building
and networking should take place.
7. The project involves maximum five partners. From five partners, the
contributions of micro project is distributed.
8. An eligible Lead member who will guide the group members and analyzed the
data.
16. Micro Project final submission 28/12/2021 2PM-3PM All Group Members
Micro-Project Report
4.0 Rational:
The main objective of the Medical Shop Management System is to manage the details
of Medical Shop, Stocks, Inventory, Sells, Company. It manages all the information
about Medical Shop, Medicines etc.
1. https://dev.mysql.com/doc/connector-net/en/connector-net-connections-
string.html
2. https://stackoverflow.com/questions/42080817/how-to-select-mysql-value-and-
store-it-into-a-variable-c-sharp
3. https://stackoverflow.com/questions/12977924/how-do-i-properly-exit-a-c-
sharp-application
4. https://drawsql.app/home?%F0%9F%91%8B&welcome-to-drawsql
8.0 Actual Methodology Followed
Introduction
DATA CODE
MAIN CODE:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
using System.Configuration;
namespace Medivision_DMA_project
{
public partial class Main_form : Form
{
// this is the primary key used for delete/ update operations
int id = 0;
int sale_id = 0;
int required_id = 0;
private MySqlConnection connection;
public Main_form()
{
InitializeComponent();
}
// clear function
public void clear()
{
Txt_product_name.Text = Txt_batch_no.Text = Txt_purchase_rate.Text
= Txt_Description.Text = Txt_mrp.Text = "";
Nud_quantity.Value = 0;
dt_exp_date.ResetText();
dt_Pack_date.ResetText();
}
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Data entered successfully 👍", "message",
MessageBoxButtons.OK);
clear();
}
else
{
MessageBox.Show("Please enter valid input ", "message",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Data Update successfully 👍", "message",
MessageBoxButtons.OK);
clear();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void button3_Click(object sender, EventArgs e)
{
DialogResult result = MessageBox.Show("Are you sure you want Delete
the Record ", "Warning", MessageBoxButtons.YesNo,
MessageBoxIcon.Warning);
if (result == DialogResult.Yes)
{
try
{
string connectionString;
connectionString =
"Server=localhost;Uid=root;password=pratik@123;Database=medivision_app;P
ort=3306;";
connection = new MySqlConnection(connectionString);
connection.Open();
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Record Delete successfully ");
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
}
else
{
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Data entered successfully 👍", "message",
MessageBoxButtons.OK);
}
catch (Exception error)
{
MessageBox.Show(error.Message);
}
connection.Open();
var query = "UPDATE purchase SET quantity = quantity - '" +
this.nud_Squantity.Text + "' WHERE product_id = ( SELECT product_ID
FROM sales WHERE sale_product_name = '" + this.cb_product_name.Text + "'
);";
//query = "(SELECT product_ID FROM purchase WHERE
product_name = '" + cb_product_name + "')";
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
clear();
}
catch (Exception error1)
{
MessageBox.Show(error1.Message);
}
}
private void button5_Click(object sender, EventArgs e)
{
var connectionString =
System.Configuration.ConfigurationManager.ConnectionStrings["connectionStr
ing"].ConnectionString;
connection = new MySqlConnection(connectionString);
connection.Open();
DataTable dt = new DataTable();
string query = "SELECT product_name FROM
medivision_app.purchase;";
connection = new MySqlConnection(connectionString);
connection.Open();
MySqlCommand cmd = new MySqlCommand(query, connection);
MySqlDataAdapter mySqlData = new MySqlDataAdapter(query,
connection);
mySqlData.Fill(dt);
cb_product_name.DataSource = dt;
cb_product_name.DisplayMember = "product_name";
connection.Close();
bt_Supdate.Visible = true;
cb_product_name.Text = "";
nud_Squantity.Text = "0";
}
try
{
string connectionString;
connectionString =
"Server=localhost;Uid=root;password=pratik@123;Database=medivision_app;P
ort=3306;";
connection = new MySqlConnection(connectionString);
connection.Open();
MySqlCommand cmd = new
MySqlCommand("sales_quanity_proceduares", connection);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("_quantity",
this.nud_Squantity.Text);
cmd.Parameters.AddWithValue("_product_name",
this.cb_product_name.Text);
cmd.Parameters.AddWithValue("_Sold_date", this.dt_sold_date.Text);
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Data Update successfully 👍", "message",
MessageBoxButtons.OK);
clear();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
try
{
string connectionString;
connectionString =
"Server=localhost;Uid=root;password=pratik@123;Database=medivision_app;P
ort=3306;";
connection = new MySqlConnection(connectionString);
connection.Open();
var query = "UPDATE purchase SET quantity = quantity - '" +
this.nud_Squantity.Text + "' WHERE product_id = ( SELECT product_ID
FROM sales WHERE sale_product_name = '" + this.cb_product_name.Text + "'
);";
//query = "(SELECT product_ID FROM purchase WHERE
product_name = '" + cb_product_name + "')";
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
clear();
}
catch (Exception error1)
{
MessageBox.Show(error1.Message);
}
}
private void button3_Click_1(object sender, EventArgs e)
{
string connectionString;
connectionString =
"Server=localhost;Uid=root;password=pratik@123;Database=medivision_app;P
ort=3306;";
connection = new MySqlConnection(connectionString);
connection.Open();
MySqlDataAdapter mySqlData = new
MySqlDataAdapter("Search_procedure", connection);
mySqlData.SelectCommand.CommandType=
CommandType.StoredProcedure;
mySqlData.SelectCommand.Parameters.AddWithValue("_search",
this.Txt_search.Text);
DataTable dt = new DataTable();
mySqlData.Fill(dt);
data_grid_stock.DataSource = dt;
data_grid_stock.Columns[0].Visible = false;
}
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Record Delete successfully ");
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
}
else
{
}
}
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Record Delete successfully ");
}
catch (Exception err)
{
MessageBox.Show(err.Message);
}
}
else
{
}
}
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Data entered successfully 👍", "message",
MessageBoxButtons.OK);
clear();
}
catch(Exception exp)
{
MessageBox.Show(exp.Message);
}
}
//Execute command
cmd.ExecuteNonQuery();
connection.Close();
MessageBox.Show("Data entered successfully 👍", "message",
MessageBoxButtons.OK);
clear();
}
else
{
MessageBox.Show("Please enter valid input ", "message",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Txt_product_name_req.Text =
data_grid_required.CurrentRow.Cells[2].Value.ToString();
date_req_date.Text =
data_grid_required.CurrentRow.Cells[8].Value.ToString();
nud_qty_req.Text =
data_grid_required.CurrentRow.Cells[4].Value.ToString();
Txt_purchase_rate_req.Text =
data_grid_required.CurrentRow.Cells[5].Value.ToString();
Txt_mrp_req.Text =
data_grid_required.CurrentRow.Cells[6].Value.ToString();
Txt_description_req.Text =
data_grid_required.CurrentRow.Cells[7].Value.ToString();
bt_update_req.Visible = true;
bt_delete_req.Visible = true;
required_id =
Convert.ToInt32(data_grid_required.CurrentRow.Cells[0].Value.ToString());
mySqlData.SelectCommand.Parameters.AddWithValue("_product_name",
var_product_name);
mySqlData.SelectCommand.Parameters.AddWithValue("_required_qty",
quantity_req);
mySqlData.SelectCommand.Parameters.AddWithValue("_req_date",
var_date);
mySqlData.SelectCommand.Parameters.AddWithValue("_purchase_rate",
purchase_rate);
mySqlData.SelectCommand.Parameters.AddWithValue("_Mpr_req",
mrp_req);
mySqlData.SelectCommand.Parameters.AddWithValue("_description_req",
description_req);
mySqlData.SelectCommand.Parameters.AddWithValue("_id",
required_id);
DataTable dt = new DataTable();
mySqlData.Fill(dt);
data_grid_required.DataSource = dt;
MessageBox.Show("Data updated Successfully 👍 ");
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
}
}
else
{
}
}
}
}
6.0 Actual Resources Used
Visual Studio
4. Internet/Websites https://dev.mysql.com/ 1
LOGIN PAGE
SIGN IN PAGE
Purchase Page
Sales Page
Stock Page
Add Requirements
The purpose this Medical Shop Management System is to reduce the complexities
of record keeping and documentation in the inventory management, payments,
stock, Purchase, Sales, Requirements.
(To be evaluated by the Concerned Teacher)
Annexure - III
7. Presentation of the Major information Includes major Includes major Well organized,
Micro-Project is not included, information but information but Includes major
information is not not well not well information,
well organized. organized not organized not presented well.
presented well. presented well.
Annexure IV
Annexure IV
Annexure IV
Annexure IV
Mrs. R.B.Gurav
1 Relevance to course
2 Literature review/information collection
3 Completion of target as per project proposal
4 Analysis of data and representation
5 Quality of prototype/model
6 Report Preparation
Total Out of (60)
Process and Product Assessment (A) :Total Out
of (06)
B) Individual Presentation/Viva(B)
Rubric Individual
Rubric 7 Individual
8 Presentati
Presentati
on/Viva
on/Viva Total
(Convert
Individual Individ (Addition (A+B
out of 08
Roll Enrollment Presentati ual of marks )
Name of Student marks into
No. No. on Viva in Rubric
out of 4)
7 to 8)
(B)
Marks Mark
Marks Marks out Marks out
out of s out
out of 10 of 20 of 04
10 of 10
1426 2001410095 Pratik Nichit
Mrs. R.B.Gurav