0% found this document useful (0 votes)
461 views26 pages

Report of Online Medical Store

This document provides a summary of an online medical store management system. It discusses the purpose of developing a computerized system to automate the existing manual process. It aims to store medical data for long periods of time and allow for easy access and manipulation of records. The system is designed to be error-free, secure, reliable and fast. It discusses the various modules for customer management, orders, payments, medicine companies, medicines and stock. The objectives are to manage customer, medicine, order and payment details to reduce manual work. It provides benefits like customer satisfaction, reduced paperwork, improved productivity and ability to track medicine expiration dates.

Uploaded by

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

Report of Online Medical Store

This document provides a summary of an online medical store management system. It discusses the purpose of developing a computerized system to automate the existing manual process. It aims to store medical data for long periods of time and allow for easy access and manipulation of records. The system is designed to be error-free, secure, reliable and fast. It discusses the various modules for customer management, orders, payments, medicine companies, medicines and stock. The objectives are to manage customer, medicine, order and payment details to reduce manual work. It provides benefits like customer satisfaction, reduced paperwork, improved productivity and ability to track medicine expiration dates.

Uploaded by

Mathanika. M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

REPORT OF ONLINE MEDICAL STORE

Abstract:
The purpose of online medical store is to automate the existing manual
system by the help of computerized equipments and full-fleged compute
software, fulfilling their requirements, so that their valuable data/information
can be stored for a longer period with easy accessing and manipulation of
the same. The required software and hardware are easily available and easy
to work with.
Online Medical Store, as described above, can lead to error free, secure,
reliable and fast management system. It can assist the user to concentrate on
their other activities rather to concentrate on the recors keeping. Thus it will
help organization inbetter utilization of resources. The organization can
maintain computerzed records without redundant entires. That means that
oneneed not be distracted by information that is not relevant, while being able
to reach the information.
The aim is to automate its existing manual system by the help of
computerized equipments and full-fi=leged computer software, fulfilling their
requirements, so that their valuable data/information can be stored for a
longer period with easy accessing and manipulation and better services for
the clients.
Introduction:
The “Online Medical Store” has been developed to override the problems
prevailing in the practicing manual system. This software is supported to
eliminate and in some cases reduce the hardships faced by this existing
system. Moreover the system is designed for the particular need of the
company to carry out operations in a smooth and effective manner.
The application is reduced as much a possible to avoid errors while
entering the data. It also provides error message while entering invalid data.
No formal knowledge is needed for the user to use this system. Thus by this
all it proves it is user-friendly. Online Medical store, as described above, can
lead to error free, secure, reliable and fast management system. It can assist
the user to concentrate on their other activities rather to concentrate on the
record keeping. Thus it will help organization in better utilization of
resources.
Every organization, whether big or small, has challenges to overcome
and managing the information of Medicine Company, Customer, Medicine
stock, Payment, Order. Every Online Medical Store has different customer
needs, therefore we design exclusive employee management systems that are
adapted to your managerial requirements, This is designed to assist in
strategic planning, and will help you ensure that your organization is
equipped with the right level of information and details for your future goals.
Also, for those busy executive who are always on the go, our systems come
with remote access features, which will allow you to manage your workforce
anytime, at all times. These systems wil allow you to better manage
resources.
Objectives:

The main objective of the project on online medical store is to manage


the details customer, Medicine company, Medicine, Medicine stock, Order. It
manages all the information about Customer, Payment, Order, Customer. The
project is totally built at administrative end and thus only the administrator is
guaranteed the access. The purpose of the project is to built an application
program to reduce the manual work for managing the Customer, Medicine
Company, Payment, Medicine. It tracks all the details about the Medicine,
Medicine stock, Order.
Modules:
 Customer management module: Used for managing the
customer details.
 Order module: Used for managing the details of order.
 Payment module: Used for managing the details of payment
 Medicine company management module: Used for managing
the information and details of the medicine company.
 Medicine module: Used for managing the medicine details
 Medicine stock module: Used for managing the medicine
stock information.
 Login module: used for managing the login details
 User module: Used for managing the users of the system.
System analysis:
 The detail of medicine which are available in medical store is
easily managed and organized by using this system.
 The medical store management system also helps in keeping track
of the available stock of medicine and also update them on a regular
manner.
 It also helps in analyzing the location of the specific medicine
available in the medical store.
 This project also enables to store the detail of suppliers and the stocks
supplied by them.
 The medical store management system also provides the facility
of generated automatic bills for the customers.
 The database for the customers and employees can also be managed by
using this project.
 The designing of medical store management system saves the
time which one spent in keeping records and managing payments
of the stocks.
 The process of sailing medicine is very crucial as the medical
stores must keep eye on the expiry date of every stock and
medicine. This project helps the medical stores to keep track on the
expiry date of every medicine they have in the store.
Benifits:
 Customer Satisfaction – PMS system ensures every transaction is
accurate and processed quickly.
 Accessibility – Improved control over pharmacy operations.
 Reduced paperwork – Eliminates paper-based workflow and
simplifies data storage and retrieval.
 Better productivity – Enables the users to manage patient profiles,
manage processing and billing, smoothen their workflow, manage
accounts receivable, manage claims, and control inventory
management.
 Drug Documentation – Maintains drug profile repository with details
such as the composition of medicine and substitutes
 Barcode Labels – Automates barcode labeling of medication and
print expiry dates
 Influence Customer Shopping – CRM module facilitates sending
email and SMS alerts to consumers about enticing offers and
promotional schemes.
Software Requirements:
Operating system: Windows 98, Windows XP, Windows 7, Linux
Language: Java 2 runtime environment
Database: MYSQL server
Browser: Any of Mozilla, Opera, Chrome etc.,
Web Server: Tomcat 7
Software development kit: Java JDK 1.7 or
Above Scripting language enable: JSP (java
server pages) Database JDBC driver: MYSQL
Jconnector
Hardware Requirements:

Processor: Pentium III 630MHz


RAM: 128MB
Hard disk: 20GB
Monitor: 15” color monitor
Keyboard: 122 keys
Program:

Swing Packages

import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.table.*;

//DataBase Packages

import java.net.*;
import java.io.*;
import java.sql.*;

//Main Class

class PMSSwing extends JFrame implements ActionListener


{
private Statement st;
private Connection con;

//List of Labels
private JLabel lblOldMedicineID;
private JLabel lblMedicineID;
private JLabel lblMediTitle;
private JLabel lblQty;
private JLabel lblPrice;

//List of TextFields

private JTextField txtOldMedicineID;


private JTextField txtMedicineID;

//List of Buttons

private JButton btnSaveAdd;


private JButton btnSaveEdit;
private JButton btnSaveDelete;
private JButton btnAdd;

//List of Panel

private JPanel btnpanel;


private JPanel panel;
private JTable table;
//Table

private DefaultTableModel tmodel;

//Container

private Container cpane;

PMSSwing()
{ }

PMSSwing(int choice)
{
switch(choice)
{
case 1:
//Initial Window

setTitle("PHARMACY MANAGEMENT SYSTEM");


setBounds(275, 250, 450, 230);
setResizable(false);

//cotainer
cpane = getContentPane();

//components

tmodel = new DefaultTableModel();


table = new JTable(tmodel);
SetColHeader();

btnEdit.addActionListener(this);
btnDelete.addActionListener(this);
btnRefresh.addActionListener(this);
btnExit.addActionListener(this);

btnpanel.add(btnAdd);
btnpanel.add(btnEdit);
btnpanel.add(btnDelete);
btnpanel.add(btnRefresh);
btnpanel.add(btnExit);

cpane.add(new JScrollPane(table));
cpane.add(btnpanel, BorderLayout.SOUTH);
break;
case 2:
//Appending Window
setTitle("Addition of data...");
setBounds(275, 275, 400, 200);
setResizable(false);

//cotainer

cpane = getContentPane();
cpane.setLayout(new FlowLayout());

//Components

panel = new JPanel(new GridLayout(8, 1, 5, 0));

lblMedicineID = new JLabel(" MediID ");


lblMediTitle = new JLabel(" MediTitle ");
lblQty = new JLabel(" Qty ");
lblPrice = new JLabel(" Price ");

txtMedicineID = new JTextField(15);


txtMediTitle = new JTextField(15);
txtQty = new JTextField(15);
txtPrice = new JTextField(15);
btnpanel = new JPanel(new GridLayout(2, 1, 10, 5));
btnSaveAdd = new JButton ("Save");
btnCancel = new JButton ("Cancel");

btnSaveAdd.addActionListener(this);
btnCancel.addActionListener(this);

btnpanel.add(btnSaveAdd);
btnpanel.add(btnCancel);

cpane.add(panel);
cpane.add(btnpanel, BorderLayout.EAST);
break;
case 3:
//Editing window

setTitle("Updation of data...");
setBounds(350, 350, 400, 250);
setResizable(false);

//cotainer

cpane = getContentPane();
cpane.setLayout(new FlowLayout());
//Components

panel = new JPanel(new GridLayout(10, 1, 5, 0));


lblOldMedicineID = new JLabel(" OldMedicineID");
txtOldMedicineID = new JTextField(15);

lblMedicineID = new JLabel(" NewMediID ");


lblMediTitle = new JLabel(" MediTitle ");
lblQty = new JLabel(" Qty ");
lblPrice = new JLabel(" Price ");

txtMedicineID = new JTextField(15);


txtMediTitle = new JTextField(15);
txtQty = new JTextField(15);
txtPrice = new JTextField(15);

panel.add(lblOldMedicineID);
panel.add(txtOldMedicineID);
panel.add(lblMedicineID);
panel.add(txtMedicineID);
panel.add(lblMediTitle);
panel.add(txtMediTitle);
panel.add(lblQty);
panel.add(txtQty);
panel.add(lblPrice);
panel.add(txtPrice);
btnpanel = new JPanel(new GridLayout(2, 1, 10, 5));
btnSaveEdit = new JButton ("Save");
btnCancel = new JButton ("Cancel");
btnSaveEdit.addActionListener(this);
btnCancel.addActionListener(this);
btnpanel.add(btnSaveEdit);
btnpanel.add(btnCancel);
cpane.add(panel);
cpane.add(btnpanel, BorderLayout.EAST);
break;
case 4:
//Deleting window

setTitle("Removal of data...");
setBounds(300, 300, 300, 125);
setResizable(false);
//cotainer
cpane = getContentPane();
cpane.setLayout(new FlowLayout());
//Components
panel = new JPanel(new GridLayout(2, 1, 5, 0));
lblMedicineID = new JLabel("MedicineID to be
deleted: ");
txtMedicineID = new JTextField(15);
panel.add(lblMedicineID);
panel.add(txtMedicineID);
btnpanel.add(btnCancel);
cpane.add(panel);
cpane.add(btnpanel, BorderLayout.EAST);
break;
}

//Window Properties

setDefaultCloseOperation(HIDE_ON_CLOSE);
setVisible(true);

//conection to DataBase

ConnectToDatabase();
}

public void actionPerformed (ActionEvent ae)


{
if (ae.getSource() == btnAdd)
{
new PMSSwing(2);
}
else if (ae.getSource() == btnEdit)
{
new PMSSwing(3);
}
else if (ae.getSource() == btnDelete)
{
new PMSSwing(4);
}
else if (ae.getSource() == btnExit)
{
System.exit(0);
}
else if (ae.getSource() == btnCancel)
{
setVisible(false);
}
else if(ae.getSource() == btnSaveAdd)
{
AddData(txtMedicineID.getText(), txtMediTitle.getText(),
txtQty.getText(), txtPrice.getText());
txtMedicineID.setText("");
txtMediTitle.setText("");
txtQty.setText("");
txtPrice.setText("");
}
else if(ae.getSource() == btnSaveEdit)
{
EditData(txtMedicineID.getText(), txtMediTitle.getText(),
txtQty.getText(),txtPrice.getText(), txtOldMedicineID.getText());
txtOldMedicineID.setText("");
txtMedicineID.setText("");
txtMediTitle.setText("");
txtQty.setText("");
txtPrice.setText("");
}
else if(ae.getSource() == btnSaveDelete)
{
DeleteData(txtMedicineID.getText());
txtMedicineID.setText("");
}
else if(ae.getSource() == btnRefresh)
{
RetrieveData();
}
}

public static void main(String arg[])


{
PMSSwing c = new PMSSwing(1);
c.RetrieveData();
}
try
{
//prepare statement
String qry = "Insert into MediInfo values (?, ?, ?, ?)";
System.out.println(code + "\t"+title+ "\t"+hour+
"\t"+price);
//System.out.println("Read only "+con.isReadOnly());
//System.out.println("Closed "+con.isClosed());

PreparedStatement ps = con.prepareStatement(qry);

ps.setString(1, code);
ps.setString(2, title);
ps.setString(3, hour);
ps.setString(4,price);

ps.executeUpdate();
}
catch(Exception e) {System.out.println(e + "\t" +
e.getMessage()); }
}
private void EditData (String code, String title, String hour, String
price, String cond)
{
try
{
//prepare statement
String qry = "Update MediInfo set MedicineID = ?,
MediTitle = ?, Qty = ?, Price = ? where MedicineID = ?";
PreparedStatement ps = con.prepareStatement(qry);

ps.setString(1, code);
ps.setString(2, title);
ps.setString(3, hour);
ps.setString(4, price);

ps.setString(5, cond);

ps.executeUpdate();
}
catch(Exception e) {System.out.println(e); }
}

private void DeleteData (String cond)


{
try
catch(Exception e) {System.out.println(e); }
}

private void RetrieveData ()


{
try
{

int row = tmodel.getRowCount();


while(row > 0)
{
row--;
tmodel.removeRow(row);
}

//execute query
ResultSet rs = st.executeQuery("Select * from MediInfo");

//get metadata
ResultSetMetaData md = rs.getMetaData();
int colcount = md.getColumnCount();

Object[] data = new Object[colcount];


//extracting data
while (rs.next())
{
for (int i=1; i<=colcount; i++)
{
data[i-1] = rs.getString(i);
}
tmodel.addRow(data);
}
}
catch(Exception e) {System.out.println(e); }
}
Sample output:
Conclusion:

Requirements for the development or purchase of online medicine


booking systems should focus on their capability of sharing and using
information across the medication use cycle and the patient’s continuum of
care. These systems must support interoperability and standardization, and
enable multidirectional communication amongst all professionals involved
in the medication-use process.

You might also like