Professional Documents
Culture Documents
2. Existing System :-
3 . Objectives :-
To provide computerised data storege facility.
We can search easily any record.
The new system requires less time for completion of any work.
All the stock of medicine is update automatically in the new system.
The system is user friendly and any one having computer knowledge
can handle it easily.
Suitability for computerized data entry. Maintaining stock, Supplier
information,Customer information & bill information are easy.
New system is provided security against unauthorized user.
1
MEDICAL STORE MANAGEMENT SYSTEM
2
MEDICAL STORE MANAGEMENT SYSTEM
3
MEDICAL STORE MANAGEMENT SYSTEM
4
MEDICAL STORE MANAGEMENT SYSTEM
5
MEDICAL STORE MANAGEMENT SYSTEM
6
MEDICAL STORE MANAGEMENT SYSTEM
7
MEDICAL STORE MANAGEMENT SYSTEM
8
MEDICAL STORE MANAGEMENT SYSTEM
9
MEDICAL STORE MANAGEMENT SYSTEM
10
MEDICAL STORE MANAGEMENT SYSTEM
11
MEDICAL STORE MANAGEMENT SYSTEM
12
MEDICAL STORE MANAGEMENT SYSTEM
13
MEDICAL STORE MANAGEMENT SYSTEM
Proecss Algorithm
Login Process :-
This process checks the authentication and admin can able to access the
application.
Purchase process :-
Supplier gives the information about purchase item information.
Stock Process :-
Stock gives the information about which current stock is available.
Sales Process:-
Admin enter the sales information also check the detail in retrieve from
the sales _Mst.
14
MEDICAL STORE MANAGEMENT SYSTEM
15
MEDICAL STORE MANAGEMENT SYSTEM
Proecss Algorithm
Step 5:- If medicine are available then medicine are sales and go Go to step 8 Else if
medicine are purchase and go to step 6
Step 6:- If medicine are Not available then medicine are Purchase and go Go to Step 8
16
MEDICAL STORE MANAGEMENT SYSTEM
17
MEDICAL STORE MANAGEMENT SYSTEM
FORM SPLASH
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;
namespace OmMedical
{
public partial class frmSplash : Form
{
public frmSplash()
{
InitializeComponent();
}
18
MEDICAL STORE MANAGEMENT SYSTEM
}
else if (this.progressBar1.Value == 100)
{
frm.Show();
timer1.Enabled = false;
this.Hide();
}
}
}
}
FRM LOGIN
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Speech.Synthesis;
using Medical_BLL.Logic;
using Medical_BLL.Props;
namespace OmMedical
{
public partial class frmLogin : Form
{
SqlConnection con = null;
DataSet ds = new DataSet();
DataTable dt = new DataTable();
conn cs = new conn();
public static String Admin;
private StringBuilder errors;
private Regex validator;
public frmLogin()
{
InitializeComponent();
}
//private bool AreFieldsValid()
//{
19
MEDICAL STORE MANAGEMENT SYSTEM
// if (!validator.IsMatch(txtpassword.Text))
// errors.AppendLine("Password is not in the proper formate.");
// if (errors.ToString() == String.Empty)
// {
// return true;
// }
// else
// {
// MessageBox.Show(errors.ToString(), "Validation
Failed",MessageBoxButtons.OK,MessageBoxIcon.Error);
// }
//}
private bool AreFieldsValid()
{
//Validate Address
validator = new Regex(@"^[0-9a-zA-Z\@\.]+$");
if (!validator.IsMatch(txtpassword.Text))
errors.AppendLine("Password is not in the proper format.");
if (errors.ToString() == String.Empty)
{
return true;
}
else
{
MessageBox.Show(errors.ToString(), "Validation Failed",
MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}
}
public static string GetEncryptedPassword(string pstrStringToEncrypt)
{
if (string.IsNullOrEmpty(pstrStringToEncrypt))
throw (new ApplicationException("Argument cann't be null in the function
GetEncryptedPassword (Core Module / Security)"));
20
MEDICAL STORE MANAGEMENT SYSTEM
try
{
using (con = new SqlConnection(cs.DBconn))
{
con.Open();
SqlCommand cmd = new SqlCommand("GetStatus", con);
cmd.Parameters.Add("@IP_NAME", SqlDbType.NVarChar, 50).Value =
txtusername.Text.Trim().ToUpper();
cmd.CommandType = CommandType.StoredProcedure;
SqlDataReader rdr = cmd.ExecuteReader();
while (rdr.Read())
{
label3.Text = (String)rdr["Isactive"];
label3.Text = label3.Text.Trim();
}
rdr.Dispose();
con.Close();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error",MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
con.Close();
}
}
private void button1_Click(object sender, EventArgs e)
{
if (txtusername.Text == "")
{
21
MEDICAL STORE MANAGEMENT SYSTEM
//}
//else
//{
// MessageBox.Show("Your Licence is expired", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
//}
}
else
{
if (label3.Text == "F")
22
MEDICAL STORE MANAGEMENT SYSTEM
{
txtpassword.Text = "";
frmforgetPassword frm = new frmforgetPassword();
frm.ShowDialog();
}
else
{
}
}
}
else
{
txtusername.Text = "";
txtpassword.Text = "";
MessageBox.Show("Login Failed...Try again !", "Login Denied",
MessageBoxButtons.OK, MessageBoxIcon.Error);
txtusername.Focus();
}
}
}
}
}
23
MEDICAL STORE MANAGEMENT SYSTEM
System.Windows.Forms.Application.Exit();
}
}
finally
{
}
}
}
}
FRM FORGETPASSWORD
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OmMedical
{
public partial class frmforgetPassword : Form
{
public static String Admin;
SqlConnection con = null;
DataSet ds = new DataSet();
24
MEDICAL STORE MANAGEMENT SYSTEM
try
{
using (con = new SqlConnection(cs.DBconn))
{
con.Open();
SqlCommand cmd = new SqlCommand("Proc_GetUserName", con);
SqlDataReader rdr = cmd.ExecuteReader();
while (rdr.Read())
{
txtname.Text = (String)rdr["User_Name"];
txtname.Text = txtname.Text.Trim();
}
rdr.Dispose();
con.Close();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
con.Close();
}
}
private void frmforgetPassword_Load(object sender, EventArgs e)
{
getname();
}
25
MEDICAL STORE MANAGEMENT SYSTEM
//this.Close();
MessageBox.Show("your new password = "+ txtpassword.Text + "",
"Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
frmLogin frm = new frmLogin();
frm.Show();
this.Close();
}
else
{
26
MEDICAL STORE MANAGEMENT SYSTEM
con.Close();
}
}
else
{
27
MEDICAL STORE MANAGEMENT SYSTEM
if (string.IsNullOrEmpty(pstrStringToEncrypt))
throw (new ApplicationException("Argument cann't be null in the function
GetEncryptedPassword (Core Module / Security)"));
}
}
}
}
FRM PURCHASE
using Medical_BLL.Logic;
using Medical_BLL.Props;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
28
MEDICAL STORE MANAGEMENT SYSTEM
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OmMedical
{
public partial class frmMedicanPurchase : Form
{
DataTable dtable = new DataTable();
SqlConnection con = null;
DataSet ds = new DataSet();
public static string ID;
DataTable dt = new DataTable();
conn cs = new conn();
public frmMedicanPurchase()
{
InitializeComponent();
}
}
private void getMedicanRegistred()
{
try
{
29
MEDICAL STORE MANAGEMENT SYSTEM
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
con.Close();
}
}
private void Save()
{
if (txtMname.Text == "")
{
30
MEDICAL STORE MANAGEMENT SYSTEM
31
MEDICAL STORE MANAGEMENT SYSTEM
}
else
if (pobj.OpErrorCode == "3")
{
MessageBox.Show("Duplicate Entry", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
else
{
MessageBox.Show("Record not insert", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
32
MEDICAL STORE MANAGEMENT SYSTEM
ID = Convert.ToString(dataGridView1.Rows[e.RowIndex].Cells["Id"].Value);
this.Hide();
frmEditMedican frm = new frmEditMedican();
frm.ShowDialog();
}
}
}
33
MEDICAL STORE MANAGEMENT SYSTEM
}
}
}
}
namespace OmMedical
{
public partial class frmEditMedican : Form
{
public static string Id;
SqlConnection con=null;
conn cs = new conn();
public frmEditMedican()
{
if (frmMedicanPurchase.ID != null)
{
Id = frmMedicanPurchase.ID;
}
InitializeComponent();
}
34
MEDICAL STORE MANAGEMENT SYSTEM
{
con.Open();
DataSet ds1 = new DataSet();
SqlCommand cmd = new SqlCommand("Proc_GetMedicanDetails", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@IP_MedicanId", SqlDbType.Int, 50).Value = Id;
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(ds1);
if (ds1.Tables[0].Rows.Count > 0)
{
lblid.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Id"]);
txtMname.Text =
Convert.ToString(ds1.Tables[0].Rows[0]["Medican_Name"]);
txtsalt.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Drug"]);
txtbatch.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Batch_Number"]);
txtquantity.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Quantity"]);
txtprate.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Purchase_Rate"]);
txtMRP.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Sale_Rate"]);
Mfgdate.Text = Convert.ToString(ds1.Tables[0].Rows[0]["MFG_Date"]);
EXPdate.Text = Convert.ToString(ds1.Tables[0].Rows[0]["Expire_Date"]);
txtGST.Text=Convert.ToString(ds1.Tables[0].Rows[0]["GST"]);
txtHSN.Text = Convert.ToString(ds1.Tables[0].Rows[0]["HSN"]);
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
con.Close();
}
}
35
MEDICAL STORE MANAGEMENT SYSTEM
return;
}
if (txtsalt.Text == "")
{
MessageBox.Show("Please enter Saltdrug name", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
txtsalt.Focus();
return;
}
if (txtbatch.Text == "")
{
MessageBox.Show("Please enter batch number", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
txtbatch.Focus();
return;
}
if (txtquantity.Text == "")
{
MessageBox.Show("please enter Quanitity", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
txtquantity.Focus();
return;
}
if (txtMRP.Text == "")
{
MessageBox.Show("Please enter MRP of product", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
txtMRP.Focus();
return;
}
if (txtprate.Text == "")
{
MessageBox.Show("Please enter price of product", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
txtprate.Focus();
return;
}
if (txtGST.Text == "")
{
MessageBox.Show("Please enter GST rate", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
txtGST.Focus();
return;
}
if (txtHSN.Text == "")
{
MessageBox.Show("Please enter HSN Number ", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
txtHSN.Focus();
return;
36
MEDICAL STORE MANAGEMENT SYSTEM
}
String date = DateTime.Now.ToString("dd/MM/yyyy");
CMedicanPurchaseProps pobj = new CMedicanPurchaseProps();
CMPurchaseLogic lobj = new CMPurchaseLogic();
pobj.MedicanName = txtMname.Text.Trim();
pobj.Drug = txtsalt.Text.Trim();
pobj.BatchNumber = txtbatch.Text.Trim();
pobj.Quantity = txtquantity.Text.Trim();
pobj.PurchaseRate = Convert.ToDecimal(txtprate.Text.Trim());
pobj.PurchaseDate = date;
pobj.MFGDate = Mfgdate.Text.Trim();
pobj.ExpireDate = EXPdate.Text.Trim();
pobj.SaleRate = Convert.ToDecimal(txtMRP.Text.Trim());
pobj.Id = Convert.ToInt32(lblid.Text.Trim());
pobj.GST = txtGST.Text.Trim();
pobj.HSN = txtHSN.Text.Trim();
pobj = lobj.UpdateMedicanDetails(pobj);
if (pobj.OpErrorCode == "0")
{
MessageBox.Show("Record Update successfuly", "Result",
MessageBoxButtons.OK, MessageBoxIcon.Information);
dataGridView1.Visible = true;
getMedicanRegistred();
}
private void getMedicanRegistred()
{
try
{
37
MEDICAL STORE MANAGEMENT SYSTEM
dataGridView1.Columns[1].HeaderText = "Medican_Name";
dataGridView1.Columns[2].HeaderText = "Drug";
dataGridView1.Columns[3].HeaderText = "Batch_Number";
dataGridView1.Columns[4].HeaderText = "Quantity";
dataGridView1.Columns[5].HeaderText = "MFG_Date";
dataGridView1.Columns[6].HeaderText = "Expire_Date";
dataGridView1.Columns[7].HeaderText = "Sale_Rate";
dataGridView1.Columns[8].HeaderText = "Purchase_Rate";
dataGridView1.AutoGenerateColumns = false;
dataGridView1.AllowUserToAddRows = false;
dataGridView1.Columns[0].Width = 70;
dataGridView1.Columns[1].Width = 170;
dataGridView1.Columns[2].Width = 180;
dataGridView1.Columns[3].Width = 100;
dataGridView1.Columns[4].Width = 80;
dataGridView1.Columns[5].Width = 100;
dataGridView1.Columns[6].Width = 100;
dataGridView1.Columns[7].Width = 100;
dataGridView1.Columns[8].Width = 90;
//dataGridView1.Columns[9].Width = 90;
ds.Dispose();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
con.Close();
}
}
38
MEDICAL STORE MANAGEMENT SYSTEM
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
}
}
}
}
39
MEDICAL STORE MANAGEMENT SYSTEM
FRM SALE
using Medical_BLL.Logic;
using Medical_BLL.Props;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace OmMedical
{
public partial class frmSale : Form
{
}
//private void addbuttongirdtransctionDelete()
//{
// DataGridViewLinkColumn Showlink = new DataGridViewLinkColumn();
// Showlink.UseColumnTextForLinkValue = true;
// Showlink.HeaderText = "Delete";
40
MEDICAL STORE MANAGEMENT SYSTEM
// Showlink.Width = 60;
// Showlink.DataPropertyName = "lnkColumn";
// Showlink.LinkBehavior = LinkBehavior.SystemDefault;
// Showlink.Text = "Delete";
// dataGridView1.Columns.Add(Showlink);
//}
rand();
addbuttongirdtransction();
//addbuttongirdtransctionDelete();
//label9.Visible = false;
//textBox4.Visible = false;
//label11.Visible = false;
lbldiscountgiven.Visible = false;
button4.Visible = false;
dataGridView1.Visible = false;
//getBillNumber();
getMedicanname();
}
// con.Open();
// DataSet ds = new DataSet();
// SqlCommand cmd1 = new SqlCommand("GetBillNumber", con);
// cmd1.CommandType = CommandType.StoredProcedure;
// SqlDataAdapter da = new SqlDataAdapter(cmd1);
// da.Fill(ds);
// if (ds.Tables[0].Rows.Count > 0)
// {
// lblbillNum.Text = Convert.ToString(ds.Tables[0].Rows[0]["Billno"]);
41
MEDICAL STORE MANAGEMENT SYSTEM
// }
// if (lblbillNum.Text == "")
// {
// lblbillNum.Text = "1";
// }
// else
// {
// }
// finally
// {
// con.Close();
// }
//}
private void GetSaleMedicanDetails()
{
try
{
42
MEDICAL STORE MANAGEMENT SYSTEM
43
MEDICAL STORE MANAGEMENT SYSTEM
}
if (textBox2.Text == "")
{
MessageBox.Show("Please enter doctor name", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
textBox2.Focus();
return;
}
if (textBox3.Text == "")
{
MessageBox.Show("Please enter medicine name", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
textBox3.Focus();
return;
}
if (txtQuantity.Text == "")
{
MessageBox.Show("Please enter quantity", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
txtQuantity.Focus();
return;
}
44
MEDICAL STORE MANAGEMENT SYSTEM
pobj.Name = textBox1.Text.Trim();
pobj.Dname = "Dr." + textBox2.Text.Trim();
pobj.Mname = textBox3.Text.Trim();
pobj.BatchName = lblbatch.Text.Trim();
pobj.MGGdate = lblmfg.Text.Trim();
pobj.ExpireDate = lblexpire.Text.Trim();
pobj.Quantity = txtQuantity.Text.Trim();
pobj.SaleRate = Convert.ToDecimal(lblrate.Text.Trim());
pobj.Amount = Convert.ToDecimal(lblAmount.Text.Trim());
pobj.Date = lbldate.Text.Trim();
int TotalQ = Convert.ToInt32(lbltotalQ.Text.Trim());
int Quant = Convert.ToInt32(txtQuantity.Text.Trim());
int RemaingQ = TotalQ - Quant;
pobj.ReamingQuantity = Convert.ToString(RemaingQ);
pobj = lobj.SaleMedican(pobj);
if (pobj.OpErrorCode == "0")
{
MessageBox.Show("Record insert successfuly", "Result",
MessageBoxButtons.OK, MessageBoxIcon.Information);
dataGridView1.Visible = true;
GetSaleMedicanDetails();
button4.Visible = true;
txttotalamount.Visible = true;
Gettotal();
textBox3.Text = "";
textBox3.Focus();
lblbatch.Text = "";
lblmfg.Text = "";
lblexpire.Text = "";
txtQuantity.Text = "";
lblrate.Text = "";
lblAmount.Text = "";
lbltotalQ.Text = "";
}
else
if (pobj.OpErrorCode == "3")
{
MessageBox.Show("Duplicate Entry", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
else
{
MessageBox.Show("Record not insert", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
45
MEDICAL STORE MANAGEMENT SYSTEM
}
finally
{
46
MEDICAL STORE MANAGEMENT SYSTEM
lbldiscountgiven.Text = Convert.ToString(discountgiven);
lblsaleprice.Text = Convert.ToString(salePrice);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
}
catch (Exception ex)
{
}
finally
{
con.Close();
}
47
MEDICAL STORE MANAGEMENT SYSTEM
textBox1.Text = "";
textBox1.Focus();
textBox3.Text = "";
textBox2.Text = "";
lblbatch.Text = "";
lblmfg.Text = "";
lblexpire.Text = "";
txtQuantity.Text = "";
lblrate.Text = "";
lblAmount.Text = "";
lbltotalQ.Text = "";
}
}
catch (Exception ex)
48
MEDICAL STORE MANAGEMENT SYSTEM
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
con.Close();
}
}
private void Gettotal()
{
try
{
if (txttotalamount.Text == "")
{
txttotalamount.Text = "0";
}
else
{
String Amount = Convert.ToString(ds.Tables[0].Rows[0]["Amount"]);
decimal MAmount = Convert.ToDecimal(Amount);
Decimal GAmount = Convert.ToDecimal(txttotalamount.Text);
Decimal Amount2 = MAmount + GAmount;
txttotalamount.Text = Convert.ToString(Amount2);
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
49
MEDICAL STORE MANAGEMENT SYSTEM
}
finally
{
con.Close();
}
}
try
{
if (txtQuantity.Text == "")
{
txtQuantity.Text = "0";
}
else
{
int Q = Convert.ToInt32(txtQuantity.Text);
decimal rate = Convert.ToDecimal(lblrate.Text);
decimal amount = rate * Q;
lblAmount.Text = Convert.ToString(amount);
// lblTamount.Text = lblAmount.Text + 0;
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
finally
{
}
}
50
MEDICAL STORE MANAGEMENT SYSTEM
// label9.Visible = true;
// textBox4.Visible = true;
// label11.Visible = true;
// lbldiscountgiven.Visible = true;
// }
// else
// {
// label9.Visible = false;
// textBox4.Visible = false;
// label11.Visible = false;
// lbldiscountgiven.Visible = false;
// }
//}
//lblGSTAMT.Text="";
//lblSgst.Text = "";
//lblCgst.Text = "";
//textBox5.Text = "";
//lblsaleprice.Text = "";
//lbldiscountgiven.Text = "";
//textBox4.Text = "";
//textBox1.Text = "";
//textBox1.Focus();
//textBox3.Text = "";
//textBox2.Text = "";
//lblbatch.Text = "";
51
MEDICAL STORE MANAGEMENT SYSTEM
//lblmfg.Text = "";
//lblexpire.Text = "";
//txtQuantity.Text = "0";
//lblrate.Text = "";
//lblAmount.Text = "";
//lbltotalQ.Text = "";
//lblGSTAmount.Text = "";
}
else
if (pobj.OpErrorCode == "3")
{
MessageBox.Show("Duplicate Entry", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
else
{
MessageBox.Show("Record not insert", "Error", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
}
}
private void dataGridView1_CellContentClick(object sender,
DataGridViewCellEventArgs e)
{
if (e.ColumnIndex == 0)
{
52
MEDICAL STORE MANAGEMENT SYSTEM
ID = Convert.ToString(dataGridView1.Rows[e.RowIndex].Cells["Id"].Value);
BillNo =
Convert.ToString(dataGridView1.Rows[e.RowIndex].Cells["BillNo"].Value);
// MName =
Convert.ToString(dataGridView1.Rows[e.RowIndex].Cells["MedicanName"].Value);
frmEditSale frm = new frmEditSale();
frm.ShowDialog();
}
}
if (e.ColumnIndex == 1)
{
if (MessageBox.Show("Do you really want to Delete this record?", "Confirmation",
MessageBoxButtons.YesNo, MessageBoxIcon.Question) ==
System.Windows.Forms.DialogResult.Yes)
{
Delete();
}
}
}
53
MEDICAL STORE MANAGEMENT SYSTEM
}
}
}
}
54
MEDICAL STORE MANAGEMENT SYSTEM
Login
55
MEDICAL STORE MANAGEMENT SYSTEM
Main Menu
Purchase Form
56
MEDICAL STORE MANAGEMENT SYSTEM
Sale Form
57
MEDICAL STORE MANAGEMENT SYSTEM
DemandForm
58
MEDICAL STORE MANAGEMENT SYSTEM
Refund Form
59
MEDICAL STORE MANAGEMENT SYSTEM
60
MEDICAL STORE MANAGEMENT SYSTEM
Purchase Output
Sale Ouput
61
MEDICAL STORE MANAGEMENT SYSTEM
Bill Report
62
MEDICAL STORE MANAGEMENT SYSTEM
63
MEDICAL STORE MANAGEMENT SYSTEM
TESTING
Validation Testing
In Validation testing first of all we have check that all the requirements
which was given for Administration like product is fulfilled or not.
All the requirements which were given for user side (i.e. viewing new
information comparison of two models) appropriately done or not.
Coding Testing
System Testing
FUTURE ENHANCEMENT
There is one segment named lab unit needed computer system to improve work .In this
system, we tried to make a simple application for user. We can change our system day by day
as per the user requirements will be changed. In future we want to implement below point in
our system.
64
MEDICAL STORE MANAGEMENT SYSTEM
System Analysis :-
Now a days we do all works with computerized system but with current system
is very compilcated to keep the track of all registers and handle manually . As well as this
work is time consuming and expensive in this system report work may be not accurate and
not fastest.
2. More expensive...
3. Searching problem...
5. Less accuracy...
7. More stationary...
2. Less expensive...
3. Powerfull searching..
5. More accuracy...
65
MEDICAL STORE MANAGEMENT SYSTEM
FEASIBILITY STUDY
There are major areas that determine the feasibilty of project .These all areas combine define
whether the project is feasbile or not .
1) Technical Feasibilty :
It is considered in terms of technical requirements ans their avalability
in the markets . It determines whether the current level of technology support the proposed
system or not . The technical possibility of proposed system is as follows :
The units does process the hardware as well as related software for the project.
The proposed system does not require much technical details.
The current manual working is not so much sufficient.
It just require window opreating system.
2) Economically Feasibilty :
The economically feasibilty is considered in terms of
money/price value . The organization measure the cost efficentiveness of the project . The
economical feasibilty of proposed system is as under:
The organization is ready to invest in proposed system for latest technology and
best result.
As the personnel and manager know the computer opreating, the unit need not
have appoint any computer operator.
The units has not be spend much amount for computer hardware and software.
3) Operational Feasiblity:
As the ultimate feasibilty ,consideration of the proposed
system will fullfill the department’s requirements . It decides whether the proposed
system covers all the opreational feasibilty is as under:
The proposed system will fulfill the organization’s requriments .
The proposed system covers all the aspects of current manual system.
The responsible users of the system i.e. manager ,accountant and partner are
honestly enthusiastic for new system.
The change of this system being oprational are quite strong.
66
MEDICAL STORE MANAGEMENT SYSTEM
PROPOSED SYSTEM
In proposed system ,the managment needs not to keep any type
of register , which they use to keep in old one . They have work only with one computer . All
the details are stored in computer files . The dual entires are done very qucikly as entry in one
file only, affects the other file where it has to record . In the way there is no need to record
the computer opreator.
The working through register system is not only very laborious and time consuming , but
there are number of errors found . In comparison to old system the proposed system of
computer processes many advantages.
● Accuracy:
It is one of the features of computer that is provides accuracy result. It
is often said,”Man does mistakes but machine never”. When a man works there seems
number of errors and mistakes in performing calculation and other things,while it is not in
case with computer
● Security:
The security is maintained vary comfortably in computers. Secrets
are not disclosed off,as there as password settings in the computers. So the frim can get the
benfiet of non-disclosed of its secrets to the outsiders competitor as well as other non-
authorized persons.
● Time Saving:
The computerized system is time saving. On immediate inquiry ,
the opreator or any authorized person has to just click some switches and get the information
in few seconds
. ● Perform Repetitve Task Very Well: It is said that computer never tries. I do the repetitive task
very well as it never feel laziness . Perfromance of repetitive task by man is not well.
● Low Cost:
The computer need not change year as it happens in case
of register . In register system clerk, employees and also managers are needed to fulfill the
management activity while in computer system the two persons are enough for all the work .
So in proposed system the two persons and expenses of registers are saved annually
67
MEDICAL STORE MANAGEMENT SYSTEM
● Easy Maintenance:
The maintenace of computer is not tough job as compared to the
registers,as it may not be lost or damaged . So there is only soft or easy maintenace with
computers.
● Easy Modification:
In case of any in data stored , the modification or editing can be
done vary easily and clearly through computers , but this is possible with registers.
Hardware Requirement:
Pentium processor
2 GB RAM
Software Requirment:
68
MEDICAL STORE MANAGEMENT SYSTEM
69
MEDICAL STORE MANAGEMENT SYSTEM
FUTURE ENHANCEMENT
70
MEDICAL STORE MANAGEMENT SYSTEM
71
MEDICAL STORE MANAGEMENT SYSTEM
BIBLOGRAPHY
Online Resources
Website Referred
www.codeproject.com
72
MEDICAL STORE MANAGEMENT SYSTEM
73