Professional Documents
Culture Documents
Systematic Drug Store: Muhammad Haroon Munir
Systematic Drug Store: Muhammad Haroon Munir
Advisor:
Dr. Nadeem Akhtar
11 March, 2019
Acknowledgement
All praise is to ALLAH, who created the universe and appointed the man as His vicegerent. I offer my
humble thanks to ALLAH who blessed and enabled me to complete this dissertation in the predetermined
time frame. All respects for the Holly Prophet (Peace Be Upon Him) who recognized us to our creator.
No volume of words is enough to my deep and sincere gratitude to my project Supervisor Dr.Nadeem
Akhtar, Assistant Professor, DCS & IT, The Islamia University of Bahawalpur, who has been helpful me
to explore this vast topic in an organized manner and provided me with all the ideas on Clinic
Management System. He encourages me how to work towards a project, without his devoted interest,
valuable attention and continuous encouragement it is not possible for me to complete work in time. He
gave positive approach in every matter even in unfavorable and odd situations shaped patience in me.
.
Most importantly, I would oblige a great depth of thankfulness to my loving parents for their prayers,
love, care and continuous encouragement. Their realistic love shows me right direction out of blue. I must
also thanks to all my family members and friends for their prayers and moral support which enable me to
achieve the desired destination.
Table of Contents
Chapter1 .................................................................................................................................................................... 5-6
Introduction .............................................................................................................................................................. 5-6
1.1 Purpose .................................................................................................................................................... 5-7
1.2 Scope ........................................................................................................................................................ 5-7
1.3 Definitions, Acronyms, and Abbreviations. .............................................................................................. 5-7
1.4 References ................................................................................................................................................ 5-7
1.5 Overview .................................................................................................................................................. 5-8
1.6 Product Perspective ................................................................................................................................. 5-8
1.6.1 System Interfaces ............................................................................................................................ 5-8
1.6.2 Interfaces ......................................................................................................................................... 5-8
1.6.3 Hardware Interfaces ........................................................................................................................ 5-9
1.6.4 Software Interfaces ........................................................................................................................ 5-10
1.6.5 Communications Interfaces ........................................................................................................... 5-10
1.6.6 Microsoft SQL Server ................................................................................................................... 5-10
1.6.7 Operations ..................................................................................................................................... 5-10
1.6.8 Site Adaptation Requirements ....................................................................................................... 5-11
1.7 Product Functions .................................................................................................................................. 5-11
1.8 User Characteristics .............................................................................................................................. 5-11
1.9 Constraints ............................................................................................................................................. 5-12
1.10 Assumptions and Dependencies ............................................................................................................. 5-12
Chapter2 .................................................................................................................................................................. 5-13
Software Requirements Specification .................................................................................................................... 5-13
2.1 Specific Requirements ............................................................................................................................ 5-14
2.2 Functions................................................................................................................................................ 5-14
2.3 Functional Requirements ....................................................................................................................... 5-14
2.4 Item Sale................................................................................................................................................. 5-14
2.4.1 Introduction ................................................................................................................................... 5-14
2.4.2 Inputs ............................................................................................................................................. 5-15
2.4.3 Processing...................................................................................................................................... 5-15
2.4.4 Outputs .......................................................................................................................................... 5-15
2.4.5 Error Handling ............................................................................................................................... 5-15
2.5 Item Purchase ........................................................................................................................................ 5-15
2.5.1 Introduction ................................................................................................................................... 5-15
2.5.2 Inputs ............................................................................................................................................. 5-15
2.5.3 Processing...................................................................................................................................... 5-15
2.5.4 Outputs .......................................................................................................................................... 5-15
2.5.5 Error Handling ............................................................................................................................... 5-16
2.6 Employee ................................................................................................................................................ 5-16
Chapter1
Introduction
1.1 Purpose
The purpose of this project used in the medical store to maintain the detail of the stack and
account of our pharmacy store. The Systematic Drug Store are used to designed to work load our
medical store are professional. The features include inventory and stocks control, client
management. The requirements were to develop a flexible Pharmacy information system which
we can be used for administration, who wants to get information. The main purpose of my
project is that every companies of Medicine are Available in this store. If the customer wants to
change the medicine that is easily change. The customer come to pharmacy store with receipt
and asked the admin to change the medicine. The admin edit the slip and give the required
medicine of the customer. Only authorized administrators can update, delete, edit and search and
change any records
1.2 Scope
The project has following aspect that helps the Administrator of the Systematic Drug Store
1) It can manage all the records of the medicine and their information.
2) It can manage all the records of the works order and their information.
3) Search the particular record of the database and generate the Report.
4) It is not costly all the record can be managed only single computer.
5) It is not time consuming system.
6) It can easily add or remove the records of the medicine.
7) All the information stored in a single place the redundancy cannot occur.
8) If all the record are lost they can easily generate a backup.
9) It is set of different types of constrains.
10) It is centralize database system.
Terms/Abbreviations Explanations
SDS Systematic Drug Store
CMS Content management system
GUI Graphical User Interface
DDBMS Distributed Database Management System
DSS Data storage system
RBAC Role back Access Control
STD Standards
USER System User
1.4 References
In this section of the reference:
I search the different website and collect the data get idea.specifications of IEE recommended by
the software requirements and also follow the instruction of the IEE template.
1) www.google.com
2) www.youtube.com
1.5 Overview
The Systematic Drug store is developed in order to replace the manual base system to the
computerize. Here system is expected to the efficient, useful and affordable to implemented task
in the order of the pharmacy management.
1.6.2 Interfaces
There is a pharmacy manager Interface. He can add or remove the employee information in this
system. The important part of the interface is that the admin can generate the token bill of the
user. We will provide a better and efficient interface of this Pharmacy system. My thought is that
every pharmacy store attract this interface and wish to purchase this pharmacy management
interface.
Administrator Interface
The administrator can view the record of his staff members and the Dealers that are involved
into the system. He can add or Remove any staff member from the system. He can view different
types of reports for example sale or purchase report. He can manage stock, add new items to the
system. He can update the staff record as well as the stock record as required.
Recommended Configurations:
Data Requirements:
1) The particular format for the data should be accepted by the system.
2) We will have to know about it the data that we are entering is acceptable for the
system or not.
Change Requirement:
1) If you have to change the some part for example about employee or supplier you
will have enter the updated version of the software requirement specification
documents.
1.7 Product Functions
1) It keeps the information’s about the employees, suppliers and categories etc.
2) The sufficient quantity of the stocks is issued by the admin to the customers.
3) Due to insufficient quantity that the customers are demanding that will not be issued.
4) The orders are given to different parties for purchasing if the stocks are less quantity in the
pharmacy store.
5) The payment can be deposited in time or sometimes.
To attract the customer in pharmacy store discount and different offers can be given to the all
customers in given dates
1.8 User Characteristics
This system is intended to use by various users. we can divided all the users in four stages each
one is responsible and role in the PMS.
Manager Responsible for the batch of the project and 1st project
control overall development flow and Description
Assigns the projects.
The project team leader fulfillment of the
project task and control the functionality of
the project.
Project Team leader Responsible for the particular project. 1st project
Leads a project for 2-20 members of each Description
project team.
Assigns the task to project team members
and controls to their fulfillments, Reports to
the manager.
Project team member Responsible for a particular task or part of 1st project
the task. Description
Reports to the project team leader.
System Administrator Responsible for the installation , 1st project
maintenance , security and troubleshoot the Description
productive system to manages the PMS.
It is responsible for generating the reports.
1.9 Constraints
1) The main Constraint which would be the checking the requirements of the buyer.
2) The development system run Under the platform (Windows , Unix , Linux , Mac etc)
3) It is necessary to run this project to install the visual studio 2015.
4) It is necessary to install SQL server 2007, 2017 or 2012.
5) The hardware Must be Attached this system.
6) The user Get information about the Medicine or its product.
7) It cans also control functions of this software.
8) It is also contains a set of rules that can be predefined.
9) Execution time of software cannot longer than 1 or 2 second.
10) It can have regulatory policies.
11) It has high order language required.
12) It has hardware limitations.
13) It is safety and security considerations.
1.10 Assumptions and Dependencies
The PMS stores all the operational (projects, tasks, subtask, dependencies and resources).The
data is a centralize data storage with using Distributed database system. There are no
requirements of the data storage system. We assume that the pharmacy management system
(PMS) will able to access a data with Database management system through standard interfaces
like ODBC, ADO Provide by Development environment. The pharmacy management system
(PMS) support distributed project management. It can be run over the various platforms. In this
platform you cannot be communicate with other medical stored to get the information about the
medicine. Because the system cannot provide the communication interface to the client. The
detail also related the project, customer, payment and service transactions. The Administrator
can created the system is already and their roles and task are also predefined.
Chapter2
Software Requirements Specification
1) Requirements specifications
2) Requirements validations
3) System Modeling
4) Requirements Management
5) Reports Generated
Requirements Specification leads the following faces.
1) Identify the External interface
2) Allocate Requirements
3) User characteristics
4) Development of requirements in Matrix
5) Prioritize requirements
2.2 Functions
1) Administrator manages information for employee.
2) Manages the stock and purchases.
3) Make product sale to the customers.
4) View different reports.
5) Manages the information of debit customer.
6) Manages the debit customer account.
7) Manages the Dealer information.
8) Manages the debit purchases.
9) Total bill of the customer purchases.
10) Total bill of the sales items
2.3 Functional Requirements
This section describes specific features of the software project. If desired, some requirements
may be specified in the use-case format and listed in the Use Cases Section.
2.4.2 Inputs
The person who is logged in to the system can issue sale orders by checking the demand of
customers or viewing the stock. The item name, item quantity, rate, city of the customer or
client, sale order date are the basic inputs for this module.
2.4.3 Processing
The data processed in it can be in the form of adding a sale order, updating orders issued and
searching order by date etc. changing customer required items, order dates by updating of
records are common processing elements of the module.
2.4.4 Outputs
The data is organized in well and understandable and efficient format. The output can be
generated in different formats i.e. checking whether an order is issued by an employee or not.
Different type of reports can be produced by the employees of the shop for checking their order
to maintain the super store.
2.4.5 Error Handling
If some record is inserted that is incorrect then it can be updated by administrator. The records
that contains some errors can be resolve by the update operation which is the authority of store
administrator to maintain data accuracy and consistency.
2.5 Item Purchase
2.5.1 Introduction
Purchase order are given by the employee, chemist or by the administrator itself to different
parties. The purchase order are given when the items for some stock are finished in stock or are
in less quantity than selling quantity
2.5.2 Inputs
The Admin which is login into the system can give a purchase order by checking the demand of
customers or viewing the stock. The item name, item quantity, rate, city of the company,
purchase order date, delivery date etc. of purchase order are the basic inputs.
2.5.3 Processing
The data processed in it can be in the form of adding a purchase order, deleting orders, updating
orders issued and searching order by date or order number etc. Changing delivery dates, order
dates by updating of records are common processing elements of the module.
2.5.4 Outputs
The data is organized in well and efficient format. The output can be generated in different
formats i.e. checking whether an order is given by the employee, chemist or the administrator or
not. Different type of reports can be produced by the employee and the administrator of the
Systematic Drug store for checking their purchase order to maintain stock.
2.6.2 Inputs
The administrator input the system of employee id that can be assigned of each employee of the
pharmacy store. The employee id contains the name,cinic#,mobile#,salary , salary status . The
administrator can set the each employee salary and then stored a record of each employee in the
database
2.6.3 Processing
The data process in the form of adding records , update Employee’s record and search the
particular employees working in the system that are currently work here and also check which
employees are left the job.
2.6.4 Outputs
The format of the data that can be organize as well and understandable or efficient. The output of
every each employee generated differently for example the admin check the employee that are
currently work there and salary status and their information is also remarked these things.
Different types of the reports can be generated by the admin and it can be comparing the
employees performance.
2.7.3 Processing
The data processed in it can be adding records, and search a particular unit or Product which is to be
deleted or updated.
2.7.4 Outputs
The data is organized in well and understandable and efficient format. The output can be
generated in different formats.
2.7.5 Error Handling
If some record is inserted that is incorrect then it can be updated by administrator. The records
that contains some errors can be resolve by the update operation which is the authority of store
administrator to maintain data accuracy and consistency.
2.8 Product
2.8.1 Introduction
This module is used to keep the information of the products. It is maintained by the Admin of
Systematic Drug store . Only the administrator responsible for adding new products.
2.8.2 Inputs
To maintain the information of Product in the system these should be assigned an id, Product
name, Product category and unit name etc. if some fields are empty the system prompts to fill the
required fields
2.8.3 Processing
The data processed in it can be in the form of adding record of the new products, and search a
particular Product which is to be deleted or updated.
2.8.4 Outputs
The data is organized in well and understandable and efficient format. The output can be
generated in different formats.
2.8.5 Error Handling
If some record is inserted that is incorrect then it can be updated by administrator. The records
that contains some errors can be resolve by the update operation which is the authority of store
administrator to maintain data accuracy and consistency.
2.9 Stock
2.9.1 Introduction
Through stock view work, employees and the admin of the system check and view the real status
of the stock.
2.9.2 Inputs
For perspective of stock status, any id or item name use as a sources of info.
2.9.3 Processing
After this, user select a button related this function or select any other menu.
2.9.4 Outputs
In the wake of entering id or item name, demonstrate the all data of stock like stock amount,
stock cost and so on.
2.9.5 Error Handling:
If the item id or item name is not entered client cannot check stock .Enter item id.
2.11.1 Introduction
After sale, user generate bill of sold items to customer through system.
2.11.2 Inputs
Product items and customer record required as input to generate bill for payment after sales.
2.11.3 Processing
For generate bill, many option like button, menu and some mathematical operations performed.
2.11.4 Outputs
Item name, amount, value, rebate and client name are show on bill to make installment
conceivable.
2.11.5 Error Handling:
If user do not have sale record bill will not be generated. Generate the bill.
In this requirement , Specify the requirements derived from existing standards or regulations.
They might include:
Report format
1) Data naming
2) Accounting procedure
3) Audit Tracing
Inventory control and management enable EMS agencies to Improvement. Efficiency and
effectiveness. Complex environment requires administrator to constantly juggles issues like
tightening budgets, drug shortages, strict governmental regulation and a highly engage and
connected staff –all while operating in a litigious society. Using this approach to inventory
management and supply and logistics is no longer an acceptable practice.
2.17.1 Performance
System will perform each task almost within 15 seconds. Increasing the hardware specification
will increase the performance of the system.
2.17.2 Reliability
The Reliability means that the chance to avoid the failure of the software, that operation
performed in this software are specified to the environment. The reliability of the software is also
a main factor.
2.17.3 Availability
Availability means that incase of network failure, we cannot connect the database. In this
situation only right operation can be perform and they cannot retrieved the data in the database
until after the cluster system is prepared.
2.17.4 Security
The security of the system main part of any software management system. It can avoid the use of
unauthorized persons that cannot get any information about the products. No other person can be
seen the product history. The record of the system must be changed the admin system in case
admin are not available the employee of the pharmacy are not authority to use the admin
account.
2.17.5 Maintainability
The system should be consistent and never slow down. If error is occurs as soon as possible
automatically maintained. The database maintainability is to proved flexibility, usability and
suitability of the given database. A section to prove the database is fit and use for the purpose.
2.17.6 Portability
Portability means that the system can be run on any windows operating system by installing it
another platform. The Visual programming can provide the environment of any windows
operating system that is possible to run the system
2.18.3 Objects
1) Insert () insertion operation are used to insert the data .
2) View () method is used to view the output.
3) Update() is used to update the employees , products , medicines , and further updating in
the system
4) Search () selects the desired data from database.
5) Delete () is used to delete the record in the database.
2.18.4 Feature
The Administrator are full authority to change the entire system, and also convert the data in
different forms and the user just has to describe desired input the data to be execute.You can
easily generate the reports of the purchase and sale items.
2.18.5 Stimulus
1) Open Systematic Drug Store application
2) After login to the system you can have many operations like insert, update, and view and
delete the products and employees information.
3) Adding new companies of medicines and their dealers information.
4) Generates the reports of purchases and sales item in pharmacy system.
Chapter3
System Design and Architecture
This is the complete use case diagram of the system where the customer and Manager/admin can
performed some operations check the stocks, update ,delete ,print, search medicine and print the
sale item report
This is the sequence diagram of the system , firstly user is enter it can show the login form after
it can fill this form enter the system and performed operations i.e check Admin/manager
controller and submit the account info and check the account is available or not if available then
proceed next step or if not available then destroy the instruction.
Project Document Page 27 of 51 03/14/19 f
Systematic Drug Store
3.4 ER-Diagram
This is product table it can used to store the product table definition it can contain name, data
type, allow nulls , default columns .
Table no 3.6.1
Table no 3.6.
3.6.3 Purchase
The short detail of the component design working describes as the user after login to the system
will choose an option for the submission or other action. Consider an example if a user choose
the option to save the project, he or she will press the tab of submission. The given data in the
text box will be stored in the database and a user can also retrieve the data on demand. Suppose
he or she want to see his or her data of project proposal submission, the user will only click to
the data showing tab the stored data in the of the system
Chapter4
Implementation and Testing
using System;
usingSystem.Data;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Data.SqlClient;
namespaceDatabaseConnectivity
{
public class Database
{
Private String ConnectionString =
(@"DataSource=(LocalDB)\v11.0;AttachDbFilename=E:\FinalYearProjecMCS\PhramacySt
ore\PhramacyStore\pharmadb.mdf;Integrated Security=True"");
SqlConnection conn = new SqlConnection (this.ConnectionString); SqlConnection conn = new
SqlConnection(this.ConnectionString);
SqlCommandcmd = new SqlCommand(sqlText, conn);
SqlDataAdapteradpt = new SqlDataAdapter(cmd);
DataTabledt = new DataTable();
SqlDataReaderrdr = cmd.ExecuteReader();
}
}
When the application is run this page is visible. This is main entrance page to enter into the
application after enter correct username and password.
This is main page of the application. It contains all the controls to use to maintain pharmacy store
management. The most the components are placed in this strip.
4.4 Implementation
A crucial phase in the system life cycle is the successful implementation of the new system
design, Implementation simply means conveying a new system design into operation. This
involves creating computer-compatible files, training the operating staff and installing hardware,
terminals before the system is up and running.
In system implementation, user training is very difficult for minimizing resistance to change and
giving the new system a chance to prove its worth. Training aids, such as user friendly, manuals,
a data dictionary, job performance aids that communicate information about the new system and
“help” screens helps the user to work efficiently on the new system.
4.5 Testing
Testing Strategy:
The errors may occur at a very inception of the process where the objectives may be erroneously
or imperfectly specified. Because of human inability to perform and communicate with
perfection, software development is accompanied by a quality assurance activity.
The basic Strategies that are used for testing are following.
In Black Box testing only the functionality was tested without any regard to the code written. If
the functionality, which was expected from a component, is provided then black box testing is
completed. Black Box testing is also called as Behavioral testing because it tests the functional
requirements of the software. Black Box testing enables to derive sets of input conditions that
will fully exercise all functional requirements for a program. Black Box testing is not an
alternative to white-box techniques. Rather it is complementary approach that is likely to
uncover a different class of errors than white-box methods.
White Box Testing:
In white Box testing internal code written in every component was tested and it was checked that
the code written is efficient in utilizing various resources of the system like memory or the
utilizing of input/output. White Box testing is a test case design method that uses the control
structure of the procedural design to derive test cases. Logical errors and incorrect assumptions
are inversely proportional to the probability that a program path will be executed.
Unit Testing:
In Unit testing I checked that the entire individual component is working properly. Before
integration of the entire component unit testing is essential because it gives a confidence that all
the component individually are working fine and ready to be integrated with the other one.
System Testing:
When all the units are working properly and unit testing was performed then the time for system
testing arrives, where I checked all the integrated components as a whole and looked for possible
discrepancies, which could have arisen after the integration.
Acceptance Testing: In acceptance testing the software was checked for completeness that it is
ready. Normally the quality assurance department performs the acceptance testing that the
software is ready and can be exported.
Debugging:
Debugging is not testing but it occurs always as a consequence of testing. It begins with
execution of a test case. Results are assessed and lack of correspondence between expected and
actual performance is encountered. Debugging is one of the more frustrating parts of
programming. It has elements of problem solving or brainteasers coupled with the annoying
recognition that you have made a mistake. While testing my software I found some errors, which
I corrected in debugging modes. I found Syntax errors in Black box testing and Logical errors in
white-box testing.
Syntax Errors:
These are caused by typographical errors & incorrect use of the Programming language.
Logic Errors:
These are caused by the incorrect use of the control structure. These errors were identified while
testing procedure and were corrected in debugging mode.
Test:
Login form is opened and login username and password is entered.
Instructions:
1) Open the Login Form
2) Enter user name and password.
Expected Result:
Message will appear that please enter correct user name and password.
Actual Result:
The entered user name and password is correct, hence you can manage your software system to
make changes into the data and also can get the expected result you desire.
Test:
The registration testing actually a testing in which it is notifies the user that if the new candidate
has unique id and password then it will become a new registered candidate.
Instructions:
1) You can select the option for add new employee to add a new Employee.
2) Against the option you may find any more options.
Expected Result:
1. The “adds new employee” form with its all basic information.
2. The testing will occur consequently on the selected option.
Actual Result:
Result was as per expected on the behalf of the menu and the candidate is registered now.
Test:
The insertion record testing module shows the information of the product is provided correctly. It
needs some basic information like unit category etc.
Instructions:
1) Select add new product form from the main page and provide the required information.
2) Add new product.
3) Update.
Expected Result:
Test
The insertion record testing module shows the information of the purchases is provided correctly.
It needs some basic information like unit, category, quantity, purchase price, sale price, purchase
id etc.
Instructions:
1) Select add new stock/purchase form from the main page and provide the required
information.
2) Add all the products purchased against the same purchase id.
3) Add quantity and other required information.
4) Add new purchase or stock.
Expected Result:
1) Errors may occur in a case if some fields like quantity and any of the required is not
provided.
Actual Result:
Test:
This module is based on the selling one or more product to the customer. In this module it is
tested that all the information regarding to make a sale is provided like if the product is selected,
quantity to sale is entered customer type is selected etc.
Instructions:
5 Testing summary
Testing of every module fulfils the requirement of user to check into the system that either all the
options are working correctly or not. To check and test a module it must get the knowledge of
the working type it holds. Many checking techniques are gathered to make sure the testing
criteria but it is the suitable option for the testing authority to attempt the best one so that the
testing technique make sure itself the working of the system.