A Pharmarcy Management System
A Pharmarcy Management System
Page 1 of 53
Appendix 1
Page 2 of 53
Page 3 of 53
Page 4 of 53
Appendix 2
Page 5 of 53
Page 6 of 53
Page 7 of 53
PROBLEM IDENTIFICATION AND BACKGROUND ANALYSIS
Diamond pharmacy is a company which has ventured into medication services like pills, optical
services, drugs, plasters, clashes, wheel chairs, and any form of medical help that someone would
need. This company is located in Chivhu town at number 37 York Street and has been existing for
5 years since 2013. For all these years the company has been using a manual system whereby all
recordings and operations of the company are manually driven. The system is user friendly and
easy to use, but has caused some problems to the company.
The system has caused voluminous work to the users leading to a lot of arithmetical errors,
omission of essential information, some of the work may be illegible since some users work under
pressure and also they would need to share the information yet one can find it difficult to read
one`s writing.
Large piles of files are becoming difficult to store since there is a shortage of space, leading to
misplacing of some sheets of papers hence loss of essential information.
The paper system does not have a reliable backup of files since in a risk of fire outbreak they may
definitely be burnt to such an extent that there will be total loss of records used and essential
information like debtors who owe money to us. The older files are now being messed up and even
eaten by rats that are found within the company premises. The rats are eating and tearing some
pages therefore causing loss of essential information.
All the information is not secured since anyone can open the files whenever he or she gets the
opportunity or some space. This system provides a poor retrieval method which causes
inconveniences in case of a query or emergences like the issues of misplaced documents and in
case of a fire outbreak.
Page 8 of 53
INVESTIGATION OF THE CURRENT SYSTEM
Investigations have been carried out on the current system at diamond pharmacy to provide the
problems stated on this system. This was also done to investigate if it is vital to change the current
system or continue with it. Below are some of the research instruments which I have used and the
data analysis of the system:
Customer
use Bank
transfer
Supplier 1 Selling
Buying
Point of
Pharmacy Registering all products sell (POS)
Supplier 2
Selling Buying
Customer
use cash
Page 9 of 53
Research instruments
Observations
The first observation I made was torn pages of books that where in a file. Some handwriting in
those files was illegible. Some work was dirty meaning there were spoils on some pages. There
was shortage of space to keep some important files. I also observe that data is lost due to tearing
of papers. It is difficult to find the file that you search for. There is no backup of data when the
data is lost. They do not have ways of preventing data loss for example the use of fire extinguishers.
The system they use is very slow if you want to search for person’s details.
Questionnaires
Page 10 of 53
Preliminary investigation of the current system
Questionnaire
Page 11 of 53
5 4 3 2 1 none of the
given
Yes no
……………………………………………………………………………………………………
……………………………………………………………………………………………………
………………………………………………………………………………
5 Which system would you prefer if there is an option of changing the current one?
……………………………………………………………………
6 Which advantages can you put across to support your suggestion on the above question?
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
7 Why do you think your suggestion in question 6 will be socially feasible to the local people?
………………………………………………………………………………………………………
………………………………………………………………………………………………………
……………………………………………………………………………………………………
Page 12 of 53
7 how many minutes does it take to serve a customer?
Yes no
Yes no
Page 13 of 53
Interview guide
This refers to the face-to-face communication between two or more people in order to
obtain information.
Page 14 of 53
INTERVIEW GUIDE
1 When was the Company (pharmacy) established?
15 years ago 10 years ago 5 years ago
4 What are the problems faced when using the current system?
……………………………………………………..................................................................
..................................................................................................................................................
..................................................................................................................................................
..................................................................................................................................................
.........................................................................
Page 15 of 53
5 How many workers are using the current system?
…………………………………………………………
6 Should the current system remain in use, after we computerize you system
Yes No
7 Are there any possible solutions to the problems caused by the current system? What are
they
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………………………………………………………………………
………………………………
8 Do you think the company will be able to meet all requirements of the new system?
Yes No
………………………………………………………………………………………………………
………………
Page 16 of 53
Problem with the current system
1. Shortage of space, which lead to misplacing of same papers.
2. The system does not have the back up of files.
3. The older files are now missed up and even been eaten by rats that are found in the company
premises, cause loss of essential information.
4. The system does not secured data since everyone can open files whenever he /she can get
opportunity or some space.
FEASIBILITY STUDY
A preliminary investigation has been conducted at the diamond pharmacy to determine if there is
need for a new system or modification on the existing one. I have done this on behalf of the analyst
to examine whether a new system is feasible or not. Through assessment of this problem, I have
decided on what is required of the new system involving the evaluations of the two systems and
request from the users to determine if it is feasible to construct or implement a new system. Various
measurements which are as below have been used in this preliminary investigation.
Economic feasibility
Economically I have investigated and discovered that the new system`s benefits will outweigh the
costs involved in developing, purchasing, installing and maintenance of the new system. Tangible
and quantifiable benefits will be obtained such as profits in monetary value to the company, the
new system have fewer processing errors, increased production since use of machines (computers)
will be faster than sue of manual method and also the response time of the system will be increased.
Technical feasibility
Page 17 of 53
This investigation has been carried out to determine if the organization (diamond pharmacy) could
obtain all the software, hardware requirements such as the operating system, monitor, mouse,
processor, RAM and bar code reader, also the equipment such as furniture, technology (know-how
of the system) and personnel to develop the system and operate the system efficiently. All this
have been made successful and proved as being possible to be done and achieved.
Schedule feasibility
Calculations as estimations have been done to find out how long the system will take to develop,
considering the desired time frame which is about two weeks.
Social feasibility
The social feasibility will help me to assess if the system will be acceptable by the local people,
considering their values or norms in the society. It involves testing if the people accept the new
system. The society here includes the workers of the company since they are the first people to be
tested on the new system. If members of the community do not accept the change this means, there
will be need to convert back to the old system. Therefore if the system is acceptable then I will
proceeds with the implementation of the new system.
Legal feasibility
A legal feasibility would be carried out to determine whether the new system will not violet the
legal requirements of the state, for instance, laws outlined in the data protection Act. Therefore the
pharmacy would use the system if there are no rules violated.
Operational feasibility
A study as operational feasibility will help in confirming whether the current work practices and
procedures are adequate to support the system for effect on social lives of those affected by the
system. Under this feasibility I will also be concerned with social factor such as how the
organization change will affect the working lives of those affected by the system. Therefore the
system must not be violating to the requirements of the operational feasibility.
Page 18 of 53
REQUIREMENTS SPECIFICATION
User
The diamond pharmacy will require two system users that are shopkeeper and manager.
Software
An operating system of windows 7 is required for each user.
A temporary storage RAMS of 256Mband a computer software memory of 80 GB for each user.
VB.Net 2012
Hardware
256 RAM is need
Printer
Page 19 of 53
These are long term objectives that the system needs to archive
The main aim of the diamond farmers is to change current manual driven system into a computerize
system that is more efficient and easy, reducing voluminous work. Introducing the system will
help in reducing arithmetical errors which will cause total confusion in the company and this aim
to be accomplished? The pharmacy is at providing a wide range of medication that will be kept in
and updated where deduction or updates should be made.
Objectives
These are short term purposes that the system need to archive
Diamond pharmacy wish to achieve better system which is fast and serves customers quickly.
Security measures are to be improved thereby keeping in watch of any theft or vulnerability that
may occur and if customers are taken care of.
Page 20 of 53
I carry the research the company. I give the seller of the company some question to answer. Some
of the questions are shown at the appendices, at the top of this book lat. I also use interview guide
to observe the data. The evidence is shown again on the appendices.
Page 21 of 53
Page 22 of 53
CONSIDERATION OF THE ALTERNATIVE METHODS
Introduction
I have chosen one solution from three possible solutions that i had for system development. The
three solutions are:
Possible solutions
This involve the removal of some features on the current system or / and addition of some of the
computer related features to improve the current system.
Advantages
Disadvantages
1. There is need for training users of the system which might be an extra cost to the
organization.
2. Paperwork is not eliminated.
3. Current users might be dismissed due to lack of some skills and qualifications.
4. The system may not function well hence a cost to the organization.
5. Workers may resist the implementation of the system which leads to failure of
computerization.
Page 23 of 53
Off the Shelf package
It involves the purchasing of a ready-made software package from a software supplier and installs
it right away.
Advantages
1. Paperwork is reduced
2. Efficient backups are introduced
3. Information is made available quickly
4. The software package can be installed right away.
5. Training may be provided from different providers of common software for free.
6. The software can be integrated with the existing software.
7. User can consult other users of the software to hear their views before sending money.
8. The software is well documented.
Disadvantages
Chosen solution
Bespoke software
It includes the hiring of an expert to design software that best suits the user’s request.
Advantages
Page 24 of 53
4. Searching facilities are provided.
5. The software to be produced has no unwanted features.
6. Master files are easily updated and efficient backups are provided.
7. Better securities are provided.
8. The software is made according to the user’s specifications.
9. The software can be designed to run on any specified hardware.
10. The software can be integrated with the existing software
Disadvantages
1. I have chosen the bespoke because it provides me with many benefits which enable the system
which I will work to be great.
2. Another idea which provokes me to choose it is that bespoke is upgraded software and it is
easy to edit and update rather than other software.
4. The software have unlimited features which enable me to perform many different tasks that I
need to do.
5. The bespoke software provides me better security since the hired export installs everything
that he thinks will keep me safe and protected.
Page 25 of 53
INPUT DESIGN
Data capture forms
Input Form
The input below shows how we add the suppliers for the first time. The form contains the supplier
code, the name, the adders, email and the phone number. To add the supplier “click” add supplier.
To remove “click” clear. To cancel “click” exit.
Product register
Page 26 of 53
The form below shows how we add the products for the first time. The form has the following
aspects product code, product name, and supplier code, cost price, mark up and the selling price.
Page 27 of 53
The input below show how to enter the order details. The input has the following aspects the order
number, supplier code, supplier name, product code, product name, cost price, quantity, total.
Page 28 of 53
The input of the goods received voucher is shown below. It has the following details order number,
supplier name, product code, product name, cost price, quantity and total.
Screen layout
Page 29 of 53
Splash screen
Login form
Page 30 of 53
FILE DESIGN
Involves designing tables/files, records and validation rules. It also involves determining
how data is to be stored and accessed, the media to be used for storage and the mode of
file organization.
Orders file
OVERALL PLAN
POINT OF SALE
Page 32 of 53
MAIN MENU
V
SUPPLIER PRODUCT
PURCHASE
GVR ORDERS
OUTPUT DESIGN
Page 33 of 53
Products reports
The product report register shows the list of product that has been registered. It consists of the
code, stock name, supplier code, supplier code, cost price, On Hand Qty.
Sales reports
This is the report which shows the product been sold. It consists of product name, sold QTY,
selling price, total sales, Trans NO., Trans date.
TEST PLAN
Page 34 of 53
a. Testing for the goods received voucher
If you enter the wrong details then the dialog box will told you that you are entered the
wrong details.
If you end a string instead of an integer then a dialog box should warn you on what is supposed
to be done
If you enter the wrong product code the system will told you that, the product you rare
search for is not there.
Page 35 of 53
TECHNIC THAT IMPROVES THE STRUCTURE, APPEARANCE
CLARITY OF THE CODE THAT IS
Page 36 of 53
Procedures
'CALLING THE clear PROCEDURE TO CLEAR ALL THE TEXTBOXES IN THE GROUPBOX1
clear(GroupBox1)
txtProdCode.Focus()
lblSupName.Text = ""
Functions
'Function to calculate the Order Number
Function LoadOrderNum() As Integer
connection()
conn.Open()
MyDataTbl = New DataTable
MyDatAdp = New OleDb.OleDbDataAdapter("Select * from Orders Order by orderID Asc", conn)
MyCmBld = New OleDb.OleDbCommandBuilder(MyDatAdp)
MyDatAdp.Fill(MyDataTbl)
Dim x As Integer = 0
Dim c As Integer = MyDataTbl.Rows.Count
If MyDataTbl.Rows.Count <> 0 Then
x = MyDataTbl.Rows(c - 1).Item(6)
End If
Scope of variables
Local variable
Module Connect
Public found As Boolean
Public conn As New OleDb.OleDbConnection
Public da As OleDb.OleDbDataAdapter
Public MyDatAdp As OleDb.OleDbDataAdapter
Public MyCmBld As OleDb.OleDbCommandBuilder
Public MyDataTbl As New DataTable
Public ds As New DataSet
Public sql, ser As String
Public db As String
Public x, c As Integer
Public bm As BindingManagerBase
Global Variables
Public Sub connection()
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Database\POS.mdb"
Page 37 of 53
End Sub
The public sub is used in the connection and it is also used in the clearing of group.
Public Sub clear(grp As GroupBox)
Dim a As Control
For Each a In grp.Controls
If TypeOf (a) Is TextBox Then
a.Text = Nothing
End If
Next
End Sub
Comments
'ASSIGNING VALUES TO THE FIELDS FROM THE TEXTBOXES
With Myrow
.Item(0) = txtProdCode.Text
.Item(1) = txtProdName.Text
.Item(2) = txtQty.Text
.Item(3) = CDbl(txtCostPrice.Text)
.Item(4) = CDbl(txtTotal.Text)
.Item(5) = lblSupName.Text
.Item(6) = lblOrderNum.Text
.Item(7) = FormatDateTime(Date.Now, DateFormat.ShortDate)
.Item(8) = "NOT PROCESSED"
End With
'CLEARING THE ADAPTER AND THE VB TABLE AND CLOSING THE CONNECTION
MyDatAdp = Nothing
MyDataTbl.Clear()
conn.Close()
Blank lines
Private Sub txtSupCode_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtSupCode.KeyPress
If Not (Char.IsDigit(e.KeyChar) Or Char.IsControl(e.KeyChar)) Then
Page 38 of 53
e.Handled = True
MsgBox("This field allows figures ONLY!!", vbExclamation)
End If
End Sub
Indentation
Private Sub txtProdCode_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtProdCode.KeyPress
If Not (Char.IsDigit(e.KeyChar) Or Char.IsControl(e.KeyChar)) Then
e.Handled = True
MsgBox("This field allows figures ONLY!!", vbExclamation)
End If
End Sub
TECHNICAL DOCUMENTATION
PSEUDOCODE OF THE SUPPLIER REGISTRATION MODULE
Page 39 of 53
START
END
ELSE
STOP
Page 40 of 53
ENTER Product Details
ENTER Mark Up
END
ELSE
STOP
Start
Page 41 of 53
Supplier Details
Supplier Code
Supplier Name
Supplier Address
Supplier Phone
Supplier Email
YES
NO
STOP
Page 42 of 53
PRODUCT DATEILS
PRODUCT CODE
PRODUCT NAME
SUPPLIER CODE
SUPPLIER NAME
COST PRICE
MARK UP
SELLING PRICE
Yes
No
STOP
End Sub
End Class
Page 44 of 53
The code of how to add the suppliers
Public Class frmSupplier
'VALIDATION FOR REDUNDANCY - THAT IS THE SYSTEM SHOULD REJECT AN ALREADY CAPTURED
SUPPLIER
connection()
conn.Open()
MyDataTbl = New DataTable
MyDatAdp = New OleDb.OleDbDataAdapter("Select * from Suppliers Where Suppliercode = " & txtSupCode.Text,
conn)
MyCmBld = New OleDb.OleDbCommandBuilder(MyDatAdp)
MyDatAdp.Fill(MyDataTbl)
If MyDataTbl.Rows.Count > 0 Then
MsgBox("The supplier code is used by " & MyDataTbl.Rows(0).Item(1), MsgBoxStyle.Exclamation)
MyDatAdp = Nothing
MyDataTbl.Clear()
conn.Close()
e.Cancel = True
Else
MyDatAdp = Nothing
MyDataTbl.Clear()
Page 45 of 53
conn.Close()
End If
End Sub
Page 46 of 53
'UPDATING THE ACCESS DATABASE
MyDatAdp.Update(MyDataTbl)
'CLEARING THE ADAPTER AND THE VB TABLE AND CLOSING THE CONNECTION
MyDatAdp = Nothing
MyDataTbl.Clear()
conn.Close()
'CALLING THE clear PROCEDURE TO CLEAR ALL THE TEXTBOXES IN THE GROUPBOX1
clear(GroupBox1)
txtSupCode.Focus()
USER DOCUMENTATION
Page 47 of 53
Installation
Load the system in the CD Drive, copy the folder “Database” and Paste the database in the local
dick C. take the application put it at the desktop click the install and the system will be installed.
On the log in form select the user and enter the correct password. After entering the correct
password the user will gain access to the main menu of the POS Pharmacy management System.
It is the main menu which gives the user access to all other modules of the system. If the user
wants to add a new Supplier to the database, he/she clicks REGISTER button and click the
SUPPLIER button. Also if he/she wants to add product he did the same as the Supplier.
Navigation
The main menu is the one which gives the user access to all other modules of the system. If the
user wants to add a new supplier to the database, he/she clicks the register button then goes to
supplier. If the user wants to add product he /she click the register button then go to product. Also
if he /she want to cheek the products in the system he/she click the product reports.
On the main menu, the user can click LOG OFF button to exit the current logged in user, but the
system will be still running. To completely exit the system, the user must click EXIT button.
Page 48 of 53
TESTING
Page 49 of 53
Standard testing
Abnormal testing
Page 50 of 53
This is when testing if the supplier code can be used by two suppliers
Extreme testing
Page 51 of 53
This is the maximum number of characters which is accepted by the
system to process. If you enter the number when the program is stopped
then the dial log box will appear.
Weaknesses
The system might be expensive for the individual to start since the system requires the analysts to
develop the system, to buy the equipment’s needed for the development of the system. It is difficult
to the person how sales the medicines, so he or she might need to be trained.
Opportunity
The system must be linked to the bank and the buyers can buy using the bank account to transfer
money, and it will no longer be necessary to bring the slip of the bank transfer. The system will
also be linked with Eco cash currently being used by many in our country.
Page 53 of 53