Final Report HR Management

Embed Size (px)

Citation preview

  • 8/7/2019 Final Report HR Management

    1/126

    Project Report

    Human Resource Management System

    Submitted By

    Jitendra Kumar Yadav

    Reg. No. 10804727

    Programme:150

    Section:H1802

    Under the Guidence of

    Faculty Coordinator:

    Mr. Harjeet Singh

    (Lecturer)

    Industry Coordinator:

    Richa Singh

    (Assistant HR Manager)

    Department of CSELovely School of Engineering

    Lovely Professional University, Phagwara

    July-December 2010

  • 8/7/2019 Final Report HR Management

    2/126

  • 8/7/2019 Final Report HR Management

    3/126

    ACKNOWLEDGEMENT

    It is a great sense of satisfaction and a matter of privilege to me to work at Miracle

    Technologies, Noida. I wish to express my heartiest thanks to Training Division for providing

    me the opportunity to undergo training in the esteemed organization. Under such a niceenvironment, systematic work approach and target oriented task management of this division

    provided me with the much-desired training experience needed for future software professional.

    It is my pleasure to thank Mr. Harjeet Singh , Mr. Harish Kumar Pal, Mr. Amit Dube, Ms. Richa

    Singh and Lovely Professional University, to whom I owe a lot for giving me an opportunity to

    do my training in this organization.

    Name: Jitendra Kumar Yadav

    Registration No.: 10804727

    3

  • 8/7/2019 Final Report HR Management

    4/126

    Index

    Organization overview

    Profile of the system

    Existing system

    Introduction

    How the Proposed system is better than the Existing System

    Problem Analysis

    Software Requirement Analysis

    Design

    Testing

    Implementation

    Screen Shots

    Project Legancy

    Coding

    Source Code

    Biblography

    4

  • 8/7/2019 Final Report HR Management

    5/126

    Organizational Overview

    About Company:-

    The Miracle Pvt. Ltd. offered by High Technologies include complete solutions in Enterprise

    Resource Planning, Customer Relationship Management, Supply Chain Management, E-

    Business Solutions, IT Facility Management and other related professional services.

    The solutions we provide are complemented by full range of services, creating a singlewindow for customers for all their IT needs, thus facilitating single point of accountability.

    A brief profile of company:-

    Company : Miracle Corporate Solutions Pvt. Ltd

    Corporate Office : Miracle Corporate Solutions Pvt. Ltd

    B-12, Sector-2 NoidaContact Phone : 0120-3058445, 3058446, 3058447

    Operating since : Promoted in January 2003

    Size : Small

    Sector : Private

    No. of Employees : Approx 40

    An Introduction:-

    MIRACLE Corporate Solutions (P) Ltd. was promoted in 2003 by a group of highly qualified

    Technocrats as a Center for education, training & software development at Noida (UP).

    Business philosophy:-

    MIRACLE Corporate Solutions (P) Ltd. vision is to harness the computers to bring about aquantum change in the quality of life of each one of us. MIRACLE Corporate Solutions (P)Ltd.is thus focused on two things:

    Education and e-learning

    Software development.

    Education and E-learning:-

    This is our area of core competence. We have pioneered the concept of Full Time (six hours a

    day, six days a week) Classes on Information Technology. MIRACLE (P) LTD. was teachingfilled Classrooms of e-commerce before the term became fashionable. From our tie-ups, real-

    time new product development and a hands-on industry relationship, we have been able to give

    our Students live projects since inception.

    Software Development:-

    5

  • 8/7/2019 Final Report HR Management

    6/126

    We are providing services in development field for various companies. Development services

    are-

    The Software Service includes

    Application Development

    Software Development Business Analytics

    Web Designing Supply Chain Management

    Network Infrastructure

    IT Consulting

    Current Clients:-

    NIIT Technologies

    MediaTech

    ODO Software

    MetLifeIndia

    TI Cycle

    Pixtel

    HDFC Bank.

    Future Plans:-

    Growth is our by-word and with growth must come method and order. MIRACLE Corporate

    Solutions (P) Ltd. is in the process of obtaining Certification for I S O 9001:2000 QualityManagement Systems. Phase one of the project has been completed on schedule. We are

    targeting to obtain our Certification in the System by the end of the current financial year.

    As will be evident, the reported global downslide in the I.T. industry has not affected our

    performance.

    Profile of the problem

    6

  • 8/7/2019 Final Report HR Management

    7/126

    This project deals with the process of identifying the employees, recording their attendance daily

    and calculating their effective payable days. This project should maintain the records of each and

    every employee and their time spend in the company, which can be used for performance

    appraisal. Based on that transfer, removal, promotion etc can be done.

    To use the system the user has to first login to the system using a user name and a unique

    password.

    The current system HR Recruitment Process can be used to maintain efficiently the HR

    Department schedule of any type of company. The graphical user interface leads the user to

    perform the actions. It also generates the important reports.

    This report describes the various steps involved in developing the current system. It covers the

    details of the analysis, design, testing methodology and implementation details. The response of

    this document is to provide an outline of the development details and usage of the system.

    JUSTIFICATION OF THE TOPIC

    In the world we are growing for globalization day by day with the development in IT resources

    and advancement, by using latest technologies every organization wants to beat its competitors

    and want to grow. Enterprise Resourceful Planning is the need of todays organization. Survival

    on manual system is difficult so, thats why organization of the corporate world wants to

    computerize their departments. The modules should be complete database driven and interactive

    that should provide the proper information about the Placement and Training Organization.

    Success of any system depends up to a large extent on how accurately a problem is defined,

    thoroughly investigated and properly carried out to the choice of solution. Analysis is the only

    phase in which the requirements for the new system are identified. System analysis is a detailed

    study of the various operations performed by a system and their relationship within and outside

    of the system. The question is: what must be done to solve the problem? One aspect of analysis

    is defining the boundaries of the system and determining whether or not a candidate system

    should consider other related system. During analysis data are collected on the available files,

    decision points and transactions handled by the parent system. Data flow diagram, interviews,

    onsite observations, questionnaires are used as a logical system model and tools to perform the

    analysis.

    7

  • 8/7/2019 Final Report HR Management

    8/126

    An analyst is responsible for performing following tasks:

    Gathered all facts about the present system from the employees.

    Studied strength and weakness of the current system.

    Determined what must be done to solve the problem.

    Prepared a functional specifications document.

    In order to reduce the time, there is a need for computerized system that cans retrieve data, insert

    data, update existing data or delete existing data. These modules are developed with the aim of

    reducing time, reducing manpower, reducing cost so that the records can be easily maintained.

    The volume of work and complexity are increasing year by year. This system reduces

    complexity and workload.

    OBECTIVES OF THE PROJECT

    HR Recruitment Process is basically concerned with managing the Administrator of HR OF

    THE PROJECT Administrator to keep the daily events such as attendance, projects, works,

    appointments, etc.

    This project deals with the process of identifying the employees, recording their attendance daily

    and calculating their effective payable days. This project should maintain the records of each and

    every employee and their time spend in the company, which can be used for performance

    appraisal. Based on that transfer, removal, promotion etc can be done.

    The main objective of this project is to make the HR Management System job easy so that there

    is no need to go through all the files. Only give the employee name or id then the report will be

    generated and displayed.

    SCOPE OF THE PROJECT

    In the world of technology, everything needs a change. Changes are must and it is very important

    that our applications work according to the latest demand of the market. The application exists

    only till these are able to satisfy user demands. Its human beings nature to always demand for

    more. So updation is the need of todays world. Our application should be such that it can be

    8

  • 8/7/2019 Final Report HR Management

    9/126

    updated anytime according to the changing needs Similarly ERP for HR has the provision to be

    updated to strand strongly against user demands.

    In the existing application, there is no separate login page for Administrator. We can extend this

    project and add that feature too. Search feature can also be added. Last but not the least, if

    company representative leaves the company due to any case, his cases remains ideal. In future

    we can also put the option that when the Company representative leaves its company then his

    rights should be handed over to another representative.

    These were some of the updations, which can be made in the existing application to keep a

    strong foot in the market of technology.

    EXISTING SYSTEM

    The existing system work manually. The existing system has got lot of intricacies within itself

    and need lot of human effort and paper works. All above the data need to be maintained on

    ledgers and maintaining this is a tedious and risky process. As the transactions increases, so the

    data too. So the task of maintaining them increases exponentially. To view a data may need lot of

    paper to be searched.

    Some of the negative aspects of the existing system are as follows:

    1) Course of action is time consuming. Wherever a need for search arises, the process evolves

    search through paper records.2) Readability of records is constrained. All the records may not be handled or written by the

    same person. So the format and style of records differ and hence it is difficult to understand.

    3) Paper records are easily damaged in course of time. The life time of paper record is unreliable

    less that it easily gets spoiled.

    4) Expenditure is high. Manual system needs added man power.

    5) Prone to corruption by unauthorized users. Securing of manual system is not fully guaranteed.

    Inaccuracy can be expected. Data can get easily scratched.

    6) Techniques used are more complicated. Proper techniques are not exposed, so the functioning

    is intricate.

    To overcome these, the proposed system has been suggested.

    PROPOSED SYSTEM

    9

  • 8/7/2019 Final Report HR Management

    10/126

    The proposed system is a computerized one. This has greater accuracy and efficiency. This takes

    only limited time for calculation.

    The proposed system can be used to maintain efficiently the HR Department schedule of any

    type of company. In larger organizations employees are large. At that time also the proposed

    system is useful and helpful. HR Management System is not only become a desire of the

    company but it become the need of the company.

    The system includes three users.

    1) Administrator

    2) HR Manager

    3) General User

    The user gets into the system using user name and a unique password. Each user has his ownaccessibility permission to accomplish his task flawlessly.

    How the Proposed system is better than the Existing System

    Advantages of the proposed system are

    1) Easy access to the data

    2) The new system is more user friendly, reliable and flexible.

    3) Pop-up menus to carry out transactions for a new user, and for other alert messages.

    4) Timely Report Generation.

    MODULES AND THEIR DECRIPTION

    Various modules used in the project are:-

    1. Login2. Registration Process

    3. Members section

    4. HR department

    5. Recruitment section

    Description of Modules

    Login:

    10

  • 8/7/2019 Final Report HR Management

    11/126

    In this module employees user id and password is checked andonly employees with valid user

    id and password will get entry into members zone. This is a security feature to avoid entry of

    unauthorized users.

    Registration Process :

    Through this module new applicants can registered themselves. After giving their professional

    details and resume applicant will get a user id and password. Then to get entry into recruitmentsection they need to provide this id and password and only applicants with valid id and password

    will get entry into recruitment zone. This is also a security feature to avoid entry of unauthorized

    user.

    Members Section:Through this module entered employee can see and update their profile, can also change their

    password. Here a link is provide for HR Manager through this link HR Manager can go to only

    their respective zones. And also applicant can update their resume(CV).

    HR Department :Through this module an HR can create vacancies, update vacancies details including

    status(open/closed/suspended), create applicants, edit applicant detail(status- hired, rejectedetc.),shortlist applicants for interviews, schedule interviews and finally on the basis of interview

    results inform the selected candidate. In short this module deals with the whole recruitment

    process.And through this module an HR can update interviews schedule and can edit or change

    schedules. Also sends interviews results to applicants for further processing.

    Recruitment Section:Through this module entered applicant view various job openings, eligibility criteria for job,

    opening and closing date and can apply for one or more jobs. If already applied for jobs then

    applicant can view their status in the recruitment process.

    The Overall Description

    In the upcoming SRS the view point maintained is that our administrator is provided with all

    basic facilities and related features. It also describes the major factors which influence the

    product.

    Product Perspective

    11

  • 8/7/2019 Final Report HR Management

    12/126

    In the terms of functionality the product is totally self dependent.

    The client i.e. the organization will interact with the java application to perform

    the intended task.

    The java application in turn will interact with the JRE for libraries, Java virtual

    machine, and other components necessary for you to run applets and applications

    written in the Java programming language.

    JRE will interact with database to retrieve and manipulate data.

    System Interfaces

    JRE is required in each system in the organization to run this application.

    Interfaces

    The user interface must be customizable by the administrator

    12

    Client JAVA APPLICATION

    JRE

    DATABASE

  • 8/7/2019 Final Report HR Management

    13/126

    All the modules provided with the software must fit into this graphical

    user interface and accomplish to the standard defined.

    Swings are used to create GUI user interface to make the interaction between the

    user and software comfortable and easy.

    A login window is to be designed for administration including username and

    password for security purposes.

    Some windows also need to be designed for managing the recruitment process. They

    will include interfaces for job opening, setting eligibility criteria and like.

    Interfaces for updation of profile of employees should be included.

    A window for managing training of employees should also be included.

    Policies of the company for incentives, compensation, promotion and leave for

    employees also need an interface.

    Hardware Interfaces

    For proper running of the project, the following hardware is needed for the best performance:

    Processor: Pentium IV at 2.1GHz

    RAM: 512 MB

    Disk Space: 10 GB

    Software Interfaces

    Data Base Server : Oracle 10g

    Operating System : Windows XP

    13

  • 8/7/2019 Final Report HR Management

    14/126

    Technology :

    JDK 1.6, Servlet and JSP

    IDE :

    MyEclipse 6.0

    Communications Interfaces

    LAN is required in the organization, Internet.

    Memory Constraints

    Client is expected to use 512 MB RAM for proper and flawless working of the system.

    Operations

    The system includes three users.

    1) Administrator

    2) HR Manager

    3) General User

    Various tasks performed by these users include:

    The user gets into the system using user name and a unique password. Each user

    has his own accessibility permission to accomplish his task flawlessly.

    Employee can see and update their profile, can also change their password... HR can create vacancies, update vacancies details including status

    (open/closed/suspended), create applicants, edit applicant detail (status- hired,

    rejected etc.), shortlist applicants for interviews, schedule interviews and inform

    interviewers and finally on the basis of interview results inform the selected

    candidate.

    14

  • 8/7/2019 Final Report HR Management

    15/126

    Interviewer can check interviews schedule and can edit or change schedules.

    New applicants can register themselves.

    Applicant can view various job openings, eligibility criteria for job, opening and

    closing date and can apply for one or more jobs.

    Site Adaptation Requirements

    New data tables created for this system must be installed on the companys

    existing DB server and populated prior to system activation.

    Product Functions

    1) Login :

    In this module employees user id and password is checked andonly employees with valid user

    id and password will get entry into members zone. This is a security feature to avoid entry of

    unauthorized users.

    2) Members Section:

    Through this module entered employee can see and update their profile, can also change their

    password. Here two links are provided for HR employees and interviewers through this link both

    HR employee or interviewer can go to only their respective zones. No HR employee can go to

    interviewer and vice versa.

    3) HR Department :

    Through this module an HR can create vacancies, update vacancies details including

    status(open/closed/suspended), create applicants, edit applicant detail(status- hired, rejected

    etc.),shortlist applicants for interviews, schedule interviews and inform interviewers and finally

    on the basis of interview results inform the selected candidate. In short this module deals with

    the whole recruitment process.

    15

  • 8/7/2019 Final Report HR Management

    16/126

    4) Registration Process:

    Through this module new applicants can registered themselves. After giving their professional

    details and resume applicant will get a user id and password. Then to get entry into recruitment

    section they need to provide this id and password and only applicants with valid id and password

    will get entry into recruitment zone. This is also a security feature to avoid entry of unauthorized

    user.

    5) Recruitment Section:

    Through this module entered applicant view various job openings, eligibility criteria for job,

    opening and closing date and can apply for one or more jobs. If already applied for jobs then

    applicant can view their status in the recruitment process also applicant can update their profile

    and resume (CV) and can also changed their password.

    User Characteristics

    Every user should be comfortable of working with computer.

    He must have basic knowledge of English too.

    Constraints

    Java shall be the implementation language.

    Oracle 10g shall be used for managing database.

    GUI is only in English.

    There is no maintainability of backup so availability will get affected.

    Not suitable for OS other than Windows XP/2000/Vista/7.

    Intranet & internet based application.

    16

  • 8/7/2019 Final Report HR Management

    17/126

    Assumptions and Dependencies

    LAN is required in the organization.

    The hardware never fails.

    No user fiddles with source code or database in the system.

    None of the external components used are removed from the system.

    Proper training program should be arranged to properly work on the system.

    Apportioning of Requirements

    The requirements described in sections 1 and 2 of this document are referred to as preliminary

    specifications; those in section 3 are referred to as requirements (or functional) specifications.

    The two levels of requirements are intended to be consistent. Inconsistencies are to be logged as

    defects. In the event that a requirement is stated within both preliminary and functional

    specifications, the application will be built from functional specification since it is more

    detailed..

    Specific Requirements

    External Interfaces

    This contains a detailed description of all inputs into and outputs from the software system

    Name of item : ERP FOR HR M ANAGEMENT

    Description of purpose : It includes a variety of activities, and key among

    them is deciding what staffing needs you have and whether to use

    independent contractors or hire employees to fill these needs, recruiting and

    training the best employees, ensuring they are high performers, dealing with

    performance issues, and ensuring your personnel and management practices

    17

  • 8/7/2019 Final Report HR Management

    18/126

    conform to various regulations. Activities also include managing your

    approach to employee benefits and compensation, employee records and

    personnel policies.

    Source of input or destination of output :

    Login with user_id and password Successful login

    Attendance details Performance evaluation

    Performance evaluation Compensation, bonus, leave, incentives

    Recruitment process employees details

    Training detailsdevelopment of employees

    Feedback further improvement in company.

    Functions

    The system shall check for the user_id and password from the employees

    for maintain security in the organization from unauthorized access.

    This user_id and password scheme shall define the attendance scenario.

    This user_id and password shall be provided to the employee at the time

    of recruitment.

    The system shall only provide recruitment facility excluding examination

    process.

    The system shall display the various functions of this product to its

    intended user.

    The system shall respond to abnormal conditions such as wrong data type

    entry by displaying corresponding error message.

    The system shall be working on LAN.

    The system shall take feedback from employees regarding further

    improvements.

    18

  • 8/7/2019 Final Report HR Management

    19/126

    The system shall set policies for compensation, bonus, incentives and

    promotion on the basis of which the pay of the employee will be decided.

    Performance Requirements

    Should run on 500 MHz, 64 MB machine.

    90% of the responses should be within 2 sec, except for downloading current

    prices for which more time is acceptable.

    Logical Database Requirements

    LIST OF TABLES: ERP FOR HR MANAGEMENT

    TNAME TABTYPE CLUSTERID

    LOGIN TABLE

    TBL_APPRAISAL_HANDLER TABLE

    TBL_APPRAISEE TABLE

    TBL_APP_ADDR TABLE

    TBL_APP_HINT TABLETBL_APP_HR TABLE

    TBL_APP_JOB_DT TABLE

    TBL_APP_PROFILE TABLE

    TBL_APP_QUALIFICATION TABLE

    TBL_APP_RESUME TABLE

    TBL_BONUS TABLE

    TBL_COMP TABLE

    TBL_EMPLOYEE_REIMBERSMENT TABLE

    TBL_EMPLOYEE_TIME_REGISTER TABLE

    TNAME TABTYPE CLUSTERID

    TBL_EMP_ADD TABLE

    TBL_EMP_COMPOFF_ELIGIBILITY TABLE

    TBL_EMP_DEPT TABLE

    TBL_EMP_DESIGNATION TABLE

    19

  • 8/7/2019 Final Report HR Management

    20/126

    TBL_EMP_EXIT TABLE

    TBL_EMP_INFO TABLE

    TBL_EMP_LEAVE TABLE

    TBL_EMP_LEAVE_TYPE TABLE

    TBL_EMP_QUALIFICATION TABLE

    TBL_EMP_REPOTING TABLE

    TBL_FEEDBACK_HANDLER TABLE

    TBL_FEEDBACK_RESPONDENT TABLE

    TBL_HOD_FEEDBACK TABLE

    TBL_INTERVIEWER TABLE

    TNAME TABTYPE CLUSTERID

    TBL_PAYROLL_BASIC_STRUCTURE TABLE

    TBL_PAYROLL_BUDGET_CODE TABLE

    TBL_PAYROLL_EMP_LEVEL TABLE

    TBL_PAYROLL_INCOMETAX TABLE

    TBL_PAYROLL_INCOME_TAX_SLAB TABLE

    TBL_PNA_STUDENT TABLE

    TBL_POLICY TABLE

    TBL_POLICY1 TABLE

    TBL_POLICY_INQ TABLE

    TBL_POLICY_SUBCAT TABLE

    TBL_POLICY_TYPE TABLETBL_PROMOTE TABLE

    TBL_STUDENT_FEEDBACK TABLE

    TBL_TRAINING TABLE

    TNAME TABTYPE CLUSTERID

    TBL_TRAINING_GROUP TABLE

    TBL_USER TABLE

    TB L_USER_ACTIVITY TABLE

    TBL_USER_ROLES TABLE

    TBL_VACANCY TABLE

    TABLE DESCRIPTION :

    20

  • 8/7/2019 Final Report HR Management

    21/126

    1. TBL_USER

    Name Null? Type

    USER_ID NOT NULL VARCHAR2(12)

    USER_PASS VARCHAR2(12)

    FIRST_NAME VARCHAR2(15)

    LAST_NAME VARCHAR2(15)

    CREATEDBY VARCHAR2(12)

    CREATED_DATE DATE

    LASTMODIFICATIONBY VARCHAR2(12)

    LASTMODIFICATIONDATE DATE

    2. TBL_USER_ROLESName Null? Type

    USER_ID VARCHAR2(12)

    USER_ROLE VARCHAR2(20)

    3. TBL_USER_ACTIVITY

    Name Null? Type

    USER_ID VARCHAR2(12)

    DEL_ACTIVITY VARCHAR2(8)CREATE_ACTIVITY VARCHAR2(8)

    EDIT_ACTIVITY VARCHAR2(8)

    SEARCH_ACTIVITY VARCHAR2(8)

    VIEW_ACTIVITY VARCHAR2(8)

    4. TBL_TRAINING

    Name Null? Type

    GROUP_ID NOT NULL VARCHAR2(12)

    EMP_ID VARCHAR2(12)

    START_DATE DATE

    END_DATE DATE

    TR_TYPE VARCHAR2(12)

    TR_DURATION NUMBER(4,2)

    5. TBL_TRAIN ING_GP

    21

  • 8/7/2019 Final Report HR Management

    22/126

    Name Null? Type

    GROUP_ID VARCHAR2(12)

    NO_OF_TRAINEE NUMBER(2)

    TRAINER VARCHAR2(30)

    FEEDBACK VARCHAR2(30)

    Design Constraints

    Security: The files in which the

    information regarding securities and portfolios should be secured against malicious

    deformations.

    Fault Tolerance: Data should not

    become corrupted in case of system crash or power failure.

    Software System Attributes

    These are characteristics the system must possess, but that pervade (or cross-cut) the design.

    These requirements have to be testable just like the functional requirements

    Reliability

    The system shall fail not more than once in a month. Reference to test documentation goes also

    here

    Availability

    This system shall run 24/7. The system shall allow users to restart the application after failure

    without the loss of data.

    22

  • 8/7/2019 Final Report HR Management

    23/126

  • 8/7/2019 Final Report HR Management

    24/126

    User Class

    There are 3 classes of user:

    Administrator

    HR Manager

    General User

    All these users perform different functions. Their tasks are:

    ADMINISTRATOR

    Manages both hr manager and employees.

    Manages change.

    HR MANAGER

    Evaluates performance.

    Maintain policies.

    Maintain status of employees.

    Conducts training schedule.

    Shortlists applicants during recruitment process.

    Select eligibility criteria.

    EMPLOYEES

    Manages /update profile.

    Give attendance.

    Update CV.

    Register for training.

    Gives feedback.

    Objects

    Objects are real-world entities that have a counterpart within the system.

    Various objects in the system are shown in figure as:-

    24

  • 8/7/2019 Final Report HR Management

    25/126

    25

  • 8/7/2019 Final Report HR Management

    26/126

    Features

    Various features of this system are:-

    Login

    Members section

    HR department

    Registration process Recruitment section

    Stimulus Response

    Various stimulus and their corresponding responses for the system are: -

    LOGIN :

    STIMULUS RESPONSES

    1. user enters valid user_id and password

    combination

    System shall verify the valid combination.

    2. user adds invalid user_id and password System shall show an error message for an

    invalid entry

    MEMBERS SECTION :

    STIMULUS RESPONSES

    1. Employee enter data to update their

    profile

    If the entered data is valid then the profile is

    updated otherwise an error message shall be

    displayed.2. Employee tends to change his password Old password will be asked; if correct then

    password updated else not.

    HR DEPARTMENT:

    STIMULUS RESPONSES

    26

  • 8/7/2019 Final Report HR Management

    27/126

    1. HRM create vacancies Vacancy created for valid entry otherwise not.

    Report generation.

    2. HRM update vacancies Vacancy updated for valid entry otherwise not

    3. HRM selects candidate List of selected candidates will be sent to

    interviewer. Report generation.

    REGISTRATION PROCESS :

    STIMULUS RESPONSES

    1. User registers himself by entering

    incomplete entries

    System will show an error message for

    incomplete data entry

    2. User registers himself by enteringimproper entries

    System will show an error message forimproper data entry

    3. User registers himself by entering correct

    data

    Employee successfully registered.

    Provided a user_id and password

    RECRUITMENT SECTION :

    STIMULUS RESPONSE1. Employee apply for a particular job System check the entry for eligibility

    2. Already applied employee View their status in the system.

    3. Already applied employee Update their CVs

    Functional Hierarchy

    27

  • 8/7/2019 Final Report HR Management

    28/126

    Fig: context diagram for ERP for HR management

    28

  • 8/7/2019 Final Report HR Management

    29/126

    Fig: DFD: Admin module: ERP for HR management

    29

  • 8/7/2019 Final Report HR Management

    30/126

    Fig: Training Module: ERP for HR

    30

  • 8/7/2019 Final Report HR Management

    31/126

    TESTING TECHNOLOGIES/VALIDATION

    1) Unit testing

    Unit testing focuses verification effort on the smallest unit of software i.e. the module. Using the

    detailed design and the process specifications, testing is done to uncover errors within the

    boundary of the module. All modules must be successful in the unit test before the start of the

    integration testing begins.

    In this project each service can be thought of a module. There are so many modules like Login,

    HR Department, Interviewer Section, etc. Each module has been tested by giving different sets

    of inputs. When developing the module as well as finishing the development, the module works

    without any error. The inputs are validated when accepting them from the user.

    2) Integration Testing

    After unit testing, we have to perform integration testing. The goal here is to see if modules can

    be integrated properly, the emphasis being on testing interfaces between modules. This testing

    activity can be considered as testing the design and hence the emphasis on testing module

    interactions.

    In this project the main system is formed by integrating all the modules. When integrating all the

    modules I have checked whether the integration effects working of any of the services by giving

    different combinations of inputs with which the two services run perfectly before Integration.

    3) System Testing

    Here the entire software system is tested. The reference document for this process is the

    requirements document, and the goal is to see if software meets its requirements.

    Here entire HRRP has been tested against requirements of project and it is checked whether all

    requirements of project have been satisfied or not.

    4) Acceptance Testing

    31

  • 8/7/2019 Final Report HR Management

    32/126

  • 8/7/2019 Final Report HR Management

    33/126

    This testing is based on the knowledge of structure of component (e.g. by looking at source

    code). The advantage is that structure of code can be used to find out how many test cases

    needed to be performed. Knowledge of the algorithm (examination of the code) can be used to

    identify the equivalence partitions. Path testing is where the tester aims to exercise every

    independent execution path through the component. All conditional statements tested for both

    true and false cases. If a unit has n control statements, there will be up to 2n possible paths

    through it. This demonstrates that it is much easier to test small program units than large ones.

    Flow graphs are a pictorial representation of the paths of control through a program (ignoring

    assignments, procedure calls and I/O statements). We use a flow graph to design test cases that

    execute each path. Static tools may be used to make this easier in programs that have a complex

    branching structure. Dynamic program analyzers instrument a program with additional code.

    Typically this will count how many times each statement is executed. At end, print out report

    showing which statements have and have not been executed.

    Possible methods:

    Usual method is to ensure that every line of code is executed at least once.

    Test capabilities rather than components (e.g. concentrate on tests for data loss over ones for

    screen layout).

    Test old in preference to new (users less effected by failure of new capabilities).

    Test typical cases rather than boundary ones (ensure normal operation works properly).

    Debugging

    Debugging is a cycle of detection, location, repair and test. Debugging is a hypothesis testing

    process. When a bug is detected, the tester must form a hypothesis about the cause and location

    of the bug. Further examination of the execution of the program (possible including many returns

    of it) will usually take place to confirm the hypothesis. If the hypothesis is demonstrated to be

    incorrect, a new hypothesis must be formed. Debugging tools that show the state of the program

    are useful for this, but inserting print statements is often the only approach. Experienced

    debuggers use their knowledge of common and/or obscure bugs to facilitate the hypothesis

    testing process. After fixing a bug, the system must be reset to ensure that the fix has worked and

    33

  • 8/7/2019 Final Report HR Management

    34/126

    that no other bugs have been introduced. In principle, all tests should be performed again but this

    is often too expensive to do.

    Implementation:

    METHODOLOGY ADOPTED

    WATERFALL MODEL

    The waterfall model derives its name due to the cascading effect from one phase to the other. In

    this model each phase well defined starting and ending point, with identifiable deliveries to the

    next phase. This model is sometimes referred to as the linear sequential model or the software

    life cycle.

    34

  • 8/7/2019 Final Report HR Management

    35/126

  • 8/7/2019 Final Report HR Management

    36/126

    2. In thespecification phase the system specification is produced from the

    detailed definitions of (a) and (b) above. This document should clearly define

    the product function.

    3. In the system and software design phase, the system specifications are

    translated into a software representation. The software engineer at this stage is

    concerned with:

    Data structure

    Software architecture

    Algorithmic detail and

    Interface representations

    The hardware requirements are also determined at this stage along with a picture of the overall

    system architecture. By the end of this stage the software engineer should be able to identify the

    relationship between the hardware, software and the associated interfaces. Any faults in the

    specification should ideally not be passed downstream

    4. In the implementation and testingphase stage the designs are translated into

    the software domain

    Detailed documentation from the design phase can significantly reduce the

    coding effort.

    Testing at this stage focuses on making sure that any errors are identified

    and that the software meets its required specification.

    5. In the integration and system testingphase all the program units are integrated

    36

  • 8/7/2019 Final Report HR Management

    37/126

    and tested to ensure that the complete system meets the software requirements.

    After this stage the software is delivered to the customer [Deliverable The

    software product is delivered to the client for acceptance testing.

    6. The maintenance phase the usually the longest stage of the software

    Meet the changing customer needs

    Adapted to accommodate changes in the external environment

    Correct errors and oversights previously undetected in the testing phases

    Observe that feed back loops allow for corrections to be incorporated into the model. For

    example a problem/update in the design phase requires a revisit to the specifications phase.When changes are made at any phase, the relevant documentation should be updated to reflect

    that change.

    Advantages

    Testing is inherent to every phase of the waterfall model

    It is an enforced disciplined approach

    This approach is very useful as all the requirements were already gathered in

    the requirement phase.

    It is documentation driven, that is, documentation is produced at every stage

    Disadvantages

    The waterfall model is the oldest and the most widely used paradigm.

    However, many projects rarely follow its sequential flow. This is due to the inherent problems

    associated with its rigid format. Namely:

    37

  • 8/7/2019 Final Report HR Management

    38/126

  • 8/7/2019 Final Report HR Management

    39/126

  • 8/7/2019 Final Report HR Management

    40/126

  • 8/7/2019 Final Report HR Management

    41/126

    View Employee Detail:

    Check Loan Request:

    41

  • 8/7/2019 Final Report HR Management

    42/126

  • 8/7/2019 Final Report HR Management

    43/126

    Send Loan Request:

    View Employee Payroll:

    43

  • 8/7/2019 Final Report HR Management

    44/126

    HR Home Page:

    Insert Employee Detail:

    44

  • 8/7/2019 Final Report HR Management

    45/126

    Insert Employee Payroll:

    Delete Employee Record:

    45

  • 8/7/2019 Final Report HR Management

    46/126

    Approve Loan Request:

    Approve Leave Reqest:

    46

  • 8/7/2019 Final Report HR Management

    47/126

    Create Jobs:

    Send Important Notice:

    47

  • 8/7/2019 Final Report HR Management

    48/126

    Search Job Seakers:

    Job Seakers Home:

    48

  • 8/7/2019 Final Report HR Management

    49/126

    View Profile:

    Update Contact Detail:

    49

  • 8/7/2019 Final Report HR Management

    50/126

    Update Professional Detail:

    View Jobs:

    50

  • 8/7/2019 Final Report HR Management

    51/126

    Logout User:

    Policy:

    51

  • 8/7/2019 Final Report HR Management

    52/126

    Training:

    About Us:

    52

  • 8/7/2019 Final Report HR Management

    53/126

  • 8/7/2019 Final Report HR Management

    54/126

  • 8/7/2019 Final Report HR Management

    55/126

  • 8/7/2019 Final Report HR Management

    56/126

    Classes and Interfaces declaration should Pascal notation. Class names should be nouns

    with first letter of each interval word capitalized. Acronyms and abbreviations should be

    avoided.

    methods declaration

    The methods declaration should be preceded by a brief description about the method.

    Method should be declared using Camel notation i.e., starting letter of the method should

    be in small letter that will be followed by a capitalized first letter of each interval

    encountered. Methods should be verbs of the system.

    class variables

    Class variables should be declared in all CAPS.

    Proper and meaningful names must be given to class variables.

    instance variables

    The instance variables should be prefixed with an m.

    Proper and meaningful names must be given to instance variables.

    56

    publicclass JavaCodeConvention {

    }

    /*** Description of the method* @return JavaCodeConvention*/

    public JavaCodeConvention getMethodConvention(){

    returnnull;

    }

    /** a variable for count*/public static intCOUNT = 0;

  • 8/7/2019 Final Report HR Management

    57/126

  • 8/7/2019 Final Report HR Management

    58/126

  • 8/7/2019 Final Report HR Management

    59/126

    not always flow through the complete loop. It stops as soon as one of the modules reports a

    failure and loops back to an earlier stage. For example, we do not search for a mouth if no eyes

    are found. In this case, no time is wasted in the mouth module.

    Additionally, we utilized special programming techniques to reduce the run-time. For instance,

    wave propagation is used to generate the symmetry maps. This provides a computational

    efficiency that makes the symmetry operator a practical tool. The 3D normalization algorithm is

    also extremely efficient and uses look-up tables and minimal calculations for increased speed.

    The execution times are measure on an SGI Indy machine which has a rating equivalent to that

    of a 1996 home personal computer. The efficiency of the code allows a face to be found in an

    image in less than 1 second if it is the dominant structure. However, we loop through all objects

    in the scene in an attempt to find all possible faces. Thus, the algorithm's loop is traversed

    multiple times even though a face could have been detected in an earlier iteration of the loop.

    PROGRAMMING STYLE USED

    To make the coding style user-friendly and keeping the style java provides two types of coding

    model.

    Inline Code / Single page (Classical Model)

    Cascade Style Sheeet Model

    Inline Code

    The coding style used by java developers is known as inline coding, inline code or in-page code

    because that was the only way to develop an java page.

    59

  • 8/7/2019 Final Report HR Management

    60/126

    Source Code:

    package listener;

    import java.sql.*;

    import javax.servlet.*;

    public class Database_connection implements ServletContextListener{

    public static Connection con;

    public void contextDestroyed(ServletContextEvent arg0) {

    try {con.close();

    System.out.println("connection close");

    } catch (Exception e) {

    System.out.println("connection closing error");e.printStackTrace();

    }

    }

    public void contextInitialized(ServletContextEvent arg0) {try {

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

    con=DriverManager.getConnection("jdbc:odbc:hr_management","hr_management","syst

    em");

    System.out.println("connection establish");

    } catch (Exception e) {

    System.out.println("connection error");

    e.printStackTrace();}

    }

    public Connection connect(){

    return con;

    }

    60

  • 8/7/2019 Final Report HR Management

    61/126

    }

    package authorization;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import listener.Database_connection;

    public class Employee {private String emp_id;

    private String password;

    Database_connection db=new Database_connection();PreparedStatement ps;

    public String getEmp_id() {return emp_id;

    }

    public void setEmp_id(String emp_id) {

    this.emp_id = emp_id;

    }

    public String getPassword() {

    return password;}

    public void setPassword(String password) {this.password = password;

    }

    public boolean Authorize(){

    try {

    ps = db.connect().prepareStatement("select employeeid,password fromlogin ");

    ResultSet rs=ps.executeQuery();while(rs.next())

    {

    if(rs.getString("employeeid").equals(getEmp_id())&&rs.getString("password").equals(ge

    tPassword()))

    {

    61

  • 8/7/2019 Final Report HR Management

    62/126

  • 8/7/2019 Final Report HR Management

    63/126

    public void setPassword(String password) {

    this.password = password;

    }public File getResume() {

    return resume;

    }public void setResume(File resume) {

    this.resume = resume;

    }

    public boolean Authorize()

    {

    try { ps = db.connect().prepareStatement("select user_id,password from

    user_login ");

    ResultSet rs=ps.executeQuery();

    while(rs.next()){

    if(rs.getString("user_id").equals(getUser_id())&&rs.getString("password").equals(getPas

    sword()))

    {return true;

    }

    }} catch (Exception e) {

    e.printStackTrace();

    }return false;

    }

    public boolean checkUser(){

    try {

    ps = db.connect().prepareStatement("select user_id from user_login ");

    ResultSet rs=ps.executeQuery();while(rs.next())

    {

    if(rs.getString("user_id").equals(getUser_id())||getUser_id()==null||getUser_id()=="")

    {

    return false;}

    }

    63

  • 8/7/2019 Final Report HR Management

    64/126

    } catch (Exception e) {

    e.printStackTrace();

    }return true;

    }

    public boolean checkResume(){

    if(getResume()==null){

    return false;}

    else

    {

    return true;}

    }

    }

    package employee;

    import java.sql.PreparedStatement;

    import listener.Database_connection;

    public class DeleteRecord {

    private String emp_id;

    Database_connection db=new Database_connection();

    PreparedStatement ps;

    public String getEmp_id() {

    return emp_id;

    }

    public void setEmp_id(String emp_id) {

    this.emp_id = emp_id;

    }

    public void Delete()

    {

    try {

    ps = db.connect().prepareStatement("delete from payroll where

    employeeid=?");

    ps.setString(1,getEmp_id());

    64

  • 8/7/2019 Final Report HR Management

    65/126

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from boisdata whereemployeeid=?");

    ps.setString(1,getEmp_id());

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from leave where

    employeeid=?");ps.setString(1,getEmp_id());

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from loan whereemployeeid=?");

    ps.setString(1,getEmp_id());

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from promotions where

    employeeid=?");ps.setString(1,getEmp_id());

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from qualifications whereemployeeid=?");

    ps.setString(1,getEmp_id());

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from training where

    employeeid=?");ps.setString(1,getEmp_id());

    ps.executeUpdate();

    ps = db.connect().prepareStatement("delete from login where

    employeeid=?");

    ps.setString(1,getEmp_id());

    ps.executeUpdate();} catch (Exception e) {

    e.printStackTrace();

    }

    }

    }

    package employee;

    65

  • 8/7/2019 Final Report HR Management

    66/126

    import java.sql.PreparedStatement;

    import listener.Database_connection;

    public class ImpNotice {

    private String notice;

    Database_connection db=new Database_connection();

    PreparedStatement ps;

    public String getNotice() {return notice;

    }

    public void setNotice(String notice) {this.notice = notice;

    }

    public void insert()

    {

    try {ps = db.connect().prepareStatement("Insert into imp_notice values (?)");

    ps.setString(1,getNotice());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }}

    package employee;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import listener.Database_connection;

    public class InsertEmpDetail {

    private String emp_id;

    private String password;

    private String emp_name;

    66

  • 8/7/2019 Final Report HR Management

    67/126

  • 8/7/2019 Final Report HR Management

    68/126

  • 8/7/2019 Final Report HR Management

    69/126

  • 8/7/2019 Final Report HR Management

    70/126

    }

    /**

    * @param station the station to set*/

    public void setStation(String station) {

    this.station = station;}

    /**

    * @return the present_add*/

    public String getPresent_add() {

    return present_add;

    }/**

    * @param present_add the present_add to set

    */

    public void setPresent_add(String present_add) {this.present_add = present_add;

    }/**

    * @return the parmanent_add

    */

    public String getParmanent_add() {return parmanent_add;

    }

    /*** @param parmanent_add the parmanent_add to set

    */

    public void setParmanent_add(String parmanent_add) {this.parmanent_add = parmanent_add;

    }

    /*** @return the phone_no

    */

    public String getPhone_no() {

    return phone_no;}

    /**

    * @param phone_no the phone_no to set*/

    public void setPhone_no(String phone_no) {

    this.phone_no = phone_no;}

    /**

    * @return the join_date

    */

    70

  • 8/7/2019 Final Report HR Management

    71/126

    public String getJoin_date() {

    return join_date;

    }/**

    * @param join_date the join_date to set

    */public void setJoin_date(String join_date) {

    this.join_date = join_date;

    }/**

    * @return the high_qualification

    */

    public String getHigh_qualification() {return high_qualification;

    }

    /**

    * @param high_qualification the high_qualification to set*/

    public void setHigh_qualification(String high_qualification) {this.high_qualification = high_qualification;

    }

    /**

    * @return the score*/

    public String getScore() {

    return score;}

    /**

    * @param score the score to set*/

    public void setScore(String score) {

    this.score = score;}

    /**

    * @return the passing_year

    */public String getPassing_year() {

    return passing_year;

    }/**

    * @param passing_year the passing_year to set

    */public void setPassing_year(String passing_year) {

    this.passing_year = passing_year;

    }

    /**

    71

  • 8/7/2019 Final Report HR Management

    72/126

  • 8/7/2019 Final Report HR Management

    73/126

    }

    /**

    * @return the venue*/

    public String getVenue() {

    return venue;}

    /**

    * @param venue the venue to set*/

    public void setVenue(String venue) {

    this.venue = venue;

    }/**

    * @return the promotion_date

    */

    public String getPromotion_date() {return promotion_date;

    }/**

    * @param promotion_date the promotion_date to set

    */

    public void setPromotion_date(String promotion_date) {this.promotion_date = promotion_date;

    }

    /*** @return the cur_designation

    */

    public String getCur_designation() {return cur_designation;

    }

    /*** @param cur_designation the cur_designation to set

    */

    public void setCur_designation(String cur_designation) {

    this.cur_designation = cur_designation;}

    /**

    * @return the promoted_designation*/

    public String getPromoted_designation() {

    return promoted_designation;}

    /**

    * @param promoted_designation the promoted_designation to set

    */

    73

  • 8/7/2019 Final Report HR Management

    74/126

    public void setPromoted_designation(String promoted_designation) {

    this.promoted_designation = promoted_designation;

    }/**

    * @return the promoted_scale

    */public String getPromoted_scale() {

    return promoted_scale;

    }/**

    * @param promoted_scale the promoted_scale to set

    */

    public void setPromoted_scale(String promoted_scale) {this.promoted_scale = promoted_scale;

    }

    public String getPassword() {return password;

    }

    public void setPassword(String password) {

    this.password = password;

    }

    public void insertLogin()

    {

    try {

    ps = db.connect().prepareStatement("Insert into login values (?,?)");

    ps.setString(1,getEmp_id());ps.setString(2,getPassword());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    public void insertBioData()

    {

    74

  • 8/7/2019 Final Report HR Management

    75/126

    try {

    ps = db.connect().prepareStatement("Insert into boisdata values

    (?,?,?,?,?,?,?,?,?,?,?,?,?,?)");

    ps.setString(1,getEmp_id());ps.setString(2,getEmp_name());

    ps.setString(3,getFather_name());

    ps.setString(4,getGender());ps.setString(5,getMarital_status());

    ps.setString(6,getDOB());

    ps.setString(7,getNationality());

    ps.setString(8,getDesignation());ps.setString(9,getDepartment());

    ps.setString(10,getStation());

    ps.setString(11,getPresent_add());

    ps.setString(12,getParmanent_add());ps.setString(13,getPhone_no());

    ps.setString(14,getJoin_date());ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    public void insertQualification()

    {

    try {

    ps = db.connect().prepareStatement("Insert into qualifications values(?,?,?,?,?)");

    ps.setString(1,getEmp_id());

    ps.setString(2,getEmp_name());ps.setString(3,getHigh_qualification());

    ps.setString(4,getScore());

    ps.setString(5,getPassing_year());ps.executeUpdate();

    } catch (Exception e) {

    75

  • 8/7/2019 Final Report HR Management

    76/126

    e.printStackTrace();

    }

    }

    public void insertTraining()

    {

    try {

    ps = db.connect().prepareStatement("Insert into training values(?,?,?,?,?,?,?)");

    ps.setString(1,getEmp_id());

    ps.setString(2,getEmp_name());

    ps.setString(3,getTraining_code());ps.setString(4,getTraining_type());

    ps.setString(5,getStart_date());ps.setString(6,getEnd_date());

    ps.setString(7,getVenue());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    public void insertPromotion(){

    try { ps = db.connect().prepareStatement("Insert into promotions values

    (?,?,?,?,?,?)");

    ps.setString(1,getEmp_id());ps.setString(2,getEmp_name());

    ps.setString(3,getPromotion_date());

    ps.setString(4,getCur_designation());ps.setString(5,getPromoted_designation());

    ps.setString(6,getPromoted_scale());

    ps.executeUpdate();

    76

  • 8/7/2019 Final Report HR Management

    77/126

  • 8/7/2019 Final Report HR Management

    78/126

    public void updateBioData()

    {

    try {

    ps = db.connect().prepareStatement("update boisdata set name=?,

    fathername=?, gender=?, matrialstatus=?, dateofbirth=?, nationality=?, designation=?,

    department=?, station=?, presentaddress=?, permentaddress=?, phoneno=?, joindate=?where employeeid=?");

    ps.setString(14,getEmp_id());

    ps.setString(1,getEmp_name());

    ps.setString(2,getFather_name());ps.setString(3,getGender());

    ps.setString(4,getMarital_status());

    ps.setString(5,getDOB());

    ps.setString(6,getNationality());ps.setString(7,getDesignation());

    ps.setString(8,getDepartment());ps.setString(9,getStation());

    ps.setString(10,getPresent_add());

    ps.setString(11,getParmanent_add());

    ps.setString(12,getPhone_no());ps.setString(13,getJoin_date());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    public void updateQualification()

    {

    try {

    ps = db.connect().prepareStatement("update qualifications set

    employeename=?, degree=?, score=?, passingyear=? where employeeid=?");ps.setString(5,getEmp_id());

    ps.setString(1,getEmp_name());

    ps.setString(2,getHigh_qualification());

    ps.setString(3,getScore());

    78

  • 8/7/2019 Final Report HR Management

    79/126

  • 8/7/2019 Final Report HR Management

    80/126

    ps.setString(2,getPromotion_date());

    ps.setString(3,getCur_designation());

    ps.setString(4,getPromoted_designation());ps.setString(5,getPromoted_scale());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    }

    package employee;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import listener.Database_connection;

    public class LeaveRequest {private String emp_id;

    private String emp_name;

    private String leave_type;private String starting_date;

    private String ending_date;

    private String leave_status;

    Database_connection db=new Database_connection();

    PreparedStatement ps;

    public String getEmp_id() {

    return emp_id;}

    public void setEmp_id(String emp_id) {this.emp_id = emp_id;

    }

    public String getEmp_name() {

    80

  • 8/7/2019 Final Report HR Management

    81/126

    return emp_name;

    }

    public void setEmp_name(String emp_name) {

    this.emp_name = emp_name;

    }

    public String getLeave_type() {

    return leave_type;}

    public void setLeave_type(String leave_type) {

    this.leave_type = leave_type;}

    public String getStarting_date() {

    return starting_date;}

    public void setStarting_date(String starting_date) {

    this.starting_date = starting_date;

    }

    public String getEnding_date() {

    return ending_date;

    }

    public void setEnding_date(String ending_date) {

    this.ending_date = ending_date;}

    public String getLeave_status() {return leave_status;

    }

    public void setLeave_status(String leave_status) {this.leave_status = leave_status;

    }

    public void insertLeave()

    {

    try {

    ps = db.connect().prepareStatement("update Leave set EmployeeName=?,

    LeaveType=?, StartingDate=?, EndingDate=? where EmployeeID=?");

    81

  • 8/7/2019 Final Report HR Management

    82/126

    ps.setString(1,getEmp_name());

    ps.setString(2,getLeave_type());

    ps.setString(3,getStarting_date());ps.setString(4,getEnding_date());

    ps.setString(5,getEmp_id());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }}

    public void AproveLeave()

    {

    try {

    ps = db.connect().prepareStatement("update Leave set leavestatus=?where EmployeeID=?");

    ps.setString(1,getLeave_status());

    ps.setString(2,getEmp_id());ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }public void RetrieveLeave()

    {

    try {

    ps = db.connect().prepareStatement("select * from leave where

    employeeid=?");ps.setString(1,getEmp_id());

    ResultSet rs=ps.executeQuery();

    while(rs.next()){

    setLeave_type(rs.getString("leavetype"));

    setStarting_date(rs.getString("startingdate"));

    setEnding_date(rs.getString("endingdate"));

    82

  • 8/7/2019 Final Report HR Management

    83/126

    setLeave_status(rs.getString("leavestatus"));

    }

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    }

    package employee;

    import java.sql.PreparedStatement;import java.sql.ResultSet;

    import listener.Database_connection;

    public class LoanRequest {

    private String emp_id;private String emp_name;

    private String loan_type;

    private String amount;

    private String loan_status;

    Database_connection db=new Database_connection();

    PreparedStatement ps;

    public String getEmp_id() {

    return emp_id;}

    /**

    * @param emp_id the emp_id to set*/

    public void setEmp_id(String emp_id) {

    this.emp_id = emp_id;

    }/**

    * @return the emp_name

    */public String getEmp_name() {

    return emp_name;

    }/**

    * @param emp_name the emp_name to set

    */

    public void setEmp_name(String emp_name) {

    83

  • 8/7/2019 Final Report HR Management

    84/126

  • 8/7/2019 Final Report HR Management

    85/126

  • 8/7/2019 Final Report HR Management

    86/126

    setLoan_type(rs.getString("loantype"));

    setAmount(rs.getString("amount"));

    setLoan_status(rs.getString("loanstatus"));

    }

    } catch (Exception e) {

    e.printStackTrace();

    }

    }}

    package employee;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import listener.Database_connection;

    public class PayRoll {private String emp_id;

    private int besic_pay;

    private int house_rent;private int convency;

    private int medical;

    private int telecomm;private int allowances_total;

    private int bonus_amount;

    private int income_tax;private int insurance;

    private int p_fund;

    private int deduction_total;

    Database_connection db=new Database_connection();

    PreparedStatement ps;

    public String getEmp_id() {

    return emp_id;

    }/**

    * @param emp_id the emp_id to set

    */

    public void setEmp_id(String emp_id) {

    86

  • 8/7/2019 Final Report HR Management

    87/126

    this.emp_id = emp_id;

    }

    /*** @return the besic_pay

    */

    public int getBesic_pay() {return besic_pay;

    }

    /*** @param besic_pay the besic_pay to set

    */

    public void setBesic_pay(int besic_pay) {

    this.besic_pay = besic_pay;}

    /**

    * @return the house_rent

    */public int getHouse_rent() {

    return house_rent;}

    /**

    * @param house_rent the house_rent to set

    */public void setHouse_rent(int house_rent) {

    this.house_rent = house_rent;

    }/**

    * @return the convency

    */public int getConvency() {

    return convency;

    }/**

    * @param convency the convency to set

    */

    public void setConvency(int convency) {this.convency = convency;

    }

    /*** @return the medical

    */

    public int getMedical() {return medical;

    }

    /**

    * @param medical the medical to set

    87

  • 8/7/2019 Final Report HR Management

    88/126

    */

    public void setMedical(int medical) {

    this.medical = medical;}

    /**

    * @return the telecomm*/

    public int getTelecomm() {

    return telecomm;}

    /**

    * @param telecomm the telecomm to set

    */public void setTelecomm(int telecomm) {

    this.telecomm = telecomm;

    }

    /*** @return the allowances_total

    */public int getAllowances_total() {

    return allowances_total;

    }

    /*** @param allowances_total the allowances_total to set

    */

    public void setAllowances_total(int allowances_total) {this.allowances_total = allowances_total;

    }

    /*** @return the bonus_amount

    */

    public int getBonus_amount() {return bonus_amount;

    }

    /**

    * @param bonus_amount the bonus_amount to set*/

    public void setBonus_amount(int bonus_amount) {

    this.bonus_amount = bonus_amount;}

    /**

    * @return the income_tax*/

    public int getIncome_tax() {

    return income_tax;

    }

    88

  • 8/7/2019 Final Report HR Management

    89/126

    /**

    * @param income_tax the income_tax to set

    */public void setIncome_tax(int income_tax) {

    this.income_tax = income_tax;

    }/**

    * @return the insurance

    */public int getInsurance() {

    return insurance;

    }

    /*** @param insurance the insurance to set

    */

    public void setInsurance(int insurance) {

    this.insurance = insurance;}

    /*** @return the p_fund

    */

    public int getP_fund() {

    return p_fund;}

    /**

    * @param p_fund the p_fund to set*/

    public void setP_fund(int p_fund) {

    this.p_fund = p_fund;}

    /**

    * @return the deduction_total*/

    public int getDeduction_total() {

    return deduction_total;

    }/**

    * @param deduction_total the deduction_total to set

    */public void setDeduction_total(int deduction_total) {

    this.deduction_total = deduction_total;

    }public void RetrievePay()

    {

    89

  • 8/7/2019 Final Report HR Management

    90/126

    try {

    ps = db.connect().prepareStatement("select * from payroll whereemployeeid=?");

    ps.setString(1,getEmp_id());

    ResultSet rs=ps.executeQuery();while(rs.next())

    {

    setBesic_pay(rs.getInt("besic_pay"));setHouse_rent(rs.getInt("house_rent"));

    setConvency(rs.getInt("convency"));

    setMedical(rs.getInt("medical"));

    setTelecomm(rs.getInt("telecomm"));setAllowances_total(rs.getInt("allowances_total"));

    setBonus_amount(rs.getInt("bonus_amount"));

    setIncome_tax(rs.getInt("income_tax"));

    setInsurance(rs.getInt("insurance"));setP_fund(rs.getInt("p_fund"));

    setDeduction_total(rs.getInt("deduction_total"));

    }

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    public void InsertPay(){

    try {

    ps = db.connect().prepareStatement("insert into payroll

    values(?,?,?,?,?,?,?,?,?,?,?,?)");ps.setString(1,getEmp_id());

    ps.setInt(2,getBesic_pay());

    ps.setInt(3,getHouse_rent());ps.setInt(4,getConvency());

    ps.setInt(5,getMedical());

    ps.setInt(6,getTelecomm());

    ps.setInt(7,getAllowances_total());

    90

  • 8/7/2019 Final Report HR Management

    91/126

    ps.setInt(8,getBonus_amount());

    ps.setInt(9,getIncome_tax());

    ps.setInt(10,getInsurance());ps.setInt(11,getP_fund());

    ps.setInt(12,getDeduction_total());

    ps.executeUpdate();

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    }

    package jobs;

    import java.sql.PreparedStatement;

    import listener.Database_connection;

    public class InsertJobs {

    private String job_type;private String job_discription;

    Database_connection db=new Database_connection();PreparedStatement ps;

    public String getJob_type() {return job_type;

    }

    public void setJob_type(String job_type) {this.job_type = job_type;

    }

    public String getJob_discription() {

    return job_discription;

    }

    public void setJob_discription(String job_discription) {

    this.job_discription = job_discription;

    }

    91

  • 8/7/2019 Final Report HR Management

    92/126

  • 8/7/2019 Final Report HR Management

    93/126

    Database_connection db=new Database_connection();

    PreparedStatement ps;

    public String getUser_id() {return user_id;

    }

    public void setUser_id(String user_id) {this.user_id = user_id;

    }

    public String getPassword() {return password;

    }

    public void setPassword(String password) {

    this.password = password;

    }public String getEmail() {

    return email;

    }

    public void setEmail(String email) {this.email = email;

    }

    public String getName() {

    return name;}

    public void setName(String name) {

    this.name = name;

    }

    public String getGender() {

    return gender;}

    public void setGender(String gender) {

    this.gender = gender;}

    public String getCountry() {

    return country;}

    public void setCountry(String country) {

    this.country = country;

    }

    93

  • 8/7/2019 Final Report HR Management

    94/126

  • 8/7/2019 Final Report HR Management

    95/126

  • 8/7/2019 Final Report HR Management

    96/126

  • 8/7/2019 Final Report HR Management

    97/126

  • 8/7/2019 Final Report HR Management

    98/126

  • 8/7/2019 Final Report HR Management

    99/126

    try { ps = db.connect().prepareStatement("UPDATE employer_detail SET

    total_exp=?, fun_area=?, key_skill=?, cur_company=?, designation=?, duration=?,

    job_profile=? where user_id=?");ps.setString(8,getUser_id());

    ps.setString(1,getTotal_exp());

    ps.setString(2,getFunctional_area());ps.setString(3,getKey_skill());

    ps.setString(4,getCompany_name());

    ps.setString(5,getDesignation());

    ps.setString(6,getDuration());ps.setString(7,getJob_proile());

    ps.executeUpdate();

    System.out.println("Employer Detail Updated");

    } catch (Exception e) {

    e.printStackTrace();}

    }

    }

    package registration;

    import java.io.FileReader;

    import java.sql.PreparedStatement;

    import java.sql.ResultSet;

    import listener.Database_connection;

    public class educational_detail {

    private String user_id;

    private String graduation_coursename;private String graduation_mode;

    private String graduation_spacialization;

    private String graduational_institutename;private int graduation_year;

    private String pg_coursename;

    private String pg_mode;private String pg_spacialization;

    private String pg_institutename;

    private int pg_year;

    private String doctorate_coursename;

    99

  • 8/7/2019 Final Report HR Management

    100/126

  • 8/7/2019 Final Report HR Management

    101/126

    }

    public void setPg_mode(String pg_mode) {

    this.pg_mode = pg_mode;}

    public String getPg_spacialization() {

    return pg_spacialization;}

    public void setPg_spacialization(String pg_spacialization) {

    this.pg_spacialization = pg_spacialization;}

    public String getPg_institutename() {

    return pg_institutename;

    }public void setPg_institutename(String pg_institutename) {

    this.pg_institutename = pg_institutename;

    }

    public int getPg_year() {return pg_year;

    }public void setPg_year(int pg_year) {

    this.pg_year = pg_year;

    }

    public String getDoctorate_coursename() {return doctorate_coursename;

    }

    public void setDoctorate_coursename(String doctorate_coursename) {this.doctorate_coursename = doctorate_coursename;

    }

    public String getDoctorate_mode() {return doctorate_mode;

    }

    public void setDoctorate_mode(String doctorate_mode) {this.doctorate_mode = doctorate_mode;

    }

    public String getDoctorate_spacialization() {

    return doctorate_spacialization;}

    public void setDoctorate_spacialization(String doctorate_spacialization) {

    this.doctorate_spacialization = doctorate_spacialization;}

    public String getDoctorate_institutename() {

    return doctorate_institutename;}

    public void setDoctorate_institutename(String doctorate_institutename) {

    this.doctorate_institutename = doctorate_institutename;

    }

    101

  • 8/7/2019 Final Report HR Management

    102/126

  • 8/7/2019 Final Report HR Management

    103/126

    package retrieveData;

    import java.io.File;

    import java.io.FileInputStream;

    import java.io.FileOutputStream;import java.io.InputStream;

    import java.io.OutputStream;

    import java.sql.PreparedStatement;import java.sql.ResultSet;

    import javax.servlet.jsp.*;

    import listener.Database_connection;

    public class SelectBasicDetail {

    private String user_id;

    private String email;private String name;

    private String gender;

    private String country;

    private String current_loc;private String mobile_no;

    private String date_of_birth;

    private String marital_status;private String mailing_addr;

    private String zip_code;

    private String resume_headline;private File resume;

    Database_connection db=new Database_connection();PreparedStatement ps;

    public String getUser_id() {return user_id;

    }

    public void setUser_id(String user_id) {this.user_id = user_id;

    }

    public String getEmail() {

    return email;

    }

    103

  • 8/7/2019 Final Report HR Management

    104/126

  • 8/7/2019 Final Report HR Management

    105/126

  • 8/7/2019 Final Report HR Management

    106/126

  • 8/7/2019 Final Report HR Management

    107/126

  • 8/7/2019 Final Report HR Management

    108/126

  • 8/7/2019 Final Report HR Management

    109/126

    public String getPg_spacialization() {

    return pg_spacialization;

    }public void setPg_spacialization(String pg_spacialization) {

    this.pg_spacialization = pg_spacialization;

    }public String getPg_institutename() {

    return pg_institutename;

    }public void setPg_institutename(String pg_institutename) {

    this.pg_institutename = pg_institutename;

    }

    public int getPg_year() {return pg_year;

    }

    public void setPg_year(int pg_year) {

    this.pg_year = pg_year;}

    public String getDoctorate_coursename() {return doctorate_coursename;

    }

    public void setDoctorate_coursename(String doctorate_coursename) {

    this.doctorate_coursename = doctorate_coursename;}

    public String getDoctorate_mode() {

    return doctorate_mode;}

    public void setDoctorate_mode(String doctorate_mode) {

    this.doctorate_mode = doctorate_mode;}

    public String getDoctorate_spacialization() {

    return doctorate_spacialization;}

    public void setDoctorate_spacialization(String doctorate_spacialization) {

    this.doctorate_spacialization = doctorate_spacialization;

    }public String getDoctorate_institutename() {

    return doctorate_institutename;

    }public void setDoctorate_institutename(String doctorate_institutename) {

    this.doctorate_institutename = doctorate_institutename;

    }public int getDoctorate_year() {

    return doctorate_year;

    }

    public void setDoctorate_year(int doctorate_year) {

    109

  • 8/7/2019 Final Report HR Management

    110/126

    this.doctorate_year = doctorate_year;

    }

    public String getUser_id() {return user_id;

    }

    public void setUser_id(String user_id) {this.user_id = user_id;

    }

    public void retrieveEduDetail()

    {

    try {

    ps = db.connect().prepareStatement("select * from educational_detail

    where user_id=?");

    ps.setString(1,getUser_id());

    ResultSet rs=ps.executeQuery();while(rs.next())

    {setGraduation_coursename(rs.getString("graduation"));

    setGraduation_spacialization(rs.getString("g_specialization"));

    setGraduational_institutename(rs.getString("g_institute"));

    setGraduation_year(rs.getInt("g_year"));setGraduation_mode(rs.getString("g_mode"));

    setPg_coursename(rs.getString("pg"));

    setPg_spacialization(rs.getString("pg_specialization"));setPg_institutename(rs.getString("pg_institute"));

    setPg_year(rs.getInt("pg_year"));

    setPg_mode(rs.getString("pg_mode"));setDoctorate_coursename(rs.getString("dr_phd"));

    setDoctorate_spacialization(rs.getString("d_specialization"));

    setDoctorate_institutename(rs.getString("d_institute"));setDoctorate_year(rs.getInt("d_year"));

    setDoctorate_mode(rs.getString("d_mode"));

    }

    } catch (Exception e) {

    e.printStackTrace();

    }

    }

    }

    110

  • 8/7/2019 Final Report HR Management

    111/126

  • 8/7/2019 Final Report HR Management

    112/126

  • 8/7/2019 Final Report HR Management

    113/126

  • 8/7/2019 Final Report HR Management

    114/126

  • 8/7/2019 Final Report HR Management

    115/126

  • 8/7/2019 Final Report HR Management

    116/126

  • 8/7/2019 Final Report HR Management

    117/126

    }

    /**

    * @return the designation*/

    public String getDesignation() {

    return designation;}

    /**

    * @param designation the designation to set*/

    public void setDesignation(String designation) {

    this.designation = designation;

    }/**

    * @return the department

    */

    public String getDepartment() {return department;

    }/**

    * @param department the department to set

    */

    public void setDepartment(String department) {this.department = department;

    }

    /*** @return the station

    */

    public String getStation() {return station;

    }

    /*** @param station the station to set

    */

    public void setStation(String station) {

    this.station = station;}

    /**

    * @return the present_add*/

    public String getPresent_add() {

    return present_add;}

    /**

    * @param present_add the present_add to set

    */

    117

  • 8/7/2019 Final Report HR Management

    118/126

    public void setPresent_add(String present_add) {

    this.present_add = present_add;

    }/**

    * @return the parmanent_add

    */public String getParmanent_add() {

    return parmanent_add;

    }/**

    * @param parmanent_add the parmanent_add to set

    */

    public void setParmanent_add(String parmanent_add) {this.parmanent_add = parmanent_add;

    }

    /**

    * @return the phone_no*/

    public String getPhone_no() {return phone_no;

    }

    /**

    * @param phone_no the phone_no to set*/

    public void setPhone_no(String phone_no) {

    this.phone_no = phone_no;}

    /**

    * @return the join_date*/

    public String getJoin_date() {

    return join_date;}

    /**

    * @param join_date the join_date to set

    */public void setJoin_date(String join_date) {

    this.join_date = join_date;

    }/**

    * @return the high_qualification

    */public String getHigh_qualification() {

    return high_qualification;

    }

    /**

    118

  • 8/7/2019 Final Report HR Management

    119/126

    * @param high_qualification the high_qualification to set

    */

    public void setHigh_qualification(String high_qualification) {this.high_qualification = high_qualification;

    }

    /*** @return the score

    */

    public String getScore() {return score;

    }

    /**

    * @param score the score to set*/

    public void setScore(String score) {

    this.score = score;

    }/**

    * @return the passing_year*/

    public String getPassing_year() {

    return passing_year;

    }/**

    * @param passing_year the passing_year to set

    */public void setPassing_year(String passing_year) {

    this.passing_year = passing_year;

    }/**

    * @return the training_code

    */public String getTraining_code() {

    return training_code;

    }

    /*** @param training_code the training_code to set

    */

    public void setTraining_code(String training_code) {this.training_code = training_code;

    }

    /*** @return the training_type

    */

    public String getTraining_type() {

    return training_type;

    119

  • 8/7/2019 Final Report HR Management

    120/126

  • 8/7/2019 Final Report HR Management

    121/126

  • 8/7/2019 Final Report HR Management

    122/126

  • 8/7/2019 Final Report HR Management

    123/126

  • 8/7/2019 Final Report HR Management

    124/126

  • 8/7/2019 Final Report HR Management

    125/126

    System.out.println(emp_name);

    return emp_name;

    } catch (Exception e) {

    e.printStackTrace();

    return null;}

    }}

    XML Code of Project:

    listener.Database_connection

    Resume

    retrieveData.SelectResume

    Resume

    /Resume

    home.jsp

    BIBLIOGRAPHY:

    Head First Java: Kaithy Siera

    Head First Servlet & JSP: Kaithy Siera

    SCJP for Java 6 Sudty Guide: Kaithy Siera

    125

  • 8/7/2019 Final Report HR Management

    126/126