Inventary System
Inventary System
ADVISORS: INSTRUCTOR
JUNE, 2014
DEBRE BERHAN, ETHIOPIA
ACKNOWLEDGEMENT
First of all, we would like to thank our God, who gives us love, patience, healthy, wisdom and ability
to walk through all the problems and obstacles during the period of our study. Then we would like to thank
our advisors Instructor Kidanemaryam G. and Hafte A. for thier constractive opinion and willingness to
participate in each part of our project and their effective direction, assistance and guidance for the
accomplishing of this project. We also wish to thank the stock Manager and the stock clerk, who gave us the
required information about the stock.
Our Special thank to Kasahun Minwuye, who had generously provided us his lap top for this Project.
Finally we would like to express love, thanks, appreciation, and respect to our families and also we would like
to thank the teaching staffs of Information Technology who have contributed wholly to the success of this
project.
TABLE OF CONTENTS PAGE
CHAPTER ONE ............................................................................................................................................... 1
[Link] BsACKGROUND ........................................................................................................................ 1
1.1. Organizational Background .................................................................................................................... 1
1.2. Statement of the Problem and its Justification ....................................................................................... 1
1.2.1. General Problem ............................................................................................................................... 1
1.2.2. Specific Problem .............................................................................................................................. 2
1.3. Objective of the Project .......................................................................................................................... 2
1.3.1. General Objective ............................................................................................................................. 2
1.3.2. Specific Objectives ........................................................................................................................... 2
1.4. Methodology .......................................................................................................................................... 3
1.4.1. Fact Finding Techniques .................................................................................................................. 3
1.4.2. System Analysis and Design Techniques ......................................................................................... 3
1.4.3. Tools Used in the Project ................................................................................................................. 4
1.5. Scope and Limitation of the Project ....................................................................................................... 4
1.5.1. Scope of the Project .......................................................................................................................... 4
1.5.2. Limitations of the Project ................................................................................................................. 4
1.6. Project Team Organization ..................................................................................................................... 5
1.7. Feasibility Study of the New System ..................................................................................................... 5
1.7.1. Economic Feasibility ........................................................................................................................ 5
1.7.2. Technical Feasibility ........................................................................................................................ 7
1.7.3. Operational Feasibilities ................................................................................................................... 7
1.7.4. Schedule Feasibility ......................................................................................................................... 7
1.8. Significance of the Study ....................................................................................................................... 8
CHAPTER TWO .............................................................................................................................................. 9
[Link] THE EXISTING SYSTEM .................................................................................................. 9
2.1. Introduction ............................................................................................................................................ 9
2.2. Description the Existing System ............................................................................................................ 9
2.3. Player of the Existing System ................................................................................................................ 9
2.4. Work Flow of the Existing System ........................................................................................................ 9
2.5. Report Generating in the Existing System ........................................................................................... 10
i
2.6. Business Rules Identified in the Existing System ................................................................................ 10
2.7. Paper Document in the Existing System .............................................................................................. 11
2.8. Problem in the Existing System ........................................................................................................... 11
2.9. Practice to be Preserved ....................................................................................................................... 11
2.10. Alternative Solution .......................................................................................................................... 11
2.11. The Proposed System ........................................................................................................................ 11
2.11.1. Functional Requirement of the New System ............................................................................... 12
2.11.2. Non Functional Requirement of the New System ....................................................................... 12
CHAPTER THREE ........................................................................................................................................ 13
[Link] DELIVERABLES OF THE NEW SYSTEM ......................................................................... 13
3.1. Introduction .......................................................................................................................................... 13
3.2. Use Case Diagram ................................................................................................................................ 13
3.2.1. Use Case Documentation ............................................................................................................... 15
3.1. Analysis Level of Class Diagram ......................................................................................................... 22
3.4. Sequence Diagram ................................................................................................................................ 23
3.2. Activity Diagram .................................................................................................................................. 31
CHAPTER FOUR ........................................................................................................................................... 36
[Link] DELIVERABLE OF THE NEW SYSTEM................................................................................. 36
4.1. Introduction .......................................................................................................................................... 36
4.2. Design Class Diagram .......................................................................................................................... 36
4.3. Collaboration Diagram ......................................................................................................................... 37
4.4. State Chart Diagram ............................................................................................................................. 43
4.5. Database Design ................................................................................................................................... 47
CHAPTER FIVE ............................................................................................................................................ 49
[Link] DELIVERABLE OF THE NEW SYSTEM ........................................................... 49
5.1. Introduction .......................................................................................................................................... 49
5.2. Component Diagram ............................................................................................................................ 49
5.3. Deployment Diagram ........................................................................................................................... 50
5.4. User Interface ....................................................................................................................................... 50
CHAPTER SIX ............................................................................................................................................... 55
[Link] DEVELOPMENT ................................................................................................................ 55
CHAPTER SEVEN ........................................................................................................................................ 61
ii
[Link] AND RECOMMENDATION ........................................................................................... 61
7.1. Conclusion ............................................................................................................................................ 61
7.2. Recommendation .................................................................................................................................. 61
Appendix ................................................................................................................................. 62
Reference ................................................................................................................................................ 63
iii
List of Tables
Table 1.1: Project Team Organization ………………………………………………………………………….5
Table 3.11: Main Course of Action about Return Item Requesting ...……………….…………………..……21
iv
List of Figures
Fig 3.1: Usecase of Proposed Inventory Management System …………………………………………..……14
v
Fig 4.12: State Chart of Delete Item………………………………..….............................................................45
Fig 4.16: Database Design of the Proposed Inventory Management System …………………………………48
Fig 5.1: Component Diagram………………………………………………………………………………….49
Fig 5.2: Layer of the System (Deployment Diagram)…………………………………………………………50
Fig 5.3: User Interface Design for Home………………………………………………………………………51
Fig 5.4: User Interface Design for Login………………………………………………………………………51
Fig 5.5: User Interface Design for Add Usser with Error Message……………………………………………52
Fig 5.6: User Interface Design for Add User…………………………………………………………………..52
Fig 5.7: User Interface Design for Manage User………………………………………………………………53
Fig 5.8: User Interface Design for View Report……………………………………………………………….53
Fig 5.9: User Interface Design for Report for Free Item……………………………………………………....54
Fig 5.10: User Interface Design for Clerk’s Approval Page…………………………………………………...54
vi
Abstract
This system provides superior management over inventory by optimizing inventory stocking levels for
excellent customer service. It maintains the all information about the organization regarding employees,
different stock levels etc.
Online Inventory management system mainly provides effective and fast data processing and
controlling of stocks. This web based system of managing inventory in a our University setting is expected to
help various services keep an updated data on the status of their tools and equipments. In designing such a
system, PHP has been employed as a development language and MySQL as a backend database with CSS
implemented for the interface. Generally, the main goal of online inventory management system is to shorten
data-processing time, to reduce errors, to improve the accuracy of input and to provide data reliability of the
stock.
vii
CHAPTER ONE
1. PROJECT BACKGROUND
Inventory management system deals primarily with determining the amount and placement of the
materials within a facility or within multiple locations of a store. One way of managing this system is to have a
web-based system in place that can instantly track and update the information about the tools or equipment.
The importance of implementing a web based inventory system is becoming vital as most of the time the
information are accessible directly, so making the details of the usage of the equipment available, and
improving the movement and anticipation of their demand as well as the productivity of the system as a whole.
The implementation of this web-based inventory system can help the University to develop the skills to handle
with their operational environments. Because lack of system tool to be used to monitor the availability and
quantity of materials in this University.
Debre Berhan University was officially established in June 3, 1999. During this time it included three
faculties. These are natural science, social science, Business and Economics Faculty. At present the University
runs undergraduate programs. It is expected that with the on-going expansion a number of faculties and
programs will be opened and the enrolment capacity will increase.
The Debre Berhan University store office was established during this time and it is developed from time to
time with the development of the University. As it is developed from time to time it increases its capacity by
increasing the number of workers in the office. The Debre Berhan University store office is the back bone of
the University by managing any activities related to materials available on the University. Now a day’s, Debre
Berhan University store office gives many services, among these services the following are the main services:
Registering new materials
Generate report periodically
Offering materials to the users
Debre Berhan University Inventory System is using manual system on the inventory of all the properties
of University.
1
1.2.2. Specific Problem
Registering materials is manual and not well organized. This will result in poor techniques handling in
arrangement related data.
It is not easy to handle reservation, because the stock clerk is forced to check manually the entire list of
materials which are stored in the stock. In addition, the current system does not allow speed processing
of users request adjustment and cancellation of what has been reserved.
To generate a report from manual system requires much effort and it is time consuming.
Since all records kept physically on shelves and file cabinets the stock record keeping system is poor
and subjects to number of problem such as files can be destroyed or stolen.
It is difficult to identify the materials where they are stored because of the presence of different stores.
Difficult to manage and control daily activities.
To develop computerized system for inventory management system in Debre Berhan University.
To shorten data-processing time: In processing the inventory, it will not consume much time to
process.
Reduce errors: Through this system, fewer errors will be avoided because the system will be
easy to use.
Improve the accuracy of input: It will help the user to avoid mistakes regarding the data that
they will give to the clients. There will be accurate information.
Give information easily and efficiently: It will make easier to give information for the user.
Data reliability: It gives users the assurance that the information they see is reliable.
Data security: It ensures that data is kept safe from corruption and that access to it is suitably
controlled. Thus data security helps to ensure privacy. It also helps in protecting personal data.
2
1.4. Methodology
The Methods and techniques we use to analyze the existing system and designing web based system
includes, interview, document analysis and practical observation. Those methods which help us to gather the
required data to analyze our project and those methods selected due to the time and the organization’s
willingness.
I. Primary Techniques
i. Interview
To get information, discussions with the store head will be conducted with concerned staff of the
corporation to get general information. We asked the head of the store Ato Worku Asefa at 03/12/20013 G.C
about that store information when we wanted to write this proposal.
It helps us to get real information how the organization performs its function and this helps to strength
the data that gathered through interview and document analysis.
i. Document Analysis
This technique provides information on how the existing system works .There for documents related to the
existing system of the organization will be assessed.
In this project, our team will use object oriented system development methodology (OOSD) for the
design.
This technique has several phases some of them are:
During this phase the team uses to model the function of the system (use case modeling), find and
identify the business objects, organize the objects and identify the relationship between them and finally model
the behavior of the objects in detail.
3
II. Object Oriented Design (OOD)
During this phase our team uses Microsoft Visio software to refine the use case model and rational rose
for designing the sequence, collaboration, activity diagrams and to model object interactions and behavior that
support the use case scenario.
MySQL software of the data base system will be used in developing and managing the back end of the
system.
The user interface will be developed using php integrated development environment since it easily
designing the front end and connected in to data base easily.
The project that we are trying to focus on inventory management system will cover only on the Debre
Berhan University and will perform the following activities:
To add users and items.
To search items.
To update users and items.
To request an item online.
To generate report.
Generally, this system automates the functions of inventory management system.
Limitation is element of factor or subsystem it restricts the system decision making from achieving
potential goal of the system. There are many constraints within our proposed system that limit their
effectiveness of performance. Our system is limited only in the process of inventory management system of the
Debre Berhan University.
4
The system does not include the following:
The system may not automate fully because:
Our system does not include online payment.
Transferring an item must be done manully.
Users must contact physically to administrator to change their password.
The above activities or subsystems are proposed system limitations because of the following reasons:
Time:-Is the main factor of limitation our proposed systems that limit its performance because
while we are developing the system it takes more time and we may not get enough time to
automate the system.
Resource: - we have not laptop as an alternative when arbitrary failed the desktop and also
when the power is off for a long time.
The project team composed of 6 members, one team leader, one deputy leader, one secretary and
members organized as follows.
5
This project is economically feasible because its anticipated benefit is greater than the expected
cost.
i. Tangible Costs
For this particular project we will use different software but the software is provided by the university.
6
ii. Intangible Costs
Those are costs which are uncountable .The intangible costs to be acquired in developing the system are:-
a. Human Knowledge
Our knowledge that we will spent to develop the system may not be measureable in terms of money.
The technical requirement for the inventory management system in order to do their operation by the new
computerized system is:
Training on the new system to know how it operates and how to use the computerized system.
It determines how the proposed system will satisfy the organizations need and it also offers Secure,
accurate and efficient system to the organization.
The system in which we are developing is also compatible to all operating systems and web browsers.
Within the time duration, we have identified the activities of the project in order to accomplish the project
objective within their schedule requirement which is on the table below.
December
February
No.
January
–June
1 System proposal
2 Requirement analysis
3 System design
4 Implementation
Table 1.4: Time Schedule for Our Project
7
1.8. Significance of the Study
8
CHAPTER TWO
2. DESCRIBING THE EXISTING SYSTEM
2.1. Introduction
It is possible to develop a better system by understanding the existing system. Even if it is a manual
system; it is performing the following activities. Registering new items of the stock, supply items from the
stock, maintain and update records, prepare report and others.
The existing inventory management system performs the following function with semi manual system
and this leads to less security issues. Because of the manual system recording and posting of materials is time
consuming and boring .This is the result of lack of computerized system or web based system
The work flow in the existing system is performed starting from the top store head to the lower or store
kipper person. First the store clerk receives the material detail from the store head and he/she assigns a code
and record the information.
Then the store keeper must get permission to receive and give the materials to the staff members by the
head of the store office and the store keeper checks the incoming and outgoing materials by the related
professionals. Then the store keeper documents the information and reports those materials detail based on
their type to the officer.
9
2.5. Report Generating in the Existing System
The stock clerk generates report to the stock manager then the manager generates report perodically
according to the task of the organization what activities are performed. But at the end of the year, the report
must be within a total income and an item.
A business rule is successfully an operating standard or polices that we have try to specify for both the
existing system and the proposed system of the store management must satisfy.
We mainly focus on the existing system business rules.
The existing system has many business rules or principles some of them are:
Br1: new items are recorded and assigned a code by the stock clerks.
Br2: after recording and assigning code by the store clerk the items led to the store keeper then he/she
record, check and place them.
Br3: only staff members of the university are allowed to take an authenticated material.
Br4: when the users/staffs want to borrow any material he/she must register his id, full name, email, status and
other user details properly.
Br5: in order to get the item he /she must get permission from the academic president /president and the store
officer have to put their signature.
Br6: the staff member has to put his/her signature while taking the item.
Br7: the staff member should not damage the item.
Br8: if the staff member has loss or damage the item he/she has to replace that item or pay the cost with
additional percent.
10
2.7. Paper Document in the Existing System
The major problem of the existing system is often used manual system so that it takes much time to
generate reports, to manipulate the overall activity of this system.
This is the new system that removes the existing problems which usually occurred in the inventory
system. 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.
We all know the importance of automation. The application areas for the computerization have been
selected on the basis of following factors:
11
Minimizing the manual records kept at different locations.
There will be more data integrity.
Facilitate desired information display very quickly by retrieving information from users.
Facilitating various statistical information which helps in decision-making.
To reduce manual efforts in activities that involved repetitive work.
Updating and deletion of such a huge amount of data will become easier.
There are several functions that are included in the system to satisfy the needs of the university. Some of
these are as follows:
The proposed system is intended for inventory purposes. Thus, it can perform different processes
included in the inventory. It will be able to monitor the delivery of a certain items; the newly ordered items
will be added to the current stocks and for the outgoing stocks that can be subtracted from the current stock.
Therefore, the University will able to track the item/supply that are running out of stock and thus prepare order.
Functional requirements of the system are:
The stock clerk adds the new material’s information.
The stock clerk updates the item information periodically.
The users request item online.
The system permits users to login according to their privilege.
The manager views a report and the comment.
The administrator manages(add, update, inactive) the user information.
The users Search(view) an item.
The staff members receive a response which is approved or disapproved.
User interface: attractive, easy to use and user friendly window for the users.
Performance and Access time: The system is capable of carrying huge amount of data with one database and
will provide fast access to the customer according to their privilege.
Security: the system should enable to task a back up at any time and able to restore from backups. The users
are allowed to do task only after the login process Based on their privileges.
System Modification &Maintainability: the system that we develop will be easily maintainable and
modifiable for new features.
12
CHAPTER THREE
3. ANALYSIS DELIVERABLES OF THE NEW SYSTEM
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.
We use a use case to identify a sequence of actions that provides a measurable value to the actor which is
participating in our system and our use case describes a way to which the environment interacts with the
system.
13
Web based Inventory Management System in DBU
<<include>>
Manage User
View
<<in
c lude
>>
Comment
<<in
c lude
>>
Login
Administrator <<extends>> Manager
Logout
View Item
Request Item
<<include>> <<include>>
Take Request
Return Request
Staff Member
Stock Clerk Recieve Response
Manage Item
>>
c lude
<<in
<<in
c lude
Add Item >>
<<in
c lude
>> Update Item
Delete Item
14
3.2.1. Use Case Documentation
It is a sequence event that describes what the proposed inventory system we will develop does and how it
interacts with the environment mainly. This section describes the most important activates that the user of
inventory system do experience to make use of the system.
Name: Login
UC_ID: UC_01
Actor: users (administrator, manager, stock Clerk and staffs)
Description: this use case is used to ensure security in system usage.
Precondition: the user must have at least username and password.
Post condition: the user get access to the system according to their predefined system privilege and finally
he/she logout or turn off the page.
Alternative course of action (if user enters wrong user ID and / or password)
Step6: System displays an incorrect username and password message.
Step7: System enables user to try again.
15
Preconditions: The Administrator login to the system to manage users.
Post conditions: The user information will be managed by administrator.
Main course of action:
About adding new user account
16
Alternate course action:
Step5: the system doesn’t save the new account to the system database and it displays a fill again message.
About inactivate the account:
17
Main course of action:
About adding item:
18
Alternate course action:
Step5: displays “try again” message.
19
Main course of action:
20
Preconditions: The staff members have to login to the system and they have to fill the request item form
correctly.
Post conditions: The staff member will sent take or return item request .
Main course of action about taking Item Request:
Actor action System response
Step1: the staff wants to request the item. Step 4: the system validates the item detail.
Step2: the staff member enters the item Step5: the system sends the request.
description (item type, item name, brand, Step6: the process ends.
quantity, model, serial_no etc.) he/she wants.
Step3: the staff member clicks on request
item.
Table 3.10: Main Course of Action about Take Item Request.
Alternative course of action:
Step5: system displays a try again message.
About returning item request:
Actor action System response
Step1: the staff wants to request the item. Step 4: the system validates the item detail.
Step2: the staff member enters the item Step5: the system sends the request to the manager
description (item type, item code, name, brand, and the manager approves the return request.
quantity, model, serial_no and other specifications Step6: the process ends.
based on the item type) he/she want to return.
Step3: the staff member clicks on return
Item request.
Table 3.11: Main Course of Action about Return Item Requesting.
Alternative course of action:
Step4: the system displays try again message.
Name: Receive Response
Actor: Staff Members
UC_ID: UC_07
Description: this use case is done by the staff members when the manager sends a response to them.
Precondition: the staff members have to send a request and the manager is interested to give a
response to them.
21
Post condition: the staff members receive an approval response or disapproval message.
Diagrams are used to represent the structure of the system in terms of objects, their notes and nature of
relationship between classes. It shows the static features of the objects and do not represent any particular
processing.
Our system has the following classes:
Manager: is the representation of the real world class of manager which interacts with system to accomplish
the managerial activity such as view report, approve request.
Staff members: is the representation of the real world user.
Administrator: is an administrator which uses the automated system to manage users.
Item: it is the representation of the real world class of materials.
Stock clerk: the representation of the real world class which interacts with system to accomplish the activity
such as managing items.
22
Fig 3.2: Class Diagram of our System
A sequence diagram is a kind of interaction diagram that shows how processes of the proposed system
of inventory management system operate and in what order. It is a construct of a Message Sequence Chart. A
23
sequence diagram shows object interactions arranged in time sequence. It depicts the objects and classes
involved in the scenario and the sequence of messages exchanged between the objects needed to carry out the
functionality of the scenario of the proposed system. Sequence diagrams typically are associated with use case
realization in the logical view of the proposed system under development. The main sequence diagrams of the
new system of inventory management system are listed below.
25
update user
account UC#02 Update User link update user updated user Database
: Adminstrator
form controler
1. adiminstrator select on
update user link 1:select update user link()
[Link] system displays the
update user form
[Link] adminstrator fills
the user information 2:the system displayys the updaate user form()
[Link]/she click on update
button.
[Link] system validate the
data. 3:fill user detail()
[Link] it is not correct it
displays fill it again.
[Link] he/she fills correctly
the system updates the
4:click on update button()
database
5:validate()
[Link] checks the data
if it is correctly updated
[Link] system displays the
response .
6:fill it again()
7:update the data()
9:display responnse()
26
Inactive user
account Inactive User Inactive user Inactive user Database
UC#02 Adminstartor
link form controler
9:display response()
27
Add Item
UC#03 Add Item link Add item form Item controler item Database
: Stock Cerk
6:Save to Database()
7:check()
8:displays response()
28
View Report
view Report link Report Type Report controler Database
UC#05 Manager/Stock
Clerk
1:select view report link()
1. the manager select
view Report link
[Link]/sheselect the
Report type.
[Link] on view report.
[Link] system fetch the
data.
5. the sytem displays 2:Manager select the Report type ()
the report to the stock
clerk or manager.
3:Clik on view()
4:fetch ()
5:display report()
29
Take Item
Request Take Request Take Request Take Request Database
: Staff Member
UC#07 Link Form Controler
9:display response()
30
3.2. Activity Diagram
As we have seen, a sequence diagram shows how objects interact over time to accomplish specific
system functions or activity of inventory management system. Activity diagram shows also the conditional
logic for the sequence of system activities needed to accomplish a business process of proposed system in a
good way.
check
not correct Help to login
Correct
Main Menu
Solved
Select
Add new
user
Enter
New user
information
Submit
Wrong
Added
31
Login
manage User
UC#02
Actor:Adminstrator check
Correct
Select
update user
enter Select
user detail Manage User
Inactive
user
Check
Try Again
Not Solved
Found Managed
32
Add Item
UC#03
Actor:Stock Login
Clerk
check
not correct Help to login
Correct
Main Menu
Solved
Select
Add Item
Enter
Item
Information
Submit
not correct
Not Solved
correct
Added
33
Login
View Report
UC#05 check
Actor:Manager/Stock
Clerk
not correct Help to login
Correct
view Select
Employee Employee View Report
report Report
view User Report
User report
Not Solved
Displayed
34
.
check
not correct Help to login
Correct
Main Menu
Solved
Select
Take Request
Form
Enter
Item,user
Not Correct Detail
Request
Not Solved
Correct
Send Item
Request
36
4.3. Collaboration Diagram
A collaboration diagram is an illustration of the relationships and interactions among objects in the
unified modeling language.
9: Check ()
login form
8: step 5 continue()
4: select account type and fill user name and password()
6: validate()
7: try again()
3: Display login form to users()
5: clik submit()
login
controler
user
37
3: fill new user information() New user
form
2: display add new user form()
Adminstartor
6: fill again()
User
Controller
8: check()
7: Added to Database()
38
8: check the data()
update user
form Database
9: display responnse()
Update User
link
6: fill it again()
5: validate()
: Adminstrator
39
8: check()
6: fill again()
Inactive user
controler
Inactive User
link
Adminstartor
40
3: fill item information()
Add item
form
2: Display Add Item form()
: Stock Cerk
5: fill again()
8: displays response()
4: the stock clerk click on Add item button()
Add Item
link
7: check()
6: Save to Database()
Item item
controler Database
41
1: select view report link()
view Report link
Manager/Stock
Clerk
5: display report()
4: fetch ()
Report Report
Type controler
42
3: fill the request form()
Take Request Form
6: Try Again()
5: validate() 8: check()
State chart diagram describes the flow of control of the inventory management proposed system from one
state to another state to describe the system dynamically. States are defined as a condition in which an object
exists and it changes when some event is triggered. So the most important purpose of State chart diagram is to
model life time of an object from creation to termination.
43
not correct
Activate
Idle
correct
initial state
Final State
Confirm
Complate State Login
not correct
loged in select add user fill add user verify add user
link form
main
window correct
Activate
confirm add
Idle Final State
initial state user
complete state
44
not correct
correct
not correct
main loged in select Delete Item fill Delete Item verify Delete
window link form Item
Activate
correct
Idle
initial state
Final State
Confirm
Complate State Delete Item
45
main loged in select view report select report type
window link
Activate
Idle
initial state
confirm view
Final State report
complete state
not correct
loged in select view item fill view item verify view item
link form
main
window correct
Activate
confirm view
Idle Final State
initial state item
complete state
46
not correct
main
window
correct
Activate
confirm
Idle Final State
initial state request
complete state
Database design is a visual representation of different table using agreements that describe how these tables
are related to each other on our proposed system. The proposed inventory systems have the following tables.
47
Fig 4.16: Database Design of the Proposed Inventory Management System
48
CHAPTER FIVE
5. IMPLEMENTATION DELIVERABLE OF THE NEW SYSTEM
5.1. Introduction
Implementation is an understanding of a technical specification or algorithm as a program, software
component, or other computer system through computer programming and deployment. In our project,
implementation exist for a given specification or standard. So the team is in a position of converting all
documents gathered and designed into the code so that the system will be implemented for the user to be used
for the purpose it developed. To implement it, the organization must have a server on which the system will be
hosted because this system can run on intranet site with connection available or on internet connection.
49
5.3. Deployment Diagram
Deployment diagrams model the physical architecture of a system, and it shows the relationships
between the software and hardware components in the system and the physical distribution of the processing.
Home Page: This form appears on the site in which the system deployed is opened and contains some links
which lead the user to other page according to his/her privilege, and if the user is authorized user or has an
account, he/she will directly go to the page that he/she wants by entering correct category, User ID and
password.
50
Fig: 5.3: User Interface Design for Home
52
Fig 5.7: User Interface Design for Manage User
53
Fig 5.9: User Interface Design for Report for Free Item
54
CHAPTER SIX
6. PROTOTYPE DEVELOPMENT
Prototype development can be defined it is the sample code of the given project. These are some of the
sample codes that we have done it.
<?php
session_start();
include("config/[Link]");
?>
<?php
if(isset($_POST['submitMain']))
{
$account_type=$_POST['acc_type'];
$userid =$_POST['txt_userid'];
$password=$_POST['txt_password'];
$query = "SELECT * FROM users WHERE account_Type = '{$account_type}' AND emp_id = '{$userid}'
AND password = '{$password}' ;";
$result_set=mysql_query($query);
if(!$result_set){
die("query is failed".mysql_error());
}
$row=mysql_fetch_array($result_set);
$stat=$row['status'];
if(mysql_num_rows($result_set)>0)
{
if($stat==1)
{
if($account_type=="Staff")
{
$_SESSION['emp_id']=$row['emp_id'];
echo "<script>[Link]='[Link]';</script>";
}
else if($account_type=="Admin")
{
$_SESSION['emp_id']=$row['emp_id'];
echo "<script>[Link]='[Link]';</script>";
}
else if($account_type=="Manager")
55
{
$_SESSION['emp_id']=$row['emp_id'];
echo "<script>[Link]='[Link]';</script>";
}
else if($account_type=="Clerk")
{
$_SESSION['emp_id']=$row['emp_id'];
echo "<script>[Link]='[Link]';</script>";
}
else
{
echo"Your account is deactivated Please contact the Administrator";
}
}
else
{
echo '<div align="center"><strong><font color="#FF0000"> Account Type, User Name & Password not
match !!</font></Strong></div>';
}
}
mysql_close($conn);
?>
//Sample code for manage user
<?php
session_start();
include("config/[Link]");
//echo "User".$_SESSION['user'];
if(isset($_SESSION['emp_id']))
{
$username=$_SESSION['emp_id'];
} else {
?>
<script>
alert('You Are Not Logged In !! Please Login to access this page');
alert([Link]='[Link]');
</script>
<?php
}
?>
<?php
$result = mysql_query("SELECT * FROM users");
56
while($row = mysql_fetch_array($result))
{
$ctrl = $row['emp_id'];
$account=$row['account_type'];
$emp_id=$row['emp_id'];
$status=$row['status'];
?>
<tr>
<td><?php echo $account;?></td>
<td><?php echo $ctrl;?></td>
<td align = 'center' width = '1'><a href = '[Link]?key=<?php echo $ctrl;?>'><img width='25px'
height='25px' src = 'IMG/[Link]' title='View Detail'></img></a></td>
<td><a href = '[Link]?key=<?php echo $ctrl;?>'><img src = 'IMG/[Link]' width='25px'
height='25px' title='Edit' ></img></a></td>
<td><?php
if(($status)=='0')
{
?>
<a href="[Link]?status=<?php echo $row['emp_id'];?>" onclick="return confirm('Really you activate
(<?php echo $emp_id?>)');">
<img src="IMG/[Link]" id="view" width="16" height="16" alt="" />Deactivated </a>
<?php
}
if(($status)=='1')
{
?>
<a href="[Link]?status=<?php echo $row['emp_id'];?>" onclick="return confirm('Really you De-activate
(<?php echo $emp_id?>)');">
<img src="IMG/[Link]" width="16" id="view" height="16" alt="" />Activated</a>
<?php
}
?>
</td>
</tr>
<?php
}
print( "</table>");
mysql_close($conn);
?>
// sample code of add user
<?php
if(isset($_POST['add']))
57
{
$rdate=date("d/m/Y");
$sql="insert into users
(account_type,emp_id,password,firstname,lastname,email,Phonenumber,blocknumber,officenumber,regest_dat
e,status )
values('$_POST[acc_type]','$_POST[regusername]','$_POST[regpassword]','$_POST[regfirstname]','$
_POST[reglastname]','$_POST[mail]','$_POST[regphonenumber]','$_POST[regblocknumber]','$_POST[regoff
icenumber]','$rdate','1')";
$result=mysql_query($sql,$conn);// or die(mysql_error());
if(!$result){
print "<h3><img src='IMG/[Link]' width='20px' height='20px'> <font face='arial' color='red'
size='2'>Already Exist!</font></h3>";
}
else{
print "<img src='IMG/[Link]' width='25px' height='25px'><font face='arial' color='green' size='2'>
Successfully registered</font>";
}
}
mysql_close($conn);
?>
// sample code of request
<script language="javascript">
function Clickheretoprint()
{
var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,";
disp_setting+="scrollbars=yes,widtd=900, height=400, left=100, top=25";
var content_vlue = [Link]("print_content").innerHTML;
var docprint=[Link]("","",disp_setting);
[Link]();
[Link]('<html><head><title>Lists</title>');
[Link]('</head><body onLoad="[Link]()" style="widtd: 900px; font-size:16px; font-
family:arial;">');
[Link](content_vlue);
[Link]('</body></html>');
[Link]();
[Link]();
}
</script>
<style>
#print_content{
width:434px;
margin:0 auto;
58
}
</style>
<?php
session_start();
include("config/[Link]");
//echo "User".$_SESSION['user'];
if(isset($_SESSION['emp_id']))
{
$username=$_SESSION['emp_id'];
} else {
?>
<script>
alert('You Are Not Logged In !! Please Login to access this page');
alert([Link]='[Link]');
</script>
<?php
}
?>
<?php
$emp_id=$_SESSION['emp_id'];
$result=mysql_query("select * from users where emp_id='$emp_id'")or die(mysql_error);
$row=mysql_fetch_array($result);
$emp_id=$row['emp_id'];
$fname=$row['firstname'];
$lname=$row['lastname'];
$email=$row['email'];
$phone=$row['Phonenumber'];
?>
<?php
if(isset($_POST['sent']))
{ $code=$_POST['code'];
$reason=$_POST['reason'];
$reqdate=date("d/m/Y");
$sql="select * from users where emp_id='$emp_id'";
$re=mysql_query($sql);
while($row=mysql_fetch_array($re)){
$fname=$row['firstname'];
$lname=$row['lastname'];
$emp_id=$row['emp_id'];
$email=$row['email'];
}
$sql=mysql_query("insert into request (firstname,lastname,emp_id,email,item_code,reason,request_date)
59
values('$fname','$lname','$emp_id','$email','$code','$reason','$reqdate')");
if (!$sql)
{
echo"<img src='IMG/[Link]'> <font color='red'>You already take the item</font>";
echo' <meta content="10;[Link]" http-equiv="refresh" />';
}
else{
echo' <p align="center"><font color="green" size="2"><img width="30px" height="30px"
src="IMG/[Link]"> Your Request Information has been Sent successfuly!</font></p>';
$query="SELECT * FROM request where emp_id='{$emp_id}'";
$result=mysql_query($query);
$count=mysql_num_rows($result);
if($count==1){
while($row=mysql_fetch_array($result)){
$fn=$row['firstname'];
$ln=$row['lastname'];
$emp=$row['emp_id'];
$code=$row['item_code'];
$reason=$row['reason'];
}
echo'<a href="javascript:Clickheretoprint()">Print</a>
<div id="print_content">';
echo" Confirmation Detail";
echo'<br>';echo'<br>';
echo"First Name: ".$fn."<br>";
echo"Last Name: ".$ln."<br>";
echo"Employee Id: ".$emp."<br>";
echo"Item code: ".$code."<br>";
echo"reason: ".$reason."<br>";
$update = mysql_query("update item set status='reserved' WHERE item_code='{$code}'") or
die(mysql_error());
echo' <meta content="20;[Link]" http-equiv="refresh" />';
}
}
}
mysql_close($conn);
?>
60
CHAPTER SEVEN
7. CONCLUSION AND RECOMMENDATION
7.1. Conclusion
The system that we have developed has two phases; the first phase deals with the analysis phase of
the life cycle with the organization, and the next phase addresses the design phase. As the end of the first
phase, we need to review what we have planned at the beginning. We began our work by identifying the
significance of the new system for the store and the overall techniques to be used in the development process.
This concerned defining the system development methodology, identifying process and resource, and setting
the deliverable and scheduled for the project.
The business area Analysis helps the team to understand the major functional areas and processes of
the proposed system. Through this business area, we identifyed the weakness and strength of the existing
system by developing the proposed system.
After that, we discovered system requirements. Through this phase, we identify functional and non-
functional requirements of the new system. Then we have undertaken a major phase in system development
process: object oriented Analysis. Here, we tried to model the new system we proposed using UML diagrams:
Use case, sequence, and activity and class diagrams. Also, we designed the new system user interface
prototype.
As a result, we proposed the new system to solve the problem of existing system such as time
management and security. And also we developed our capacity during working this new system so that the
manual system changed to computerized system.
7.2. Recommendation
The system that we are trying to develop is not a working online payment system because of limited
development capacity and time. Therefore, we recommend the following features need to be included in any
further revision and extension attempt.
61
Appendix
Appendix A: Paper Document in the Exisisting System
I. Get pass for stock
Public body__________________ Date ____________ serial No______________
Reason for dispatching stock________________________
62
Reference
1. [Link]
2. [Link]
3. [Link]
4. [Link]
5. [Link]
6. [Link]
7. Ambler, Scott (2001) The Object primer: The application Developers Guide to Object Oriented and
the UML.2nd rev. Ed England: The Cambridge University Press.
8. Different Video Tutorials.
63