Professional Documents
Culture Documents
Balck Book Meadical
Balck Book Meadical
ON
Medical Store Management System
Presented and Submitted By
CERTIFICATE
PRN NO : 04419001452
Education),
And is approved.
……………………………………………………………………………………….
CERTIFICATE
THIS IS TO CERTIFY THAT THE PROJECT
Page | 4
PROJECT SYNOPSIS
INTRODUCTION
The main goal of the application is to maintain the records of purchase ,
Sales and stock details with cash transaction Maintenance . Medical store
management is very needy for . Medical Store . this software help them
maintain day to day transaction in computer Medical Store Management
system is an application project develope for medical shops. This system is
field concerned with purchasing and selling medicines, The purpose of this
project is to reduce time consuption and human efforts. this application
provides user friendly interface as well.
FUNCTIONAL SPECIFICATION :
Login module : Used for managing for managing the login details.
Sales Reports : admin can check the daily reports of the user.
Purchase module : Supplier give the information about purchase item s information
Sales Process : Admin enter the sales information also check the details in retrieve from the
sales
User module : Used for managing for managing the user of system
Name of component Specification
Database Mysql
Printer Options
Page | 5
Acknowledgement
Support.
Project Guide And Project In charge Ms. “Asma Qazi ” And All Those
Page | 6
ABSTRACT
The "Medical Store Management System" has been developed to override the
problems prevailing in the participating manual system. This software is supported to
eliminate and in some cases reduce the hardships faced by the existing system.
Moreover this system is designed for the particular need of the store to carry out
operations in a smooth and effective manner. The application is reduced as much as
possible to avoid errors while entering the data. No formal knowledge is needed for
the user to use this system.
The main objective of the Medical Store Management System is to manage the
details of Medicine, See the Medical Sales Record. It manages all the Product
information . The project is totally built at administrative end and thus only the
administrator is guaranteed the access.
Page | 7
INDEX
Chapter 1: Introduction.....................................................................................9
Chapter 2: Need New For System...................................................................12
Chapter 3: Feasibility Study............................................................................16
Chapter 4: Technology Review........................................................................19
Chapter 5: SDLC Life Cycle............................................................................20
Chapter 6: Software Development Model......................................................28
7.1: Structure of Waterfall Model....................................................................34
7.2: Waterfall Model – Design........................................................................34
7.3: Advantages of the Waterfall Model.........................................................37
7.4: Disadvantages of the Waterfall Model....................................................38
Chapter 7: Stakeholder....................................................................................40
Chapter 8: Gantt Chart....................................................................................47
Chapter 9: UML Diagrams.............................................................................57
9.1.1: ER Diagram...........................................................................................58
9.1.2: Use-Case Diagram.................................................................................60
9.1.3: Data Flow Diagram...............................................................................64
9.1.4: Activity Diagram...................................................................................69
9.1.5: Sequence Diagram.................................................................................71
9.1.6: Component Diagram.............................................................................74
Chapter 10: Data Structures Screenshorts.....................................................76
Chapter 11: Code..............................................................................................97
Chapter 12: Project Screen Shorts..................................................................84
Chapter 13: Testing and Validations..............................................................95
Chapter 14: Limitations and Future Enhancements.....................................99
Chapter 15: Conclusion....................................................................................97
Chapter 16: Bibilography................................................................................97
Page | 8
Chapter 1
Introduction
Page | 9
management is very need for . Medical store . this software help them
maintain day to day transaction in computer
Medical Store Management system is an application project develope
for medical shops. This system is field concerned with purchasing and
selling medicines,
The purpose of this project is to reduce time consuption and human
efforts. this application provides user friendly interface as well.
The software requirment Specification is a document that describe
the external requirement for any system . the requirement analysthas to
identify the Requirement by taking to the client and understading
In the present time, the medical stores are looking for the services
that are accurate and reliable for providing services to the customers and
workers. Every store is making efforts to computerize their activities for
providing better services to the customers. The medical store management
system is the system used for medicine stock inventory in the medical
stores. This system enables the manager of the store to record and manage
all activities of the medical store.
Page | 10
Chapter 2
Need For
New System
It helps in current all works relative to Medical Store Management System. The first
subsystem is a Supplier which has all the details of all the suppliers of a particular
Medical Shop. The second subsystem is Medicines. The third subsystem is Reports
which generates reports for all suppliers and the pharmacists. This Medical Store
Page | 11
Java project aims at Business process automation, i.e. I have tried to computerize the
various process of the Medical Store Management System.
IMPLEMENTATION
This Medical Store project implementation is done in java language which consists of
several classes as mentioned below to perform several operations.
Login
Allows the administrator to login into the Medical Store Management System
software with a valid user and user I’d , password
Search Medicine
Allows the administrator to search the medicines with the Medicine batch number or
Medicine name
Delete Supplier
Delete Medicine
Update Supplier
Update Medicines
Medicine List
Page | 12
Allows the administrator to view the records of the medicines
Allows the administrator to view the records of the medicines by entering the
Medicine Purchase Date
New sales
Page | 13
Chapter 3
Feasibility
Study
Page | 14
3.2 Economical Feasibility
It is cost effective system . No extra efforts are needed to train for using the system .
This system is quite beneficial with respect to its cost. The user shall be conversant
with computer technology . The system is user friendly and thus easy to use and
operate
Page | 15
Chapter 4
Technology
Review
Page | 16
Desktop applications
Web applications
Web servers and application servers
Games
Database connection
And much, much more
Java works on different platforms (Windows, Mac, Linux, etc.)
It is one of the most popular programming language in the world
It is easy to learn and simple to use
It is open-source and free
It is secure, fast and powerful
It has a huge community support (tens of millions of developers)
Java is an object oriented language which gives a clear structure to programs
and allows code to be reused, lowering development costs
4.2 Database :
MySQL Workbench is used to design database for the proposed Medical Store
Management System. MySQL language and Relational Data Base Management
System(RDBMS) are used to set the foundation of system’s back end . RDBMS is
the basis for MySQL, and for all modern database systems such as MySQL, Oracle,
and Microsoft Access .
The data in RDBMS is stored in database objects called tables . A table is a
collection of related data entries and it consists of columns and rows .
Page | 17
Structured Query Language (MySQL) is a standard Database language which is
used to create, maintain and retrieve the relational database . It is particularly used to
work with structured data where there are relations associated within the data itself .
MySQL being distributed database language, Distributed Database
Management Systems use MySQL to distribute data across multiple connected
computer systems . In the proposed system, MySQL serves as the link between
“front-end” computer systems optimized for user interaction and “back - end”
systems specialized for database management .
MySQL :
MySQL lets you access and manipulate databases .
MySQL was founded by Allan Larsson, Michael Widenius and David Axmark in
the year 1995.
Page | 18
Chapter 5
SDLC Life
Cycle
Page | 19
The following figure is a graphical representation of various stages of a typical
SDLC.
Chapter 6
Page | 20
Software
Development
Model
Page | 21
➢ Waterfall Model : The Waterfall Model was the first Process Model to be
introduced. It is also referred to as a linear-sequential life cycle model. It is very
simple to understand and use. In a waterfall model, each phase must be completed
before the next phase can begin and there is no overlapping in the phases
➢ Spiral Model : In the Iterative model, iterative process starts with a simple
implementation of a small set of the software requirements and iteratively enhances
the evolving versions until the complete system is implemented and ready to be
deployed.
An iterative life cycle model does not attempt to start with a full specification of
requirements. Instead, development begins by specifying and implementing just part
of the software, which is then reviewed to identify further requirements. This process
is then repeated, producing a new version of the software at the end of each iteration
of the model .
Page | 22
➢ V – Model : The V-model is an SDLC model where execution of
processes happens in a sequential manner in a V-shape. It is also known as
Verification and Validation model.
The V- Model is an extension of the waterfall model and is
based on the association of a testing phase for each corresponding development
stage. This means that for every single phase in the development cycle, there is a
directly associated testing phase. This is a highly-disciplined model and the next
phase starts only after completion of the previous phase
The Waterfall Model was the first Process Model to be introduced . It is also referred
to as a linear - sequential life cycle model . It is very simple to understand and use.
In a waterfall model, each phase must be completed before the next phase
can begin and there is no overlapping in the phases.
The Waterfall model is the earliest SDLC approach that was used for
software development. The waterfall Model illustrates the software development
process in a linear sequential flow. This means that any phase in the development
process begins only if the previous phase is complete. In this waterfall model, the
phases do not overlap.
Page | 23
6.2.1 Requirement Gathering and Analysis :
The requirement specifications from first phase are studied in this phase and the
system design is prepared. This system design helps in specifying hardware and
system requirements and helps in defining the overall system architecture.
6.2.3 Implementation :
With inputs from the system design, the system is first developed in small programs
called units, which are integrated in the next phase. Each unit is developed and tested
for its functionality, which is referred to as Unit Testing.
Page | 24
6.2.4 Integration and Testing :
All the units developed in the implementation phase are integrated into a system after
testing of each unit. Post integration the entire system is tested for any faults and
failures. 6.2.5 Deployment of system Once the functional and non-functional testing
is done; the product is deployed in the customer environment or released into the
market.
Page | 25
• Easy to manage due to the rigidity of the model. Each phase has specific
deliverables and a review process.
• Phases are processed and completed one at a time.
• Works well for smaller projects where requirements are very well understood.
• Clearly defined stages.
• Well understood milestones.
• Easy to arrange tasks.
• Process and results are well documented
The disadvantage of waterfall development is that it does not allow much reflection
or revision. Once an application is in the testing stage, it is very difficult to go back
and change something that was not well-documented or thought upon in the concept
stage.
Page | 26
• Integration is done as a " big-bang ”. at the very end, which doesn't allow
identifying any technological or business bottleneck or challenges early.
Page | 27
Chapter 7
stakeholders
It is a software that retains its original simplicity yet offers comprehensive business
functionalities such as search produt, create user account , transaction , managing
sales record, are the functionalities uses there
1) Admin :
Admin is owner and the manager of software. Admin is allowed to update
and modify.
Page | 28
2) User:
They are the ones who uses software as per their requirement .
3) Developer :
Builds the whole application.
4) Tester:
This is the one who tests the software. In our project, we developed as well
as tested our own application
Page | 29
Chapter 8
Gantt Chart
Page | 30
Timelines are indicated that show the time required for the completion of each
and every module . It gives a clear idea as to how our project development is
phased out on modules to summaries the entire Project Assessment .
Page | 31
Chapter 9
UML
DIAGRAMS
Page | 32
UML defines various kinds of diagrams to cover most of the aspects of
a system. There are two broad categories of diagrams and they are again
divided into subcategories −
Structural Diagrams :
The structural diagrams represent the static aspect of the system. These
static aspects represent those parts of a diagram, which forms the main
structure and are therefore stable .
1. Class diagram
2. Object diagram
3. Component diagram
4. Deployment diagram
Behavioural Diagrams :
Behavioural diagrams basically capture the dynamic aspect
of a system . Dynamic aspect can be further described as the
changing/moving parts of a system .
Page | 33
UML has the following five types of behavioral diagrams :
2. Sequence Diagram
3. Collaboration Diagram
5. Activity Diagram
Page | 34
Entity relationship diagram displays the relationships of
concepts :
9.1.1. Cardinalities :
relationship set .
Page | 35
One – to - Many − One entity from entity set A can be
associated with more than one entities of entity set B however an
entity from entity set B, can be associated with at most one entity .
Many – to - One − More than one entities from entity set A can
be associated with at most one entity of entity set B, however an
entity from entity set B can be associated with more than one entity
from entity set A .
E-R Diagram
Page | 36
An entity relationship diagram ( ERD ) shows the
relationships of entity sets stored in a database . An entity in this context
is an object, a component of data . An entity set is a collection of similar
entities . These entities can have attributes that define its properties .
By defining the entities, their attributes, and showing the relationships between
them, an ER diagram illustrates the logical structure of databases
Page | 37
A use case is a methodology used in system analysis to identify, clarify
and organize system requirements. The use case is made up of a set of possible
sequences of interactions between systems and users in a particular environment
and related to a particular goal. The method creates a document that describes all
the steps taken by a user to complete an activity .
Use cases are typically written by business analysts and can be employed during
several stages of software development, such as planning system requirements, validating
design, testing software and creating an outline for online help and user manuals. A use case
document can help the development team identify and understand where errors may occur
during a transaction so they can resolve them.
The actor. The system user this can be a single person or a group of people interacting with the
process .
The goal. The final successful outcome that completes the process .
The system. The process and steps taken to reach the end goal, necessary functional
requirements and their anticipated behaviors .
Multi-level, so that one use case can use the functionality of another
Page | 38
Page | 39
9.3 Class Diagram
Class diagram is a type of static structure diagram that describes the structure
1.Class Name :
The name of the class appears in the first partition.
2.Class Attributes :
Operations are shown in the third partition. These are the services a class
provides .The return type of a method is shown after the colon at the end of the method
signature .The return type of method parameters are shown after the colon following the
parameter name .
Page | 40
Page | 41
9.6 Sequence Diagram :
These diagrams are widely used by businessmen and software developers to document and
Page | 42
Page | 43
9.7 Activity Diagram
Activity diagram is basically a flowchart to represent the flow from
one activity to another activity. The activity can be described as an operation
of the system.The control flow is drawn from one operation to another. This
flow can be sequential, branched, or concurrent. Activity diagrams deal with
all typ+e of flow control by using different elements such as fork, join, etc
4. Activities
5. Association
6. Conditions
7. Constraints
system. Activity diagram also captures these systems and describes the flow
from one system to another. This specific usage is not available in other
diagrams. These systems can be database, external queues, or any other
system.
Page | 44
1. Modeling workflow by using activities .
Page | 45
Activity Diadram
Page | 46
Chapter 10 :
MySQL Data
Structures Screen-
Shots
Page | 47
1] Login :
Page | 48
3] product Detail Table :
4] product_category :
Page | 49
5] sales_record :
Page | 50
Chapter 12
Project Screen
Shorts
Page | 51
Logiun page
Page | 52
Companies Add Delete and Update
Page | 53
New Sales
Change Password
Page | 54
Create User
Page | 55
Chapter 11
Code
Login Page
import java.awt.Toolkit;
Page | 56
import java.awt.event.WindowEvent;
import java.sql.*;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.UIManager;
public class Login extends javax.swing.JFrame {
Connection conn = null;
PreparedStatement pst = null;
ResultSet rs = null;
static String username;
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().postEvent(we);
}
private void initComponents() {
LoginPanel = new javax.swing.JPanel();
userTxt = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
passTxt = new javax.swing.JPasswordField();
jLabel3 = new javax.swing.JLabel();
loginBtn = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Medical Store Management System");
Page | 57
setResizable(false);
LoginPanel.setBackground(new java.awt.Color(255, 255, 255));
LoginPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(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
LoginPanel.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
userTxt.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
jLabel2.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
jLabel2.setText("Username");
passTxt.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
jLabel3.setFont(new java.awt.Font("Calibri", 1, 14)); // NOI18N
jLabel3.setText("Password");
loginBtn.setFont(new java.awt.Font("Calibri", 0, 14)); // NOI18N
loginBtn.setText("Login");
loginBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
loginBtnActionPerformed(evt);
}
});
javax.swing.GroupLayout LoginPanelLayout = new
javax.swing.GroupLayout(LoginPanel);
LoginPanel.setLayout(LoginPanelLayout);
LoginPanelLayout.setHorizontalGroup(
LoginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
LoginPanelLayout.createSequentialGroup()
.addContainerGap(34,
Short.MAX_VALUE) .addGroup(LoginPanelLayout.createParallelGroup(javax.sw
ing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel3)
Page | 58
.addComponent(jLabel2))
.addGap(26, 26,
26) .addGroup(LoginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Ali
gnment.LEADING)
.addComponent(loginBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(passTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 213,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(userTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 213,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(60, 60, 60))
);
LoginPanelLayout.setVerticalGroup( LoginPanelLayout.createParallelGroup(javax.swing
.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
LoginPanelLayout.createSequentialGroup() .addGroup(LoginPanelLayout.createPar
allelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(LoginPanelLayout.createSequentialGroup()
.addGap(80, 80, 80)
.addComponent(userTxt, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(LoginPanelLayout.createSequentialGroup()
.addGap(94, 94, 94)
.addComponent(jLabel2)))
.addGap(30, 30,
30) .addGroup(LoginPanelLayout.createParallelGroup(javax.swing.GroupLayout.Align
ment.BASELINE)
.addComponent(jLabel3)
.addComponent(passTxt, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.Lay
outStyle.ComponentPlacement.RELATED, 142, Short.MAX_VALUE)
Page | 59
.addComponent(loginBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 33,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(21, 21, 21))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addGap(0, 368, Short.MAX_VALUE)
.addComponent(LoginPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(LoginPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
pack();
setLocationRelativeTo(null);
}// </editor-fold>
Page | 60
pst.setString(2, passTxt.getText());
rs = pst.executeQuery();
username=userTxt.getText();
if (rs.next()) {
conn.close();
JOptionPane.showMessageDialog(null, "Welcome " + userTxt.getText());
MainPanel mp = new MainPanel();
mp.loggedInAsLbl.setText(userTxt.getText());
close();
mp.setVisible(true);
} else {
conn.close();
JOptionPane.showMessageDialog(null, "Please check your username and
password and try again!");
}
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
}
}
try {
for (javax.swing.UIManager.LookAndFeelInfo info :
javax.swing.UIManager.getInstalledLookAndFeels()) {
UIManager.setLookAndFeel("com.jtattoo.plaf.aluminium.AluminiumLookAndFeel");
}
} catch (ClassNotFoundException ex)
{ java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Leve
l.SEVERE, null, ex);
} catch (InstantiationException ex)
{ java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Leve
l.SEVERE, null, ex);
Page | 61
} catch (IllegalAccessException ex)
{ java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex)
{ java.util.logging.Logger.getLogger(Login.class.getName()).log(java.util.logging.Le
vel.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Login().setVisible(true);
}
});
}
Page | 62
Chapter 13
Testing and
Validations
Page | 63
This is the most important part of the software life cycle. It provides better
quality of software to end users; therefore, those end users won't come
across software issues. Testing of any software is very important for
validating functionality of the software. Testing will provide the following
information: It finds issues during early phases, which can be fixed before
finalization. It assures stability and reliability of software in different
conditions. It helps to provide issue- free software for delivery. Any
application must be tested with different methodologies. If the application
is not tested properly, then some faulty application will be delivered to
customers. Delivering such quality of application will reduce credibility,
and the customers will be not delighted with application. Testing is usually
conducted by development and quality assurance teams. This testing
validates the functionality of the application
Page | 64
Chapter 14
Limitation and
Validations
14.1 Limitations :
Page | 65
The Medical Store Management System makes use of Reports which are not
portable. For the clients, the plug-in needs to be installed on their machine with
NetBeans and Mysql compatible versions. System design is hard to be customized
for Customer Needs.
Page | 66
Chapter 15
Conclusion
Page | 67
Store. This software will help Medical Store improve its Work Force Management
Efficiencies. This System in particular also offers solution to increase Sales and thus
will positively impact Retention . Thus, this System will by far be a complete
Administration effectively
Page | 68
Chapter 16
Bibliography
Page | 69
For MySQL Queries:
https://www.w3schools.com/MySQL
For Coding Reference: java:
The Complete Reference Book. Author:
https://www.javatpoint.com
https://www.GeeksforGeeks.com
https://stackoverflow.com
For UML Diagrams: Staruml
https://draw.io
Page | 70