Drug INventory Sytem
Drug INventory Sytem
By
August 2016
APPROVED BY BOARD OF EXAMINERS
____________________________________ _______________
II
DECLARATION
We hereby declare that this project is entitled Wonji-Shoa Hospital Drug Store Inventory System is our
own work. This project work is neither in part nor entirely submitted to any university for any other
degree. It is being submitted in partial fulfillment of the academic requirements for the bachelor degree in
Information Communication Technology. We swear that all the materials used have been properly
referenced. The result of our project is carried out under supervision of Endelkachew.
III
Acknowledgement
First and foremost, we would like to express our deep whole hearted gratitude to our advisor
Endelkachew for sharing his unreserved skill, experience and knowledge. His guidance and support was a
vital input to perform the work that is without their devoted participation this project may not be
implemented.
We are also thankful to Workineh Geleta Negasa for his helping optimistically. To justify it, it is beyond
a word to explain the way he guides us, the way he shares us his experience that couldn’t be explained
only imprinted in our mind.
Our appreciation also extends to our parents and relatives who support and encourage us to complete this
project in particular and the society in general.
At last but not least, to start and to complete every activity, it is up on him, since our effort is blessed we
are lucky, as a result it becomes tangible now and tomorrow it may be a vital ingredient for further
implementation to simplify life, for all thanks God!
IV
Abstract
Drug Inventory system is a set of computer programs that obtains the supplies of drugs,
distribute the drugs and monitors the inventory control of the drugs. Using the pharmaceutical
department of Wonji-Shoa hospital as a case study, the department using manual method to
operate lacks good storage of information system for drugs. Recording system tends to be
complex and the method of tracking expired drug is poor. The good approach to this problem is
to involve the use of computer by designing the form, using Access in developing the database
and Visual basic as the programming language, to enable keeping accurate record of drug and
prevent sales of expired drug. This guarantees the person’s right to good health care and ensures
that drugs received are genuine and safe.
ACRONYMS
SQL: Structural Query Language
MS: Microsoft
LIST OF TABLE
VI
Table1.5. Project Schedule..............................................................................................................7
Table1.6Project Organizations........................................................................................................7
Table 7Essential use case description for login.............................................................................19
Table 8Essential use case description for manage account...........................................................20
Table 9Essential use case description for employee registration..................................................21
Table 10Essential use case description for delete employee.........................................................21
Table 11Essential use case description for register drug...............................................................22
Table 13Essential use case description for check expire date.......................................................22
Table 14Essential use case description for sale drug.....................................................................23
Table 15Essential use case description for print............................................................................24
LIST OF FIGURE
VII
Figure 1General process of Drug invent system for Showa Hospital.............................................9
Figure 1 use case diagram for ACSIS............................................................................................18
Figure 21sequance diagram of login..............................................................................................25
Figure 3sequence diagram for register drug..................................................................................26
Figure 4Sequence diagram for check expire date..........................................................................27
Figure 5Sequence diagram for sale drug.......................................................................................28
Figure 6 activity diagram for login................................................................................................29
Figure 7 activity diagram for register drug....................................................................................30
Figure 8 activity diagram for register employee............................................................................31
Figure 9Activity diagram for sale drug.........................................................................................32
Figure 10 Class modeling diagram................................................................................................33
Figure 11State chart for login........................................................................................................34
Figure 12State chart for register drug............................................................................................35
Figure 13 stat chart for delete employee........................................................................................36
Figure 14State chart for delete drag..............................................................................................37
Figure 16User interface login page................................................................................................38
Figure 17Software Architecture of the system..............................................................................41
Figure 18layered architecture of the system decomposition.........................................................42
Figure 19 hardware and software architecture...............................................................................43
Figure 20 database design..............................................................................................................44
Figure 21 component diagram.......................................................................................................45
Figure 22 deployment diagram......................................................................................................46
CONTENTS
APPROVED BY BOARD OF EXAMINERS............................................................................................II
DECLARATION.......................................................................................................................................III
Acknowledgement.................................................................................................................................IV
VIII
Abstract......................................................................................................................................................V
Contents....................................................................................................................................................IX
List of Figures.........................................................................................Error! Bookmark not defined.
list of tables............................................................................................Error! Bookmark not defined.
Acronym.....................................................................................................Error! Bookmark not defined.
Chapter One.................................................................................................................................................1
Introduction.................................................................................................................................................1
1.1 Background of The Hospital........................................................................................................1
1.2 Background of The Project..........................................................................................................1
1.2.1 Vision..................................................................................................................................2
1.2.2 Mission................................................................................................................................2
1.3 Statement of the Problem.............................................................................................................2
1.4 Objective of the Project...............................................................................................................2
1.4.1 General Objectives...............................................................................................................2
1.4.2 Specific Objectives..............................................................................................................2
1.5 Scope and limitation of the project..............................................................................................3
1.5.1 Scope of the project.............................................................................................................3
1.5.2 Limitation of the project......................................................................................................3
1.6 Methodology and software tools..................................................................................................4
1.6.1 Methodology........................................................................................................................4
1.7.1.1 Interview:.......................................................................................................................................4
1.7.1.2 Analyzing existing document (forms and queries):.....................................................................4
1.7.1.3 Observing the working environment:..........................................................................................4
1.6.2 Software tool used...............................................................................................................4
1.7 Feasibility of the project..............................................................................................................5
1.6.1 Economic Feasibility:..........................................................................................................5
1.6.2 Technical Feasibility:...........................................................................................................5
1.6.3 Operational Feasibility:........................................................................................................5
1.8 Beneficiaries of the project..........................................................................................................5
1.9 Motivation...................................................................................................................................6
1.10 Project Plan activities...................................................................................................................6
IX
1.11 Project Schedule..........................................................................................................................7
1.12 Project Organization team............................................................................................................7
Chapter 2.....................................................................................................................................................8
2 Description of Existing System...........................................................................................................8
2.1 Introduction of the current system...............................................................................................8
2.2 Players in the existing system......................................................................................................8
2.3 Functions of current system.........................................................................................................8
2.4 Business rule................................................................................................................................9
2.5 Reports generated in the existing system...................................................................................10
2.6 from and other documents of the existing system......................................................................10
2.7 Alternative solutions..................................................................................................................11
2.8 Bottlenecks of Existing system..................................................................................................11
2.9 Practices to be preserved............................................................................................................13
2.10 Requirements of the existing system..........................................................................................13
2.10.1 Functional requirements.....................................................................................................13
2.10.2 Non-functional requirements.............................................................................................14
Chapter three.............................................................................................................................................17
3 System Analysis................................................................................................................................17
3.1 Introduction...............................................................................................................................17
3.2 Use Case Diagram.....................................................................................................................17
3.2.1 Use case diagram description.............................................................................................19
3.3 Sequence diagram......................................................................................................................24
3.4 Activity diagram........................................................................................................................29
3.5 Class modeling diagram............................................................................................................33
3.6 State Chart modeling.................................................................................................................33
3.7 User interface design.................................................................................................................38
Chapter Four..............................................................................................................................................39
4 System Design...................................................................................................................................39
4.1 Introduction...............................................................................................................................39
4.1.1 Purpose of the system........................................................................................................39
4.1.2 Design goal........................................................................................................................40
X
4.2 Proposed System software architecture.....................................................................................41
4.2.1 Overview...........................................................................................................................41
4.2.2 Subsystem decomposition..................................................................................................41
4.3 Hardware/Software mapping.....................................................................................................42
4.4 Data base design........................................................................................................................44
4.5 Component diagram...................................................................................................................45
4.6 Deployment diagram..................................................................................................................46
Conclusion.............................................................................................................................................47
Recommendation...................................................................................................................................48
Reference...............................................................................................................................................49
XI
Chapter One
Introduction
1.1 Background of The Hospital
The Wonji-Shoa Hospital found in Oromia regional state, East shoa Zone, Adama woreda
surrounding Wonji-Shoa sugar factory to the south. Wonji-Shoa Hospital was established as
Organization in 1956 E.C for the purpose of providing various medications for wonji community
and all staff of Wonji-Shoa Sugar Factory.
Drug management involves drug procurement, drug distribution, drug tracking and its information
management. Drug distribution is concerned with distribution of drugs within the different medical units
or departments in a hospital, while drug procurement is concerned with the purchasing activities of the
drugs by the pharmacy department of the hospital. In the same vein, drug tracking is concern with the
continuous monitoring of the actual quantity of drugs held in the hospital pharmacy or any other drug
warehouse /store. It also controls the stock level.
Pharmaceutical unit in a hospital is concerned with drug management activities. They carry out the
responsibility of making appropriate selection and drugs used by formulating an annual, monthly, weekly
or daily list of drugs requirement and management reports. However, in some hospitals today, some
pharmacists still use the manual system of operation which can lead to inappropriate drug management
errors due to problems of handling voluminous file within a short period of time. This could make data to
be easily inaccessible and also delivery of drugs can lead to misplacement of patients’ files.
1.2.1 Vision
To see citizen who are intelligent, strong, Healthy, and so sociable in the society that
contribute to the development of a country.
1
1.2.2 Mission
Serving the customers who come for services such as disease prevention, advice, and
checkup and testing their health condition, so as to give fast and good services to the people to
guarantee and have healthier society in development of the country.
To create a system that will provide easy Query to all related details of drug and generate
any kind of report and search records, Records can be exported to excel.
To create a system that provides up-to-date Collective Records of drug of all categories
To create a system that provides Database Backup and Recovery.
To create a system that provides the capability to view Logs.
To manipulate the hospital transactions with instant confirmation
Can’t order to take medicine, it only recommend for the entered medical information.
The system organization does not have any interaction with other organization system.
The system applies to only wonji shoa hospital.
The system does not have any physical control mechanism.
Shortage of time: We are student and in learning process we have shortage of time to complete
the project in one semester. This enforces our project team to minimize the project scope.
Shortage of money: As we are students it is difficult to spend much amount of money on the
project that means we can’t go to any other Amhara Credit and Saving institutions other than
Debre Berhan.
1.7.1.1 Interview:
To determine the objective and scope of the system we have interviewed the Record officer and
those responsible employees for handling records of a patient.
3
1.7.1.2 Analyzing existing document (forms and queries):
In addition to the interview we have observed existing documents that include organizational
rules form and queries for allocating and controlling resources used by the system.
Finally we have observed the working environment to assure those requests gathered using the
interview and existing document stated above.
1. To propose a set of solution that can realize the project goal. These solutions are usually descriptions
of what the new system should look like.
4
2. Evaluation of feasibility of such solutions. Such evaluation often indicates shortcomings in the
initial goals. This step is repeated as the goals are adjusted and the alternative solutions are
evaluated.
3. Assuring management control in making certain that output is correct
1.6.1 Economic Feasibility:
The system being developed is economic with respect to Hospital’s point of view. It is cost effective in the sense
that has eliminated the paper work completely. The system is also time effective because the calculations are
automated which are made at the end of the month or as per the user requirement. The result obtained contains
minimum errors and are highly accurate as the data is required.
1.9 Motivation
Drugs are the base for one country and for the society in order to ensure giving health care.
Using new technology is also must in order to satisfy customers need. So the team member is
interested to develop proposed system in order to create suitable environment for the
organization by consider some organization problems.
5
1.10 Project Plan activities
We have time frame to meet the project objective. We will meet three times in week with group
members and one times a week contact with our advisors to discuss and reach conclusion about
the project work processes. In order to complete the project, we have the common meeting
group member’s time is:
1. 2:00-6:00 PM Tuesday
2. 2:00-6:00 PM Sunday
3. 2:00 – 6:00 PM Friday.
And we contact with advisors on Monday 10:00-11:30 AM.
4 Implementation
5 Installation and
6
testing
6 Project closure
Table1.1. Project Schedule
Table1.2Project Organizations
Chapter 2
Pharmacist
7
The customer comes with the ordered prescription then the pharmacist looks that order of drug
and gives the drug accordingly. The customer gets his/her requested service from the pharmacist.
Pharmacy manager
The manager gets reports from the pharmacist, store coordinator, and cashier. The reports help
the manager to see how services are given to the client.
Store coordinator
Store coordinator is responsible to register the drugs that buy from the private sectors or from the
governmental association, and also control the drug that are goes out to the stock.
Cashier
The cashier receives the cost of the drug from the customer ordered by the pharmacist.
Drug Registration: -Whenever the new drug come in in to store, the pharmacy manager
registers those drugs.
Report preparation: Report is being prepared in the form of paper documentation from
the work done by either of employees.
Document collection: Document is being collected from the prepared report according to
their function and submitted time to allocated place (it may be shelf, depends on the
drugs name, type, and cost).
Buying process: Even if buying is don orally and manually it is needed
The patient goes to the pharmacy and give the order receipt to the pharmacist
and the receive the required drug.
Recruit and assign employee: The pharmacy manager prepare procurement form and
procure employees based on that agreement.
Manage Drugs: The pharmacy manager manages drugs using paper and roving.
Remove Document of drugs: When drugs are sold or bought or rejected the pharmacy
manager removes the document of these drug by finding them from the shelf/cabinet.
Managing patient appointment: The pharmacist is responsible to manage patient
schedules.
8
The general activity of the existing system is depicted bellow.
These include:
The pharmacist must treat customers in good manner and should address customer’s
request.
The cashier should receive the price of medicine honestly from customers and he/she
should generate report for manager.
Manager should control the entire activity in the stock and should receive clear and
appropriate report from the workers of the pharmacy.
Sold drug should order in their identifiable type to facilitate searching requested
drug.
Manager should control the overall information from any biases properly.
Forms should contain stock information appropriately.
Pharmacist doesn’t sell the expired drug.
9
The pharmacist prepares the following reports:
How many drugs are there in each store? How many of them are sold and how many of
them are available?
How many birr is sold?
The detail of drugs (There number, type, cost…)
Performance
10
Doing activities using manual document results week performance
Is time consuming
Information (and Data)
Outputs
Inputs
Stored Data
Economics
Costs
Costs are too high (needs too much resource like employee and paper)
Profits
New Construction who have a system can be explored
11
Current dealing can be improved to systemized
Efficiency
People waste time
Data is redundantly input or copied and processed.
waste drugs and manpower
Effort required for tasks is excessive (too much workers)
Holdings required for tasks is excessive (e.g. paper)
Service
The Existing system produces inaccurate, inconsistent and unreliable results
It is not easy and awkward to use
12
Dispatching useless drugs.
Wearing uniform and safety clothes
Holding Identification card
13
2.10.2 Non-functional requirements
Nonfunctional requirement describes user visible aspects of the system that are not designed to
the functional behavior of the system. Some of the nonfunctional requirements are:
Security:
The system shall provide high level of security by blocking an authorised user to
view secured system page.
The external security should be provided by giving login authentication.
Performance:
The system shall minimize errors and should display clear error message that guides
users.
For login in to the system password and user name should be matched to the
password and name.
There shall be various ways of retrieving data and it shall take less time.
Usability
The end user shall be able to access any page fast according to the internet
connection speed.
The desktop application should record the information of holdings offline.
Availability
The availability of the software shall be for everyone who has an internet
connection and always for stock manager.
The system shall be available for 24 hours and 7 days a week.
Correctness
The results of the functions should be correct and accurate.
It should validate the entered data before saving to database.
Flexibility
The operation shall be flexible and reports shall be presented in different ways.
Maintainability
After the deployment of the project if any error occurs then it should be easily
maintained by the software developer.
14
Portability
The software shall work properly in any browsers and smart phones.
Reliability
The performance of the software shall be better which will increase the reliability
of the Service.
Reusability
The data and record that are saved shall be reused if needed.
Robustness
If there is any error in any window or module, then it should not affect the
remaining part of the software
Design Constraints:
The system shall replace the existing system.
Performance
The system will function fast.
Very short response time.
The system must be operationally all over the year.
User interface
The system should be user-friendly interactive.
The pharmacist can easily retrieve information in the stock.
The skilled person interacts with the system properly.
Security and access permission
The system should allow login to only authorized users.
Storage requirement
The system should store all the data related with all the tasks performed into the
database
15
CHAPTER THREE
3 SYSTEM ANALYSIS
3.1 Introduction
This chapter focuses on developing the requirement and analysis models for the new system
using the use case model, sequence diagram, activity diagram and class diagram.
The following use cases have been identified from the system specification
Use case
Login
Manage account
Create account
Delete account
Register employee
View employee
Delete employee
Register drug
Register Customer
View drug
Delete drug
Manager
Hospital pharmacist
Cashier
Store coordinator
17
Figure 2 use case diagram for ACSIS
Include is used to extract use case fragments that are duplicated in multiple use cases.
Extend is used when a use case adds steps to another first class use case.
Use «include» to abstract sequences of steps out of the base Use Cases that are useful to the analyst to
avoid repetitious descriptions.
18
Use «extend», sparingly, to overlay additional functionality on top of a well formed Use Case to divide up
the complexity of a large and complex Use Case.
19
12. End of use case.
ID UC4
Actor’s Manager
Description Delete the employee when it is necessary.
Pre-condition 27. Initiate the system.
28. Have user name and password.
29. The manager log to his or her page.
30. The manager click on delete employee link.
31. The system displays the delete employee form.
Flow of event 32. The manager enters the id_no of the employee.
20
33. Click on the delete button.
34. Then the system will generate successfully message
35. End of use case
36. Return to home page or
post condition 37. Close the system
Table 6Essential use case description for delete employee
Description Registering the new drug from the store in to the data base.
Name Print
ID UC 8
Actors Cashier
Description Printing saled drug for the customer
22
Pre-condition 79. There must be list of drug that must be inserted by the pharmacist.
80. Open the system.
81. The home page will be displayed.
Flow of event 82. The cashier inserts user name and password with their account type.
83. The system will verify the user name and password.
84. Then the system display his/her page.
85. The cashier click on fetch drug link.
86. The list of drugs with corresponding quantity and price.
87. The cashier calculates the total price.
88. Then click to print.
89. Then the system will display response.
90. End of use case.
Post condition 91. Return to their appropriate page.
92. Close the system
Table 10Essential use case description for print
23
Home Page Login Link Login Form Validator Database
: All Actors
Submit()
Validate()
Try Again()
Continue()
Check()
24
Register Register Drug Validator Database
store
Drug Link Form
coordinator
Click on Link()
Send()
Submit()
Validate()
Tray Again()
Countinue()
Che ck()
25
Check Expired Clear List check()
: Store
Date Link
Coordinator/P...
send()
Ckeck()
display if exist()
Click on Clear()
send()
26
Sale Drug link Sale Drug Validate () Check()
: Pharmacist
Form
display form()
fill form()
submit()
validate
Try Afain()
Continue()
Check()
27
3.4 Activity diagram
An Activity diagram is similar to a flowchart to represent the flow from one activity to another activity.
Activity diagrams and State chart diagrams are related. While a State chart diagram focuses attention on
an object undergoing a process (or on a process as an object), an Activity diagram focuses on the flow of
activities involved in a single process. The Activity diagram shows how these single-process activities
depend on one another.
28
Login
No
valied
Yes
Active page
dispplayed
29
Figure 8 activity diagram for register drug
30
Figure 9 activity diagram for register employee
31
Figure 10Activity diagram for sale drug
33
Initial State
Idle State
Activate
Home
Page
Select
Login
Link
Fill
Login
Form
Incorrect
Verify Correct Confirm
Login
Display Appropriate
Page
Logout
Final state
34
Idle State
Initial State
Activate
Home Page
Log To Page
Select
Register
Drug
Fill Form
Register
Form
Display Sucessfull
Message
Final State
35
Initial State Idle State Activate Home
Page
Log To
Page
Select
Delete
Employee
Fill
Delete
Form
Incorrect
Display Sucessfull
Message
Final State
36
Activate
Initial State Idle State Home
Page
Log To
Page
Click
Delete
Drug
Fill
Delete
Form
Incorrect
Display Sucessfull
Message
37
3.7 User interface design
User interface design is the overall process of designing how a user will be able to interact with a
system.
The goal of user interface design is to make the user's interaction as simple and efficient as possible, in
terms of accomplishing user goals.
This topic shows how user interface of our system is designed in a systematic and practical way. It
bridges the gap between traditional performance perspectives, which often uses manual performance
action, and the new computerized system.
The form has two text boxes namely username text box, password text box and also one button
called login button.
The user enters the username and password on the space provided
38
If the user misses any of the inputs it will ask the user to enter the missed one.
If the user enters wrong password or user name it also displays wrong message input.
If the user name, and the password are correct the system display working area for the user.
Chapter Four
4 System Design
4.1 Introduction
This chapter includes the design phase of this project. The main purpose of the project, goals of
design, Current and proposed system software architecture will be discussed in detail.
System design is the transformation of the analysis model into a system design model. Up to now
we were in the problem domain. System design is the first part to get into the solution domain in
a software development. This chapter focuses on transforming the analysis model into the design
model that takes into account the non-functional requirements and constraints described in the
problem statement and requirement analysis sections discussed earlier.
The purpose of designing is to show the direction how the system is built and to obtain clear and
enough information needed to drive the actual implementation of the system. It is based on
understanding of the model the software built on. The objectives of design are to model the
system with high quality. Implementing of high quality system depend on the nature of design
created by the designer. If one wants to change to the system after it has been put in to operation
depends on the quality of the system design. So if the system is design effetely, it will be easy to
make changes to it.
The main purpose of the proposed system is to improve some activities through computerized
way that simplifies the workload of the existing system and speedup the operation of the system.
39
Is to reduce human errors by providing user-friendly input and output capabilities and
record keeping.
To provide highly security data (protect data from unauthorized user).
The customer’s data will be placed in proper way on database.
The customer’s data will not be redundant.
Modernization and the expansion of the social financial system to the customer will be
increased.
Due to having well manner database system the user will perform each activity in
efficient and effective way without work load.
Design goals describe the qualities of the system that the developers should consider.
Reliability: Drug inventory system for wenji shewa hospital system should be reliable.
Fault Tolerance: Drug inventory system for wenji shewa hospital should be fault tolerant
to loss of connectivity with the service.
Security: Drug inventory system for wenji shewa hospital should be secured, i.e., not allow
other users or unauthorized users to access data that has no the right to access it.
Modifiability: Drug inventory system for wenji shewa hospital system should be
modifiable for further modification and enhancement of the application.
Performance: - The system should respond fast with high throughput, i.e. it should perform
the task quickly possible as possible such as allocating students and proctors, viewing
student and dormitory information etc.
Cost: The system should be developed with minimum cost possible. In reality there is
always trade-offs or disadvantages and therefore from its previous experience the
organization prefers to invest more on development cost than maintenance cost to minimize
bugs which may appear at the later stage.
End User Criteria: - The system should have simple and understandable graphical user
Interface such as forms and buttons, which have descriptive names. It should give reliable
response for each user request at least before the session expires. All the interfaces, forms and
40
buttons are written or designed in a simple language or common language so that the user can
access it without any difficult.
41
Figure 18layered architecture of the system decomposition
The Manager’s Computer and the other pharmacist, store coordinator and cashier Computer
communicate with the DISWSH server via HTTP/HTTPS protocol using the Browser in their
respective computers. The DISWSH Server has a xamp Application Server running on a
particular port listening for requests from the Manager’s as well as the employee’s computer.
42
Figure 19 hardware and software architecture
43
4.4 Database design
44
4.5 Component diagram
register
customer
sale drug
check item
hospital
security
pharmasist
manage
account
registere
employee
Manager delete
employee
view report
store
cordinatore check
expierd
date
cashier register
drug
Database
view grug
45
4.6 Deployment diagram
sale drug
registere
Manager employee
delete
employee
store
cordinator view report
e
check
expierd date
view grug
Database
print
46
4.7 User Interface Design
Home Page
47
Manager main page
48
Pharmacist Main page
49
Store Coordinator main page
<?php
require("connection.php");
if(isset($_POST['login']))
$uname=$_POST['username'];
$upass=$_POST['password'];
$_SESSION['username']=$uname;
$username=$row['username'];
$_SESSION['usertype']=$row['usertype'];
$status=$row['status'];
$password=$row['password'];
//$password=mc_decrypt($row['password'], ENCRYPTION_KEY);
session_start();
$_SESSION['username']=$uname;
$_SESSION['password']=$upass;
$_SESSION['usertype']=$row['usertype'];
$_SESSION['status']=$status;
$password=$upass;
if($password==$upass)
$_SESSION['userid']=$row['userid'];
header("location:admin.php");
$_SESSION['userid']=$row['userid'];
52
$_SESSION['userid']=$row['userid'];
header('location:pharmasist.php');
$_SESSION['userid']=$row['userid'];
header('location:cashier.php');
else
window.location="index.php"</script>';
else
window.location="index.php"</script>';
53
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
function preventBack()
window.history.forward();
setTimeout("preventBack()", 0);
window.onunload=function(){null};
</script>
<style>
h5
background-color:#004566;
height:50px;
color:#ffffff;
.form-signin {
max-width: 250px;
54
padding: 6px;
margin: 0 auto;
color: #002625;
#right button
background-color: #008080;
color: #fffbfb;
width: 170px;
height: 40px;
#right select
width: 170px;
height: 30px;
#right input
margin-bottom: 10px;
border-top-left-radius: 0;
border-top-right-radius: 0;
border-color:#017572;
width: 170px;
height: 30px;
55
#right h5{
width: 170px;
#leftt hr{
color: white;
</style>
<script>
function validatePassword() {
currentPassword = document.frmChange.currentPassword;
newPassword = document.frmChange.newPassword;
confirmPassword = document.frmChange.confirmPassword;
if(!currentPassword.value) {
currentPassword.focus();
document.getElementById("currentPassword").innerHTML = "required";
output = false;
else if(!newPassword.value) {
newPassword.focus();
document.getElementById("newPassword").innerHTML = "required";
output = false;
else if(!confirmPassword.value) {
56
confirmPassword.focus();
document.getElementById("confirmPassword").innerHTML = "required";
output = false;
if(newPassword.value != confirmPassword.value) {
newPassword.value="";
confirmPassword.value="";
newPassword.focus();
output = false;
return output;
</script>
<style>
#register
margin-left: 70px;
width: 500px;
height: auto;
</style>
</head>
<body id="body">
<div id="contaner">
57
<header id="header" class="clear">
<div id="header1">
</div>
</header>
<div class="rounded">
<ul class="clear">
</ul>
</nav>
</div>
</div>
height: 910px;
58
background-color:#000000;
font-size: !important;
border-bottom-right-radius: !important;
margin-left: 1X;
margin-bottom: 20PX;
margin-top: -18PX;
border: 20PX;
float: left;
border-radius: 10PX;
margin-right: 1PX;">
<br/><br />
<ul>
<li><a href="f.php"target="content">Fapisyn</a></li>
59
<li><a href="cl.php" target="content">Clotrimazole</a></li>
</ul>
<img src="dimage/3.jpg">
<div id="centerrrr">
</iframe>
<br />
<br />
60
<form class = "form-signin" action="login.php" method = "post">
<input type = "text" class = "form-control" name = "username" placeholder = " Enter username "
required ></br>
<br />
<body>
</body>
<head>
</head>
<script type="text/javascript">
</script>
61
</table>
</div>
<div id="footer">
</body>
</html>
Drug Registration
62
<?php
include("connection.php");
session_start();
if($_SESSION['usertype']!='cordinator' || $_SESSION['username']=="" ){
header("location:index.php");
if(isset($_SESSION['userid']))
$mail=$_SESSION['userid'];
} else {
?>
63
<script>
alert(window.location='index.php');
</script>
<?php
?>
<?php
$user_id=$_SESSION['userid'];
$user=$_SESSION['username'];
?>
<html>
<head>
<meta charset="utf-8">
<script src="includes/jquery/jquery-1.10.2.js"></script>
<script src="includes/jquery/jquery-ui-custom.js"></script>
64
<script type="text/javascript" src="5/date.js"></script>
<script type="text/javascript">
$(document).ready(function()
$(".building").change(function()
var id=$(this).val();
$.ajax
({
type: "POST",
url: "get_location.php",
data: dataString,
cache: false,
success: function(html)
$(".department").html(html);
});
});
$(".department").change(function()
var id=$(this).val();
65
$.ajax
({
type: "POST",
url: "get_college.php",
data: dataString,
cache: false,
success: function(html)
$(".city").html(html);
});
});
});
</script>
<style>
.multiselect {
width: 200px;
.Location
width: 200px;
.selectBox {
position: relative;
66
.locationbox
position: relative;
.selectBox select {
width: 100%;
font-weight: bold;
.locationbox select
width: 100%;
font-weight: bold;
.overSelect {
position: absolute;
#checkboxes {
display: none;
#checkboxes label {
display: block;
#checkboxes label:hover {
background-color: #1e90ff;
67
#checkboxesss {
display: none;
#checkboxesss label {
display: block;
#checkboxesss label:hover {
background-color: #1e90ff;
#locationcheckboxes {
display: none;
#locationcheckboxes label {
display: block;
#locationcheckboxes label:hover {
background-color: #1e90ff;
</style>
<script>
function showCheckboxes() {
if (!expanded) {
68
checkboxes.style.display = "block";
expanded = true;
} else {
checkboxes.style.display = "none";
expanded = false;
</script>
<script>
function showCheckboxess() {
if (!expanded) {
checkboxes.style.display = "block";
expanded = true;
} else {
checkboxes.style.display = "none";
expanded = false;
</script>
<SCRIPT language=Javascript>
<!--
function isNumberKey(evt)
69
return false;
return true;
//-->
</SCRIPT>
<script>
defaultDate: "+1w",
dateFormat: 'yy-mm-dd',
changeMonth: true,
numberOfMonths: 1,
minDate: dateToday,
onSelect: function(selectedDate) {
instance = $(this).data("datepicker"),
});
});
</script>
</head>
70
<body>
<?php
$aErr=$bErr=$cErr=$dErr=$eErr=$fErr=$gErr=$hErr=$iErr=$jErr=$kErr="";
$a=$b=$c=$d=$e=$f=$g=$h=$i=$j=$k=$l=$m=$date="";
if ($_SERVER["REQUEST_METHOD"] == "POST")
//no-----------------------------------
if (empty($_POST["did"]))
/*else
$a = test_input($_POST["sender"]);
}*/
//cid-----------------------------------
if (empty($_POST["dname"]))
else
$b = test_input($_POST["dname"]);
if (!preg_match("/^[a-zA-Z]*$/",$g))
71
{
//
if (empty($_POST["ddosage"]))
//housetype
if (empty($_POST["quantity"]))
if (empty($_POST["price"]))
if (empty($_POST["expire"]))
if (empty($_POST["country"]))
if (empty($_POST["bname"]))
function test_input($data)
72
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
return $data;
?>
<tr>
<th colspan=2>
</th>
</tr>
<tr><td><b>Drug ID:</b></td><td>
73
</td>
</tr>
</tr>
<tr><td><b>Quantity:</b></td><td>
<tr><td><b>Price(Birr):</b></td><td>
<tr><td>
74
<b>Expire Date:</b></td ><td><input type="text" name="expire" size="25" placeholder="enter expire
date" id="dateStart" style=" margin-bottom: 10px;width: 180px;height: 30px;border:1px Solid
#071f56;">
</tr>
<tr><td>
</tr>
<tr>
</tr>
<tr><td>
</td>
75
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
</form>
<?php
if($aErr==TRUE)
elseif($bErr==TRUE)
elseif($cErr==TRUE)
elseif($dErr==TRUE)
if (isset($_POST['submit']))
$a=$_POST['did'] ;
$b= $_POST['dname'] ;
$c=$_POST['ddosage'] ;
$d=$_POST['quantity'] ;
/*$f=$_POST['location'] ;*/
$e=$_POST['price'] ;
$f=$_POST['expire'] ;
$g=$_POST['country'] ;
$h=$_POST['bname'] ;
$date=$_POST['date'] ;
$date=$_POST["date"];
$con=mysql_connect("localhost","root","");
mysql_select_db("drug",$con);
$insert=mysql_query("insert into
drug(drug_id,drug_name,drug_dosage,quantity,price,expire_date,company,drug_brand,reg_date,status)
values('$a','$b','$c'+'mg','$d','$e','$f','$g','$h','$date','available')");
if($insert)
}
77
else
echo mysql_error();
} }
?>
</div>
</body>
</html>
CHAPTER FIVE
5.1 Introduction
78
The implementation phase is the most crucial phase in which it transforms the design and
analysis of the system into a tangible system by writing the code to the system to be developed
and make it operational and applicable by testing and debugging the functionalities that are done.
This phase involves the construction of the actual project result. during this phase that the project
becomes visible to outsiders, to whom it may appear that the project has just begun. This makes
the implementation stage more essential step to develop the required system. So, it is the most
vital and necessary stage in achieving a successful system and in giving the users confidence that
the new system will work and be effective by testing the system that is already implemented. In
this phase, the production system is installed, initial user training is completed, user
documentation is delivered, and the post implementation review meeting is held. When this
phase is completed, the application is in steady state production. Once the system is in steady-
state production, it is reviewed to ensure that we met all of the goals in the project plan for a
satisfactory result.The result of this phase consists of source code, together with documentation
to make the code more readable. This is what we call software implementation. The purpose of
these activities is to convert the final physical system specification into working model with
reliable software and hardware, document the work that has been done, and provide help for
current and future users and take care of the system.
Once coding has begun, the testing process can be beginning and proceed in parallel. As each
program module is produced, it can be tested individually, as a part of larger program, and then
as a part of larger system.
Unit testing: Unit test is a way of testing each of the system functionality independently.
Accordingly, the team has tested each one of the major activities and the rest accompanying
activities independently using different user input, different login mechanisms and any
technique of fault finding so that an incorrect functioning of the activities was corrected at
the right time.
79
Integration Testing: Integration testing is testing in which a group of components are
combined to produce output. Also, the interaction between software and hardware is tested in
integration testing if software and hardware components have any relation.
System testing: It is the final step of testing. In this system tested the entire system as a
whole with all forms, code, modules. In this we tested all the functionalities in the System.
All errors in the forms, functions, modules have been tested. Finally, System testing ensures
that the entire integrated software system meets the desired requirements. It tests a
configuration to ensure known and predictable results.
5.5 Training
Training manuals serve the important purpose of providing a consistent way to communicate instructions
to employees about how to perform essential functions of their jobs by using the system. They benefit
ICT officer responsible for educating workers about the system as well as employees themselves, by
providing content and structure necessary to train new hires and to manage the performance of incumbent
workers. To be effective, training manuals is based on functionalities and instructional objectives.
Information should be provided about the processes and procedures employees are required to follow as
well as tasks that form the basis of the jobs they are charged with performing.
80
5.6 Installation
Installation of our proposed system at minimum requires a computer to serve as a computer to
run the program. In addition, WAMP or XAMPP software needs to be installed and configured
so that the database and other interrelated functions can be process.
CHAPTER SIX
when we have go through the data collection part we collect all information about the system using some
data collection method, in the analysis part we use our knowledge on the system analysis to analysis those
collected data, In the design part we put forward our knowledge of Object Oriented design software
engineering which support Iterative method developing software, and also of designing Database for
database management system.
In the Implementation session, also we are beneficial we use currently accepted and familiar
programming Languages PHP and its complimentary Database MYSQL server 2012.
81
Passing through the development of this software, it gives us a lot of knowledge on the area of
computing science not only theoretically but also practically, which shows the challenges in the real
world to develop software in the society to adhere data management.
6.2 Recommendations
The team recommends training to the Manager and the User how they use the software. The team also
recommends that the Manager who has the information of the store coordinator, Manager, and pharmasist
is fully responsible and ethical that must be keeping confidential.
In the user side: we recommended that after all the installation process of software in the institution
computer users who use this software must have the basic knowledge on computer, and other related
software to perform their tasks.
In the organizations side: The institution must have enough computers, cables, printer, scanner, and
other network devices.
APPENDIXES
1. How the existing systems work?
2. How store coordinator registers new drugs?
3. How store coordinator identify expired drugs ?
4. How pharmacist serviced customers?
5. How manager manage users?
82
References
[1] 2010 - Beginning ASP.NET 4 in C# 2010 (Apress)
[4] Essential.C.Sharp.3.0.For.dot.NET.Framework.3.5
83