Sie sind auf Seite 1von 86

Human Resource

Management
System
SECTORS AND C For IT SECTORS AND COMPANIES
OMPANIES

by

ANSHITA JAIN
15ELDCS007

submitted

in partial fulfillment of the requirements of the degree of

BACHELOR OF ENGINEERING AND TECHNOLOGY

FACULTY OF INFORMATION & COMMUNICATION TECHNOLOGY


LAXMI DEVI INSTITUTE OF ENGINEERIG AND TECHNOLOGY
ALWAR, RAJASHTHAN
OCTOBER 2018

1
Project Title: Human Resource Management
A Project Report: Employee Information and salary

Submitted for the partial fulfillment of the requirements for the award of
the Degree in

(KYRION TECHNOLOGY PRIVATE LTD.)

Under the Guidance of GAUTAM

2
DECLARATION

I hereby declare that this project is my original work and has not been presented for the award of
any degree/diploma in any other college and university.

Signature………………………………………. Date………………………

This project has been submitted with my approval as project guide

Mr.Hemant Pareek
Assistant Professor
Laxmi devi institute of engineering and technology

Signature……………………………………….. Date……………………….

3
ACKNOWLEDGEMENTS

First of all, I would like to thank the Almighty God and my Parents who are the
most graceful and merciful for their blessing that Contributed to the successful
completion of this project I present here in this booklet.

I would also like to take this opportunity to express my profound sense of gratitude
and respect to all those who helped me throughout the duration of this project. The
laxmi devi institute of engineering and technology chikani,alwar Main Campus, in
particular has been the source of inspiration for me. I acknowledge the effort of
those who have contributed significantly to my project. I express my sincere
gratitude and thankfulness towards Prof. sunil gupta, Head of Department of LIET
College for his valuable time and guidance throughout this Project.

I feel privileged to offer my sincere thanks and deep sense of gratitude to Mr.
hemant pareek, for his all support, help & encouragement in obtaining necessary
raw data for this Project.

I would like to express my sincere gratitude towards all my teachers, especially


Mr.vipul my special for their precious suggestions and encouragements. Last but
not the least I would like to thank all those who contributed to this project either in
moral or material. I regret any inadvertent omissions. Thank you all.

4
ABSTRACT

The world is said to be in the ‘Technology Era’ and realistically speaking that is an
absolute truth. However, computer-enabled databases as well as IT-based systems and
solutions are not so familiar despite the user-friendliness and efficiency of their usage.
Some major companies (Telecommunication and Remittance sectors) use but they are a
small percentage of the country’s national economy and the community / companies that
need Information Technology (IT) systems and solutions. This came as a result of poor
education, uninterested society and government with less capacity.

This project entitled with ‘Human Resource Management System’ has been designed
towards improving the management of information of employees. It maintains all basic
information of employees like New Employee Registration, Modification of Registered
Employees, Registration and Modification of Department, Payroll calculation .

The following two management reports can be generated through the system:

 General Report for Registered employees



 Payroll calculation

The information on which this project is based was compiled with an interview with the
concerned Head of the Ministry—Director General of the MOHL of Somaliland.

The project has been an enriching experience for me in the field of programming and
Practical Application of knowledge. It has been developed to fulfill the requirements of the
Employees in IT SECTOR.

The tools and technologies used for developing the software are NETBEANS for analysis,
design phases, and developing the codes of the application as Front end tool and JAVA
SERVLET as the back end tool on Microsoft Windows 10 platform.

5
PAGE-------------------------------------------------------------------------------------- I
DECLARATION -------------------------------------------------------------------------------- II
CERTIFICATE---------------------------------------------------------------------------------- III
ACKNOWLEDGEMENTS ------------------------------------------------------------------- IV
ABSTRACT -------------------------------------------------------------------------------------- V

Chapter 1: Introduction
1.1 Background-------------------------------------------------------------------------------
1.2 Motivation --------------------------------------------------------------------------------
1.3 Realization of the Problem -------------------------------------------------------------
1.4 Broad outline of work ------------------------------------------------------------------

Chapter 2: Literature Survey


2.1 Definitions of Human Resource -------------------------------------------------------
2.2 Human Resource Management --------------------------------------------------------
2.2.1 The Goal of HRM -----------------------------------------------------------------
2.2.2 Business practice ------------------------------------------------------------------

Chapter 3: Problem Formulation -------------------------------------------------


3.1 Introduction ----------------------------------------------------------------------------
3.2 Detailed Description of the Project --------------------------------------------------
3.3 Major Function as Employee Management tool -----------------------------------
3.4 Methodology to Be Used Carrying Out the Study---------------------------------
3.5 Business Processes --------------------------------------------------------------------

Chapter 4: system Analysis


4.1 Defining a System --------------------------------------------------------------------
4.2 Systems Life Cycle --------------------------------------------------------------------
4.3 System Analysis -----------------------------------------------------------------------

6
4.4 Analysis and Development of the Actual Solution ----------------------------------------------
4.5 Project Overview ------------------------------------------------------------------------------------
4.6 User Interface ----------------------------------------------------------------------------------------
4.6.1 Hardware – Software Interface --------------------------------------------------------------
4.6.2 Memory Constraints --------------------------------------------------------------------------
4.6.3 Product Function ------------------------------------------------------------------------------
4.7 Constraints of the System---------------------------------------------------------------------------
4.8 Information Gathering-------------------------------------------------------------------------------
4.8.1 Information about project --------------------------------------------------------------------
4.8.2 Information Sources --------------------------------------------------------------------------

Chapter 5: System Design


5.1 Database Design -------------------------------------------------------------------------------------
5.2 Entity-Relationship Diagrams (ERD) -------------------------------------------------------------
5.3 Data Dictionary --------------------------------------------------------------------------------------
5.4 Interface Design--------------------------------------------------------------------------------------
5.5 Report Design ----------------------------------------------------------------------------------------
5.6 System requirements
5.7 java basics -------------------------------------------------------------------------------------
5.8 java servlet -------------------------------------------------------------
5.9 database connectivity---------------------------------------------------------------------------------
5.10 coding---------------------------------------------------------------------------------

Chapter 6: Testing and Implementation


6.1 Objectives of Testing--------------------------------------------------------------------------------
6.2 Types of Testing -------------------------------------------------------------------------------------
6.3 Quality Assurance -----------------------------------------------------------------------------------

Chapter 7: Result and Conclusion


7.1 Conclusion --------------------------------------------------------------------------------------------
7.2 Future Scope of Improvement----------------------------------------------------------------------

Chapter 8:Annexures
Annexure A – Sample General Report ----------------------------------------------------------------

7
HRM application Introduction

CHAPTER

1
This chapter presents the background and motivation of the system that has been designed
and prototyped in this project. The section also reviews the objectives of the project.

8
HRM application Introduction

1.1 Background
In terms of background, the ‘Human Resources Management System ’ project is actively
involved in the development of the application for managing the employees of the ministry
especially the department of IT sector. The HR is responsible of Managing the relation and payroll
affairs for their employees. This system maintains the information regarding all Human Resources
who work at the companies especially the department of IT SECTOR; It is a matter of future and
sophistication of the system to include the field offices so that the manpower at field offices can be
monitored at office. Currently, this system is confined to the HR office of the department.

The application software takes care of database and day to day operations. The different modules
were added to the system as per HR requirement and are being integrated into this application.

1.2 Motivation
Realizing a higher need of development efforts and the investment of time, developing uniform,
more user-friendly application software for implementation of day to day activities at the
department and smooth co-working with other departments of the IT SECTOR is of great deal of
need.

To add, this is very important to the currently-established office at the department of companies—
an office responsible for creating a database of potential employers and employees and the liaising
between potential employers and employees for the sole purpose of creating employment
opportunities for skilled and educated employees across the country since the universities and
technical/vocational schools are developing more than ever. With keeping in mind the supportive
processes existing at IT SECTORS, it appears a fruitful concept which adds more value to this
system, thereby increasing quality of services offered.

1.3 Realization of the Problem


The Present system used by the Department of IT SECTORS is manual and thus it is not user
friendly.
The proposed system in this project for HR will be implemented as an In-Office application.

9
HRM application Introduction

The application software will be installed on the personal computer of the person responsible for
handling the human resources data and information of the department of IT SECTORS. The
application software will be used easily as Microsoft Access but is more valuable and customized
for the department. A Central database will compile at the computer where all information needed
from the employees will be saved and retrieved as needed. The system can be only be accessed by
the authorized user and to whom he allows.1
The function of the system will be managing Employees at the HR office. It manages information
about Employees of Labour department of IT SECTORS especially those who work in the office
compound at the offices and sub-office so that manpower can be monitored at HR department.

1.4 Broad outline of work


Chapter 1> This chapter has introduced the problem along with brief description of the project.

Chapter 2> The second chapter describes literature that has been surveyed when this project was
under way.

Chapter 3> This chapter describes the problem formulation. What is need of work?

Chapter 4> This chapter deals with analysis of the system, its application, the hardware and
software requirements for implementing it.

Chapter 5> This chapter discusses the design of the system whether it be the database, the reports
and the Interface.

Chapter 6> This chapter discusses the implementation part of the system. The hardware and
software requirement for implementing the system have been discussed. The
operation manual and input requirement to the system have also taken up in this
chapter.

Chapter 7> This chapter (the final) deals with the result and discussion of the new system, stating
interpretation of the results, and importance of the work.

10
HRM application Literature Survey

CHAPTER

2
This chapter contains the literature that has been surveyed in preparation for
conducting this project effectively in order to illustrate more the basics of Human
resources management and the department of labour of the Ministry of Health and
Labour.

11
HRM application Literature Survey

2.1 Definitions of Human Resource


Human resource is an increasingly broadening term with which an organization or other human
system describe its most valued assets - the people working there who individually and collectively
contribute to the achievement of the objectives of the business. It is a term used to denote all
employees of one institution, organization, company etc, from the top management to the lowest
level of employment excluding the owner/partners/shareholders.
Source: Wikipedia, the Free Encyclopedia - http//: www.wikipedia.org

Human resource is a body of persons usually employed in a factory, office or an organization for
doing specific works as per agreed with their employers.
Source: Webster’s New Collegiate Dictionary

2.2 Human Resource Management

Human Resource Management (HRM) is the function within an organization that focuses on
recruitment, management, and the direction of the people in the organization. Human Resource
management is also performed by line managers.

It is the approach to the management of an organization's most valued assets - the people working
there who individually and collectively contribute to the achievement of the objectives of the
business. The terms "human resource management" and "human resources" (HR) have largely
replaced the term "personnel management" as a description of the processes involved in managing
people in organizations. In simple sense, HRM means employing people, developing their
resources, utilizing, maintaining and compensating their services in tune with the job and
organizational requirement.

HRM features include:


 Organizational management

 Personnel administration

 Manpower management

 Industrial management

12
HRM application Literature Survey

The theoretical discipline is based primarily on the assumption that employees are individuals with
varying goals and needs, and as such should not be thought of as basic business resources, such as
trucks and filing cabinets. The field takes a positive view of workers, assuming that virtually all
wish to contribute to the enterprise productively, and that the main obstacles to their endeavors are
lack of knowledge, insufficient training, and failures of process.

HRM is seen by practitioners in the field as a more innovative view of workplace management
than the traditional approach. Its techniques force the managers of an enterprise to express their
goals with specificity so that they can be understood and undertaken by the workforce and to
provide the resources needed for them to successfully accomplish their assignments. As such,
HRM techniques, when properly practiced, are expressive of the goals and operating practices of
the enterprise overall. HRM is also seen by many to have a key role in risk reduction within
organizations.

Synonyms such as personnel management are often used in a more restricted sense to describe
activities that are necessary in the recruiting of a workforce, providing its members with payroll
and benefits, and administrating their work-life needs.

2.2.1 The Goal of HRM

The goal of human resource management is to help an organization to meet strategic goals by
attracting, and maintaining employees and also to manage them effectively. The key word here
perhaps is "fit", i.e. a HRM approach seeks to ensure a fit between the management of an
organization's employees, and the overall strategic direction of the company.

The basic premise of the academic theory of HRM is that humans are not machines; therefore we
need to have an interdisciplinary examination of people in the workplace. Fields such as
psychology, industrial engineering, industrial, Legal/Paralegal Studies and organizational
psychology, industrial relations, play a major role.

In many ways, critically or not, many writers contend that HRM itself is an attempt to move away
from the modernist traditions of personnel (man as machine) towards a postmodernist view of
HRM (man as individuals). Critiques include the notion that because 'Human' is the subject we

13
HRM application Literature Survey

should recognize that people are complex and that it is only through various discourses that we
understand the world. Man is not Machine, no matter what attempts are made to change it.

2.2.2 Business practice

Human resources management comprises several processes. Together they are supposed to achieve
the above mentioned goal. These processes can be performed in an HR department, but some tasks
can also be outsourced or performed by line-managers or other departments. When effectively
integrated they provide significant economic benefit to the company. These processes are:

 Workforce planning

 Recruitment

 Induction and Orientation

 Skills management

 Training and development

 Compensation in wage or salary

 Payroll (sometimes assigned to accounting rather than HRM)

 Employee benefits administration

 Performance appraisal

-7-
14
RM application Problem Formulation

CHAPTER

-8-

15
HRM application Problem Formulation

3.1 Introduction

Problem introduction or problem stating is the starting point of the software development activity.
The objective of this statement is to answer: Exactly what must the system do? The software
project is initiated by the client’s need. In the beginning, these needs are on the minds of various
people in the client’s organization—the Ministry of Health and Labour especially the Labour
department. The analyst has to identify the requirements by talking to the people and
understanding their needs. It goes without saying that an accurate and thorough understanding of
Software requirements is essentials to the success of software development effort. All further
development like system analysis, System design and coding will depend on how accurate and
well understood the requirements are. Poorly-analyzed and specified software will disappoint the
user and will bring brief to the developer. No matter how well designed and well coded the
software is, it must be a relatively simple task, but appearances are often deceiving. Chances of
misinterpretation are very high, ambiguity is probable and communication gap between customer
and developer is bound to bring confusions. Requirement understanding begins with a clear and
concise heading stating in a sentence the task to be performed. Then Requirements are described in
a technical manner in precise statements.

3.2 Detailed Description of the Project


IT sectors and companies which are increasing day by day in our India and work for the welfare of
the employees in the country (public and private). As well, it is actively involved in development
and handling of all duties of liaising between HR and Employers across the world.

This application will facilitate the department perform its national and in-office duties easily and
successfully. This system maintains the information about the Employee records, it maintains each
and every record about the employee regarding their posting, leave, vacancy position etc, and in
the future it will include1 the details of all Employees located at various regional offices. The
application software takes care of database and day-to-day operations.

16
-9-

17
HRM application Problem Formulation

, thus this project will help in capturing information regarding Human Resources through the main
office in the capital city.

3.3 Major Function as Employee Management tool


The function of the system will be managing Employees at the IT SECTORS especially for those
who work in the department of different field. It manages information about Employees of many
department at the main office so that the manpower can be monitored at the main office.

3.4 Methodology Used in Carrying Out the Project


• Studying the existing system. This involved the amount of information, the manpower
equipment space and other resources used for the information storage.

• After analysing the existing setup this Project suggested a new management setup. The
benefits and disadvantages of existing and new system had been critically revised.

• The database structure and information storage retrieval process was also studied and a new
system for faster response using operation research techniques had been designed.

3.5 Business Processes

a) Existing System

The existing system comprises of a system in which details are to be manually handled. This is not
user friendly.

b) The proposed system

It will be able to manage information about Employees in a more user-friendly way. This system
will manage Employees’ information at the main office . Various reports based on the data entered
by the authorized officer in the main office are generated as per the need of them. These reports are
helpful in Manpower management decisions.

18
HRM application System Analysis

CHAPTER

19
HRM application System Analysis

4.1 Defining A System

Collections of components, which are interconnected, and work together to realize some objective,
form a system. There are three major components in every system, namely input, processing and
output.

4.2 Systems Life Cycle

The sequencing of various activities required for developing and maintaining systems in an
ordered form is referred as Systems Life Cycle. It helps in establishing a system project plan as it
gives overall list of process and sub-processes required for developing any system. Here, the
systems life cycle will be discussed with reference to the development of Human Resource
Management System.

Broadly, following are the different activities to be considered while defining the systems
development cycle for the said project:

 Problem Definition

 Systems analysis

 Study of existing system

 Drawbacks of the existing system

 Proposed system

20
HRM application System Analysis

 Systems Requirement study



 Data flow analysis

 Systems design

 Input Design (Database & Forms)

 Query /Report Design

 Testing

 Implementation

 Maintenance

4.3 System Analysis

System analysis is a logical process; the objective of this phase is not actually to solve the problem
but to determine what must be done to solve the problem. The basic objective of the analysis stage
is to develop the logical model of the system using tools such as the data flow diagram and
elementary data description of the elementary algorithm. The logical model is Subject to review by
both the management and the user who agree that the model does in fact reflect what should be
done to solve the problem.

System analysis is not a precise science. It is in fact more of an art, aided by scientific approach to
find definition and recording data, gathering traditional structures is only one part of the system
analysis, the next step is to examine the data, assess the situation and looking for alternatives.

4.4 Analysis and Development of the Actual Solution

A complete understanding of the requirement for the new system is very important for the
successful development of a software product. Requirement Specification is the foundation in the
process of software development .All further developments like system analysis; designing and
coding will depend on how accurate and well documented the Requirement Specification is.
Requirement specification appears to be a relatively simple task, but appearance is often deceiving.
There is always a chance of wrong specification because of communication gap between the user
and the Developer. Requirement Specification begins with a clear statement of the problem and the

21
HRM application System Analysis

task to be performed. Then the requirement is described in a technical manner in precise statements.
After the initial specification reports are received, they are analyzed and redefined through customer
interaction.
4.5 Project Overview
It will be able to manage information about Human Resources in more user-friendly way. This
system will manage Employees information at IT SECTORS. Various reports based on the data
entered by the authorized person at the department are generated at the main office of the
department. These reports are helpful in Manpower management decisions.

4.6 User Interface

ƒ User will have to select the options form the given menu.

ƒ The system will be entering the information into the database to generate reports.

ƒ The forms will be designed to enter the data.

ƒ Buttons will be used to insert, retrieve or modify the data.

ƒ Links will be provided to shift from one form to another.


4.6.1 Hardware – Software Interface

Windows 10 is used to host the application. The application software NETBEANS 8.0 AND JDK
8, Human Resource Management, is developed in java technology, Crystal Reports. The backend
database is ODBC and frontend is web development(HTML,JAVASCRIPT,CSS,BOOTSTRAP).
4.6.2 Memory Constraints

No memory constraints are applicable. A normal memory configuration is more than sufficient
.

22
HRM application System Analysis

4.7 Constraints of the System


General Constraints

1) This system will not take care of any virus problem that might occur on the computer
with which it is installed. Avoiding the use of pirated/illegal software and ensuring that
floppies and other removable media are scanned for viruses before use could minimize
the possibility of viral infection.

2) Recovery of data after a system crash will be possible only if backups are taken at
regular intervals.

3) Manual interfaces cannot be fully avoided. Documented proofs like dates etc. will have
to be verified by the concerned staff before entering it into the computerized system

Hardware Constraints

The performance of the system will be dependent on the machine conditions. The primary
memory (RAM) and the secondary memory (Hard Disk Space) requirement of the system
will be the same as that required by the normal application and the operating system. And
the space required storing the data. The space required to store the data would increase as
more and more records are added to the system.
Assumptions and Dependencies

a. It is assumed that the user is familiar with the basic computer fundamentals.

b. Timely backup of data should be taken to avoid data loss in case of system crash.

c. Floppies and other removable media should be scanned for viruses before use.

23
HRM application System Analysis

a. It is assumed that the maintenance of the database will be assigned to the authorized
person only.

b. Only authorized persons will be allowed inside the system.

4.8 Information Gathering

We have taken an approach of gathering information with sensitivity and precautions.

4.8.1 Information about project

During the analysis, we collected whole information from the human resource administrator whom
I thank very much for his honest welcome and help during my visits to the Ministry’s compound.

4.8.2 Information Sources

We have collected the information about the current system from:

 The human resource administrator



 Written Reports

 System Documentation

 Existing System

24
HRM application System Design

CHAPTER

25
HRM application System Design

5.1 Database Design

EMPLOYEE_CI
EMPLOYEE DETAILS TY PAYMENTS
Empno
Empno

CITY_NAME
PIN CODE
ADDRESS
STATE
Title DISTRICT Emp_type
Fname Rate
Mname Hours
Lname Amount
sex
dob
doj
DEPARTMENTS
job Deptno
city
Dept_name
Mobile no.
Location
Email id
deptno

26
UNIFIED MODELING LANGUAGE

UML is the international standard notation for object-oriented analysis and design.
The Object Management Group defines it. The heart of object-oriented problem
solving is the construction of a model. The model abstracts the essential details of
the underlying problem from its usually complicated real world. Several modeling
tools are wrapped under the heading of the UML™, which stands for Unified
Modeling Language™.

AN OVERVIEW OF UML:
The UML is a language for

1.Visualizing

2.Specifying

3.Constructing
4.Documenting

These are the artefacts of a software-intensive system. The three


major elements of UML are

 The UML’s basic building blocks



 The rules that dictate how those building blocks may be put together.

 
BASIC BUILDING BLOCKS OF THE UML:

The vocabulary of UML encompasses three kinds of building blocks:


1. Things
2. Relationship
3.Diagrams

THINGS IN THE UML:


They are the abstractions that are first-class citizens in a model. There are four
kinds of things in the UML
1. Structural things

2. Behavioural things.

3. Grouping things.

4. An notational things.
These things are the basic object oriented building blocks of the
UML. They are used to write well-formed models.

27
TRUCTURAL THINGS:

Structural things are the nouns of the UML models. These are mostly static
parts of the model, representing elements that are either conceptual or
physical. In all, there are seven kinds of Structural things.
Class:
A class is a description of a set of objects that share the same attributes,
operations, relationships, and semantics. A class implements one or more
interfaces. Graphically a class is rendered as a rectangle, usually including its
name, attributes and operations, as shown below.
Interface:

An interface is a collection of operations that specify a service of a class or


component.
Graphically the interface is rendered as a circle together with its name.
Collaboration:

Collaboration defines an interaction and is a society of roles and other


elements that work together to provide some cooperative behavior that’s
bigger than the sum of all the elements. Graphically, collaboration is
rendered as an ellipsewith dashed lines, usually including only its name as
shown below.
Use Case:

Use case is a description of a set of sequence of actions that a system


performs that yields an observable result of value to a particular thing in a
model. Graphically, Use Case is rendered as an ellipse with dashed lines,
usually including only its name as shown below.

Active Class:

An active class is a class whose objects own one or more processes or


threads and therefore can initiate control activity. Graphically, an active
class is rendered just like a class, but with heavy lines usually

28
20

including its name, attributes and

operations as shown below. HRMS

EMPLOYEE
DEATILS

Suspend ()
Flush ()

Component:
Component is a physical and replaceable part of a system that conforms to and
provides the realization of a set of interfaces. Graphically, a component is
rendered as a rectangle with tabs, usually including only its name, as shown
below.
Node:

A Node is a physical element that exists at run time and represents a


computational resource, generally having at least some memory and often,
processing capability. Graphically, a node is rendered as a cube, usually including
only its name, as shown below

BEHAVIORAL THINGS:

Behavioural Things are the dynamic parts of UML models. These are the verbs of a
model, representing behaviour over time and space.

Interaction:

An interaction is a behaviour that comprises a set of messages exchanged among


a set of objects within a particular context to accomplish a specific purpose.
Graphically, a message is rendered as a direct line, almost always including the
name if its operation, as shown below.

State Machine:
A state machine is a behaviour that specifies the sequence of states an object are an
interaction goes through during its lifetime on response to events, together with its
responses to those events. Graphically, a state is rendered as a rounded rectangle
usually including its name and its sub-states, if any, as shown below.

29
GROUPING THINGS:
Grouping things are the organizational parts of the UML models. These are
the boxes into which a model can be decomposed.
RELATIONSHIPS IN THE UML:

There are four kinds of relationships in the UML:


1. Dependency
2. Association
3. Generalization
4. Realization

1.Dependency:
This is relationship between two classes whenever one class is completely
dependent on the other class. Graphically the dashed line represents it with
arrow pointing to the class that it is being depended on.
2.Association:
It is a relationship between instances of the two classes. There is an
association between two classes if an instance of one class must know about
the other in order to perform its work. In a diagram, an association is a link
connecting two classes. Graphically it is represented by line as shown.
3.Generalization:
An inheritance is a link indicating one class is a super class of the other. A
generalization has a triangle pointing to the super class. Graphically it is represented
by line with a triangle at end as shown.

4.Realization

DIAGRAMS IN UML:

Diagrams play a very important role in the UML. There are nine kind of modeling
diagrams as follows:
 Use Case Diagram

 Class Diagram

 Object Diagram

 Sequence Diagram

 Collaboration Diagram

 State Chart Diagram

 Activity Diagram

 Component Diagram

 Deployment Diagram

30
CLASS DIAGRAM:

Class diagrams are the most common diagrams found in modeling object-
oriented systems. A class diagram shows a set of classes, interfaces, and
collaborations and their relationships. Graphically, a class diagram is a
collection of vertices and arcs.
USE CASES DIAGRAM:

Use Case diagrams are one of the five diagrams in the UML for modeling the
dynamic aspects of systems(activity diagrams, sequence diagrams, state
chart diagrams and collaboration diagrams are the four other kinds of
diagrams in the UML for modeling the dynamic aspects of systems).

INTERACTION DIAGRAMS

An Interaction diagram shows an interaction, consisting of a set of objects


and their relationships, including the messages that may be dispatched
among them. Interaction diagrams are used for modeling the dynamic
aspects of the system.

SEQUENCE DIAGRAMS

A sequence diagram is an interaction diagram that emphasizes the time


ordering of the messages. Graphically, a sequence diagram is a table that
shows objects arranged along the X-axis and messages, ordered in increasing
time, along the Y-axis and messages, ordered in increasing time, along the Y-
axis.

23

31
Sequence diagrams have two interesting features:

ACTIVITY DIAGRAM

An Activity Diagram is essentially a flow chart showing flow of control from


activity to activity. They are used to model the dynamic aspects of as
system. They can also be used to model the flow of an object as it moves
from state to state at different points in the flow of control.
Contents

Activity diagrams commonly contain:


Fork
Start & End Symbol

STATE CHART DIAGRAMS

A state chart diagram shows a state machine. State chart diagrams are
used to model the dynamic aspects of the system. For the most part this
involves modelling the behaviour
A reactive object is one whose behaviour is
best characterized by its response to events dispatched from outside its
context. A reactive object has a clear lifeline whose current behaviour is
affected by its past.
Graphically a state chart diagram is a collection of vertices and arcs.
Contents:

State chart diagram commonly contain:


Simple states and Composite states.
Transitions, including events and actions.

32
USE CASE DIAGRAM

Login

A d m in is t r a t o r

E m p lo y e

C h e c k E m p D e t a ils

A d d E m p d e t a i ls

33
Collaboration
diagram
E m p lo g in
Check H r A d m in
T ra in in g

CheckEmp Check

D e t a il C o m p e n s a t io p n
Add
T ra in in g

Add
c o m p e n s a t io n

AddEmp
D e t a ils

34
ACTIVITY DIAGRAM

Receive Emp Details Emp Login

Open Tarining List Open Emp Details

Check Training List Emp Details

28-

35
HARDWARE AND SOFTWARE

REQUIREMENTS

Hard ware Specification:

Processor : Intel5 based system

Processor Speed : 250 MHz to 833MHz

RAM : 64MB to 256MB

Hard Disk : 2GB to 30GB

Key Board : 104 keys

Software Specification:

HTML,javascript
Front end Language : Bootstrap,css

Back end Language : Java servlet

Operating System : WindowsNT/95/98/2000

RAM : 256MB

Application : Netbeans IDE 8.0,JDK 8

29
36
JAVA
Java was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed
Frank and Mike Sheridan at Sun Microsystems Inc.in 1991. It took 18
months to develop the first working version. This language was initially
called “Oak” but was renamed as “Java” in 1995. Between the initial
implementation of Oak in the fall of 1992 and the public announcement of
Java in the spring of 1995, many more people contributed to the design
and evolution of the language.

The main properties of the Java, which made Java so popular, are as
follows:
1.Simple
2.Secure
3.Portable
4.Object-Oriented
5.Robust
6.Multithreaded
7.Architecture-Neutral
8.Interpreted
9.High performance
10.Distributed
11.Dynamic

KEY FEATURES OF JAVA IS BYTE CODE:


The key that allows Java to solve both the security and the
portability problems just described is that the output of a Java compiler is
not executable code. Rather, it is Byte code. Byte code is a highly
optimized set of instructions designed to be executed by the Java runtime
systems, which is called the Java Virtual Machine (JVM). That is, in its
standard form, the JVM is an interpreter for Byte code. This may come has
a bit of surprise.

37
30

Translating a Java program into a byte code helps and makes it much
easier to run a program in a wide variety of environments.
The reason is straightforward only the JVM needs to be
implemented for each platform. Once the runtime package exists for a
given system, any Java program can run on it. Remember, although the
details of the JVM will differ from platform to platform, all interpret the
same Java Byte code.

JAVA ENVIRONMENT:
Java environment includes a large number of development
tools and hundreds of classes and methods. The development tools are
the part of the system known as Java Development Kit (JDK) and the
classes are methods are part of
the Java standard library (JSL), also known as the Application
Programming Interface (API).

JAVA DEVELOPMENT KIT:


The Java development kit comes with a collection of tools that
are used for developing and running Java programs. They include:

1.Applet Viewer (for viewing Java Applets)


2.Javac (Java Compiler)
3.Java (Java interpreter)
4.Javap (Java Disassembler)
5.Javah (for C header files)
6.Javadoc (for creating HTML documents)
7. Jdb (Java Debugger)

38
APPLICATION PROGRAMMING INTERFACE:

The Java standard library includes hundreds of classes and


methods grouped into several functional packages. Most commonly used
packages are:
Language support package: A collection of classes and methods
required for implementing basic features of java.

Utilities package: A collection of classes to provide utility functions


such as date and time functions.

Input/output package: A collection of classes required for input &


output manipulations.
Networking package: A collection of classes for communication with
other computers via Internet.
AWT package: The abstract window toolkit package contains classes
that implements platform independent graphical user interface.
Applet package: This includes a set of classes that allows us to
create Java applets.

What is java servlet?


Servlets are Java objects that implement the javax.servlet.Servlet interface. They are
loaded by a Servlet server such as Tomcat, Jetty, Resin, or BEA's WebLogic Server.
Any web access to that address is picked up by the Servlet server and directed to the
corresponding Servlet, the Servlet analyses the request and responds, usually with a
html page containing the answer to the request.

There are some key points that must be known by the Java programmer like server,
container, get request, post request etc. Let's first discuss these points step by step.

Using Servlets, you can collect input from users through web page forms, present
records from a database or another source, and create web pages dynamically.

39
HTTP (Hyper Text Transfer Protocol) :
Before we can start writing the first Servlet, we need to know some basics of HTTP
("HyperText Transfer Protocol"), the protocol which is used by a WWW client (e.g. a
browser) to send a request to a Web Server.

Http is the protocol that allows web servers and browsers to exchange data over the
web.It is a request response protocol.

It is stateless means each request is considered as the new request. In other words,
server doesn't recognize the user by default.

Http Request Methods :


Every request has a header that tells the status of the client. There are many request
methods. Get and Post requests are mostly used.

Following are list of http request methods :


 GET
 POST
 HEAD
 PUT
 DELETE
 OPTIONS
 TRACE

HTTP
Description
Request
GET Asks to get the resource at the requested URL.
POST Asks the server to accept the body info attached. It is like GET request with extra info sent with the request.
HEAD Asks for only the header part of whatever a GET would return. Just like GET but with no body.
TRACE Asks for the loopback of the request message, for testing or troubleshooting.
PUT Says to put the enclosed info (the body) at the requested URL.
DELETE Says to delete the resource at the requested URL.
OPTIONS Asks for a list of the HTTP methods to which the thing at the request URL can respond

Difference between Get and Post :


GET POST
1) In case of Get request, only limited amount of data can be sent because data is In case of post request, large amount of data can be sent
sent in header. because data is sent in body.
Post request is secured because data is not exposed in URL
2) Get request is not secured because data is exposed in URL bar.
bar.
3) Get request is idempotent. It means second request will be ignored until
Post request is non-idempotent
response of first request is delivered.
4) Get request is more efficient and used more than Post Post request is less efficient and used less than get.

40
What is a Servlet Container ?
To know what is a Servlet container, we need to know what is a Web Server first.
1. What is a Web Server ?

A web server uses HTTP protocol to transfer data. In a simple situation, a user type in a
URL (e.g. www.facebook.com) in browser (client), and get a web page to read. So what
the server does is sending a web page to the client. The transformation is in HTTP
protocol which specifies the format of request and response message.

As we see here, the user/client can only request static webpage from the server. This is
not good enough, if the user wants to read the web page based on his input. The basic
idea of Servlet container is using Java to dynamically generate the web page on the
server side. So servlet container is essentially a part of a web server that interacts with
the servlets.

Servlet container is the container for Servlets.

41
Oracle connectivity:
n this exercise you will test and create a new connection to the database.

1. Start the Oracle database.

2. Open the Services window (Window > Services or Ctrl-5;⌘-5 on Mac). In the Services window, right-click the
Databases node and choose New Connection.

3. In the New Connection wizard, select Oracle Thin in the Driver dropdown list.

4. Click Add and locate the ojdbc6.jar file that you previously downloaded. Click Next.

5. In the Customize Connection panel of the wizard, enter the following values and click Next.

Name Value

Driver Name Oracle Thin (with Service ID (SID))

localhost or 127.0.0.1.
Host Note: In the case of a remote connection, provide the IP address or
resolvable hostname of the machine where the database is installed.

Port 1521 (default)

XE (default SID for Oracle Database XE).


Service ID (SID) Note: If you are connecting to a remote database, ask the database
administrator to provide you with the database SID.

Enter the username.


Username For the purpose of our tutorial, enter system (the default database
administrator account) and password that you used during database
installation.
Password Enter the password for the selected username.
6. Click Test Connection to confirm that the IDE is able to connect to the database. Click Next.

If the attempt is successful, the message "Connection succeeded" is displayed in the wizard.

42
7. Select HR in the Select Schema dropdown list. Click Finish.

Note: You need to unlock the HR schema before you can access it in NetBeans. Unlocking the HR database is
described in the Oracle Database XE Getting Started tutorial.

The new connection will appear under the Databases node in the Services window. You can expand it and start
browsing the database object's structure.
Change the display name for the connection node: choose Properties from the node's popup menu and click the ellipsis
button for the Display Name property. Enter OracleDB as the Display Name and click OK.

43
Note. Although the steps above demonstrate the case of connecting to a local database instance, the steps for
connecting to a remote database are the same. The only difference is that instead of specifying localhost as the

hostname, enter the IP address or hostname of the remote machine where Oracle Database is installed.

Manipulating Data in Oracle Database

A common way of interacting with databases is running SQL commands in an SQL editor or by using database
management interfaces. For example, Oracle Database XE has a browser-based interface through which you can
administer the database, manage database objects, and manipulate data.

Although you can perform most of the database-related tasks through the Oracle Database management interface, in
this tutorial we demonstrate how you can make use of the SQL Editor in the NetBeans IDE to perform some of these
tasks. The following exercises demonstrate how to create a new user, quickly recreate a table, and copy the table data.

Creating a User

Let's create a new database user account to manipulate tables and data in the database. To create a new user, you
must be logged in under a database administrator account, in our case, the default system account created during

database installation.

44
1. In the Services window, right-click the OracleDB connection node and choose Execute Command. This opens
the NetBeans IDE's SQL editor, in which you can enter SQL commands that will be sent to the database.

2. To create a new user, enter the following command in the SQL Editor window and click the Run SQL button on
the toolbar.

create user jim


identified by mypassword
default tablespace users
temporary tablespace temp
quota unlimited on users;
This command creates a new user jim with the password mypassword. The default tablespace is users

and the allocated space is unlimited.


3. The next step is to grant the jim user account privileges to do actions in the database. We need to allow the

user to connect to the database, create and modify tables in user's default tablespace, and access the
Employees table in the sample hr database.

In real life, a database administrator creates custom roles and fine tunes privileges for each role. However, for
the purpose of our tutorial, we can use a predefined role, such as CONNECT. For more information about roles

and privileges, see Oracle Database Security Guide.


grant connect to jim;
grant create table to jim;
grant select on hr.departments to jim;

Tablespaces in Oracle Databases

A tablespace is a logical database storage unit of any Oracle database. In fact, all of the database's data is stored in
tablespaces. You create tables within allocated tablespaces. If a default tablespace is not explicitly assigned to a user,
the system tablespace is used by default (it is better to avoid this situation)

45
For more information about the tablespace concept, see Oracle FAQ: Tablespace

Creating a Table

There are several ways to create a table in the database through the NetBeans IDE. For example, you can run an SQL
file (right-click the file and choose Run File), execute an SQL Command (right-click the connection node and choose
Execute Command) or use the Create Table dialog box (right-click the Tables node and choose Create Table). In this
exercise you will recreate a table by using the structure of another table.

In this example, you want the user jim to create a copy of the Departments table in his schema by recreating the

table from the hr database. Before you create the table you will need to disconnect from the server and log in as user

jim.

1. Right-click the OracleDB connection node in the Services window and choose Disconnect.

2. Right-click the OracleDB connection node and choose Connect and log in as jim.

3. Expand the Tables node under the HR schema and confirm that only the Departments table is accessible to

user jim.

When you created the user jim, the Select privilege was limited to the Departments table.

4. Right-click the Departments table node and select Grab Structure. Save the .grab file on your disk.

46
5. Expand the JIM schema, right-click the Tables node and choose Recreate Table.

Point to the .grab file that you created.

6. Review the SQL script that will be used to create the table. Click OK.

When you click OK, the new DEPARTMENTS table is created and appears under the JIM schema node. If you

right-click the table node and choose View Data you will see that the table is empty.

If you want to copy the data from the original Departments table to the new table, you can enter the data manually in

the table editor or run an SQL script on the new table to populate the table.

To enter the data manually, perform the following steps.

1. Right-click the DEPARTMENTS table under the JIM schema and choose View Data.

2. Click the Insert Records icon on the View Data toolbar and to open the Insert Record window.

3. Type in the fields to enter the data. Click OK.

For example, you can enter the following values taken from the original DEPARTMENTS table.

Column Value

47
DEPARTMENT_ID 10

DEPARTMENT_NAME Administration

MANAGER_ID 200

LOCATION_ID 1700

To populate the table using an SQL script, perform the following steps.

1. Right-click the DEPARTMENTS table under the JIM schema and choose Execute Command.

2. Enter the script in the SQL Command tab. Click the Run button in the toolbar.

The following script will populate the first row of the new table with the data from the original table.
INSERT INTO JIM.DEPARTMENTS (DEPARTMENT_ID, DEPARTMENT_NAME, MANAGER_ID,
LOCATION_ID) VALUES (10, 'Administration', 200, 1700);
You can retrieve the SQL script for populating the table from the original table by performing the following steps.
1. Right-click the DEPARTMENTS table under the HR schema and choose View Data.

2. Select all rows in the View Data window, then right-click in the table and choose Show SQL Script for INSERT
from the popup menu to open the Show SQL dialog that contains the script.

You can then copy the script and modify it as necessary to insert the data in your table.

See Tips for more information about working in the SQL Editor.

Working with Table Data

To work with table data, you can make use of the SQL Editor in NetBeans IDE. By running SQL queries, you can add,
modify and delete data maintained in database structures.

At first, create the second table named Locations in the jim schema (stay logged under the jim's user account). This

time, we will simply run the ready-to-use SQL file in the IDE:

1. Download and save the locations.sql file to the USER_HOME directory on your computer.

2. Open the Favorites window of the IDE and locate the locations.sql file.

To open the Favorites window, click Window > Favorites in the main menu (press Ctrl-3). The USER_HOME
directory is listed in the Favorites window by default.

48
3. Right-click the locations.sql file and choose Run File.

Note. If more than one database connection is registered with the IDE, the IDE might prompt you to select the
correct connection.
4. In the Services window, right-click the Tables node and choose Refresh in the popup menu.

You can see that the Locations table with data was added to the JIM schema.

5. Right-click the Locations table node and choose View Data to see the table contents. You will see the contents
of the Locations table.

49
You can insert new records and modify existing data directly in this view window.

6. Next, we run a query to display information from two tables: Departments and Locations.

In our case, we will use a simple "natural join", because both tables have the same "location_id" column that
holds values of the same data type. This join selects only the rows that have equal values in the matching
location_id column.
Open the SQL Command window (right-click the Tables node under the JIM schema and choose Execute

Command), enter the following SQL statement, and click the Run SQL icon.
SELECT DEPARTMENT_NAME, MANAGER_ID, LOCATION_ID, STREET_ADDRESS,
POSTAL_CODE, CITY, STATE_PROVINCE
FROM departments NATURAL JOIN locations
ORDER by DEPARTMENT_NAME;
This SQL query returns the rows from the Departments table whose location_id values are equal to the values
in the matching column in the Locations table, with the results being ordered by the Department name. Note
that you cannot insert new records directly in the results of this query, as you could do in the representation of a
single table.

50
Code for connecting oracle database in java servlet:
package java4s;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ServletDatabaseConnect extends HttpServlet
{
protected void doPost(HttpServletRequest req,HttpServletResponse res)throws
ServletException,IOException
{
PrintWriter pw=res.getWriter();
res.setContentType("text/html");
String tb=req.getParameter("table");
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");

Connection
con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","system","admin");
Statement st=con.createStatement();
System.out.println("connection established successfully...!!"); ResultSet
rs=st.executeQuery("Select * from "+tb);
pw.prin
tln("<table border=1>");
while(rs.next())
{
pw.println("<tr><td>"+rs.getInt(1)+"</td><td>"+rs.getString(2)+"</td>"+
"<td>"+rs.getString(3)+"</td></tr>");
}
pw.println("</table>");
pw.close();
}
catch (Exception e){
e.printStackTrace();
}

}
}

51
PROCESS FLOW DIAGRAM

Employee
Is
an 1

1
HR Manag Administration
es
manager

Create
s Employees
Details

Create
Skill
s
Reports

Placement
Create Reports
s

Training
Create Reports
s

Create
s Compensation
Details Report

52
Context Flow Diagram
Description: Context Flow Diagram gives us the complete details about the
inputs and outputs for a given system. In the above system the main task is
to identify a criminal face. So, the operator and eyewitness are the inputs to
our system and criminal face is desired output.

LOGIN PROCESS

LOGIN User Id SCREEN


Password PROCESS

ERROR IN INPUT

Level-1
Description: The inputs to the process are User Id and Password given

by the developer to allow the software available for the Admin


environment. After giving the inputs the details, checks whether the
entered ones are valid are not. It displays screen if match occurs
otherwise error message if they are not matched.

53
MAIN SCREEN PROCESS

ADMIN MAIN
Add Emp
SCREEN

Add
department

Add
city

Add
employee
details

Add
salary
Level -2

Description: This process mainly explains the different screens


that are available for the admin. Here the selection of the
screen depends on the admin and he can select whatever
screen he wants. The different screens that are available are
Add Emp details, Add department no., Add salary, Add city.

54
Add Employee Details

Administrator Creat Employee


Employee detail Report

Level-3
Description: This process clearly illustrates adding the details of the

Employee such as name, age, gender, location, address, state and city
along with his EMP Id. These details are being added to the database, if
any error is generated then it will be prompted to the admin otherwise we
get message data is successfully added.

55
Add salary Report

DATABASE

ADD salary
Admin Report DATA IS
ADDED

Level-4
Description: This process clearly illustrates adding the details of the

Employees skill Report such as name, salary along with his EMP Id. These
details are being added to the database, if any error is generated then it
will be prompted to the admin otherwise we get message data is
successfully added.

56
HRM application System Design

5.2.1 Login Table

5.2.2 Employee Table

57
HRM application System Design

5.2.5 Department Table

58
coding

59
Code for Homepage for human resource system

<html>

<head><title> WELCOME TO EMPLOYEE MANAGEMENT SYSTEM </title></head>

<body><center><h1>.....WELCOME TO EMPLOYEE MANAGEMENT


SYSTEM.....</h1></center>

<table width="50%" border="0" align="center" style="font-family:Verdana, Arial, Helvetica,


sans-serif;">

<tr><td colspan="2"><ul style="list-style:none; text-align:center;margin: 0px;padding:


0px;" id="ull"><li><a href="employee_insert.html" style="font-family:Arial;"> INSERT
RECORDS </a> </li><li><a href="employee_delete.html" style="font-family:Arial"> DELETE
RECORDS </a> </li><li><a href="employee_update.html" style="font-family:Arial">
UPDATE RECORDS </a> </li><li><a href="employee_select.html" style="font-
family:Arial"> SELECT ALL RECORDS </a> </li><li><a href="employee_selectid.html"
style="font-family:Arial"> SELECTED RECORDS </a> </li><li><a href="registered.html"
style="font-family:Arial"> REGISTERED </a>
</li></ul></td></tr></table></body></html>

60
Code for insert a record in employee database
<html>
<head><title> EMPLOYEE MANAGEMENT SYSTEM </title>
<script type="text/javascript">
function formValidation()
{
var id = document.forms["myform"]["id"];
if(id.value.length < 4)
{
alert("id should be minimum 4 letter");
document.myform.id.focus();
return false;
}
return true;
}
</script>
<style>
body{
background-image: url("image1/ems2.jpg");
background-repeat: no-repeat;
background-position: center;
}
</style>
</head>
<body>
<center> <h1> INSERT EMPLOYEE RECORDS </h1></center>
<form name="myform" action="employee_insert.html" method="get" onsubmit="return formvalidation()" >
<Table align="center" border="10px" width="30%" >
<tr>
<td><h2> Employee Id :</h2></td>
<td> <input type="text" value=" " name="id"></td>
</tr><tr>
<td><h2> Employee Name :</h2></td>
<td> <input type="text" value=" " name="name"></td>
</tr><tr>
<td> <h2>Employee City :</h2></td>
<td><input type="text" value="default" name="city"></td></tr><tr>
<td> <h2>Employee Department :</h2></td>
<td><input type="text" value=" " name="department"></td></tr>
<tr><td> <h2>Employee Salary :</h2></td>
<td><input type="text" value=" " name="salary"></td>
</tr><tr>
<td colspan=2><input type="submit" name="submit" value="INSERT"></td>
</tr>
</table>
<center><h1><a href="registered.html" > Home Page </a></h1></center>
</form>
</body>
package humanresourcesystem;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

61
/**
*
* @author anshita jain
*/
public class employee_insert extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
/* TODO output your page here. You may use following sample code. */
out.println("<!DOCTYPE html>");
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet employee_insert</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet employee_insert at " + request.getContextPath() + "</h1>");
out.println("</body>");
out.println("</html>");
}
}

// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the
code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/

Connection conn=null;
Statement st=null;
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);

response.setContentType("text/html");
String btn=request.getParameter("submit");

String Employee_id=" ";


String employee_name=" ";
String employee_city=" ";
String employee_department=" ";
String employee_salary=" ";

62
try
{
//Settings
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
String serverName="DESKTOP-7CV3M5O";
String serverPort ="1521";
String sid="XE";
String url="jdbc:oracle:thin:@"+serverName+":"+serverPort+":"+sid;
String username = "admin";//User created through SQL Command Line
String password = "gaps21";//password of this user
conn = DriverManager.getConnection(url,username,password);
System.out.println("Succesfully connected to database ::: "+conn);
if(btn.equals("INSERT"))
{
Employee_id=req.getParameter("Employee_id");
employee_name=req.getParameter("Employee_name");
employee_city=req.getParameter("Employee_city");

employee_department=req.getParameter("Employee_department");

employee_salary=req.getParameter("Employee_salary");

String insertq="insert into EMPLOYEE values(?,?,?,?,?)";


PreparedStatement ps=conn.prepareStatement(insertq);
ps.setString(1,Employee_id);
ps.setString(2,employee_name);
ps.setString(3,employee_city);
ps.setString(4,employee_department);
ps.setString(5,employee_salary);

ps.executeUpdate();
String address="./Registered.html";

RequestDispatcher
dis=req.getRequestDispatcher(address);
dis.forward(request,response);
}
}
catch(IOException | ClassNotFoundException | SQLException | ServletException e)
{
System.out.println("Exception:" +e);
}
}
}
</html>

63
Code for delete in a employee databases
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head><title> DELETE RECORDS </title>
<script type="text/javascript">
function validation()
{
var a = document.form.name.value;

if(a=="")
{
alert("Please Enter Your id");
document.form.name.focus();
return false;
}
}
</script>
</head>
<style>
body {
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:15px;
line-height:20px;
padding: 100px 0;
background-image: url("image1/delete.jpg");
background-position: center;
}
input[type="submit"] {
margin:10px; padding:5px 10px;border: 0px;border-radius: 6px;font-size: 20px;padding: 8px 25px; color: #fff;
background-color: #18BC9C; border-color: #18BC9C; font-weight: 700;
}
input[type="submit"]:hover {
margin:10px; padding:5px 10px;border: 0px;border-radius: 6px;font-size: 20px;padding: 8px 25px; color: #fff;
background-color: #fff; border-color: #18BC9C; font-weight: 700;
color:#000;
}
</style>
<body>
<table width="50%" border="0" align="center" style="font-family:Verdana, Arial, Helvetica, sans-serif;">
<tr>
<td><h1 style=" font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center ;color: white"> DELETE
EMPLOYEE RECORDS</h1></td>
</tr>
</table>

<form name="form" action="employee_delete" method="get"onsubmit="return validation()">


<Table align="center" border="10px" width="50%">
<br>
<td><h2 style="margin:0px; padding:10px; text-align:center; font-family:inherit; font-weight: normal;font-
size: 20px;color: white"> Employee Id: </h2></td>
<td align="center" style="margin:0 10px;"><input type="text" name="name" style="padding: 10px;
width:100%;color: black"></td>
</tr>
<tr>

64
<td colspan=2 align="center"><input type="submit" name="submit" value="DELETE" style=""></td>
</tr>
</table>
<br><br><br><br>
<h1 style="font-size:20px; text-align:center"><a style="color:white;" <a href="home.html"> Home Page
</a></h1>
</form>
</body>
</html>
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package humanresourcesystem;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author anshita jain
*/
public class employee_delete extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try( PrintWriter out = response.getWriter()){}
catch(Exception e){}

65
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the
code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
Connection conn=null;
Statement st=null;
PreparedStatement ps;
RequestDispatcher dis;
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
response.setContentType("text/html");
String btn=request.getParameter("submit");

String Empid="";

try
{
//Settings
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
String serverName="LAPTOP-KCV6F1AO";
String serverPort ="1521";
String sid="XE";
String url="jdbc:oracle:thin:@"+serverName+":"+serverPort+":"+sid;
String username = "anshita";
String password = "anshita123";
conn = DriverManager.getConnection(url,username,password);
System.out.println("Succesfully connected to database in delete package::: "+conn);
}
catch(Exception e)
{
System.out.println("Exception:" +e);
}
if(btn.equals("DELETE"))
{
Empid=request.getParameter("Employee_id");
String deleteq="delete from EMPLOYEE where Employee_id=" +Empid;

try {
ps = conn.prepareStatement(deleteq);

ps.executeUpdate();
}
catch (SQLException ex) {
Logger.getLogger(employee_delete.class.getName()).log(Level.SEVERE, null, ex);
}
String address="./Registered.html";
dis=request.getRequestDispatcher(address);
dis.forward(request,response);
66
}
}
}

Code for select a employee from the record


<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head><title> Select All </title>
<style>
body {
background:#CCCCCC;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:15px;
line-height:20px;
padding: 100px 0;
}
input[type="submit"] {
margin:10px; padding:5px 10px;border: 0px;border-radius: 6px;font-size: 20px;padding: 8px 25px; color: #fff;
background-color: #18BC9C; border-color: #18BC9C; font-weight: 700;
}
input[type="submit"]:hover {
margin:10px; padding:5px 10px;border: 0px;border-radius: 6px;font-size: 20px;padding: 8px 25px; color: #fff;
background-color: #fff; border-color: #18BC9C; font-weight: 700;
color:#000;
}
</style>
</head>
<body>
<table width="50%" border="0" align="center" style="font-family:Verdana, Arial, Helvetica, sans-serif;">
<tr>
<td><h1 style="font-size:20px; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center"> SELECT ALL
</h1></td>
<td><h1 style="font-size:20px; text-align:center"><a style="color:blue;text-decoration:none; font-size:20px; font-
family:Verdana, Arial, Helvetica, sans-serif;" href="home.html"> Home Page </a></h1></td>
</tr>
</table>
<form action="employee_select.html" method="get">
<table align="center" border="10px" width="50%">
<tr>
<td colspan=2 align="center"><input type="submit" value="SELECT" name="submit" /></td>
</tr>
</table>
</form>
</body>
</html>

67
package humanresourcesystem;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author anshita jain
*/
public class employee_select extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
/* TODO output your page here. You may use following sample code. */
out.println("<!DOCTYPE html>");
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet employee_select</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet employee_select at " + request.getContextPath() + "</h1>");
out.println("</body>");
out.println("</html>");
}
}
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the
code.">
/**
* Handles the HTTP <code>GET</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
68
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}

/**
* Handles the HTTP <code>POST</code> method.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);

/**
* Returns a short description of the servlet.
*
* @return a String containing servlet description
*/
PrintWriter out = null;
Connection conn;
Statement st;
try
{
//Settings
String driverName = "oracle.jdbc.driver.OracleDriver";
Class.forName(driverName);
String serverName="LAPTOP-KCV6F1AO";
String serverPort ="1521";
String sid="XE";
String url="jdbc:oracle:thin:@"+serverName+":"+serverPort+":"+sid;
String username = "anshita";//User created through SQL Command Line
String password = "anshita123";//password of this user
conn = DriverManager.getConnection(url,username,password);
System.out.println("Succesfully connected to database ::: "+conn);

String query="select * from employee";


st = conn.createStatement();
ResultSet rs=st.executeQuery(query);
out.println("<html><head><title>Reading All
Rows</title></head><center><body bgcolor=launder><table border=10><tr>"+

69
"<td>employee_id</td><td>employee_name</td><td>employee_city</td><td>employee_department</td><
td>employee_salary</td></tr>");
while(rs.next())
{
out.print("<tr><td>"+rs.getInt("employee_id")+"</td>");
out.print("<td>"+rs.getString("employee_name")+"</td>");
out.print("<td>"+rs.getString("employee_city")+"</td>");
out.print("<td>"+rs.getString("employee_deprtment")+"</td>");
out.print("<td>"+rs.getString("Employee_salary")+"</td></tr>");

out.println("</table></body></center></html>");

//Do you want to continue


RequestDispatcher rd=request.getRequestDispatcher("/Emp_Select.html");

rd.include(request,response);

}
catch (Exception e)
{
System.out.println("Exception:"+e);
} }

70
screens

71
HRM application System Design

5.4.2 Login Form

72
Figure: Login form is the authentication form that keeps unauthorized access to the program’s database.

- 38 -

73
HRM application System Design

5.4.4 Employee’s Registration form

Figure: Employee Registration form is where the user records/registers the new employee information.

74
HRM application System Design

5.4.5 Employee Details

Figure: This form is where you can view registered employee’s details and also make modification to his details.

75
HRM application System Design

5.4.6 Department Details

Figure: This form is the one which the user registers new department and also make modification to it if it exists.

76
HRM application System Design

5.4.7 New Account

Figure: This form is where the user makes new user accounts for authorized access.

77
HRM application Testing and Implementation

CHAPTER

6
This section introduces the concept of testing and how important it is for the
successful implementation of the project. Different phases of testing are described
along with the level of testing incorporated in this particular project.

78
HRM application Testing and Implementation

Part I: Testing phase


6.1 Objectives of Testing:

The testing phase involves the testing of the developed system using various kinds of data. An
elaborated testing of data is prepared and a system is tested using the test data. While testing,
errors are noted and corrections remade, the corrections are also noted for future use.

This section introduces the concept of testing and how important it is, for the successful
implementation of the project. Different phases of testing are described along with the level of
testing incorporated in this particular project.

Testing is vital to the success of any system. Testing is done at different stages within the phase.
System testing makes a logical assumption that if all phases of the system are correct, the goals
will be achieved successfully. Inadequate testing at all leads to errors that may come up after a
long time when correction would be extremely difficult. Another objective of testing is its utility as
a user-oriented vehicle before implementation. The testing of the system was done on both
artificial and live data.

Testing involves operation of a system or application under controlled conditions and evaluating
the results (e.g., “if the user is in interface A of the application while using hardware B and does C,
then D should not happen”). The controlled conditions should include both normal and abnormal
conditions.

6.2 Types of Testing:


System Testing

Testing is a set of activities that can be planned in advance and conducted systematically. System
testing is done when the entire system has been fully integrated. The purpose of the system testing
is to test how the different modules interact with each other and whether the entire system provides
the functionality that was expected.

System testing consists of the following steps:

1. Program Testing

79
HRM application Testing and Implementation

2. System Documentation

3. User Acceptance Testing

The proposed system is tested in parallel with the software that consists of its own phases of
analysis, implementation, testing and maintenance. Following are the tests conducted on the
system.

Unit Testing

During the implementation of the system each module of the system was tested separately to

uncover errors with in its boundaries. User interface was used as a guide in the process.

Module Testing

A module is composed of various programs related to that module. Module testing is done
to check the module functionality and interaction between units within a module.

It checks the functionality of each program with relation to other programs within the same
module. It then tests the overall functionality of each module.

Integration Testing

Integration testing is a systematic technique for constructing the program structure while
conducting tests to uncover errors associated with interfacing. The objective is to take unit-
tested module and build a program structure that has been dictated by design.

Acceptance Testing

The software has been tested with the realistic data given by the client and produced
fruitful results. The client satisfying all the requirements specified by them has also
developed the software within the time limitation specified. A demonstration has been
given to the client and the end-user giving all the operational features.

Black Box Testing

Also known as functional testing, this is a software testing technique whereby the tester
does not know the internal working of the item being tested. Black-box test design treats
the system as a “black-box”, so it does not explicitly use knowledge of the internal

- 49 -
80
HRM application Testing and Implementation

structure. Black-box test design is usually described as focusing on testing functional


requirements. Synonyms for black-box includes: behavioral, functional, opaque-box and
closed-box.

White Box Testing

White box test design allows one to peek inside the “box”, and it focuses specifically on
using internal knowledge of the software to guide the selection of test data. Synonyms for
white-box include: structural, glass-box and clear-box.

6.3 Quality Assurance

Proper documentation is must for any software. Apart from documentation, help files
corresponding to each program were prepared so as to facilitate the ease of use of the system by
the authorized user(s).

Part II: Implementation phase


The implementation is the final and important phase. It involves User training, system testing and
successful running of the developed system. The users test the developed system when changes are
made according to the needs. The testing phase involves the testing of the developed system using
various kinds of data.

Implementation is the stage where theoretical design turned into a working system. It is planned
carefully to help the system avoid unanticipated problems. Many preparations involved before and
during the implementation of proposed system. The system needed to be plugged in to the
organization’s network then it could be accessed from anywhere, after a user logins into the portal.

The next phase in the implementation was to educate the system. A demonstration of all the
functions that can be carried out by the system was given to examination department person, who
will make extensive use of the system.

- 50 -
81
HRM application Result and Conclusion

CHAPTER

7
This section discuses the result of the work done in this project And also mentions
the future scope for improvement.

82
HRM application Result and Conclusion

This section discuses the result of the work done in this project and also mentions the future
scope for improvement.

7.1 Conclusion

Today we are at the cross roads of innovation and technology especially in Hargeisa, where I
currently live and study the Information Technology ICT. The right direction to take will only
evolve with time, but efforts has to be done seriously by everyone involved in education
including me; the ADMAS University College as a whole—its administration, faculties,
students and parents so as to get prepared for the way forward.

By designing this Project “Human Resource Management System” for the Labour department
of Ministry of Health and Labour, we are able to provide both the basic and more sophisticated
application softwares to our nation of Somaliland. This will enable users get their respective
works done with ease. We were using the Microsoft Software Development Platform for the
development of this project, which had given me a complete, tight and integrated approach for
the process of design and development of this project.

Hence we may conclude that this application system developed will help a great deal in
modifying the manual system used by the Labour department of MOHL.

7.2 Future Scope of Improvement

The “Human Resource Management System for Labour department MOHL” is a big and
ambitious project. I am thankful for being provided this great opportunity to work on it. As
already mentioned, this project has gone through extensive work. On the basis of the work, we
have successfully designed and implemented Human Resource Management System. This
system is based upon PC usage architecture. The tools used for development were as follows.

 Front-end----VB.Net

 Back-end----Microsoft Access® 2003

 Query Language----PL/SQL

83
HRM application Annexures

CHAPTER

Bibliography/References

84
HRM application bibliography and reference
Bibliography/References

1. Ministry of Health and Labour especially the department of Labour

2. HUMAN RESOURCES MANAGEMENT – Gaining a competitive

advantage; 2nd Edition 2002; Noe, Hollenbeck, Gerhardt, and Wright.

3. Webster’s New Collegiate Dictionary

4. Wikipedia, the Free Encyclopedia - http//: www.wikipedia.org

5. Visual Basic .NET Tutorial by: Paul Michelbrink; 2004

85
86

Das könnte Ihnen auch gefallen