PHARMACY SHOP PROJECT REPORT, Study Guides, Projects, Research of Java Programming

PHARMACY SHOP PROJECT REPORT IS HERE WATCH IT NOW

Typology: Study Guides, Projects, Research

2018/2019

Uploaded on 09/29/2019

unknown user
unknown user 🇮🇳

1 document

1 / 50

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
PROJECT REPORT
ON
“PHARMACY MANAGEMENT SYSTEM”
Submitted in partial fulfilment of the requirements for the award of
Bachelor of Technology
In
Computer Science & Engineering
Submitted By: Submitted To:
Student Name - Vaibhav Jain Department of CSE
Student Roll No -1703189
Department of Computer Science & Engineering
CHANDIGARH ENGINEERING COLLEGE, LANDRAN
DECLARATION
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32

Partial preview of the text

Download PHARMACY SHOP PROJECT REPORT and more Study Guides, Projects, Research Java Programming in PDF only on Docsity!

PROJECT REPORT

ON

“PHARMACY MANAGEMENT SYSTEM”

Submitted in partial fulfilment of the requirements for the award of

Bachelor of Technology

In

Computer Science & Engineering

Submitted By: Submitted To:

Student Name - Vaibhav Jain Department of CSE Student Roll No -

Department of Computer Science & Engineering

CHANDIGARH ENGINEERING COLLEGE, LANDRAN

DECLARATION

I hereby declare that the Project Report entitled “Pharmacy Management System” is an authentic record of my own work as requirement of Project work during 5th^ semester for the

award of degree of B.Tech. in Computer Science & Engineering, Chandigarh Engineering

College.

Date: Name of student – Vaibhav Jain

Roll no - 1703189

B.Tech - CSE

ACKNOWLEDGEMENT

Foremost of all, I express my sincere indebtedness to the “Almighty”, for bestowing me with all the favourable circumstances and kept me in high spirits, I am very grateful to all my

of the Visual Basic program and the database already created. Pharmacy management system

is useful to maintain correct database by providing an option to update the drugs in stock. This is pharmacy management system; it is used to manage most pharmacy related activities in the pharmacy.

OBJECTIVE

It is the user friendly application for Pharmacist which reduces the burden and helps to manage all sections of Pharmacy like Medicine management etc., which improve the processing efficiency. It deals with the automating tasks of maintaining records of drugs in

shop. Including safe data store about medicine as well as fast searching, delete and update of medicines. The pharmacy management system is built for the sake of ensuring effective and clear data saving and manipulating as well as neat work on the pharmacy medical products..

This refers the pharmacy management system project highly minimize time and resource by which, searching the medicine data you can get the data in quickest time.

The main Objectives of the Pharmacy Management System is making the pharmacy

organizations computerized by creating neat work through minimizing or eliminating wasting of time as well as removing the resources such as papers for data saving since know a days is paper based, decrease malfunctioned works on the medical usage by giving correct

information on each medicine. A summarized list of drugs available in the shop can be monitored easily.

PROGRAM CODE :

SCREEN -1 :

import javax.swing.; import java.awt.; import java.awt.event.*; public class pharmacy extends JFrame implements Runnable { JLabel l,l1,l2,l3,l4,l5; ImageIcon i; int flag=0,x=0,y=0; public pharmacy() { setLayout(null); i=new ImageIcon("background_image.jpg"); l=new JLabel(i); setContentPane(l); Font f=new Font("Times New Roman",Font.BOLD,75);

l1=new JLabel("PHARMACY "); l1.setBounds(250,40,800,400); l1.setFont(f); add(l1); new Thread(this).start();

l2=new JLabel("SHOP"); l2.setBounds(900,40,800,400); l2.setFont(f); add(l2);

pharmacy f=new pharmacy(); f.setVisible(true); f.setExtendedState(JFrame.MAXIMIZED_BOTH); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setTitle("PAGE-1"); try { Thread.sleep(10000); pharmacy1 g=new pharmacy1(); g.setExtendedState(JFrame.MAXIMIZED_BOTH); g.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); g.setTitle("PAGE-2"); g.setVisible(true); } catch(Exception e) { } } }

SCREEN-2 :

import javax.swing.; import java.awt.; import java.awt.event.; import java.sql.;

public class pharmacy1 extends JFrame implements ActionListener,ItemListener { ImageIcon i,i1; JLabel l,l1,l2,ll,bl; JButton b1,b2,b3;

JPasswordField t2; JTextField t1; JCheckBox ch1; public pharmacy1() { setLayout(null);

i1=new ImageIcon("a2.jpg"); bl=new JLabel(i1); setContentPane(bl);

Font f= new Font("Times New Roman",Font.BOLD,50); Font f1= new Font("Times New Roman",Font.BOLD,25);

i=new ImageIcon("background_image1.jpg"); ll=new JLabel(i); ll.setBounds(650,10,1400,1000); add(ll);

l=new JLabel("LOGIN SCREEN!!!"); l.setBounds(120,50,500,40); l.setFont(f); l.setForeground(Color.blue); add(l);

l1=new JLabel("USERNAME "); l1.setBounds(80,190,400,40); l1.setFont(f1); l1.setForeground(Color.red); add(l1);

t1=new JTextField(10); t1.setBounds(240,190,300,40); t1.setFont(f1); t1.setBackground(Color.yellow); t1.setForeground(Color.red); add(t1);

l2=new JLabel("PASSWORD "); l2.setBounds(80,300,400,40); l2.setFont(f1); l2.setForeground(Color.red); add(l2);

t2=new JPasswordField(10); t2.setEchoChar('*'); t2.setBounds(240,300,300,40); t2.setFont(f1); t2.setBackground(Color.yellow); t2.setForeground(Color.red); add(t2);

ch1=new JCheckBox("SHOW PASSWORD");

Statement stmt=con.createStatement(); String query ="select * from tblsignup where USERNAME= ' "+t1.getText()+" ' and PASSWORD = ' " +t2.getText() +" ' "; ResultSet rs=stmt.executeQuery(query); int ctr=0; while(rs.next()) { ctr=ctr+1; }

if(ctr==0) { JOptionPane.showMessageDialog(null,"USER NOT FOUND");

}

else { dispose(); pharmacy3 i = new pharmacy3(); i.setTitle("PAGE-4"); i.setSize(1200,600); i.setVisible(true); i.setExtendedState(JFrame.MAXIMIZED_BOTH); i.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

con.close(); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Exception "+e); } } } else if(ae.getSource()==b2) { JOptionPane.showMessageDialog(null,"FILL YOUR DETAILS" +t1.getText()); try { pharmacy2 h=new pharmacy2(); h.setExtendedState(JFrame.MAXIMIZED_BOTH); h.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); h.setTitle("PAGE-3"); h.setVisible(true); } catch(Exception e) { } } else if(ae.getSource()==b3) { JOptionPane.showMessageDialog(null,"LOGIN UNSUCCESSFUL" );

pharmacy f=new pharmacy(); f.setVisible(true); f.setExtendedState(JFrame.MAXIMIZED_BOTH); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setTitle("PAGE-1"); } } public void itemStateChanged(ItemEvent ie) { boolean b1; b1=ch1.isSelected(); if(b1==true) { t2.setEchoChar((char)0); } else if(b1==false) { t2.setEchoChar('*'); } } public static void main(String args[]) { pharmacy1 g=new pharmacy1(); g.setExtendedState(JFrame.MAXIMIZED_BOTH); g.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); g.setTitle("PAGE-2"); g.setVisible(true); } }

Font f= new Font("Times New Roman",Font.BOLD,50); Font f1= new Font("Times New Roman",Font.BOLD,20);

i=new ImageIcon("background_image2.jpg"); ll=new JLabel(i); ll.setBounds(900,10,1000,1000); add(ll);

l=new JLabel("SIGNUP SCREEN!!!"); l.setBounds(120,50,500,40); l.setFont(f); l.setForeground(Color.blue); add(l);

l1=new JLabel("NAME "); l1.setBounds(180,200,400,40); l1.setFont(f1); l1.setForeground(Color.red); add(l1);

t1=new JTextField(15); t1.setBounds(300,200,400,40); t1.setFont(f1); t1.setBackground(Color.yellow); t1.setForeground(Color.red); add(t1);

l2=new JLabel("EMAIL "); l2.setBounds(180,240,400,40); l2.setFont(f1); l2.setForeground(Color.red); add(l2);

t2=new JTextField(15); t2.setBounds(300,240,400,40); t2.setFont(f1); t2.setBackground(Color.yellow); t2.setForeground(Color.red); add(t2);

l3=new JLabel("USERNAME "); l3.setBounds(150,280,400,40); l3.setFont(f1); l3.setForeground(Color.red); add(l3);

t3=new JTextField(15); t3.setBounds(300,280,400,40); t3.setFont(f1); t3.setBackground(Color.yellow); t3.setForeground(Color.red); add(t3);

l4=new JLabel("PASSWORD "); l4.setBounds(150,320,400,40); l4.setFont(f1); l4.setForeground(Color.red); add(l4);

t4=new JPasswordField(15); t4.setEchoChar('*'); t4.setBounds(300,320,400,40); t4.setFont(f1); t4.setBackground(Color.yellow); t4.setForeground(Color.red); add(t4);

ch1=new JCheckBox("SHOW PASSWORD"); ch1.setBounds(720,320,220,40); ch1.setFont(f1); ch1.addItemListener(this); ch1.setForeground(Color.red); add(ch1);

l5=new JLabel("PHONE NUMBER "); l5.setBounds(120,360,400,40); l5.setFont(f1); l5.setForeground(Color.red); add(l5);

t5=new JTextField(15); t5.setBounds(300,360,400,40); t5.setFont(f1); t5.setBackground(Color.yellow); t5.setForeground(Color.red); add(t5);

b1=new JButton("REGISTER NOW"); b1.setBounds(100,450,200,40); b1.addActionListener(this); b1.setBorderPainted(true); b1.setContentAreaFilled(false); b1.setForeground(Color.blue); b1.setFont(f1); add(b1);

b2=new JButton("BACK"); b2.setBounds(320,450,200,40); b2.addActionListener(this); b2.setBorderPainted(true); b2.setContentAreaFilled(false); b2.setForeground(Color.blue); b2.setFont(f1); add(b2); }

else if(ae.getSource()==b2) { try { pharmacy1 g=new pharmacy1(); g.setExtendedState(JFrame.MAXIMIZED_BOTH); g.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); g.setTitle("PAGE-2"); g.setVisible(true); } catch(Exception e) { } } } public void itemStateChanged(ItemEvent ie) { boolean b1; b1=ch1.isSelected(); if(b1==true) { t4.setEchoChar((char)0); } else if(b1==false) { t4.setEchoChar('*');

public static void main(String args[]) { pharmacy2 h=new pharmacy2(); h.setExtendedState(JFrame.MAXIMIZED_BOTH); h.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); h.setTitle("PAGE-3"); h.setVisible(true); } }

SCREEN-4 :

import javax.swing.; import java.awt.; import java.awt.event.*; public class pharmacy3 extends JFrame implements ActionListener { ImageIcon i; JMenuBar mbar; JMenu m1,m2,m3,m4; JMenuItem i1,i2,i3,i4,i5,i6,i7,i8,i9; JLabel l1,bl; public pharmacy3() { setLayout(null); i=new ImageIcon("background_image3.jpg"); bl=new JLabel(i); setContentPane(bl);

mbar = new JMenuBar(); mbar.setBackground(Color.yellow); setJMenuBar(mbar);

i3=new JMenuItem("ISSUE ITEM"); i3.setMnemonic('I'); i3.addActionListener(this); i3.setFont(f); i3.setForeground(Color.red); m2.add(i3);

i4=new JMenuItem("ITEM RECEIVED"); i4.setMnemonic('R'); i4.setFont(f); i4.addActionListener(this); i4.setForeground(Color.red); m2.add(i4);

i5=new JMenuItem("ALL ITEMS"); i5.setMnemonic('A'); i5.setFont(f); i5.addActionListener(this); i5.setForeground(Color.red); m3.add(i5);

i6=new JMenuItem("ALL STOCK ISSUED"); i6.setMnemonic('A'); i6.setFont(f); i6.addActionListener(this); i6.setForeground(Color.red); m3.add(i6);

i7=new JMenuItem("ALL STOCK RECEIVED"); i7.setMnemonic('A'); i7.setFont(f); i7.addActionListener(this); i7.setForeground(Color.red); m3.add(i7);

i8=new JMenuItem("EXIT "); i8.setMnemonic('E'); i8.setFont(f); i8.addActionListener(this); i8.setForeground(Color.red); m4.add(i8); } public void actionPerformed(ActionEvent ae) { if(ae.getSource()==i1) { try { pharmacy4 j=new pharmacy4(); j.setExtendedState(JFrame.MAXIMIZED_BOTH); j.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

j.setTitle("PAGE-5"); j.setVisible(true); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Exception "+e); } } else if(ae.getSource()==i9 || ae.getSource()==i2) { try { pharmacy5 k=new pharmacy5(); k.setExtendedState(JFrame.MAXIMIZED_BOTH); k.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); k.setTitle("PAGE-5"); k.setVisible(true); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Exception"+e); } } else if(ae.getSource()==i3) { try { pharmacy6 m=new pharmacy6(); m.setExtendedState(JFrame.MAXIMIZED_BOTH); m.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); m.setTitle("PAGE-6"); m.setVisible(true); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Exception "+e); } } else if(ae.getSource()==i4) { try { pharmacy7 n=new pharmacy7(); n.setExtendedState(JFrame.MAXIMIZED_BOTH); n.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); n.setTitle("PAGE-7"); n.setVisible(true); } catch(Exception e) { JOptionPane.showMessageDialog(null,"Exception "+e); }