Professional Documents
Culture Documents
INSTITUTE OF TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE
Name Id No
Project Submitted To the Department of Computer Science of Ambo University for the Degree of
Bachelor of Science in Computer Science
Ambo Ethiopia
AMBO UNIVERSITY
INSTITUTE OF TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE
Title: - Web Based For Ambo Koo Pharmacy Management System
By
Name Signature ID No
Usman Abdulaziz ____________ ____________
ii
Declaration
We declare this project is our original work and has not been presented for a degree in
any Other University
This project has been submitted for examination with approval of our advisor
Name Signature Date
Table of Contents
Declaration ..................................................................................................... iii
iii
Acknowledgment ........................................................................................... vi
List of Figures ............................................................................................... vii
List of Tables ............................................................................................... viii
Abbreviation ................................................................................................ viii
Abstraction .......................................................................................................x
Chapter 1 ..........................................................................................................1
1.1 Introduction .................................................................................................................... 1
1.2 Organizational Back ground ............................................................................................... 1
1.2.1 Vision of the organization ............................................................................................ 1
1.2.2 Mission of the organization .......................................................................................... 2
1.3 Background of the project................................................................................................... 2
1.4 Statement of the Problem .................................................................................................... 2
1.5 Objective of the project ....................................................................................................... 3
1.5.1 General objective .......................................................................................................... 3
1.5.2 Specific objective ........................................................................................................... 3
1.6 Scope of the project .............................................................................................................. 3
1.7 Significance of the project ................................................................................................... 4
1.7.1 Target Beneficiaries of the system ............................................................................... 4
1.8 Methodology for the project ............................................................................................... 4
1.8.1 Data Source.................................................................................................................... 5
1.8.2 Fact Finding Techniques .............................................................................................. 6
1.8.3 Systems Analysis and Design (approach).................................................................... 6
1.8.4 Development Tools ........................................................................................................ 7
1.8.5 Testing procedures ........................................................................................................ 7
1.8.6 Proposed Implementation Method .............................................................................. 9
1.9 Limitation of the project ................................................................................................... 10
1.10 Risks and Contingencies .................................................................................................. 10
1.11 Assumptions and Constraints ......................................................................................... 11
1.12 Schedule of the project (using Gantt chart)................................................................... 11
Chapter Two ..................................................................................................13
2 Description of the Existing System & the Proposed System .....................13
2.1 Introduction of Existing System ....................................................................................... 13
iv
2.1.1 Players in the existing system..................................................................................... 13
2.1.2 Functions/activities in the existing system ................................................................ 13
2.1.3 Business rules .............................................................................................................. 14
2.1.4 Report generated in the existing system.................................................................... 14
2.1.5 Forms and other documents of the existing systems ................................................ 14
2.1.6 Bottlenecks of the existing system.............................................................................. 16
2.2 Practices to be preserved from existing system ............................................................... 17
2.3 The Proposed System .......................................................................................................... 17
2.3.1 Team composition ....................................................................................................... 19
2.3.2 Feasibility Analysis ..................................................................................................... 20
2.4 Requirement of the Proposed System .............................................................................. 22
2.4.1 Functional requirement .............................................................................................. 22
2.4.2 Non -Functional requirement .................................................................................... 22
Chapter There ................................................................................................24
3. System Analysis and Modelling ................................................................24
3.1 Introduction ........................................................................................................................ 24
3.2 System Requirement Specifications (SRS) ...................................................................... 24
Chapter Four: .................................................................................................55
System Design ...............................................................................................55
4.1 Introduction..............................................................................................55
4.1.1 Purpose of the System ....................................................................................................... 55
4.1.2 Design Goals .............................................................................................................. 56
4.1.3 Definitions, acronyms, and Abbreviations ........................................................................ 56
4.1.4 Overview ........................................................................................................................... 56
4.2 Current System Architecture................................................................................................ 57
4.3 Proposed System Architecture ............................................................................................. 58
4.3.1 Subsystem decomposition ........................................................................................... 59
4.3.2 Hardware/Software mapping+ .................................................................................. 60
4.3.3 Persistent data management ...................................................................................... 61
4.3.4 Access control and Security ....................................................................................... 62
4.3.5 Global software control .............................................................................................. 64
4.3.6 Boundary conditions ................................................................................................... 64
4.4 Subsystem services .............................................................................................................. 65
v
Chapter Five: .................................................................................................66
Implementation and Testing ..........................................................................66
5.1 Introduction .......................................................................................................................... 66
5.1.1 Final Testing of the system ............................................................................................... 66
5.1.2 Hardware software acquisitions ........................................................................................ 67
5.1.3 User manual preparation ................................................................................................... 68
5.2 Training ................................................................................................................................ 69
5.3 Installation Process .............................................................................................................. 69
5.4 Start-up strategy ................................................................................................................... 69
Chapter Six: ...................................................................................................71
Conclusions and Recommendation ...............................................................71
6.1 Conclusions .......................................................................................................................... 71
6.2 Recommendations ................................................................................................................ 71
Reference .......................................................................................................72
Acknowledgment
First and foremost and above all our biggest thanks would be to Almighty God because
nothing could be possible without his free will and the completion of this project is
supported by him.
Secondly we would like to thank our Advisor Mr.Haftom B. and Coordinator Mr. Senthil
Kumar Ramadoss, for them restless edition of our documentation, input to the quality of
this document, heart full guidance, valuable advice, and providing to execute this project.
vi
Thirdly we would like to thank Ambo University Institute of Technology Department of
Computer science head Mr. Naol Bekele, for partial willingness of interview, patience in
answering to our numerous questions, giving documents and reading materials that help us
to precede our project.
Fourthly we would like to thank Ambo Koo pharmacy office manager Mr. Robsan Merga
for partial willingness of interview, patience in answering to our numerous questions for
our project.
Finally, the last but not the least, even if it is usual the group members would like to thank
each other. The main contributors to do this document project are teamwork, friendship
and the belief that we may achieve something we set out to do.
We also hope that this project and documentation may be testaments to our continued
friendship and better work. Without helps of the particular that mentioned above, we would
face many difficulties while doing this.
List of Figures
TITLE PAGE
Figure 1 proposed system process ................................................................................................. 18
Figure 2 Use case diagram .......................................................................................... 26
Figure 3 class diagram analysis label............................................................................................. 38
Figure 4 Sequence Diagram for Login ........................................................................................... 39
Figure 5 Sequence Diagram for register drug ................................................................................ 40
vii
Figure 6 Sequence Diagram for check expire date ....................................................................... 41
Figure 7 Sequence Diagram for Delete Employee......................................................................... 42
Figure 8 Sequence Diagram for Sale Drug .................................................................................... 43
Figure 9 Activity Diagram for Login ............................................................................................. 44
Figure 10 Activity Diagram for Register Drug .............................................................................. 45
Figure 11 Activity Diagram for Register Employee ...................................................................... 46
Figure 12 Activity Diagram for Delete Employee ......................................................................... 47
Figure 13 Activity Diagram for Check Expire Date ...................................................................... 48
Figure 14 Activity Diagram for Sale Drugs ................................................................................... 49
Figure 15 State chart diagram for login ......................................................................................... 50
Figure 16 State chart diagram for Register Drug ........................................................................... 51
Figure 17 State chart diagram for delete employee ....................................................................... 52
Figure 18 State chart diagram for delete drug................................................................................ 53
Figure 19 User interface diagram .................................................................................................. 54
Figure 20: proposed system architecture ....................................................................................... 58
Figure 21: Hardware architectures diagram of system .................................................................. 61
Figure 22 : persistence modeling ................................................................................................... 62
Figure 23: User Interface Home Page ............................................................................................ 68
Figure 24:User Interface Login Page ............................................................................................. 69
List of Tables
TITLE PAGE
Table 1 Schedule table using Gantt chart................................................................... 12
Table 2 Team composition structure.............................................................................................. 19
Table 3 Use case description for login ........................................................................................... 27
Table 4 Use case description for manage account ......................................................................... 28
Table 5 Use case description for employee registration ................................................................ 29
Table 6 Use case description for delete employee ......................................................................... 30
Table 7 Use case description for drug registration ........................................................................ 31
Table 8 Use case description for check expired date ..................................................................... 32
Table 9 Use case description for sell drug ..................................................................................... 33
Table 10 Use case description for print use case ........................................................................... 34
Table 11 : Access control and security ........................................................................................... 63
Abbreviation
CD-R: compact disk read only
viii
CSS: Cascading style sheet
DB: database
GB: Giga byte
HTML: Hypertext mark-up language
JS: Java script
MYSQL: Structure query language
PHP: Hypertext Pre-processor.
UI: User interface
UML: Unified modelling Language
ix
Abstraction
The system is web based Pharmacy management system. The main Idea of this project is
to design and implement a web based system which will be used by any peoples for giving
information and data about drug. The proposed system changes the existing manual system
in to computerized by identifies the existing system problem and improves it. This web
based drug order management system primary aim is to improve accuracy and enhance
safety and efficiency in the Ambo Koo pharmacy drug store. This system manages most
drug related activities in the Ambo Koo pharmacy. The system we have proposed is going
through stage of life cycles: requirement gathering, requirement analyzing, system
designing, implementing, testing and maintaining. For requirement gathering we use
interview and observation in the Ambo Koo pharmacy. For requirement analyzing and
design we use UML modeling and E-draw max. And for implementation phase we will use
object oriented system analysis and design development methodology. The expected
outcome of this system the ability to insert, update, retrieve records, display, and store and
delete customer ,drug information from the database. This system is decrease the cost and
time of data accessing process and it is going to be a user friendly system. It is very easy
to use and less time consuming. The system provides authentication this helps to restrict
unauthorized users.
x
Chapter 1
1.1 Introduction
The Pharmacy management system is a management system that is designed to improve
accuracy and to enhance the performance of the task in the pharmacy. It is a computer
based system which helps to the employee inside the pharmacy to facilitate the activity of
the pharmacy in a manner way.
In the pharmacy there are two places in which the drugs are available. Those are stock and
store. The stock is the place in which the drug that needs to be sold is stored. And the store
is the place in which the new bought drug is stored.
The system allows the user to enter a manufacturing and expiry date for a particular product
or drug during opening stock. The system will also give report showing the list of products
expiry after a specified date before the product eventually expires. It also involves manual
entry upon arrival of new batches of drugs and upon drug movement out of the pharmacy
for a certain period, e.g. every month, the pharmacist may want to generate report for the
movement of drugs in and out of the pharmacy, getting information about the drugs e.g.
expiry date, date purchased, number of drug type left, location of a drug in the pharmacy.
At present manual system is being utilized in the pharmacy. It requires the pharmacist to
manually monitor each drug that is available in the pharmacy. This usually leads to
mistakes as the workload of the pharmacist increases.
Ambo Koo pharmacy which is found in Oromia region ,west Shoa zone ambo town in front
of Ambo Hospital it was established in 2006 E C. Now the pharmacy gives fast service for
the society. Supply and demand of ambo Koo pharmacy is based on market needs.
1
1.2.2 Mission of the organization
The mission is to prevent and improve human suffering and to contribute to the wellbeing
of mankind and prevalence of and satisfaction customer needs, its Additional Optional
Protocols and the fundamental principles of the Ambo Koo Pharmacy.
The existing system of Ambo Koo Pharmacy Management System has working with the
manual system. This means that, the current drug information is recorded on paper, patient
information is also recorded on paper, patient tuition paid in paper, reports are translate in
paper. The employee uses the manual system in order to manage the overall activity of the
pharmacy.
Today with the growth of population number, our country is facing serious problems. Many
organizations are in trouble to accommodate these large numbers of people according to
their needs. Many problems in the organizations are associated with the increasing number
of customers and way of helping them. Currently, all activities of pharmacy system are
going on manually, which lead to wastage of time, labor, accuracy, and speed. Pharmacy
System is the backbone of the medical health sector. So it should be advanced and
computerized to provide fast services for the community and also for other users of the
system like manager, pharmacist, store coordinator and cashier.
2
Preparing report for each drug takes long time.
It is difficult to identify which drugs are out dated or expired.
The most sensitive data is lost because of they are paper based.
Most of the time redundant data occur.
Due to data redundancy the pharmacy uses a lot of stationary materials
which makes it expensive.
The main objective of this project is to develop a Web Based Management System for
Ambo Koo Pharmacy which solves the above-mentioned problems with the existing
system.
In order to achieve the main objective, we have the following specific objectives:-
3
1.7 Significance of the project
As the scope of the project, the outcome will include the Following:-
Here we described the benefits that are expected to gain after the development of the
system.
4
In our project the team will use Object Oriented Software Development Methodology
(OOSD) because it has the following advantages:-
Increase reusability: - the object oriented provides opportunities for reuse through
the concepts of inheritance, polymorphism, encapsulation and modularity.
Increased extensibility: - when there is a need to add new feature to the system
you only need to make changes.
Improved quality: - quality of our system must be on time and meet our exceeded
the expectation of the users of our system, improved quality comes from increased
participation of users in the system development.
We use document analysis in order to obtain the information about the practices and
problems of the pharmacy which ultimately assists us in developing the computerized
system. There are saved documents referred for the preparation of the system. In addition,
we use internet access.
Document analysis: The team reviewed documents such as books, e-books and some
related previously done projects which are very important to develop our project. During
the analysis of documents, we give a special consideration to those documents which can
bring more features to our system.
Interview: This is one of data collection method that enables to gather information from
the organization directly in the form of asking question and getting answers for those
questions. So, we will use this method to gather information by asking the manager of the
pharmacy some basic questions regarding the following issues will be asked during the
interview:-
How drug information management system is going on?
During managing, are there any problems? If there, what are they?
What requirements are needed for the process?
Who is responsible for what?
5
Observation: This is also another data collecting method. In fact we have also used this
observation method to gather data. This method enables us observing and understanding how drug
information management is going on.
6
1.8.4 Development Tools
Software tools:
We use different software to develop the proposed system. This software is used to us for
preparing the documentation and drawing the diagrams and also to design the system.
Those are:
To implementation (developing) this project we will use the following software’s.
Hardware tools:
7
1. Black-box testing.
2. White-box testing
1. BLACK-BOX TESTING:
The technique of testing without having any knowledge of the interior workings of the
application is Black Box testing. Black-box tests are used to demonstrate that software
functions are operational, that input is properly accepted and output is correctly produced,
and that integrity of external information is maintained. The tester is oblivious of to the
system architecture and does not have access to the source code. Typically, when
performing a black box test, a tester will interact with the system's user interface by
providing inputs and examining outputs without knowing how and where the inputs are
worked upon.
Knowing the specified function that a product has been designed to perform,
test to see if that function is fully operational and error free
2. WHITE-BOX TESTING:
White-box tests are used to examine the procedural details. It checks the logical paths by
test case. It can also checks the conditions, loops used in the software coding. It checks that
loops are working correctly on defined boundary value. White box testing is also called
8
glass testing or open box testing. In order to perform white box testing on an application,
the tester needs to possess knowledge of the internal working of the code. The tester needs
to have a look inside the source code and find out which unit/chunk of the code is behaving
inappropriately.
Knowing the internal workings of a product, test that all internal operations
are performed according to specifications and all internal components have
been exercised
Testing Strategy
We will also use the following testing strategy to test the system.
Unit Testing: Unit testing is the testing of an individual unit or group of related
units. It falls under the class of white box testing. It is often done by the
programmer to test that the unit he/she has implemented is producing expected
output against given input.
System testing: System testing is the testing to ensure that by putting the software
in different environments (e.g., Operating Systems) it still works. System testing
is done with full system implementation and environment. It falls under the class
of black box testing.
9
And since our proposed system functions parallel with existing system we go for parallel
installation rather than rapid installation.
10
Power fluctuation problem. It is using laptop that have high power pack ups are
used.
This involves questions such as how much time is available to build the new system, when
it can be built.
11
Table 1 Schedule table using Gantt chart
20/11/201 27/1/20
25/11/2018 2/12/2018 9/12/2018 16/12/2018 23/12/2018 30/12/2018 6/1/2019 13/1/2019 20/1/2019
8 19
Description of the
3 Existing System & the 14/12/2018 28/12/2018 11.0 d.
Proposed System
12
Chapter Two
The current system of Ambo Koo pharmacy information management is manual system.
That means checking expired date and availability of drugs is done by checking every drug
inside the pharmacy. This lead losing time and resource of the organization. An existing
system compromises different players to carry out its job.
14
SUBCITY-ARADA KEBELE-09/ H.NO-242/D TEL-01112622470/53,
0929900029
TIN-041464278 - kivodmed2051@gmail.com
CREDIT SALES ATTACHEMENT
Customer info
References
Customer AMBOKO PHARMACY
Date 15/01/2019___
Trade name ______________________
FS No 00011438_____
TIN Number _____________ VAT #
Ref No 00011432_____
Sub city N/A Kebele AMBO H.NO Oromia
Reference CRSI-00007938
Tel Halala__--
License # Acc # Ref Note ______________
BEFO/AHITQFFWO/2947
SUBTOTAL 3,344.80
Payment method: CREDIT
Amount in Word: Three Thousand Three Hundred Forty Four Birr and Eight Cent Only VAT (15%) 0.00
GRAND 3,344.80
MEMO: TOTAL
_________________________________________________________________
15
2.1.6 Bottlenecks of the existing system
There are different failure or weakness in the system from them these are as follows
16
2.1.6.4 Efficiency
The existing system is less efficient to access information about drugs information. Every
activity and data is share manually.
2.2 Practices to be preserved from existing system
The Strength part of existing system is the presence of work distribution. Management
system is assigned by different people (used to share their experience) and manager front
office are participating in works the files are printed on paper and it stored on the shelf. So
we went to design some useful practice to solve the problem and increase the efficiency of
the service. From the existing system the following are practices to be preserve.
The governing rule and regulation to check expired date of drug within a month
After observing the current manual drug Management system and understanding all the
problems occurred during every activity on the existing system of Ambo Koo Pharmacy
we desired to design a system that solve the problem of the current system. The proposed
system has server, database and client. The server used to fetch data from the database and
store data in to the database according to the instruction of user. Database used to store
data and information about drug and patients. The client is displaying the pages to the user
and after the user input the client send the request to the server and also display the response
of a server to the user. The system that we are proposed store all details of the drug
including their name, type, expire date and all the information related to it. The proposed
system will also support handling inquiries from prospective pharmacy manager handling
the drug detail.it become essential to make from properly managed medicine order
management system so that user can easy access drug record and get the desired
information easily. User friendly interface fast access to database , less error more storage
capacity , search facility, look and feel environment, Easy to handle and feasible ,cost
reduction fast and convenient and accurate .The proposed system will use the major
17
functionality of existing system able to advance accordance with performance (the system
will have faster response time and use minimal space usage ) , security(provide or contain
user name and password for each based user on their privilege ),reliability(system is
reliable by analyzing each information by organization of the system ),speed(regarding on
the speed of the system will generate output)
Purpose
The new system has the following purposes.
Ability to insert data: - the pharmacist can insert data into the database
Ability to give delivery system of the drug: - pharmacist sold the drug the sold drug
quantity will be decreased from the register drug quantity and generate receipt by
casher.
Ability to delete, modify:- the pharmacist can perform these activities
Ability to access and generate report: - the pharmacist and the casher can access and
generate report based on their needs.
In general, we expect that the new system will solve the problems which are mentioned in
the specified problems of existed system by using different tools and techniques.
18
2.3.1 Team composition
Involves organization of the team and communication among each member of the team.
There are three (3) types of team organization:-those are centralized, decentralized &
mixed. Among these three control team organization our project team chooses
decentralized – control team organization. Because de-centralized – control team
organization: - is ring-like management because of lack of hierarchy. The team member is
at the same level, and then can review each other’s work and responsible as a group. Reason
of choice:
Suitable for less understood, more complicated problem
Higher moral among team member
Higher quality of the product
In our project, we have seven (7) members where each of us has specified work and also
the project is supervised by two of our members. The following are the types of tasks and
as well as the responsibility each of us can have.
Table 2 Team composition structure
19
2.3.2 Feasibility Analysis
Feasibility means answering questions relating to the utility and viability of the system that
is going to be developed & it is the measure of how beneficial or practical of pharmacy
drug information system will be to an organization. To get user acceptance and making the
system easily understandable and accessible the new system considers the following
feasibilities: -
20
The cost of Software to be acquired to build and run the system
The cost to buy server.
Recurring cost
The cost to maintain computers, database and server if there is problem with them.
Salary of system manager
21
2.4 Requirement of the Proposed System
Our Requirements are two Component
Functional requirement
Non Functional requirement
22
2.4.2.1 Performance
The user can login to the system easily and can access information on a computer from
database. The server is large which is to accept the request from the users and give
responses after processing the request in a short period of time. The system serves all users
simultaneously.
The performance of the system has short response time for a piece of work,high rate of
processing work, Low utilization of computing resource, high availability of computing
system or application and decreases work overload.
23
for layout and properly using them and protecting these resources from damage. We use
powerful mark-up languages which support graphical user interface friendly. The proposed
system can store any data inserted in to the system in appropriate manner. The stored data
can be kept in database permanently and can be retrieving easily when the user accesses it
from database.
Chapter There
Use Case represents interaction between a user (human or machine) and the system.
Actor identification
In the use cases an actor interact with the system to perform a piece of meaningful work
that helps them to achieve a goal and has access to define their overall role in the system
and the scope of their action. Depending on the above explanation actors in this system are
the following:
24
Admin: The owner of the Pharmacy that control over all activity
Manager: Controls the overall activity in the shop.
Pharmacist: Manages the drug information in the stock.
Store coordinator: Manages the outgoing and incoming drug from the stock.
Cashier: Collect the price of the sold items and generate report to the manager.
Each Use Case describes the functionality to be built in the proposed system, which can
include another Use Case's functionality or extend another Use Case with its own
behaviour. The most important and basic use cases of this system are the following:-
Login
Manage account
Create account
Delete account
Change password
Register employee
View employee
Delete employee
Register drug
Register Customer
View drug
Delete drug
Check expire date
Sale Drug
25
Figure 2 :Use case diagram
26
Use case description
Use Case Documentation
Name Login
ID UC1
27
Table 4 Use case description for manage account
ID UC2
Actors Manager
28
Table 5 Use case description for employee registration
29
Table 6 Use case description for delete employee
ID UC4
Actor’s Manager
30
Table 7 Use case description for drug registration
ID UC 5
Description Registering the new drug from the store in to the data base.
31
Table 8 Use case description for check expired date
ID UC 6
Actors Store coordinator
Description In order to check the drug that is the verge of the expired date.
32
Table 9 Use case description for sell drug
ID UC 7
Actors Pharmacist
33
Table 10 Use case description for print use case
ID UC 8
Name Print
Actors Cashier
Pre-condition 1. There must be list of drug that must be inserted by the pharmacist.
34
Scenarios
The pharmacy management system registers medicine, store on the database again
accessed when needed, remove when obsolete, and Export reports for weekly sold
medicine.
Scenario 1:
The pharmacy manager and the customer can get information on the pharmacy by
navigating the pharmacy management system. From the system page can see about the
Medicine sell on the pharmacy, about the organization of the pharmacy including basic
information. Through this the pharmacy management system can display different
information about the organization effectively and efficiently in short period of time.
Scenario 2:
The pharmacy manager can control over the system such as record medicine information
store on the system and again retrieve for data see, delete, update, and print also the
pharmacy system controller can see reports on the medicine in weekly, and monthly as the
user needs this is all about the function done by the system and do the pharmacy manager.
The following is a scenarios explain more.
Flow of Event:
35
5. System displays the medicine available on the pharmacy with cost and purpose.
Flow of Event:
3. The first page consists of menu’s Medicine, and about pharmacy and login Menu’s
5. The system displays login form to enter the username and password.
6. The pharmacy manager prompts username and password on available fields that the
system displays.
Flow of Event:
36
2. The system displays the first page.
3. The first page consists of menu’s Medicine, and about pharmacy and login Menu’s
5. The system displays login form to enter the username and password.
6. The pharmacy manager prompts username and password on available fields that the
system displays.
Object Model
Construct this pharmacy management system and the relationship of classes that compose
the system.
Class Diagram
Class diagrams are the most common diagram found in modeling object-oriented systems.
A class diagram shows a set of classes, interfaces, and collaborations and their
relationships. We use class diagrams to model the static design view of a system. Class
diagrams are also the foundation for a couple of related diagrams: component diagrams
and deployment diagrams.
Class diagrams are important not only for visualizing, specifying, and documenting
structural models, but also for constructing executable systems through forward and
System.
37
Customer
Employe *
* +First Name
Salary * +Last Name
+Age
+Sex
-Register Employee()
-Delete Employee() *
-View Em[ployee() -RegisterCustomer()
* *
*
Drug * 1
1 Cashier
-Drug Name User
-Company Name -Sell Number
-Batch Number -Customer Id
-Quantity -Frist Name * -Emp-Id
-Unit Price -Last Name -Batch Number
-Shelf Number -Age -Quantity
-Expire Date -Sex -Date
-Register Drug() -Address -Status
-Sell Drug()
-Check Expire Date() -Insert()
-View()
* 1 1
1
Manager 1
1
38
Dynamic Model
Sequence Diagram
The sequence diagram is used primarily to show the interactions between objects in the
sequential order that those interactions occur. The main purpose of a sequence diagram is
to define event sequences that result in some desired outcome.
All Actor
User Visit
User click
Send ()
Display Login
Form ()
Enter UN &Pw
nameand
Select
Types
Continue ()
Check ()
39
Register Drug Register Drug
Link Form Validator Data Base
Store
Coordinator
Click On Register
drug()
Display Form ()
Fill Form ()
Validate ()
Send Request
()
Tray Again ()
Continue ()
Check ()
40
Check Expired Drug Form Validator Data Base
Date Link ()
Pharmacist
Click
onRegistered
Display Form
()
Check
ExpireDate ()
Tray Again ()
Continue ()
Check ()
41
Click on View User Validator Data Base
Form
Delete
Manager
Click on
DeleteUser()
Display Form ()
Validate ()
Search User Send
ID Request ()
Tray Again ()
Continue ()
Check ()
Delete User
Successful ()
42
Sale Drug Sale Drug Form Validator Data Base
Link
Pharmacist
Click on
Display Form ()
Fill Form ()
Validate ()
Send Request
Tray Again ()
Continue ()
Check ()
43
Activity diagram
Activity diagram is another important diagram in UML to describe dynamic aspects of the
system. Activity diagram is basically a flow chart to represent the flow of information one
activity to another activity
All Actor
All
Home Page
Click On Login
Log In Form
Verify
Valid
Active Page
44
Store Coordinator
Store
Fill Form
Click On Register
Incorrect
Verify
Correct
Display Successful
45
Manager
Fill Form
Verify
Valid
46
Manager
Insert ID No
Verify
Valid
47
Pharmacist
Click On Check
Not Exit
Click Check
Verify
Item Displayed
Click Clear
Display Successful
48
Pharmacist
Fill Form
Incorrect
Click On Sale Button
Verify
Correct
Display Successful
49
State chart Diagram
A state chart diagram is a view of a state machine that models the changing behaviour of a
state. State chart diagrams show the various states that an object goes through, as well as
the events that cause a transition from one state to another.
The common model elements that state chart diagrams contain are:
States
Start and end state
Transition
Idle State
Activate
Home Page
Select
Login Link
Fill
Login Form
Incorrect
Correct Confirm
Verify
Login
Display
Appropriate
Logout
Final state
50
Initial state Idle State
Activate
Home Page
Log to Page
Select
Register
Drug
Fill Form
Register
Form
Incorrect
Display
Successful
51
Initial state Idle State Activate Home Page
Log to Page
Select
Delete
Employee
Fill
Delete Form
Incorrect
Display
Successful
Final state
52
Initial state Idle State Activate Home Page
Log to Page
Click
Delete Drug
Fill
Delete Form
Incorrect
Display
Successful
Final state
53
User Interface Diagram and Modeling
In this system users will communicate with it through the following user interfaces.
Home Page: This form contains some links which lead it to the concerned page, and if
the user has an account he/she will directly go to concerned page by entering their
username and password
Home
page
54
Chapter Four:
System Design
4.1 Introduction
Designing a system has a goal to involve converting the proposed system in to logical and
then physical design specification. We expect one can understand our new system
implementation because it gives full description about whole system. Also one can
understand easily and enable to answer how the system developed and functioned in
simplified manner.
This project is Ambo Koo Pharmacy management system it will solve problems related to
computerize system within the organization. Within the Software Design Document are
narrative and graphical used throughout the document, Next, the document describes the
system under development in terms of subsystem decompositions, hardware/software
mapping, persistent data management, access control , Global software control , Boundary
conditions and Subsystem services.
55
Updating and deletion of such a huge amount of data will
become easier
SD : Design system
4.1.4 Overview
System design could be seen as the application of systems theory to product development.
In this chapter we will cover the design goal, system decomposition, system architecture,
persistence data management, access control and security, Global software control,
Boundary conditions, and Subsystem services.
56
In our system we have preferred System architecture because of the following main
advantages: -
Whenever the customer wants to register to the Pharmacy they came to office and register
to the manager office in manual way and then the manager keeps the queue of the applicant
and sends applicant data to them as documented in paper. Whenever each employee
generates and report on the paper and as well as to identify customer, product and status
and search to identify them.
57
4.3 Proposed System Architecture
This proposed system uses three-tier architecture. The user interface is implemented on a
desktop PC and uses a standard graphical user interface with different modules running on
the application server. The middle tiers are usually multitier.
Advantages of three-tier:-
Managing data is independent from the physical storage
Migration to new graphical environments is faster
As each tier is independent it is possible to use different sets of developers
Since the client doesn’t have direct access to the database business logic is
more secure
When one tier fails there is no data loss, because you are always secure by
accessing the other tier
58
4.3.1 Subsystem decomposition
Decomposition refers to the process by which a complex problem or system is broken down
into parts that are easier to conceive, understand, program, and maintain. It results large
systems in to a set of loosely dependent parts which make up the system. To reduce the
complexity of the solution domain, we decompose a system into simpler parts, called
subsystems, which are made of a number of solution domain classes.
From the functional requirements the proposed system could consists of the following
subsystems:
Register Subsystems:
Register drug
Register employee
Create account
Delete account
Update account
Deleting subsystem:
Delete drug
Delete employee
Selling subsystem:
Selling drugs
59
4.3.2 Hardware/Software mapping+
I. Software architectures:
Software architectures are often used to model high-level software components and
how they interact. The interfaces between these components become clearer as the
model grows, which provides a much clearer delineation of duties of each
component. So from that point component diagrams are used to visualize the
physical components in a system. These components are libraries, packages, files
etc.
60
Depict the hardware/network infrastructure of an organization. The deployment
diagram is shown as follows
Mozilla
internate_exp PHP
MYSQL
Clients are responsible for: -Provide user interface to the user enabling to get services
base to both the users and the developers. It is also used to describe the persistence data
aspect of the system. It is based on the concept of object that have both data and behavior.
Object technology employs concepts that are well supported by the UML such as classes,
61
inheritance, polymorphism, and encapsulation. The following diagram indicate the
The next diagram implies mapping with the different tables of the database that are
supposed to be found in the database of the proposed system. The implied database table
consists of different attributes with the specified primary key and the foreign keys that
62
Actor Account
Administrator
confirm password()
change password()
Create user Account()
Manage Account()
Manager Login()
View users
Add medicine
View stoke
Pharmacist Login()
Create prescription
View prescription
Add medicine
Manage stoke
Casher Login()
Process payment
Manage payment
63
4.3.5 Global software control
The Web Based for Ambo Koo Pharmacy architecture is to have an explicit, centralized
software control. The system's dynamic control is distributed among different controllers
such that each object delegates some responsibility to other objects. The request initiations
are event-driven:
Error Conditions:
Logging in:
Username or password field can be blank.
Password is not 8 characters long.
Password and username don’t match.
64
Username is wrong or does not exist.
User settings
User is unable to change certain settings or changes don’t reflect.
Between the time of editing and updating, the system crashes.
Data Entry
The system fails when the manager is entering information.
Product availability
There are no available product in any.
Monitor display
The system crashes or the backup also crashes.
The system hangs up.
The desktop application may fail up.
Relative searching for a customer or product.
Search criteria do not return any results.
Logging out
Manager unable to logout.
4.4 Subsystem services
Subsystem services are services which are performed in each subsystems. Those
subsystems services are described each individually as below.
65
Chapter Five:
Unit testing: -Also known as component testing, refers to tests that verify the functionality
of a specific section of code. These tests are usually written by the developers of the
modules for instance if want to check whether create account is working correctly or not.
So we only specifically test this part.
Integration testing: -Integration testing is any type of software testing that seeks to verify
the interfaces between components against a software design. Integrating testing works to
expose defects in the interfaces & interaction between integrated components (module), so
we are going to check here the quality of our interfaces.
System testing: -The system testing part of a testing methodology involves entire system
for errors & bugs. This test is carried by interfacing the hard ware & software components
of the entire system that have been previously unit tested & integration tested so we will
test our system as a whole in this testing.
Beta testing: -This comes from alpha testing & can be considered as external user
acceptance testing. This is done by using versions of software known as beta versions are
66
related to a limited audience outside of the programming team. As much as we can we are
gone use this software & implement beta testing.
Usability testing: -It is to check if the user interface is easy to use and understand so we
will try to check these from user how there feedback is concerning the system.
67
5.1.3 User manual preparation
Since the system is web based everything important for the user will be explained and
implemented while giving short training when the system is deployed. Rather there is no
need of preparing full user manual because it is only deployed (hosted) on a single machine
that is server.
68
User Interface for Login Page
5.2 Training
During the deployment of the system, the project group members will give short time
training for the system administrators explaining how the system works and in what way
they can manage their system.
69
password and user name so that he/she can enter into it and use it. This accessibility has
also two parts, one which is restricted for manager and the other for surveyor and the other
part is those which do not need pass word and username so they can be viewed by anybody
70
Chapter Six:
6.2 Recommendations
While doing this system the team has faced different challenges. But by the cooperation of
all the group members and an advisor the team is now able to reach to the final result. I.e.
all the group members strongly fought these challenge and take the turn to the front.
So now all the group members strongly recommend the department that for the coming
students, it has to provide them with better service than the present in better hard ware,
guaranteed software’s, giving orientations how to proceed, offering guest to provide them
with more experienced work, support morally, manually, forming good relation with
students, giving students description of each phases and so on. So that it will get what it
expects from its students and satisfy with them.
71
Reference
The unified modelling language user guide G.Booch, J.Rumbaugh, and I.Jacobon,
Addison-Wesley, 1999
Ambler, The Object Primer:Introduction to Techniques for Agile Modeling, June 22, 2001
Rumbaugh, J., Jacobson, I., & Booch, G. (1999). The Unified Modelling Language
Reference. Reading, MA: Addison-
Wesley Longman. [Fowler00] Fowler, M., UML Distilled: A Brief Guide to the Standard
Object Modelling Language, Chapters 8, 9. Addison Wesley.
Rosenberg, D., & Scott, K. (1999). Use Case Driven Object Modelling With UML: A
Practical Approach. Reading, MA: Addison
72