Project Report Medical
Project Report Medical
Project Report Medical
6. Conclusion
1.1 Title
1.2 Introductory/Objective
1.3 Preliminary investigation
1.4 Flaws in present system
1.5 Need of new system
Introduction/Objectives:
Features:
It tracks all the information of the sells, medicines, medical
shop etc.
Manage the information of the sell.
Deals with monitoring the information of medical shop.
Integration of all records of company.
Preliminary Investigation:
Interviewing
The information is collected from system leader by
interviewing to them a took suggesting from end user as per
their requirements.
1. Visiting
For classification, visited to Rajat medical store.
2. Questionnaires
By asking possible questions to the system leader at the
time of interview some questionnaires to collect the required
information.
Flaws in Present System
The existing medical store system is manual system. The
main drawback of the existing system is time consumption.
There are number of records and hence a larger number of
registers have to be kept to the store.
This document required more storing space,more
manpower and job become tedious.
In existing system following points are observed:
Chances of errors and data processing time
Timely due to manual process, required more time to
complete user requirement
It will increase updating is complicated.
Security of data were not maintain.
MEDICAL SHOP
MANAGEMENT
SYETEM
SYSTEM USER
CUSTOMER
MANAGEMENT
MANAGEMENT
LOGIN
MANAGEMENT
RECORD THE
COMPANY
DEATAILS
RECORD THE
Zero level data flow diagram
SELLS DETAILS
MEDICAL SHOP
LOGIN MANAGEMENT
MANAGEMENT SYSTEM REOCORD THE
LOGIN DETAILS
MEDICINES
MANAGEMENT RECORD THE
COMPANY MEDICINES
MANAGEMENT DETAILS
SELLS
MANAGEMENT
USER RECORD THE USER
MANAGEMENT DETAILS
DATA DICTIONARY:
USERS_DETAIL_TABLE:
3.SOFTWARE/HARDWARE
Hardware specification
Processor-Intel core i5
RAM-8GB
Software specification
Windows 10
Netbean java (JDK 1.6)
My SQL
4.SYSTEM DESIGN
package Files;
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.awt.event.WindowEvent;
import java.sql.*;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
public Login() {
initComponents();
conn = ConnectionToDatabase.connectToDb();
this.setExtendedState(this.getExtendedState() |
JFrame.MAXIMIZED_BOTH);
}
public void close(){
WindowEvent we = new
WindowEvent(this,WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postE
vent(we);
}
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.
DISPOSE_ON_CLOSE);
setTitle("Medical Store Management System");
setResizable(false);
jPanel1.setBorder(javax.swing.BorderFactory.createTitled
Border(null, "Sign In here",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Calibri", 0, 14), new java.awt.Color(102, 0,
0))); // NOI18N
jPanel1.setFont(new java.awt.Font("Calibri", 0, 14)); //
NOI18N
jLabel4.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/caduce
us-alone.png"))); // NOI18N
pack();
setLocationRelativeTo(null);
}// </editor-fold>
private void
loginBtnActionPerformed(java.awt.event.ActionEvent evt) {
try {
conn = ConnectionToDatabase.connectToDb();
String sql = "SELECT username,password FROM users
WHERE username=? AND password=?";
pst = conn.prepareStatement(sql);
pst.setString(1, userTxt.getText());
pst.setString(2, passTxt.getText());
rs = pst.executeQuery();
if (rs.next()) {
conn.close();
JOptionPane.showMessageDialog(null, "Welcome " +
userTxt.getText());
Try
{
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
UIManager.setLookAndFeel("com.jtattoo.plaf.alumini
um.AluminiumLookAndFeel");
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Login.class.getName
()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Login.class.getName
()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Login.class.getName
()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException
ex) {
java.util.logging.Logger.getLogger(Login.class.getName
()).log(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(() -> {
new Login().setVisible(true);
});
}
package Files;
import ChangePassword.ChangePassword;
import Companies.CompaniesPanel;
import Createuser.CreateUser;
import Forms.Medicines.MedicinesPanel;
import NewSalesRecord.NewSalesRecord;
import ProductCategory.AddCategory;
import SalesRecord.SalesRecord;
import java.awt.Toolkit;
import java.awt.event.WindowEvent;
import java.sql.*;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
import net.proteanit.sql.DbUtils;
public class MainPanel extends javax.swing.JFrame {
Connection conn = null;
PreparedStatement pst = null;
ResultSet rs = null;
public MainPanel() {
initComponents();
conn = ConnectionToDatabase.connectToDb();
this.setExtendedState(this.getExtendedState() |
JFrame.MAXIMIZED_BOTH);
updateTable();
}
public void close(){
WindowEvent we = new
WindowEvent(this,WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postE
vent(we);
}
try{
String sql = "SELECT product_name as 'Product
Name',company_name as 'Company Name',product_category as
'Product Category',quantity as 'Quantity',price_per_unit as 'Price
Per Unit' FROM products";
pst = conn.prepareStatement(sql);
rs = pst.executeQuery();
medicineTable.setModel(DbUtils.resultSetToTableMode
l(rs));
}catch(SQLException e){
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
setDefaultCloseOperation(javax.swing.WindowConstants.
DISPOSE_ON_CLOSE);
setResizable(false);
loggedInAsLbl.setFont(new java.awt.Font("Calibri", 0,
14)); // NOI18N
loggedInAsLbl.setForeground(new java.awt.Color(153, 0,
0));
loggedInAsLbl.setText("You're are logged in as :");
medicineTable.setModel(new
javax.swing.table.DefaultTableModel(
new Object [][] {
{},
{},
{},
{}
},
new String [] {
}
));
medicineTable.setColumnSelectionAllowed(true);
medicineTable.getTableHeader().setReorderingAllowed(fal
se);
jScrollPane1.setViewportView(medicineTable);
medicineTable.getColumnModel().getSelectionModel().set
SelectionMode(javax.swing.ListSelectionModel.SINGLE_SEL
ECTION);
medicineBtn.setFont(new java.awt.Font("Calibri", 0,
14)); // NOI18N
medicineBtn.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/Drug-
basket-icon.png"))); // NOI18N
medicineBtn.setText("Medicines");
medicineBtn.setIconTextGap(20);
medicineBtn.setRolloverSelectedIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/Drug-
basket-icon.png"))); // NOI18N
medicineBtn.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent
evt) {
medicineBtnActionPerformed(evt);
}
});
viewSalesRecordsBtn.setFont(new java.awt.Font("Calibri",
0, 14)); // NOI18N
viewSalesRecordsBtn.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/sales-
report-icon.png"))); // NOI18N
viewSalesRecordsBtn.setText("View Sale Records");
viewSalesRecordsBtn.setIconTextGap(20);
viewSalesRecordsBtn.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent
evt) {
viewSalesRecordsBtnActionPerformed(evt);
}
});
newSalesBtn.setFont(new java.awt.Font("Calibri", 0,
14)); // NOI18N
newSalesBtn.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/shop-
cart-add-icon.png"))); // NOI18N
newSalesBtn.setText("New Sales");
newSalesBtn.setIconTextGap(20);
newSalesBtn.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent
evt) {
newSalesBtnActionPerformed(evt);
}
});
changePasswordBtn.setFont(new java.awt.Font("Calibri",
0, 14)); // NOI18N
changePasswordBtn.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/Apps-
system-software-update-icon.png"))); // NOI18N
changePasswordBtn.setText("Change Password");
changePasswordBtn.setIconTextGap(20);
changePasswordBtn.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent
evt) {
changePasswordBtnActionPerformed(evt);
}
});
addNewProductCategoryBtn.setFont(new
java.awt.Font("Calibri", 0, 14)); // NOI18N
addNewProductCategoryBtn.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/Forms/categor
y-item-icon.png"))); // NOI18N
addNewProductCategoryBtn.setText("Add New Product
Category");
addNewProductCategoryBtn.setIconTextGap(20);
addNewProductCategoryBtn.addActionListener(new
java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent
evt) {
addNewProductCategoryBtnActionPerformed(evt);
}
});
loggedInAsLbl.getAccessibleContext().setAccessibleDescri
ption("");
pack();
setLocationRelativeTo(null);
}// </editor-fold>
private void
medicineBtnActionPerformed(java.awt.event.ActionEvent evt) {
MedicinesPanel mp = new MedicinesPanel();
close();
mp.setVisible(true);
}
private void
companiesBtnActionPerformed(java.awt.event.ActionEvent evt)
{
CompaniesPanel cp = new CompaniesPanel();
close();
cp.setVisible(true);
}
private void
viewSalesRecordsBtnActionPerformed(java.awt.event.ActionEv
ent evt) {
SalesRecord sr = new SalesRecord();
close();
sr.setVisible(true);
}
private void
newSalesBtnActionPerformed(java.awt.event.ActionEvent evt)
{
NewSalesRecord nsr = new NewSalesRecord();
close();
nsr.setVisible(true);
}
private void
changePasswordBtnActionPerformed(java.awt.event.ActionEve
nt evt) {
ChangePassword cp = new ChangePassword();
close();
cp.setVisible(true);
}
private void
logOutBtnActionPerformed(java.awt.event.ActionEvent evt) {
Login l = new Login();
close();
l.setVisible(true);
}
private void
createUserBtnActionPerformed(java.awt.event.ActionEvent evt)
{
CreateUser cu = new CreateUser();
close();
cu.setVisible(true);
}
private void
addNewProductCategoryBtnActionPerformed(java.awt.event.A
ctionEvent evt) {
AddCategory ac = new AddCategory();
ac.setVisible(true);
}
UIManager.setLookAndFeel("com.jtattoo.plaf.aluminium.Alu
miniumLookAndFeel");
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(MainPanel.class.get
Name()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(MainPanel.class.get
Name()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(MainPanel.class.get
Name()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException
ex) {
java.util.logging.Logger.getLogger(MainPanel.class.get
Name()).log(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(() -> {
new MainPanel().setVisible(true);
});
}
import javax.swing.UIManager;
import java.sql.*;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class UserRegistration extends javax.swing.JFrame {
Connection conn = null;
PreparedStatement pst = null;
ResultSet rs = null;
public UserRegistration() {
initComponents();
conn = ConnectionToDatabase.connectToDb();
this.setExtendedState(this.getExtendedState() |
JFrame.MAXIMIZED_BOTH);
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated
Code">
private void initComponents() {
setDefaultCloseOperation(javax.swing.WindowConstants.
DISPOSE_ON_CLOSE);
setBounds(new java.awt.Rectangle(0, 0, 1352, 679));
setResizable(false);
jPanel1.setBorder(javax.swing.BorderFactory.createTitled
Border(null, "User Registration",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Calibri", 0, 16), new java.awt.Color(102, 0,
0))); // NOI18N
jLabel7.setFont(new java.awt.Font("Calibri", 0, 14)); //
NOI18N
jLabel7.setText("User Type");
userTypeCombo.setFont(new java.awt.Font("Calibri", 0,
14)); // NOI18N
userTypeCombo.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "User",
"Admin" }));
fullnameTxt.setFont(new java.awt.Font("Calibri", 0,
14)); // NOI18N
pack();
setLocationRelativeTo(null);
}// </editor-fold>
private void
registerBtnActionPerformed(java.awt.event.ActionEvent evt) {
try{
String sql = "INSERT INTO users
(fullname,email,contact_no,address,username,password,user_ty
pe) VALUES (?,?,?,?,?,?,?)";
pst = conn.prepareStatement(sql);
pst.setString(1, fullnameTxt.getText());
pst.setString(2, emailTxt.getText());
pst.setString(3, contactNoTxt.getText());
pst.setString(4, addressTxt.getText());
pst.setString(5, userTxt.getText());
pst.setString(6, passTxt.getText());
pst.setString(7,
userTypeCombo.getSelectedItem().toString());
pst.execute();
conn.close();
JOptionPane.showMessageDialog(null, "Account has
been registered!");
}catch(Exception e){
JOptionPane.showMessageDialog(null,
e.getMessage());
}
}
private void
userTxtActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
INPUT SCREENS:
1)login form
2)main form:
3)registration form
4) company details form
Conclusion:
Finally in medical shop management system,we developed a
secure user friendly medical shop management system. This
project is basically provide a product details, company details
and also sales records of the particular medical shop. First up all
our project is designed for any particular medical shop who are
like to upgrade their records in computer with full security rather
than paper based records.
In future this system can be modified and will overcome all the
limitations explain above.if in this system we add accounting,it
becomes more useful to the users. This system keeps all the
records of products and sales thus this systems is more useful in
future if it is modified.