You are on page 1of 107

HRMS

(Human Resource Management System)


A Major Project Report
Submitted in Partial fulfillment for the award of

Bachelor of Engineering (B.E.) Degree


In Computer Science & Engineering
Submitted To

RAJIV GANDHI PROUDYOGIKI VISHWAVIDYALAYA,


BHOPAL (M.P)

Submitted By
Ravi Shankar, Roll No: 0111CS063D06, Semester – VII
Rupesh Namdev, Roll No: 0111CS063D07, Semester – VII
Yogesh Namdev, Roll No: 0111CS063D12, Semester – VII
Satish Soni , Roll No: 0111CS053D09, Semester – VII

Under the Guidance of


Prof. BASANT TIWARI

TECHNOCRATS INSTITUTE OF TECHNOLOGY


BHOPAL (M.P.)
MAY- 2009
1
TECHNOCRATS INSTITUTE OF TECHNOLOGY
BHOPAL (M.P.)

CERTIFICATE

This is to certify that the Project entitled H R M S(Human


Resource Management System) being submitted by Ravi
Shankar, Rupesh Namdev, Yogesh Namdev and Satish Soni in
partial fulfillment of the requirement for the award of Bachelor
of Engineering Degree in Computer Science and Engineering to
Rajiv Gandhi Proudyogiki Vishwavidyalaya, Bhopal (M.P.), is a
record of bonafide work done by them under my guidance.

………………. ……
………
Prof. Mayank Pathak Prof Basant Tiwari
Head
Project Guide
Department of CSE.
Department of CSE
2
TIT,Bhopal
TIT,Bhopal

TECHNOCRATS INSTITUTE OF TECHNOLOGY


BHOPAL (M.P.)

APPROVAL CERTIFICATE

This Project work entitled H R M S(Human


Resource Management System) submitted by Ravi
Shankar, Rupesh Namdev, Yogesh Namdev and Satish
Soni is approved for the award of degree of Bachelor of
Engineering in Computer Science and Engineering.

3
INTERNAL EXAMINER EXTERNAL EXAMINER

Date: Date:

ACKNOWLEDGEMENT

Practical experience is the best education and an opportunity to apply


theoretical learning and experience the results. Getting associated with an Institute
like T.I.T. BHOPAL for learning was more than a privilege.
I would take the pleasure by expressing my gratitude towards Mr.
MAYANK PATHAK (HOD OF CSE ) for allowing me to undertaken the
THESHIS WORK for successful completion of the study. I express my sincere
thanks to Mr. BASANT TIWARI My Guide for his valuable guidance, co-
operation, continuously motivates commandments and the moral support, which
was necessary for successful completion of our Minor Project.
We are highly indebted to DIRECTOR OF T.I.T. BHOPAL for his kind
permission to carry out this project report.
I also express sincere gratitude to the lecturer, professors and librarian, T.I.T.,
Bhopal for providing helpful study materials.
Last, but not the least, I would like to thanks my loving parents for their
encouragement and co-operation during the time of working through this project.
Also, thanks to all the friends for their encouragement and support.

Ravi Shankar (Roll 0111CS063D06)


Rupesh Namdev(Roll-0111CS063D07)
Yogesh Namdev (Roll-0111CS063D12)
Satish Soni(Roll-0111CS053D09)
4
Semester – VII B.E. (Computer Science & Engg.)
TIT., Bhopal

5
CONTENT
CHAPTER-1
INTRODUCTION

1.1 General
1.2 Motivation of the work
1.3 Scope of the work
1.4 Dissertation organization

CHAPTER-2
PROBLEM SPECIFICATION &ANALYSIS

2.1 Need of system


2.2 Survey of existing system
2.3 Problem specification
2.4 Objective of project

CHAPTER-3
PROPOSED MODEL

3.1 Introduction
3.2 Method and Technology used
3.2.1 Methodology
3.2.2 Technology used
3.3 Assumption about the working environment
3.4 Interfaces and DB Design
3.5 Algorithm
3.6 Flow Chart
3.6.1 ERD
3.6.2 DFD
3.6.3 CFD
CHAPTER-4
CONCLUSION

4.1 Conclusion
4.2 Limitation of System
4.3 Scope for future enhancement
6
CHAPTER 1

INTRODUCTION

7
1. GENERAL

Human Resource Management Systems (HRMS) provide a link between human


resource management and information technology.
HRMS allow enterprises to automate many aspects of human resource management,
with the dual benefits of reducing the workload of the HR department as well as
increasing the efficiency of the department by standardising HR processes.
The field of human resources is one that is often overlooked in enterprise management.
This situation is aided by the fact that an efficient Human Resources department should
function without fanfare. For example, when a project team successfully launches a
product on time and within budget it is hailed as a great success. When the HR
department manages the administration of the enterprise successfully it can go virtually
unnoticed – after all, the Human Resources department is simply expected to work, only
attracting attention when there are problems.
Human Resource Management Systems
The reality, however, is very different. The HR department plays a vital role in ensuring
the smooth running of an enterprise – most importantly by tracking and analysing the
timekeeping and work patterns of the workforce, allowing management better
information on which to form strategies.
The importance of human resources has not gone unnoticed by the software industry.
There is now a wide range of applications available to aid the HR department in their
tasks, making possible the automation of certain tasks and aiding in the organisation of
many others.
HRM software systems (from vendors such as Oracle and Ascentis) are broadly defined
by the four basic responsibilities of the HR department, and as such typically contain
standalone modules to address the needs of each responsibility:
Payroll Module: The payroll module greatly reduces the workload of the HR department
by automating the payroll process, allowing HR to ensure that payroll functions are
completed on time and without errors.At its most basic level the payroll module is
supported by the manual entry of timekeeping and attendance data from paper-based

8
timesheets submitted by the workforce. More advanced systems track employee
timekeeping through automatic systems, connected to either a ‘clocking in’ system or a
tracker connected to the desktop computers of the employees.
Once attendance data is fed into the system, the payroll module automatically
calculates payment amounts and various deductions such as income tax before
generating paychecks and employee tax reports.
Time and Labour Management Module: The time and labour management module is
designed to collate and analyse employee timekeeping information for the purposes of
organisational cost accounting.
By sourcing data directly from the timekeeping devices and methods used to calculate
payroll this module can provide management with valuable data regarding the use of
labour resources within the enterprise.
Benefit Administration Module: The benefit administrationHRMS module provides HR
personnel with the capacity to monitor and manage employee participation in a range of
benefit programs. These programs can range from programs related to the wellbeing of
the workforce (such as health insurance and pension schemes) to profit making
programs (such as stock option plans and profit sharing).
HR Management Module: The HR management module provides a range of HR
solutions ranging from analyses of application data through to the basic demographic
data of employees.
The management module allows HR personnel to effectively manage the Human
Capital Pool (HCP) available within the enterprise, in that it keeps track of the training
and development of the workforce and the skills and qualifications of each employee.
Advanced HR management modules can also automate the process of application for
positions by capturing application data and entering it to a relevant database.
Benefits of HRMS
While these modules each provide benefits to the HR department itself, the
applicationsalso aid the enterprise as a whole.

9
HRM systems convert human resources information into a digital format, allowing that
information to be added to the knowledge management systems of the enterprise. The
result of this is that HR data can be integrated into the larger Enterprise Resource
Planning (ERP) systems of the enterprise.
In analysing enterprise wide resource usage this data can prove invaluable. Data
related to the time usage of the workforce can enhance the decision making abilities of
management, allowing the HR department to form an integral aspect of strategy
formation for the enterprise as a whole.
To develop a software application that supports the application specific to the HR
automation in an intranet specific to a company there by allowing the integration of all
the employees pertaining to that organization. To keep track of all the other
departments related to that organization such as marketing, development etc.

To allow the HR of an organization to update the employee details when ever there is a
change in the employee profile pertaining to that organization. To bring onto a string the
employee specific suggestions and make them free to post their requirements to the HR
thus bringing the organization more specific regarding the maintenance of the
organization.

10
1.2 Motivation of the work:
The function of Human Resources departments is generally administrative
and common to all organizations. Organizations may have formalized selection,
evaluation, and payroll processes. Efficient and effective management of "Human
Capital" has progressed to an increasingly imperative and complex process. The HR
function consists of tracking existing employee data which traditionally includes
personal histories, skills, capabilities, accomplishments and salary. To reduce the
manual workload of these administrative activities, organizations began to electronically
automate many of these processes by introducing specialized Human Resource
Management Systems. Due HR executives rely on internal or external IT professionals
to develop and maintain an integrated HRMS. Before the "client-server" architecture
evolved in the late 1980s, many HR automation processes were relegated to mainframe
computers that could handle large amounts of data transactions. In consequence of the
high capital investment necessary to purchase or program proprietary software, these
internally-developed HRMS were limited to organizations that possessed a large
amount of capital. The advent of client-server, Application Service Provider, and
Software as a Service or SaaS Human Resource Management Systems enabled take
increasingly higher administrative control of such systems. Currently Human Resource
Management Systems encompass:

1. Payroll
2. Work Time
3. Benefits Administration
4. HR management Information system
5. Recruiting
6. Training/ Learning Management System LMS
7. Performance Record

11
The payroll module automates the pay process by gathering data on employee time and
attendance, calculating various deductions and taxes, and generating periodic pay
cheques and employee tax reports. Data is generally fed from the human resources and
time keeping modules to calculate automatic deposit and manual cheque writing
capabilities. This module can encompass all employee-related transactions as well as
integrate with existing financial management systems.

The work time gathers standardized time and work related efforts. The most advanced
modules provide broad flexibility in data collection methods, labour distribution
capabilities and data analysis features. Cost analysis and efficiency metrics are the
primary functions.

The benefits administration module provides a system for organizations to administer


and track employee participation in benefits programs. These typically encompass,
insurance, compensation, profit sharing and retirement.

12
1.3 Scope of the Work

To develop a software application that supports Specific to the HR Automation in an


intranet to a company there by allowing the interaction of all the employees pertaining to
that organization. To keep track of all the other departments related to that organization
like marketing, research etc.,

To allow the HR department of an organization to update the employee details when


ever there is a change in the employee profile pertaining to that organization. To bring
on to a string the employee specification suggestions and make them sure to post their
requirements to the HR.

The HR center is a powerful application designed to allow companies to streamline their


human resource tasks and manager their employees more efficiently

Employee and Company Information

Employee Time, Attendence, and Leave Request

HR Documentation Management

The HR Center includes a comprehensive employee information database, work


information, beneficiary information, and more for each employee. It comes standard
with employee self-service access allowing employees to update their personal
information, request time off or input their daily timesheet entries. It also has role –
based access level control that is functionally based on whether a user is an employee,
a manager, or an HR admistrators. With HR center managers and HR admistrators can
manage an track

Allow a for the creation of an application specification to the human resource that
maintain the intranet automation of the HR software i.e., which contains the data related
to the employee.

13
1.4 Dissertation Organization

HRM systems convert human resources information into a digital format, allowing that
information to be added to the knowledge management systems of the enterprise. The
result of this is that HR data can be integrated into the larger Enterprise Resource
Planning (ERP) systems of the enterprise.

In analysing enterprise wide resource usage this data can prove invaluable. Data
related to the time usage of the workforce can enhance the decision making abilities of
management, allowing the HR department to form an integral aspect of strategy form
Software Solutions is an IT solution provider for a dynamic environment where business
and technology strategies converge. Their approach focuses on new ways of business
combining IT innovation and adoption while also leveraging an organization’s current IT
assets. Their work with large global corporations and new products or services and to
implement prudent business and technology strategies in today’s environment.
range of expertise includes :
• Software Development Services
• Engineering Services
• Systems Integration
• Customer Relationship Management
• Product Development
• Electronic Commerce
• Consulting
• IT Outsourcing
We apply technology with innovation and responsibility to achieve two broad objectives:
• Effectively address the business issues our customers face today.
• Generate new opportunities that will help them stay ahead in the future.
This approach rests on:

14
• A strategy where we architect, integrate and manage technology services and
solutions - we call it AIM for success.
• A robust offshore development methodology and reduced demand on customer
resources.
• A focus on the use of reusable frameworks to provide cost and times benefits.
They combine the best people, processes and technology to achieve excellent
results - consistency. We offer customers the advantages of:
Speed :
They understand the importance of timing, of getting there before the competition. A
rich portfolio of reusable, modular frameworks helps jump-start projects. Tried and
tested methodology ensures that we follow a predictable, low - risk path to achieve
results. Our track record is testimony to complex projects delivered within and evens
before schedule.
Expertise :
Our teams combine cutting edge technology skills with rich domain expertise. What’s
equally important - they share a strong customer orientation that means they actually
start by listening to the customer. They’re focused on coming up with solutions that
serve customer requirements today and anticipate future needs.
A full service portfolio:
They offer customers the advantage of being able to Architect, integrate and manage
technology services. This means that they can rely on one, fully accountable source
instead of trying to integrate disparate multi vendor solutions
Services:
GSS is providing its services to Sain Medicaments Pvt. Ltd., Grace Drugs and
Pharmaceuticals Pvt. Ltd., Alka Drugs and Pharmaceuticals Pvt. Ltd., Hi-tech Steels,
Real Foods,Ravi Foods ,to name a few. With their rich expertise and experience in
information technology they are in the best position to provide software solutions to
distinct business requirements.

15
CHAPTER 2

PROBLEM SPECIFICATION
AND ANALYSIS

16
2.1 Need of the System
Human Resource Management Systems (HRMS, EHRMS), Human Resource
Information Systems (HRIS), HR Technology or also called HR modules, shape
an intersection in between human resource management (HRM) and information
technology. It merges HRM as a discipline and in particular its basic HR activities
and processes with the information technology field, whereas the planning and
programming of data processing systems evolved into standardized routines and
packages of ERP software. On the whole, these ERP systems have their origin
on software that integrates information from different applications into one
universal database. The linkage of its financial and human resource modules
through one database is the most important distinction to the individually and
proprietary developed predecessors, which makes this software application both
rigid and flexible.
Typically, HRMS/HCM technology replaces the four core HR activities by
streamlining them electronically;
1) payroll
2) time and labour management
3) benefit administration and
4) HR management.

While using the internet or corporate intranet as a communication and workflow


vehicle, the HRMS/HCM technology can convert these into web-based HRMS
components of the ERP system and permit to reduce transaction costs, leading
to greater HR and organizational efficiency. Through employee or manager self-
service (ESS or MSS), HR activities shift away from paper based processes to
using self-service functionalities that benefit employees, managers and HR
professionals alike. Costly and time consuming HR administrative tasks, such as
travel reimbursement, personnel data change, benefits enrollment, enrollment in
training classes (employee side) and to instruct a personnel action, authorise
access to information for employees (manager's side) are being individually
handled and permit to reduce HR transaction time, leading to HR and
organizational effectiveness. Consequently, HR professionals can spend fewer

17
resources in managing administrative HR activities and can apply freed time and
resources to concentrate on strategic HR issues, which lead to business
innovation

Keeping these points in view, the Human Resource Management Application to


be built should help the user to :
Keep a track of all employees and their details. The application should enable
easy updating of such details.
• Keep a track of payroll module and automate the pay process by gathering data
on employee time and attendance, calculating various deductions and taxes, and
generating periodic pay cheques and employee tax reports.
• Keep a track of all other HR aspects from application to retirement. The system
should record basic demographic and address data, selection, training and
development, capabilities and skills management, compensation planning
records and other related activities. Leading edge systems to provide the ability
to "read" applications and enter relevant data to applicable database fields, notify
employers and provide position management and position control should be
used.

18
2.1 Survey of the existing software

According to one industry view, HRMS consists of:

All in all, the HR function is still to a large degree administrative and common to
all organizations. To varying degrees, most organizations have formalised
selection, evaluation, and payroll processes. Efficient and effective management
of the "Human Capital" Pool (HCP) has become an increasingly imperative and
complex activity to all HR professionals. The HR function consists of tracking
innumerable data points on each employee, from personal histories, data, skills,
capabilities, experiences to payroll records. To reduce the manual workload of
these administrative activities, organizations began to electronically automate
many of these processes by introducing innovative HRMS/HCM technology. Due
to complexity in programming, capabilities and limited technical resources, HR
executives rely on internal or external IT professionals to develop and maintain
their Human Resource Management Systems (HRMS). Before the "client-server"
architecture evolved in the late 1980s, every single HR automation process came
largely in form of mainframe computers that could handle large amounts of data
transactions. In consequence of the high capital investment necessary to
purchase or program proprietary software, these internally developed HRMS
were limited to medium to large organizations being able to afford internal IT
capabilities. The advent of client-server HRMS authorised HR executives for the
first time to take responsibility and ownership of their systems. These client-
server HRMS are characteristically developed around four principal areas of HR
functionalities: 1) "payroll", 2) time and labour management 3) benefits
administration and 4) HR management.

The payroll module automates the pay process by gathering data on employee
time and attendance, calculating various deductions and taxes, and generating
periodic paycheques and employee tax reports. Data is generally fed from the
human resources and time keeping modules to calculate automatic deposit and
manual cheque writing capabilities. Sophisticated HCM systems can set up

19
accounts payable transactions from employee deduction or produce garnishment
cheques. The payroll module sends accounting information to the general ledger
for posting subsequent to a pay cycle.The time and labor management module
applies new technology and methods (time collection devices) to cost effectively
gather and evaluate employee time/work information. The most advanced
modules provide broad flexibility in data collection methods, as well as labour
distribution capabilities and data analysis features. This module is a key
ingredient to establish organizational cost accounting capabilities.

The benefit administration module permits HR professionals to easily administer


and track employee participation in benefits programs ranging from healthcare
provider, insurance policy, and pension plan to profit sharing or stock option
plans.

The HR management module is a component covering all other HR aspects from


application to retirement. The system records basic demographic and address
data, selection, training and development, capabilities and skills management,
compensation planning records and other related activities. Leading edge
systems provide the ability to "read" applications and enter relevant data to
applicable database fields, notify employers and provide position management
and position control. human resourse management function involves the
recruitment,placement,evaluation,compensation and development of the
employees of an organisation.Initially,business used computer based information
system to:(1)produce paychecks and payroll reports,(2)maintain personnel
records;(3)analyse the use of personnel in business operations.Many
organisations have gone beyond the traditional functions and developed human
resourse management information sysetm , which supports
recruitment,selection,hiring,job placement, performance appraisals,employee
benefit analysis, training development, health, safety and security.

20
2.2 Problem Definition

• The HR Administration falls short of controlling the employee’s activities in


analyzing his/her strengths and weakness. The decision for appraisal of
assigning next project to the employee or to train him/her to enhance the
skills – where lies with proper projection. He is not provided with the detailed
project information done or to be assigned based on Application / Verticals.

• This module deals with the management of the employee information


such as the personal details name, qualification, skill,
experience, login id, password, etc., Importance of modules in any software
development side is we can easily understand what the system we are
developing and what its main uses are. At the time of project we may create
many modules and finally we combine them to form a system person, so that
it can be easily added to the database with any duplication of the data.

This is normally one of the biggest modules operated in any organization. As the
name suggests it covers all the areas with respect to an employee of the
organization, starting right from Interview of a prospective employee till his
separation from the organization. However certain areas like Payroll,
Superannuation, and Incentives etc are handled in other modules.

The module includes all the following sub modules:

• Recruitment
• Appraisals
• Promotions/Increments/Transfers
• HR Policies
• Pay scales
• Educational/Technical Qualifications

21
• Employee Skill sets maintenance
• Perquisites (Medical, Vehicle, Telephone, Liveries etc)

2.3 Objective of the Project

Decision in assigning proper skillful hands for the project is an important issue in
HR Module. The HR Administrator should report with the personal holding the
necessary skills required for the project assignment. The decision in making
analysis about the employee’s skills is a prime important before booting in. The
proposed system of HR Module is the right software to be incorporated into the
Automation of HR Software for helping the organization needs with respect to
skilful Human Resource.

The proposed system provides detail general information about the employee
along with Educational, Certification, Skill and Project details. It enhances the HR
Management in adding, viewing and updating employees’ details and generates
various reports regarding employee’s skill and experience. Suggestions and
Grievances posted by the employees are upheld for taking care of the necessary
steps in forwarding company’s obligation.

 Very fast and accurate.


 No need of any extra manual effort.
 No fever of data loss.
 Just need a little knowledge to operate the system.
 Doesn’t require any extra hardware device.
 At last very easy to find the employees.

22
CHAPTER 3

PROPOSED MODEL

23
3.1 Introduction
Human Resource Management Systems (HRMS, EHRMS), Human Resource
Information Systems (HRIS), HR Technology or also called HR modules, shape
an intersection in between human resource management (HRM) and information
technology. It merges HRM as a discipline and in particular its basic HR activities
and processes with the information technology field, whereas the planning and
programming of data processing systems evolved into standardised routines and
packages of enterprise resource planning (ERP) software. On the whole, these
ERP systems have their origin on software that integrates information from
different applications into one universal database. The linkage of its financial and
human resource modules through one database is the most important distinction
to the individually and proprietary developed predecessors, which makes this
software application both rigid and flexible.

24
3.2 Method and Technology used

• Contact management: Contact agent sustain your insurance


relationship by maintaining valuable client information.
• Clients Service: The Client Service is a vital component in reducing
your support load.
• Query Track: Query Track enables client to submit trouble tickets via a
browser or through email.
• Asp.net: Front side Development of the project
• Servlets: Used for server side application.
• DB2: Database 2

Technologies to be used

• Server: SQLServer
• DB: SQL
• Techno: ASP.Net
• Front-End: ASP.Net/SQLServer

25
3.3 Assumption & Working Environment

The HR management module is a component covering many other HR


aspects from application to retirement. The system records basic
demographic and address data, selection, training and development,
capabilities and skills management, compensation planning records and
other related activities. Leading edge systems provide the ability to "read"
applications and enter relevant data to applicable database fields, notify
employers and provide position management and position control. Human
resource management function involves the recruitment, placement,
evaluation, compensation and development of the employees of an
organisation. Initially, businesses used computer based information system
to:

produce pay checks and payroll reports;


maintain personnel records;
pursue Talent Management.

Online recruiting has become one of the primary methods employed by HR


departments to garner potential candidates for available positions within an
organization. Talent Management systems typically encompass:

* analyzing personnel usage within an organization;


* identifying potential applicants;
* recruiting through company-facing listings;
* recruiting through online recruiting sites or publications that market to both
recruiters and applicants.

The significant cost incurred in maintaining an organized recruitment effort,


cross-posting within and across general or industry-specific job boards and
maintaining a competitive exposure of availabilities has given rise to the
development of a dedicated Applicant Tracking System, or 'ATS', module.

26
The training module provides a system for organizations to administer and track
employee training and development efforts. The system, normally called a
Learning Management System if a stand alone product, allows HR to track
education, qualifications and skills of the employees, as well as outlining what
training courses, books, CDs, web based learning or materials are available to
develop which skills. Courses can then be offered in date specific sessions, with
delegates and training resources being mapped and managed within the same
system. Sophisticated LMS allow managers to approve training, budgets and
calendars alongside performance management and appraisal metrics.

Many organizations have gone beyond the traditional functions and developed
human resource management information systems, which support recruitment,
selection, hiring, job placement, performance appraisals, employee benefit
analysis, health, safety and security, while others integrate an outsourced
Applicant Tracking System that encompasses a subset of the above.

27
3.4 Interface & Database Design

This is the hexagonal architecture of HRMS that shows an application


having two active ports and several adapters for each port. The two ports are
the application-controlling side and the data-retrieval side. This drawing
shows that the application can be equally driven by an automated,
system-level regression test suite, by a human user, by a remote http
application, or by another local application. On the data side, the
application can be configured to run decoupled from external
databases using an in-memory SQL, database replacement; or it
can run against the test- or run-time database. The functional specification of
the application, perhaps in use cases, is made against the inner
hexagon's interface and not against any one of the external technologies that
might be used.

Architecture of HRMS

28
Database Design

Administration
• Administrator can add, edit or delete the dealer records: In this

administrator can add the details of the particular user and it can edit or
delete the records of the customer as per the requirement
• Administrator can add, edit or delete product from the databases: In
this the administrator can add the policey or edit and delete the policees
per the requirement of the client.
• Administrator can view Client: In this the administrator can view the
particular details of any clients.
• Administrator can handle complain: In this particular administrator
can handle the complain of the client and can solve it.
• Administrator can view, answers and edit queries: In this
Administrator can view the queries of the particular clients and according
to queries he can edit or answer the particular request of the clients.
• Administrator can give instruction to dealer to provide services: In
this administrator can give instruction to dealer of the poleces that is to
be offered to the clients.

Agents

• Agents can apply for agent ship: In this dealer can apply for particular
deal offered by any organization.
• Agents can cancel agent ship: In this if the problem occurs in dealing
then dealer can cancel the dealership of any customer.
• Agents can edit clients information: In this the agents can edit the
information of the particular clients or can change the information.

29
• Agent can enter bema polices sale information: In this if the agents
has the detail regarding the any policy sale then he can enter the
information in the query bag.

Clients
• Client can make queries: In this Clients can make the queries
according to the needs.
• Clients can view answers: In this if any queries are made by any
clients then he can view the answers of the particular queries which he
wants to ask.
• Clients can make complains: In this if any clients does not satisfy from
the services then he have the power to make the complains and regarding
the complain the problem can solve by the higher authority.

30
3.5 Algorithm
The user can login as a general Employee or an HR employee. A general
employee can access his employee details and his salary. On the other hand, an
HR employee can have access to employee details, salary details, recruitment
as well as attendance. At any point of time the user can logout to reach the
homepage again.
Usage And Design
The application is meant to maintain a calculated balance between user-
friendliness and professio-nalism. It also works towards maintaining a level of
security.

LOGIN PAGE

The first form of the application is the login page. The exit button can be used to
close the applica-tion.FOR GENERAL EMPLOYEES

When general employees login, a welcome message is displayed to inform them


that they can only view and edit their details as also view their pay details . In
such cases, except the Employee Details, Salary Details and Logout buttons, all
the other buttons are disabled in the left panel. Besides, the textboxes meant to
supply Employee ID and password are also made Read-Only so as to avoid
another user logging in before the already logged in user logs out.

So now the user can select any one of the 3 buttons on the left panel:
1. Employee Details
2. Salary Details
3. Logout

1. Employee Details
This section offers 3 functionalities to the user:-
a. View and edit specific details.
b. An edit request form.

31
c. A leave request form.

a. Details

The details tab-page opens up when the user clicks on Employee Details. This
allows the user to view his details and also edit certain fields of it that contains
user’s personal information, viz., Address, Home phone, Cell and Email. After
making any changes, the user needs to click on the save button to register the
changes to the database.
However, the user cannot leave any fields blank except “Middle Name” which
results in a display of an error message and the changes are not registered to
the database till all required fields are filled.

b. Edit Request Form

On selecting the “Edit Request Form” tab, the user can fill in a form to request
the employees of the HR department to make changes to the fields that he
cannot edit in the previous tab-page.
On clicking the submit button, the ID and password are crosschecked. It is
also checked whether all the fields have been filled. On successful validation,
the required fields are stored in the database to be processed by the HR
employees at a later time.

c. Leave Request Form

The Leave Request Form is provided to enable employees to request for leaves,
which are to be processed by the HR Department.
Similar to the previous form, this form asks the user for the necessary
information. He needs to supply the number of days for which he wants the leave

32
and the dates. The user has the option to choose from reasons like ‘Sick Leave’,
‘Vacation Leave’ etc. On clicking the “Submit” button, it is checked whether all the
fields have been filled. The supplied information is then stored in the database
else an error message is shown.

2. Salary Details

On clicking this button, the user can view his pay details, viz. basic salary,
HRA, DA ,uniform allowance, conveyance allowance, telephone and medical
reimbursements, profession tax, PF contributions, overtime payments, leave
deductions, pay frequency and his total salary. However, the user is not
permitted to make any changes in this page since this authority rests solely on
the HR employees.

At any time, the user can logout from the application to end his session and re-
enter into the login page. If he wishes to exit the application, he can click on the
Exit button to close the application .

FOR HR EMPLOYEES

This application is majorly meant to be used by the HR employees. When an HR


em-ployee logs in (as explained before), he has access to all functionalities of the
applica-tion.

The user now has the following buttons available to him :


1. Employee Details
2. Salary Details
3. Recruitment
4. Attendance
5. Logout

33
1. Employee Details
On clicking this button, a search page opens up.
a. Search

The search page enables the user to search the employee database by first
name, last name, employee ID, department, designation or type of employee. On
successful search, a list of the name(s) of the employees resulting from the
search is displayed, else the necessary error message is shown.
On clicking the View All button, a list of all details of all the employees in the
company is shown in a dialog box as shown :

However, on clicking on a name appearing in the search result, the second tab-
page opens up to show the details of the selected employee.

b. Details

This tab-page shows all the details of the employee as before. However, here the
user has the option to edit all the fields as well as scroll through the rest of the
records. On clicking the save button, all changes made to the fields are
registered to the database. On the other hand,clicking on the delete button
deletes the entire record after confirmation from the user via a dialog box as
shown.
c. View Edit Requests

This tab-page shows the requests made by the general employees to make
changes in certain fields of their details that they were not authorized to edit by
themselves.The HR employee can view the details filled in the forms here and
proceed with further verifications.
On completion of processing,the user can enter the Employee ID of the person
whose request has been processed in the given textbox.If this ID is present in the

34
list, the record is removed from the list.

d. Add New Employee

This tab-page can be used to details of a new employee. As shown,all the


required details can be filled up as indicated by the labels.On clicking the Add
button,a message box confirms the addition of the record .
e. Ex-Employee

The tab-page show by clicking on this tab shows the details of the ex-employees
of the company. However,since the company should maintain a permanent
record of such employees,there is no option provided for deletion of such record .

2. Salary Details

On clicking this button,a search page opens up.This section is concerned with
the salary details of the employees.

a. Search

The search page enables the user to search the employee database by first
name, last name, employee ID or department of employee. On successful
search, a list of the name(s) of the employees resulting from the search is
displayed, else the necessary error message is shown.
On clicking the View All button, a list of all details of all the employees in the
company is shown in a dialog box as shown :

b. Details

This tab-page shows all the salary details of the employee . However, here
the us-er has the option to edit all the fields as well as scroll through the rest

35
of the records. On clicking the save button, all changes made to the fields are
registered to the database. On the other hand,clicking on the delete button
deletes the entire record after confirmation from the user via a dialog box as
shown.

c. Add New
This tab-page can be used to add salary details of new employees joining the
company.Here too, fields marked with * are compulsory and leaving them
blank will result in error messages. The record will be added to the database
only when all the compulsory fields are filled.The addition is confirmed via a
message box.

3. Recruitment
On clicking the recruitment button, the user has access to all processes
concerned with recruitment. This section provides the user with the following
functionalities :

a. Vacancy
This allows the user to view the vacancies available in each department. The
user has the option to either navigate through vacancies of each department
one by one, or to select for a particular department n view its vacancies. He
can also view all the vacancies at a time by clicking onto the View All button.
A dialog box opens to display all the vacancies available. Besides, by clicking
on edit, he can make changes to the number of vacancies and save them to
the database by clicking on the save button.

b. Search Applicant

36
This tab-page can be used to search for an applicant who has applied for a
particular department and a particular designation. The user can choose a
department and leave the designation field blank. The search results in the
list of applicants if available of the given criteria.
Here also, the user can view details of all the applicants by clicking on the
View All button. Besides, on clicking on the names that result from the search,
the use can view the selected applicant’s detail on the Applicant Detail tab-
page.

c. Applicant Detail

Besides viewing the details of the applicant selected in the previous tab-page,
this can also be used to add, edit and delete records .The user should click
on save after any kind of changes made to the record, or after adding or
deleting a record . Navigation buttons are provided to enable the user to
navigate through all the applicants. Here, we can add a path to the Cv of the
applicant to the database by clicking on the “Upload Cv” button. Besides, we
can directly view the document by clicking on the “View Cv” button.

d. Activities
This can be used to view the list of interviews to be held, interviews already
held or today’s interviews. On clicking these buttons, the first concerned
interview detail present in the database opens up in the “Interview Detail” tab-
page. The View All button can be used to view a list of all the interviews
present in the database .

b. Interview Detail

This page displays details of the interview such as date and time of interview,
ID of candidates called for the interview, ID f selected candidates(if any) as
well as de-partment and designation for which the interview is to be held.

37
Besides, the user can modify the present record by clicking the “Modify”
button, add a new record by clicking on the “Add” button and also delete a
record by clicking on the “Delete” button. The user should not forget to click
on the “Save” button after using any of these features to register changes to
the database.
Navigation buttons are also provided to enable the user to navigate through
the various interview details .

4. Attendance

This section deals with the issues of leave and overtime work done by the
employees.

a. View

This tab-page shows the attendance details of the employees for the present
month. The user can either view the details one by one, by using the
navigation buttons provided, or he can search for
a particular employee by using the search option provided at the top of the
tab-page. Besides, he can edit the information, add a new record or delete an
em-ployee record. The user must press the Save button after using any of
these options. Fields marked with * are compulsory.

View Leave Requests


This tab-page can be used to view the leave applications filled in by the em-
ployees. When the application of an ID is processed, the user can type the ID in
the textbox provided and click “OK”. The application is removed from the list as
well as the employee database .The updating is confirmed via a message box.

38
3.6.1 ERD

39
40
41
42
CHAPTER 4

CONCLUSION

43
4.1 Conclusion
• Life insurance companies, which sell life insurance, annuities and
pensions Insurance polices.
• Non-life, General, or Property/Casualty insurance companies, which sell
other types of insurance.

General insurance companies can be further divided into these sub categories.

• Standard Lines
• Excess Lines

In most countries, life and non-life insurers are subject to different regulatory
regimes and different tax and accounting rules. The main reason for the
distinction between the two types of company is that life, annuity, and pension
business is very long-term in nature — coverage for life assurance or a pension
can cover risks over many decades. By contrast, non-life insurance cover usually
covers a shorter period, such as one year.

In the United States, standard line insurance companies are "main stream"
insurers. These are the companies that typically insure autos, homes or
businesses. They use pattern or "cookie-cutter" policies without variation from
one person to the next. They usually have lower premiums than excess lines and
can sell directly to individuals. They are regulated by state laws that can restrict
the amount they can charge for insurance policies.

Excess line insurance companies (aka Excess and Surplus) typically insure risks
not covered by the standard lines market. They are broadly referred as being all
insurance placed with non-admitted insurers. Non-admitted insurers are not
licensed in the states where the risks are located. These companies have more
flexibility and can react faster than standard insurance companies because they
are not required to file rates and forms as the "admitted" carriers do. However,
they still have substantial regulatory requirements placed upon them. State laws

44
generally require insurance placed with surplus line agents and brokers not to be
available through standard licensed insurers.

Insurance companies are generally classified as either mutual or stock


companies. Mutual companies are owned by the policyholders, while
stockholders (who may or may not own policies) own stock insurance
companies. Demutualization of mutual insurers to form stock companies, as well
as the formation of a hybrid known as a mutual holding company, became
common in some countries, such as the United States, in the late 20th century.
Other possible forms for an insurance company include reciprocals, in which
policyholders 'reciprocate' in sharing risks, and Lloyds organizations.

Insurance companies are rated by various agencies such as A. M. Best. The


ratings include the company's financial strength, which measures its ability to pay
claims. It also rates financial instruments issued by the insurance company, such
as bonds, notes, and securitization products.

Reinsurance companies are insurance companies that sell policies to other


insurance companies, allowing them to reduce their risks and protect themselves
from very large losses. The reinsurance market is dominated by a few very large
companies, with huge reserves. A reinsure may also be a direct writer of
insurance risks as well.

Captive insurance companies may be defined as limited-purpose insurance


companies established with the specific objective of financing risks emanating
from their parent group or groups. This definition can sometimes be extended to
include some of the risks of the parent company's customers. In short, it is an in-
house self-insurance vehicle. Captives may take the form of a "pure" entity
(which is a 100% subsidiary of the self-insured parent company); of a "mutual"
captive (which insures the collective risks of members of an industry); and of an
"association" captive (which self-insures individual risks of the members of a
professional, commercial or industrial association). Captives represent

45
commercial, economic and tax advantages to their sponsors because of the
reductions in costs they help create and for the ease of insurance risk
management and the flexibility for cash flows they generate. Additionally, they
may provide coverage of risks which is neither available nor offered in the
traditional insurance market at reasonable prices.

The types of risk that a captive can underwrite for their parents include property
damage, public and product liability, professional indemnity, employee benefits,
employers' liability, motor and medical aid expenses. The captive's exposure to
such risks may be limited by the use of reinsurance.

Captives are becoming an increasingly important component of the risk


management and risk financing strategy of their parent. This can be understood
against the following background:

• heavy and increasing premium costs in almost every line of coverage;


• difficulties in insuring certain types of fortuitous risk;
• differential coverage standards in various parts of the world;
• rating structures which reflect market trends rather than individual loss
experience;
• insufficient credit for deductibles and/or loss control efforts.

There are also companies known as 'insurance consultants'. Like a mortgage


broker, these companies are paid a fee by the customer to shop around for the
best insurance policy amongst many companies. Similar to an insurance
consultant, an 'insurance broker' also shops around for the best insurance policy
amongst many companies. However, with insurance brokers, the fee is usually
paid in the form of commission from the insurer that is selected rather than
directly from the client.Neither insurance consultants nor insurance brokers are
insurance companies and no risks are transferred to them in insurance
transactions. Third party administrators are companies that perform underwriting
and sometimes claims handling services for insurance companies. These

46
companies often have special expertise that the insurance companies do not
have.The financial stability and strength of an insurance company should be a
major consideration when buying an insurance contract. An insurance premium
paid currently provides coverage for losses that might arise many years in the
future. For that reason, the viability of the insurance carrier is very important. In
recent years, a number of insurance companies have become insolvent, leaving
their policyholders with no coverage (or coverage only from a government-
backed insurance pool or other arrangement with less attractive payouts for
losses). A number of independent rating agencies, such as, provide information
and rate the financial viability of insurance companies.

47
4.2 Limitation of System

As we apply the security terms by giving the proper username and


password so if any general person which is not authenticated can not use
the benefits of polices as except the agent and client there is not having
third person to use it if there is any problem in the agent database then
client wants to wait for the interaction with the client.

48
4.3 Scope for future enhancement

• Only intra-account (accounts of same clients) funds transfer can be done


through internet, inter-account transfer has not been implemented.

• There’s no limit to number of accounts a clients can have.

• There isn’t any minimum amount which is required to transfer. A transfer of


would also be allowed wasting the network resources.

• Debit and Credit cards facility can be provided.

• Administrator entry has to be done separately in the database He has to


first open an account in the insurance company and there isn’t any
Reference account no. for him.

• The first person to open an account in the company has to give


Administrator account no. as his Reference account no.

• Since only password has been encrypted a fraudulent person


can view other details of the clients.

• The closing of account also deletes his registration if he has no accounts


left in the insurance company.

We have used this model for our project because the system can be used
by the user before its completion as a prototype.

User can use this system as a prototype system and can get
working experience on the system before going to interact with the original
system. While working on the prototype system if user faces some problem with
the system or he want to add more additional features in the system, this can be
done easily in the coming increment models.

49
As the system user gain sufficient experience while working on
the prototype system and his problems are being covered while he was working
on the prototype so there is very less risk for the system failure.

By the help of this system we can deliver the highest priority


services first and later increments are integrated with them, thus our system
services can receive more testing and support which is important for our system
maintenance and support.

The design and implementation of this project is carried out in a completely step-
by-step manner. The entire project is divided in the following phases:-

PHASE 1 - STUDY AND ANALYSIS PHASE

In this phase, the data, facts and figures will be gathered from the client. The
problems in the current system will be identified and necessary improvements
will be recommended. Thus a new system, as a solution will be proposed. The
emphasis is on the type of information, the new system should provide, the
required frequency and accuracy of results and other considerations. The
activities of analysis phase will be least structured and more people oriented.

PHASE 2 - DESIGN PHASE

The design of a system produces the details that state how a system will meet
the requirements identified during system analysis.

In this phase, the detailed specifications for the new system will be formulated.
They will describe its features: the outputs, inputs, files and databases, and
procedures – all in a manner that meets project requirements.

50
Following the analysis of the existing system, the next step is to develop the
Information System Architecture and Enterprise Data Model that will describe
effectively the existing system.

Registration:-

Those clients interested on our site they have to registered first on


our site. After that they can use their use rid and password to access our
website.

Fees:-

During the registration time clients select the various bema policy and
he or she have to pay the fees according to their selected various bema policy .
During the registration time clients select the various bema policy and he or she
have to pay the fees according to their selected various bema policy .
The incremental model combines elements of the waterfall model applied
in an iterative fashion. The incremental model applies linear sequences in a
staggered fashion as calendar time progresses. Each linear sequence produces
deliverable “increments” of the software. For example word processing software
developed using the incremental paradigm might deliver basic file management,
editing, and document production functions in the first increment; more
sophisticated editing, and document production capabilities in the second
increment; Spelling and grammar checking in the third increment; and advanced
page layout capability in the fourth increment. It should be noted that the process
flow for any increment may incorporate the prototyping paradigm.

When an incremental model is used, the first increment is often a


core product. That is, the basic requirements are addressed, but any
supplementary features (some known, others unknown) remain undelivered. The

51
core product is used by the customer (or undergoes detailed evaluation). As a
result of use and/or evaluation, a plan is developed for the next increment. The
plan addresses the modification of the core product to better meet the needs of
the customer and the delivery of the additional features and functionality. This
process is repeated following the delivery of each increment, until the complete
product is produced.

The incremental process model, like prototyping and other


evolutionary approaches, is iterative in nature. But unlike prototyping, the
incremental model focuses on the delivery of an operational product with each
increment, early increments are “stripped down” versions of the final product, but
they do provide capability that serves the user and also provides a platform for
evaluation by the user.

Incremental development is particularly useful when staffing is


unavailable for a complete implementation by the business deadline that has
been established for the project. Early increments can be implemented with
fewer people. If the core product is well received, additional staff (if required) can
be added to implement the next increment. In addition, increments can be
planned to manage technical risks. For example, a major system might require
the availability of new hardware that is under development and whose delivery
date is uncertain. It might be possible to plan early increments in a way that
avoids the use of this hardware, thereby enabling partial functionality to be
delivered to end-users without inordinate delay.

52
53
Salary_insert form

<div id="main"><h1><font color ="blue">SALARY FORM</font> <img src="1.jpg"


style="z-index: 141; left: 11px; width: 142px; position: absolute; top: 94px; height:
476px" /></h1></div>

<br />
&nbsp;
<asp:Label ID="Label22" runat="server" Height="1px" Style="z-index: 101;
left: 13px;
position: absolute; top: 52px" Width="947px"
BackColor="#FFFFC0"><Font Face="Arial Black" size="+2"
color="aqua"><U><marquee bgcolor="#ccccff">HUMAN RESORCE
MANAGEMENT SYSTEM</marquee></U></Font></asp:Label>
<asp:Label ID="Label23" runat="server" Height="1px" Style="z-index: 102;
left: 10px;
position: absolute; top: 865px" Width="999px"><Font Face="Arial Black"
size="+1" color="BLACK"><U</U></Font></asp:Label>
&nbsp; &nbsp;
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 102;
left: 162px; position: absolute; top: 156px" Text="First Name : *"
Width="87px"></asp:Label>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 103;
left: 433px; position: absolute; top: 205px" Text="Account No. : *"
Width="88px"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 104;
left: 438px; position: absolute; top: 156px" Text="Middle Name :
"></asp:Label>
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 105;
left: 163px; position: absolute; top: 120px" Text="Employee ID :
*"></asp:Label>
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 106;
left: 703px; position: absolute; top: 156px" Text="Last Name
:*"></asp:Label>
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 107;
left: 159px; position: absolute; top: 208px" Text="Bank Name :*"
Width="89px"></asp:Label>
<asp:TextBox ID="txtfirst" runat="server" Height="12px" Style="z-index: 108;
left: 287px;

54
position: absolute; top: 155px" Width="130px"
ReadOnly="True"></asp:TextBox>
<asp:TextBox ID="txtmiddle" runat="server" Height="12px" Style="z-index:
109; left: 546px;
position: absolute; top: 154px" Width="130px"
ReadOnly="True"></asp:TextBox>
<asp:TextBox ID="txtlast" runat="server" Height="12px" Style="z-index: 110;
left: 801px;
position: absolute; top: 154px" Width="130px"
ReadOnly="True"></asp:TextBox>
<asp:TextBox ID="txtbank" runat="server" Height="12px" Style="z-index:
111; left: 286px;
position: absolute; top: 204px" Width="130px"></asp:TextBox>
&nbsp;
<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 112;
left: 161px; position: absolute; top: 317px" Text="Uniform Allowance :
*"></asp:Label>
<asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 113;
left: 472px; position: absolute; top: 316px" Text="Conveyance Allowance :
*"></asp:Label>
<asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 114;
left: 165px; position: absolute; top: 362px" Text="Telephone
:*"></asp:Label>
<asp:Label ID="Label10" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 115;
left: 165px; position: absolute; top: 413px" Text="Profession Tax
:"></asp:Label>
<asp:TextBox ID="txtbasic" runat="server" Height="12px" Style="z-index:
116; left: 287px;
position: absolute; top: 257px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txthra" runat="server" Height="12px" Style="z-index: 117;
left: 549px;
position: absolute; top: 256px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtid" runat="server" Height="12px" Style="z-index: 118;
left: 285px;
position: absolute; top: 120px" Width="130px"></asp:TextBox>
<asp:Button ID="btnok" runat="server" OnClick="btnok_Click" Style="z-
index: 119;
left: 437px; position: absolute; top: 119px" Text="Ok" Width="59px" />
<asp:TextBox ID="txtda" runat="server" Height="12px" Style="z-index: 120;
left: 804px;
position: absolute; top: 253px" Width="130px"></asp:TextBox>

55
<asp:TextBox ID="txtuniform" runat="server" Height="12px" Style="z-index:
121; left: 315px;
position: absolute; top: 314px" Width="130px"></asp:TextBox>
<asp:Label ID="Label11" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 122;
left: 473px; position: absolute; top: 360px" Text="Medical Reimbursement
: *"
Width="151px"></asp:Label>
<asp:Label ID="Label12" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 123;
left: 462px; position: absolute; top: 257px" Text="HRA : *"></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 124;
left: 159px; position: absolute; top: 261px" Text="Basic Salary :
*"></asp:Label>
<asp:Label ID="Label14" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 125;
left: 721px; position: absolute; top: 256px" Text="DA : *"></asp:Label>
<asp:TextBox ID="txtconv" runat="server" Height="12px" Style="z-index:
126; left: 638px;
position: absolute; top: 313px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txttel" runat="server" Height="12px" Style="z-index: 127;
left: 316px;
position: absolute; top: 360px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtmed" runat="server" Height="12px" Style="z-index:
128; left: 640px;
position: absolute; top: 358px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txttax" runat="server" Height="12px" Style="z-index: 129;
left: 315px;
position: absolute; top: 409px" Width="130px"></asp:TextBox>
<asp:Label ID="Label15" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 130;
left: 478px; position: absolute; top: 410px" Text="PF Contribution :"
Width="104px"></asp:Label>
<asp:Label ID="Label16" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 131;
left: 164px; position: absolute; top: 456px" Text="Overtime Payment
:"></asp:Label>
<asp:Label ID="Label17" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 132;
left: 479px; position: absolute; top: 458px" Text="Leave Deduction
:"></asp:Label>
<asp:Label ID="Label18" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 133;
left: 167px; position: absolute; top: 505px" Text="Pay Frequency
:"></asp:Label>

56
<asp:Label ID="Label19" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 134;
left: 482px; position: absolute; top: 499px" Text="Department
:"></asp:Label>
<asp:TextBox ID="txtdep" runat="server" Height="12px" Style="z-index: 135;
left: 642px;
position: absolute; top: 494px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtded" runat="server" Height="12px" Style="z-index: 136;
left: 641px;
position: absolute; top: 453px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtpf" runat="server" Height="12px" Style="z-index: 137;
left: 640px;
position: absolute; top: 405px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtover" runat="server" Height="12px" Style="z-index:
138; left: 316px;
position: absolute; top: 453px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtpay" runat="server" Height="12px" Style="z-index: 139;
left: 318px;
position: absolute; top: 501px" Width="130px"></asp:TextBox>
<asp:Button ID="Button1" runat="server" BackColor="#FFC0C0" Font-
Bold="True" Style="z-index: 140;
left: 425px; position: absolute; top: 534px" Text="Add" Width="47px"
OnClick="Button1_Click" />
<asp:TextBox ID="txtaccount" runat="server" Height="12px" Style="z-index:
141; left: 545px;
position: absolute; top: 201px" Width="130px"></asp:TextBox>
<asp:Label ID="Label20" runat="server" Style="z-index: 142; left: 805px;
position: absolute;
top: 312px" Width="170px"></asp:Label>
<asp:TextBox ID="txtuid" runat="server" Style="z-index: 143; left: 799px;
position: absolute;
top: 118px" Width="127px"></asp:TextBox>
<asp:Label ID="Label21" runat="server" Style="z-index: 145; left: 694px;
position: absolute;
top: 120px" Text="User Id" Width="88px"></asp:Label>

coding
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;

57
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Default13 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void TextBox5_TextChanged(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();
SqlCommand cmd;
string uid = txtuid.Text;
String fw = txtfirst.Text;
String m = txtmiddle.Text;
String l = txtlast.Text;
String b = txtbank.Text;
String a = txtaccount.Text;
String id = txtid.Text;
String ba = txtbasic.Text;
String h = txthra.Text;
String d = txtda.Text;
String u = txtuniform.Text;
String c = txtconv.Text;
String t = txttel.Text;
String me = txtmed.Text;
String pr = txttax.Text;
String pf = txtpf.Text;
String o = txtover.Text;
String le = txtded.Text;
String pay = txtpay.Text;
String de = txtdep.Text;
String str;
str = "insert into EMP values('" + uid + "','" + fw + "','" + m + "','" + l + "','" + b
+ "','" + a + "','" + id + "','" + ba + "','" + h + "','" + d + "','" + u + "','" + c + "','" + t +
"','" + me + "','" + pr + "','" + pf + "','" + o + "','" + le + "','" + pay + "','" + de + "')";

58
cmd = new SqlCommand(str, con);
int i;
i = cmd.ExecuteNonQuery();
if (i != 0)
{
Label20.Text = "record insert sucessfully";
txtfirst.Text=" ";
txtmiddle.Text = " ";
txtlast.Text = " ";
txtbank.Text = " ";
txtaccount.Text = " ";
txtid.Text = " ";
txtbasic.Text = " ";
txthra.Text = " ";
txtda.Text = " ";
txtuniform.Text = " ";
txtconv.Text = " ";
txttel.Text = " ";
txtmed.Text = " ";
txttax.Text = " ";
txtpf.Text = " ";
txtover.Text = " ";
txtded.Text = " ";
txtpay.Text = " ";
txtdep.Text = " ";
}
else
{
Label20.Text = "error";
txtfirst.Text=" ";
txtmiddle.Ttxtbank.Text = " ";
txtaccount.Text
txtid.Text = " ";
txtbasic.Text = " ";
txthra.Text = " ";
txtda.Text = " ";
txtuniform.Text = " ";
txtconv.Text = " ";
txttel.Text = " ";
txtmed.Text = " ";
txttax.Text = " ";
txtpf.Text = " ";
txtover.Text = " ";
txtded.Text = " ";
txtpay.Text = " ";
txtdep.Text = " ";

59
}

con.Close();

}
protected void btnok_Click(object sender, EventArgs e)
{
SqlConnection con;
String fn, mn, ln,u;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();
SqlCommand cmd;
String eid;
eid = this.txtid.Text;
string str;
str = "select * from details where employee_id='" + eid + "'";
cmd = new SqlCommand(str, con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{
u=dr.GetString(0);
fn = dr.GetString(1);
mn = dr.GetString(2);
ln = dr.GetString(3);
this.txtfirst.Text = fn;
this.txtmiddle.Text = mn;
this.txtlast.Text = ln;
this.txtuid.Text =u;
}
else
{
Response.Write("Employee does not exist");
this.txtid.Text = " ";

}
dr.Close();
con.Close();
}
leave_insert form

<div>

60
<asp:Panel ID="Panel1" runat="server" BackColor="#FFC0C0"
Height="582px" Style="z-index: 100;
left: 1px; position: absolute; top: 3px" Width="111px">
</asp:Panel>
&nbsp;
<asp:Label ID="Label19" runat="server" Height="1px" Style="z-index: 101;
left: 120px;
position: absolute; top: 8px" Width="836px"
BackColor="#FFFFC0"><Font Face="Arial Black" size="+2"
color="aqua"><U><marquee bgcolor="#ccccff">HUMAN RESORCE
MANAGEMENT SYSTEM</marquee></U></Font></asp:Label>
<asp:Label ID="Label20" runat="server" Height="1px" Style="z-index: 102;
left: 10px;
position: absolute; top: 865px" Width="999px"><Font Face="Arial Black"
size="+1" color="BLACK"><U><marquee bgcolor="#ccccff" >THIS WEBSITE IS
CREATED AND MAINTAINED BY </marquee></U></Font></asp:Label>
&nbsp;&nbsp;&nbsp; &nbsp;
<asp:Image ID="Image3" runat="server" Height="111px"
ImageUrl="~/App_Data/untitled.bmp"
Style="z-index: 103; left: 115px; position: absolute; top: 54px"
Width="207px" />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 104;
left: 147px; position: absolute; top: 324px" Text="Overtime : *"
Width="73px"></asp:Label>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 105;
left: 581px; position: absolute; top: 320px" Text="Total charges : *"
Width="97px"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 106;
left: 346px; position: absolute; top: 272px" Text="Deduction per day :
*"></asp:Label>
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 107;
left: 581px; position: absolute; top: 268px" Text="Total deduction
:"></asp:Label>
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 108;
left: 410px; position: absolute; top: 229px" Text="Year : *"
Width="53px"></asp:Label>
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 109;
left: 342px; position: absolute; top: 323px" Text="Charges per hour :
*"></asp:Label>

61
<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 110;
left: 146px; position: absolute; top: 274px" Text="No of leaves :
*"></asp:Label>
<asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 111;
left: 147px; position: absolute; top: 176px" Text="Employee ID : *"
Width="87px"></asp:Label>
<asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 112;
left: 148px; position: absolute; top: 229px" Text="Month : *"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Height="22px" Style="z-index:
113; left: 243px;
position: absolute; top: 271px" Width="50px"></asp:TextBox>
&nbsp;
<asp:TextBox ID="TextBox3" runat="server" Height="23px" Style="z-index:
114; left: 483px;
position: absolute; top: 215px" Width="101px"></asp:TextBox>
<asp:TextBox ID="TextBox4" runat="server" Height="26px" Style="z-index:
115; left: 216px;
position: absolute; top: 225px" Width="99px"></asp:TextBox>
<asp:TextBox ID="TextBox5" runat="server" Height="23px" Style="z-index:
116; left: 249px;
position: absolute; top: 180px" Width="103px"
AutoPostBack="True"></asp:TextBox>
<asp:TextBox ID="TextBox2" runat="server" Height="26px" Style="z-index:
117; left: 483px;
position: absolute; top: 269px" Width="50px"></asp:TextBox>
<asp:TextBox ID="TextBox6" runat="server" Height="23px" Style="z-index:
118; left: 691px;
position: absolute; top: 267px" Width="50px"></asp:TextBox>
<asp:TextBox ID="TextBox7" runat="server" Height="28px" Style="z-index:
119; left: 694px;
position: absolute; top: 317px" Width="50px"></asp:TextBox>
<asp:TextBox ID="TextBox8" runat="server" Height="29px" Style="z-index:
120; left: 484px;
position: absolute; top: 322px" Width="50px"></asp:TextBox>
<asp:TextBox ID="TextBox9" runat="server" Height="32px" Style="z-index:
121; left: 242px;
position: absolute; top: 322px" Width="50px"></asp:TextBox>
<asp:Label ID="Label10" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 122;
left: 401px; position: absolute; top: 431px" Text="To :"
Width="32px"></asp:Label>
<asp:TextBox ID="TextBox11" runat="server" Height="27px" Style="z-index:
123; left: 449px;

62
position: absolute; top: 428px" Width="92px"></asp:TextBox>
&nbsp;&nbsp;
<asp:TextBox ID="TextBox14" runat="server" Height="25px" Style="z-index:
124; left: 581px;
position: absolute; top: 372px"></asp:TextBox>
&nbsp;
<asp:Button ID="Button1" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="Small"
Style="z-index: 125; left: 556px; position: absolute; top: 510px"
Text="Save"
Width="64px" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="Small"
Style="z-index: 126; left: 472px; position: absolute; top: 512px"
Text="Delete"
Width="64px" OnClick="Button2_Click" />
<asp:Button ID="Button3" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="Small"
Style="z-index: 127; left: 381px; position: absolute; top: 512px"
Text="Add"
Width="64px" OnClick="Button3_Click" />
<asp:Button ID="Button4" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="Small"
Style="z-index: 128; left: 287px; position: absolute; top: 514px"
Text="Edit"
Width="64px" OnClick="Button4_Click" />
<asp:Button ID="Button5" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="Small"
Style="z-index: 129; left: 184px; position: absolute; top: 515px"
Text="View"
Width="64px" OnClick="Button5_Click" />
<asp:TextBox ID="TextBox13" runat="server" Height="12px" Style="z-index:
130; left: 279px;
position: absolute; top: 379px" Width="92px"></asp:TextBox>
<asp:Label ID="Label11" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 131;
left: 151px; position: absolute; top: 432px" Text="From :"
Width="53px"></asp:Label>
<asp:Label ID="Label12" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 132;
left: 396px; position: absolute; top: 379px" Text="days"
Width="43px"></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 133;
left: 147px; position: absolute; top: 381px" Text="Leave requested for :"
Width="118px"></asp:Label>

63
<asp:Label ID="Label14" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 134;
left: 486px; position: absolute; top: 377px" Text="Reason :"
Width="84px"></asp:Label>
<asp:TextBox ID="TextBox10" runat="server" Height="31px" Style="z-index:
135; left: 210px;
position: absolute; top: 430px" Width="92px"></asp:TextBox>
&nbsp;&nbsp;
<asp:Button ID="Button6" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="Small"
Style="z-index: 136; left: 373px; position: absolute; top: 180px" Text="Ok"
Width="37px" OnClick="Button6_Click" /><asp:Image ID="Image1"
runat="server" Height="111px" ImageUrl="~/App_Data/untitled.bmp"
Style="z-index: 137; left: 330px; position: absolute; top: 54px"
Width="207px" />
<asp:Image ID="Image2" runat="server" Height="111px"
ImageUrl="~/App_Data/untitled.bmp"
Style="z-index: 139; left: 549px; position: absolute; top: 50px"
Width="207px" />
</div>

coding

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class leave_insert : System.Web.UI.Page
{

protected void Button6_Click(object sender, EventArgs e)


{
SqlConnection con;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");

64
con.Open();
SqlCommand cmd;
String str;
String eid;
eid = this.TextBox5.Text;
str="select * from leave_request where employee_id='" + eid + "'";
cmd = new SqlCommand(str, con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{
this.TextBox1.Text = dr.GetInt32(1).ToString();
this.TextBox14.Text = dr.GetString(2);
this.TextBox10.Text = dr.GetDateTime(3).ToString();
this.TextBox11.Text = dr.GetDateTime(4).ToString();
this.TextBox13.Text = dr.GetInt32(1).ToString();
}
else
{
Response.Write("Empid Does not exist");

}
}

protected void Button1_Click(object sender, EventArgs e)


{
SqlConnection con;
string eid;
eid=this.TextBox5.Text;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True;");
con.Open();
string str;
string mon=this.TextBox4.Text;
string yr=this.TextBox3.Text;
int nl=int.Parse(this.TextBox1.Text);
int dpd=int.Parse(this.TextBox2.Text);
int ov=int.Parse(this.TextBox9.Text);
int cph=int.Parse(this.TextBox8.Text);
int rl=int.Parse(this.TextBox13.Text);
string rea=this.TextBox14.Text;
DateTime fr=System.DateTime.Parse(this.TextBox10.Text);
DateTime t=System.DateTime.Parse(this.TextBox11.Text);
int td=nl*dpd;
int tc=ov*cph;

65
str = "insert into attendance values('" + eid + "','" + mon + "','" + yr + "'," + nl
+ "," + dpd + "," + td + "," + ov + "," + cph + "," + tc + "," + rl + ",'" + rea + "','" + fr +
"','" + t + "')";
SqlCommand cmd;
cmd=new SqlCommand(str,con);
int i;
i=cmd.ExecuteNonQuery();
if(i!=0)
{
Response.Write("Record insert Successfully");
this.TextBox4.Text="";
this.TextBox3.Text=" ";
this.TextBox1.Text=" ";
this.TextBox2.Text="";
this.TextBox9.Text=" ";
TextBox8.Text=" ";
this.TextBox13.Text=" ";
this.TextBox14.Text=" ";
this.TextBox10.Text=" ";
this.TextBox11.Text=" ";

}
else
{
Response.Write("error on pages");
this.TextBox4.Text="";
this.TextBox3.Text="";
this.TextBox1.Text="";
this.TextBox2.Text="";
this.TextBox9.Text="";
this.TextBox8.Text="";
this.TextBox13.Text="";
this.TextBox14.Text="";
this.TextBox10.Text="";
this.TextBox11.Text="";

}
con.Close ();

}
protected void Button2_Click(object sender, EventArgs e)

66
{
SqlConnection con;
string eid;
eid = this.TextBox5.Text;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True;");
con.Open();
string str;
str = "delete from attendance where employee_id='" + eid + "'";
SqlCommand cmd;
cmd=new SqlCommand(str,con);
int i;
i=cmd.ExecuteNonQuery();
if(i!=0)
{
Response.Write("Employee Delete Successfully");
this.TextBox4.Text="";
this.TextBox3.Text="";
this.TextBox1.Text="";
this.TextBox2.Text="";
this.TextBox9.Text="";
this.TextBox8.Text="";
this.TextBox13.Text="";
this.TextBox14.Text="";
this.TextBox10.Text="";
this.TextBox11.Text="";
}
else
{
Response.Write("Employee id does not exist");
this.TextBox4.Text="";
this.TextBox3.Text="";
this.TextBox1.Text="";
this.TextBox2.Text="";
this.TextBox9.Text="";
this.TextBox8.Text="";
this.TextBox13.Text="";
this.TextBox14.Text="";
this.TextBox10.Text="";
this.TextBox11.Text="";
}
con.Close();
}
protected void Button3_Click(object sender, EventArgs e)
{

67
}
protected void Button4_Click(object sender, EventArgs e)
{
SqlConnection con;
string eid;
eid = this.TextBox5.Text;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True;");
con.Open();
string str;
string mon = this.TextBox4.Text;
string yr = this.TextBox3.Text;
int nl = int.Parse(this.TextBox1.Text);
int dpd = int.Parse(this.TextBox2.Text);
int ov = int.Parse(this.TextBox9.Text);
int cph = int.Parse(this.TextBox8.Text);
int rl = int.Parse(this.TextBox13.Text);
string rea = this.TextBox14.Text;
DateTime fr = System.DateTime.Parse(this.TextBox10.Text);
DateTime t = System.DateTime.Parse(this.TextBox11.Text);
int td = nl * dpd;
int tc = ov * cph;
str = "update attendance set mon='" + mon + "',yr='" + yr + "',nl=" + nl +
",dpd=" + dpd + ",td=" + td + ",ov=" + ov + ",cph=" + cph + ",tc=" + tc + ",lr=" + rl +
",rea='" + rea + "',fr='" + fr + "',t='" + t + "' where employee_id='" + eid + "'";
SqlCommand cmd;
cmd = new SqlCommand(str, con);
int i;
i = cmd.ExecuteNonQuery();
if (i != 0)
{
Response.Write("Record update Successfully");
this.TextBox4.Text = "";
this.TextBox3.Text = " ";
this.TextBox1.Text = " ";
this.TextBox2.Text = "";
this.TextBox9.Text = " ";
TextBox8.Text = " ";
this.TextBox13.Text = " ";
this.TextBox14.Text = " ";
this.TextBox10.Text = " ";
this.TextBox11.Text = " ";

68
}
else
{
Response.Write("error on pages");
this.TextBox4.Text = "";
this.TextBox3.Text = "";
this.TextBox1.Text = "";
this.TextBox2.Text = "";
this.TextBox9.Text = "";
this.TextBox8.Text = "";
this.TextBox13.Text = "";
this.TextBox14.Text = "";
this.TextBox10.Text = "";
this.TextBox11.Text = "";

}
con.Close();

}
protected void Button5_Click(object sender, EventArgs e)
{

SqlConnection con;
string eid;
eid = this.TextBox5.Text;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True;");
con.Open();
string str;

str = "select * from attendance where employee_id='" + eid + "'";


SqlCommand cmd;
cmd = new SqlCommand(str, con);
SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{

this.TextBox4.Text = dr.GetString(1);
this.TextBox3.Text = dr.GetString(2);
this.TextBox1.Text = dr.GetInt32(3).ToString();
this.TextBox2.Text = dr.GetInt32(4).ToString();
this.TextBox9.Text = dr.GetInt32(6).ToString();
this.TextBox8.Text = dr.GetInt32(7).ToString();

69
this.TextBox13.Text = dr.GetInt32(9).ToString();
this.TextBox14.Text = dr.GetString(10);
this.TextBox10.Text = dr.GetDateTime(11).ToString();
this.TextBox11.Text = dr.GetDateTime(12).ToString();
this.TextBox6.Text = dr.GetInt32(5).ToString();
this.TextBox7.Text = dr.GetInt32(8).ToString();
}
else
{
Response.Write("Employee id does not exist");
this.TextBox4.Text = "";
this.TextBox3.Text = "";
this.TextBox1.Text = "";
this.TextBox2.Text = "";
this.TextBox9.Text = "";
this.TextBox8.Text = "";
this.TextBox13.Text = "";
this.TextBox14.Text = "";
this.TextBox10.Text = "";
this.TextBox11.Text = "";
}
}
}

Emp_Search

<asp:Panel ID="Panel1" runat="server" BackColor="#FFFFC0" Height="562px"


Style="z-index: 100;
left: 1px; position: absolute; top: 1px" Width="152px">
</asp:Panel>
<asp:Image ID="Image1" runat="server" Height="87px" Style="z-index: 101;
left: 156px;
position: absolute; top: 3px" Width="839px" />
&nbsp;
<asp:GridView ID="GridView1" runat="server" Height="201px" Style="z-
index: 102; left: 188px;
position: absolute; top: 295px" Width="520px">
</asp:GridView>
<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Style="z-
index: 103;
left: 164px; position: absolute; top: 101px"
Width="54px">Search</asp:HyperLink>
<asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" Style="z-
index: 104;

70
left: 227px; position: absolute; top: 102px"
Width="51px">Detail</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" runat="server" Font-Bold="True" Style="z-
index: 105;
left: 286px; position: absolute; top: 103px">View Edit
Request</asp:HyperLink>
<asp:HyperLink ID="HyperLink4" runat="server" Font-Bold="True" Style="z-
index: 106;
left: 421px; position: absolute; top: 102px">Add new
employee</asp:HyperLink>
<asp:HyperLink ID="HyperLink5" runat="server" Font-Bold="True" Style="z-
index: 107;
left: 560px; position: absolute; top: 101px">Ex
Employee</asp:HyperLink>
&nbsp;
<asp:RadioButton ID="RadioButton1" runat="server" Font-Bold="True"
Font-Size="Small"
Style="z-index: 108; left: 333px; position: absolute; top: 176px"
Text="First Name"
Width="123px" AutoPostBack="True"
OnCheckedChanged="RadioButton1_CheckedChanged" />
<asp:RadioButton ID="RadioButton2" runat="server" Font-Bold="True"
Font-Size="Small"
Style="z-index: 109; left: 464px; position: absolute; top: 177px"
Text="Departement"
Width="96px" AutoPostBack="True"
OnCheckedChanged="RadioButton2_CheckedChanged" />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 110;
left: 604px; position: absolute; top: 163px" Text="Search For"
Width="84px"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Height="12px" Style="z-index:
111; left: 690px;
position: absolute; top: 162px" Width="119px"></asp:TextBox>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 112;
left: 193px; position: absolute; top: 160px" Text="Search Employee by"
Width="113px"></asp:Label>
<asp:Button ID="Button1" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 113;
left: 823px; position: absolute; top: 159px" Text="Ok" Width="30px"
OnClick="Button1_Click" />
<asp:Label ID="Label3" runat="server" Style="z-index: 114; left: 0px;
position: absolute;
top: 0px" Text="Label"></asp:Label>

71
<asp:Button ID="Button2" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 115;
left: 196px; position: absolute; top: 127px" Text="View All" Width="61px"
/>
<asp:RadioButton ID="RadioButton3" runat="server" Font-Bold="True"
Font-Size="Small"
Style="z-index: 116; left: 340px; position: absolute; top: 204px" Text="Last
Name" AutoPostBack="True"
OnCheckedChanged="RadioButton3_CheckedChanged" />
<asp:RadioButton ID="RadioButton4" runat="server" Font-Bold="True"
Font-Size="Small"
Style="z-index: 117; left: 463px; position: absolute; top: 207px"
Text="Designation"
Width="91px" AutoPostBack="True"
OnCheckedChanged="RadioButton4_CheckedChanged" />
<asp:RadioButton ID="RadioButton5" runat="server" Font-Bold="True"
Font-Size="Small"
Style="z-index: 118; left: 342px; position: absolute; top: 234px"
Text="Employee ID"
Width="92px" AutoPostBack="True"
OnCheckedChanged="RadioButton5_CheckedChanged" />
&nbsp;
<asp:HyperLink ID="HyperLink6" runat="server" BackColor="#FFC0C0"
Font-Bold="True"
Style="z-index: 120; left: 11px; position: absolute; top: 29px"
Width="115px">Home</asp:HyperLink>
<asp:HyperLink ID="HyperLink7" runat="server" BackColor="#FFC0C0"
Font-Bold="True"
Style="z-index: 121; left: 14px; position: absolute; top: 52px"
Width="115px">Employee Detail</asp:HyperLink>
<asp:HyperLink ID="HyperLink8" runat="server" BackColor="#FFC0C0"
Font-Bold="True"
Style="z-index: 122; left: 17px; position: absolute; top: 78px"
Width="113px">Salary Detail</asp:HyperLink>
<asp:HyperLink ID="HyperLink9" runat="server" BackColor="#FFC0C0"
Font-Bold="True"
Style="z-index: 123; left: 18px; position: absolute; top: 101px"
Width="113px">Recruitment</asp:HyperLink>
<asp:HyperLink ID="HyperLink10" runat="server" BackColor="#FFC0C0"
Font-Bold="True"
Style="z-index: 124; left: 19px; position: absolute; top: 124px"
Width="113px">Attendence</asp:HyperLink>
<asp:HyperLink ID="HyperLink11" runat="server" BackColor="#FFC0C0"
Font-Bold="True"
Style="z-index: 125; left: 20px; position: absolute; top: 146px"
Width="112px">Logout</asp:HyperLink>

72
<asp:Label ID="Label4" runat="server" Style="z-index: 127; left: 560px;
position: absolute;
top: 244px" Text="Label" Width="129px"></asp:Label>

coding

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Default8 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
static string fn;
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
if (this.RadioButton1.Checked == true)
{
fn = this.RadioButton1.Text;
this.RadioButton2.Checked = false;
this.RadioButton3.Checked = false;
this.RadioButton4.Checked = false;
this.RadioButton5.Checked = false;
this.RadioButton6.Checked = false;
}
}

protected void Button1_Click(object sender, EventArgs e)


{

int i;
string f, str;
SqlCommand cmd;
SqlDataReader dr;
SqlConnection con;

73
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=C:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();

if (fn == "First Name")


{

f = this.TextBox1.Text;
str = "select * from admin where first_name='" + f + "'";
cmd = new SqlCommand(str, con);
dr = cmd.ExecuteReader();
while (dr.Read())
{
this.GridView1.DataSource = dr;
this.GridView1.DataBind();

}
dr.Close();
}

if (fn == "Departement")
{

f = this.TextBox1.Text;
str = "select * from details where departement='" + f + "'";
cmd = new SqlCommand(str, con);
dr = cmd.ExecuteReader();
while (dr.Read())
{
this.GridView1.DataSource = dr;
this.GridView1.DataBind();

}
dr.Close();

if (fn == "Designation")
{

f = this.TextBox1.Text;
str = "select * from details where designation='" + f + "'";
cmd = new SqlCommand(str, con);
dr = cmd.ExecuteReader();

74
while (dr.Read())
{
this.GridView1.DataSource = dr;
this.GridView1.DataBind();

}
dr.Close();

if (fn == "Last Name")


{

f = this.TextBox1.Text;
str = "select * from details where last_name='" + f + "'";
cmd = new SqlCommand(str, con);
dr = cmd.ExecuteReader();
while (dr.Read())
{
this.GridView1.DataSource = dr;
this.GridView1.DataBind();

}
dr.Close();

if (fn == "Employee ID")


{

f = this.TextBox1.Text;
str = "select * from details where employee_id='" + f + "'";
cmd = new SqlCommand(str, con);
dr = cmd.ExecuteReader();
while (dr.Read())
{
this.GridView1.DataSource = dr;
this.GridView1.DataBind();

}
dr.Close();

75
con.Close();
}

protected void RadioButton2_CheckedChanged(object sender, EventArgs e)


{
if (this.RadioButton2.Checked == true)
{
fn = this.RadioButton2.Text;
this.RadioButton1.Checked = false;
this.RadioButton3.Checked = false;
this.RadioButton4.Checked = false;
this.RadioButton5.Checked = false;
this.RadioButton6.Checked = false;
}
}
protected void RadioButton3_CheckedChanged(object sender, EventArgs e)
{
if (this.RadioButton3.Checked == true)
{
fn = this.RadioButton3.Text;
this.RadioButton1.Checked = false;
this.RadioButton2.Checked = false;
this.RadioButton4.Checked = false;
this.RadioButton5.Checked = false;
this.RadioButton6.Checked = false;
}
}
protected void RadioButton4_CheckedChanged(object sender, EventArgs e)
{
if (this.RadioButton4.Checked == true)
{
fn = this.RadioButton4.Text;
this.RadioButton1.Checked = false;
this.RadioButton2.Checked = false;
this.RadioButton3.Checked = false;
this.RadioButton5.Checked = false;

76
this.RadioButton6.Checked = false;
}
}
protected void RadioButton5_CheckedChanged(object sender, EventArgs e)
{
if (this.RadioButton5.Checked == true)
{
fn = this.RadioButton5.Text;
this.RadioButton1.Checked = false;
this.RadioButton2.Checked = false;
this.RadioButton3.Checked = false;
this.RadioButton4.Checked = false;
this.RadioButton6.Checked = false;
}
}
protected void RadioButton6_CheckedChanged(object sender, EventArgs e)
{
if (this.RadioButton6.Checked == true)
{
fn = this.RadioButton6.Text;
this.RadioButton1.Checked = false;
this.RadioButton2.Checked = false;
this.RadioButton3.Checked = false;
this.RadioButton4.Checked = false;
this.RadioButton5.Checked = false;
}
}
}

Emp_insert form

<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small"


Style="z-index: 102;
left: 413px; position: absolute; top: 170px" Text="Middle Name
:"></asp:Label>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 103;
left: 168px; position: absolute; top: 173px" Text="First Name
:"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 104;

77
left: 413px; position: absolute; top: 221px" Text="Password
:"></asp:Label>
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 105;
left: 665px; position: absolute; top: 214px" Text="Department :"
Width="74px"></asp:Label>
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 106;
left: 167px; position: absolute; top: 219px" Text="Employee ID
:"></asp:Label>
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 107;
left: 664px; position: absolute; top: 169px" Text="Last Name
:"></asp:Label>
<asp:TextBox ID="txtmiddle" runat="server" Height="12px" Style="z-index:
108; left: 508px;
position: absolute; top: 167px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtfirst" runat="server" Font-Size="12px" Style="z-index:
109; left: 249px;
position: absolute; top: 167px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtlast" runat="server" Height="12px" Style="z-index: 110;
left: 742px;
position: absolute; top: 165px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtpassword" runat="server" Height="12px" Style="z-
index: 111; left: 508px;
position: absolute; top: 216px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtid" runat="server" Height="12px" Style="z-index: 112;
left: 248px;
position: absolute; top: 218px" Width="130px"></asp:TextBox>
&nbsp;
<asp:DropDownList ID="ddldept" runat="server" AutoPostBack="True"
Style="z-index: 113;
left: 752px; position: absolute; top: 212px" Width="130px">
</asp:DropDownList>
<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 114;
left: 426px; position: absolute; top: 335px" Text="Cell :"
Width="36px"></asp:Label>
<asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 115;
left: 677px; position: absolute; top: 329px" Text="Sex :"
Width="33px"></asp:Label>
<asp:Label ID="Label9" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 116;
left: 170px; position: absolute; top: 337px" Text="Home phone :"
Width="76px"></asp:Label>

78
<asp:Label ID="txtaddress" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 117;
left: 169px; position: absolute; top: 286px" Text="Address :"
Width="61px"></asp:Label>
&nbsp;
<asp:TextBox ID="txthome" runat="server" Height="12px" Style="z-index:
118; left: 256px;
position: absolute; top: 334px" Width="145px"></asp:TextBox>
&nbsp;
<asp:TextBox ID="txtaddr" runat="server" Height="39px" Style="z-index:
119; left: 241px;
position: absolute; top: 257px" Width="633px"></asp:TextBox>
<asp:TextBox ID="txtcell" runat="server" Height="12px" Style="z-index: 120;
left: 509px;
position: absolute; top: 330px" Width="145px"></asp:TextBox>
&nbsp;
<asp:RadioButton ID="rdomale" runat="server" AutoPostBack="True"
OnCheckedChanged="rdomale_CheckedChanged"
Style="z-index: 121; left: 724px; position: absolute; top: 326px"
Text="Male" />
<asp:RadioButton ID="rdofemale" runat="server" AutoPostBack="True"
OnCheckedChanged="rdofemale_CheckedChanged"
Style="z-index: 122; left: 785px; position: absolute; top: 325px"
Text="Female" />
<asp:Label ID="Label11" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 123;
left: 170px; position: absolute; top: 393px" Text="Education :"
Width="69px"></asp:Label>
&nbsp;
<asp:Label ID="Label19" runat="server" Height="1px" Style="z-index: 101;
left: 73px;
position: absolute; top: 67px" Width="836px"
BackColor="#FFFFC0"><Font Face="Arial Black" size="+2"
color="aqua"><U><marquee bgcolor="#ccccff">HUMAN RESORCE
MANAGEMENT SYSTEM</marquee></U></Font></asp:Label>
<asp:Label ID="Label20" runat="server" Height="1px" Style="z-index: 102;
left: 10px;
position: absolute; top: 865px" Width="999px"><Font Face="Arial Black"
size="+1" color="BLACK"><U><marquee bgcolor="#ccccff" >THIS WEBSITE IS
CREATED AND MAINTAINED BY SUSHIL
JAIN</marquee></U></Font></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 124;
left: 435px; position: absolute; top: 493px" Text="Date of retiring :"
Width="100px"></asp:Label>

79
<asp:Label ID="Label14" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 125;
left: 169px; position: absolute; top: 497px" Text="Date of joining :"
Width="93px"></asp:Label>
<asp:Label ID="Label15" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 126;
left: 427px; position: absolute; top: 443px" Text="Email :"
Width="47px"></asp:Label>
<asp:Label ID="Label16" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 127;
left: 167px; position: absolute; top: 449px" Text="Designation :"
Width="79px"></asp:Label>
<asp:TextBox ID="txtretire" runat="server" Height="12px" Style="z-index:
128; left: 544px;
position: absolute; top: 490px"></asp:TextBox>
<asp:Label ID="Label10" runat="server" Style="z-index: 129; left: 728px;
position: absolute;
top: 403px" Width="226px"></asp:Label>
<asp:TextBox ID="txtjoining" runat="server" Height="12px" Style="z-index:
130; left: 268px;
position: absolute; top: 494px"></asp:TextBox>
<asp:TextBox ID="txtedu" runat="server" Height="12px" Style="z-index: 131;
left: 257px;
position: absolute; top: 389px"></asp:TextBox>
<asp:TextBox ID="txtemai" runat="server" Height="12px" Style="z-index:
132; left: 505px;
position: absolute; top: 438px" Width="145px"></asp:TextBox>
&nbsp;
<asp:DropDownList ID="ddldesg" runat="server" AutoPostBack="True"
Style="z-index: 133;
left: 263px; position: absolute; top: 443px" Width="150px">
</asp:DropDownList>
&nbsp;
<asp:Label ID="Label17" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 134;
left: 171px; position: absolute; top: 548px" Text="Retirement policy :"
Width="109px"></asp:Label>
<asp:TextBox ID="txtpolicy" runat="server" Height="12px" Style="z-index:
135; left: 291px;
position: absolute; top: 544px" Width="184px"></asp:TextBox>
<asp:Label ID="Label18" runat="server" Font-Bold="True" Font-
Size="Small" Style="z-index: 136;
left: 170px; position: absolute; top: 600px" Text="If you make any
changes,do not forget to press button"
Width="304px"></asp:Label>

80
<asp:Button ID="Button1" runat="server" BackColor="#80FF80" Font-
Bold="True" Font-Size="XX-Large"
OnClick="Button1_Click" Style="z-index: 137; left: 528px; position:
absolute;
top: 521px" Text="save" Width="134px" />
<asp:Label ID="Label12" runat="server" Style="z-index: 138; left: 154px;
position: absolute;
top: 142px" Text="User Name" Width="90px"></asp:Label>
<asp:TextBox ID="txtuname" runat="server" Style="z-index: 141; left: 252px;
position: absolute;
top: 137px" Width="125px"></asp:TextBox>
&nbsp;

</div>

coding emp_insert

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Default2 : System.Web.UI.Page
{
static int cn;
protected void Page_Load(object sender, EventArgs e)
{
SqlCommand cmd,cmd1,cmd2;
SqlDataReader dr,dr1;
if (!IsPostBack)
{
SqlConnection con;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();
String str1, str2;
str1 = "select * from department";

81
cmd = new SqlCommand(str1, con);

dr = cmd.ExecuteReader();
while (dr.Read())
{
this.ddldept.Items.Add(dr.GetString(0));
}
dr.Close();

str2 = "select * from designation";

cmd1 = new SqlCommand(str2, con);

dr1 = cmd1.ExecuteReader();
while (dr1.Read())
{
this.ddldesg.Items.Add(dr1.GetString(0));
}
dr1.Close();

string str3;
str3 = "select count(*) from details";

SqlCommand cmd3;
cmd3 = new SqlCommand(str3, con);
SqlDataReader dr2;
dr2 = cmd3.ExecuteReader();
if (dr2.Read())
{
cn = dr2.GetInt32(0);
}
dr2.Close();
cn = cn + 1;
this.txtid.Text = cn.ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con;
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=d:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();
string str1;
str1 = "select count(*) from details";

82
SqlCommand cmd,cmd1;
cmd1 = new SqlCommand(str1, con);
SqlDataReader dr1;
dr1 = cmd1.ExecuteReader();
if (dr1.Read())
{
cn = dr1.GetInt32(0);
}
dr1.Close();
cn = cn + 1;
string u = txtuname.Text;
String f = txtfirst.Text;
String m = txtmiddle.Text;
String l = txtlast.Text;
//txtid.Text = cn.ToString();
String id = txtid.Text;

String p = txtpassword.Text;
String d = ddldept.SelectedItem.Text;
String a = txtaddr.Text;
String h = txthome.Text;
String c = txtcell.Text;
//String dept = ddldept.SelectedItem.Text;
String ed = txtedu.Text;

String des = ddldesg.SelectedItem.Text;


String em = txtemai.Text;
String jo = txtjoining.Text;
String re = txtretire.Text;
String po = txtpolicy.Text;

String str,str1;
str1 = "insert into login values('" + u + "','" + p + "')";
SqlCommand cmd2;
cmd2 = new SqlCommand(str1, con);
cmd2.ExecuteNonQuery();
str = "insert into DETAILS values('" + u + "', '" + f + "','" + m + "','" + l + "','" +
id + "','" + p + "','" + d + "','" + a + "','" + h + "','"+ c +"','" + g + "','" + ed + "','" + des
+ "','" + em + "','" + jo + "','" + re + "','" + po + "')";
cmd = new SqlCommand(str, con);
int i;
i = cmd.ExecuteNonQuery();
if (i != 0)
{

83
Label10.Text = "insert sucessfully";

txtfirst.Text = " ";


txtmiddle.Text = " ";
txtlast.Text = " ";
txtid.Text = " ";
txtpassword.Text = " ";
// dropdownlist1.SelectedItem.Text = " ";
txtaddr.Text = " ";
txthome.Text = " ";
txtcell.Text = " ";
ddldesg.SelectedItem.Text = " ";
txtedu.Text = " ";
rdofemale.Checked = false;
rdomale.Checked = false;

// DropDownList4.SelectedItem.Text = " ";


// DropDownList3.SelectedItem.Text = " ";
txtemai.Text = " ";
txtjoining.Text = " ";
txtretire.Text = " ";
txtpolicy.Text = " ";
}
else
{
Label10.Text = "error";

txtfirst.Text = " ";


txtmiddle.Text = " ";
txtlast.Text = " ";
txtid.Text = " ";
txtpassword.Text = " ";
//DropDownList1.SelectedItem.Text = " ";
ddldept.SelectedItem.Text = " ";
txtaddr.Text = " ";
txthome.Text = " ";
txtcell.Text = " ";
ddldesg.SelectedItem.Text = " ";
//DropDownList2.SelectedItem.Text = " ";
txtedu.Text = " ";
// DropDownList4.SelectedItem.Text = " ";
//DropDownList3.SelectedItem.Text = " ";
txtemai.Text = " ";
txtjoining.Text = " ";
txtretire.Text = " ";
txtpolicy.Text = " ";

84
}
con.Close();
}
static string g;

protected void rdomale_CheckedChanged(object sender, EventArgs e)


{
if (rdomale.Checked == true)
{
g = rdomale.Text;
rdofemale.Checked = false;
}
}
protected void rdofemale_CheckedChanged(object sender, EventArgs e)
{
if (rdofemale.Checked == true)
{
g = rdofemale.Text;
rdomale.Checked = false;
}
}
protected void Button2_Click(object sender, EventArgs e)
{

}
}

85
Interview F orm

<div>
<asp:Panel ID="Panel1" runat="server" BackColor="#FFFF80"
Height="558px" Style="z-index: 100;
left: 0px; position: absolute; top: 3px" Width="145px">
</asp:Panel>
<asp:Image ID="Image1" runat="server" Height="100px" Style="z-index:
101; left: 147px;
position: absolute; top: 2px" Width="848px" ImageUrl="~/HUMAN
copy.jpg" />
<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 102;
left: 175px; position: absolute; top: 286px" Text="ID of Candidate :"
Width="102px"></asp:Label>
<asp:TextBox ID="txtina" runat="server" Height="12px" Style="z-index: 103;
left: 306px;
position: absolute; top: 177px" Width="130px"></asp:TextBox>
<asp:Label ID="Label8" runat="server" Style="z-index: 121; left: 725px;
position: absolute;
top: 155px" Width="191px"></asp:Label>
<asp:TextBox ID="txtdi" runat="server" Height="12px" Style="z-index: 105;
left: 309px;
position: absolute; top: 227px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txtid" runat="server" Height="12px" Style="z-index: 106;
left: 310px;
position: absolute; top: 282px" Width="130px"></asp:TextBox>
<asp:TextBox ID="txts" runat="server" Height="12px" Style="z-index: 107;
left: 628px;
position: absolute; top: 277px" Width="130px"></asp:TextBox>
<asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 108;
left: 488px; position: absolute; top: 230px" Text="Time of Interview :"
Width="107px"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 109;
left: 486px; position: absolute; top: 283px" Text="Selected Candidate(s) :"
Width="127px"></asp:Label>
<asp:Label ID="Label6" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 110;
left: 490px; position: absolute; top: 344px" Text="Department
:"></asp:Label>
<asp:TextBox ID="txtti" runat="server" Height="12px" Style="z-index: 111;
left: 627px;

86
position: absolute; top: 227px" Width="130px"></asp:TextBox>
<asp:DropDownList ID="DropDownList1" runat="server"
AppendDataBoundItems="True" Style="z-index: 112;
left: 313px; position: absolute; top: 341px" Width="135px">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList2" runat="server"
AppendDataBoundItems="True" Style="z-index: 113;
left: 632px; position: absolute; top: 338px" Width="135px">
</asp:DropDownList>
<asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 114;
left: 177px; position: absolute; top: 346px" Text="Designation
:"></asp:Label>
<asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 115;
left: 174px; position: absolute; top: 234px" Text="Date Of Interview :"
Width="108px"></asp:Label>
<asp:Label ID="Label5" runat="server" Font-Bold="True" Font-Size="Small"
Style="z-index: 116;
left: 173px; position: absolute; top: 179px" Text="Interview No. :"
Width="91px"></asp:Label>
<asp:Button ID="Button1" runat="server" BackColor="#FFC0C0" Font-
Bold="True" Style="z-index: 117;
left: 556px; position: absolute; top: 446px" Text="Save" Width="54px"
OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" BackColor="#FFC0C0" Font-
Bold="True" OnClick="Button2_Click"
Style="z-index: 118; left: 477px; position: absolute; top: 448px"
Text="Delete" />
<asp:Button ID="Button3" runat="server" BackColor="#FFC0C0" Font-
Bold="True" OnClick="Button3_Click"
Style="z-index: 119; left: 405px; position: absolute; top: 449px"
Text="Modify"
Width="58px" />
<asp:Button ID="Button4" runat="server" BackColor="#FFC0C0" Font-
Bold="True" OnClick="Button4_Click"
Style="z-index: 120; left: 340px; position: absolute; top: 450px"
Text="Add"
Width="53px" />

</div>

interview coding

87
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class Default12 : System.Web.UI.Page
{
SqlConnection con;
SqlCommand cmd;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{

DropDownList1.Items.Add("CS");
DropDownList1.Items.Add("EC");
DropDownList1.Items.Add("IT");
DropDownList1.Items.Add("MECH");
DropDownList2.Items.Add("TECH");
DropDownList2.Items.Add("NONTECH");

}
}
protected void Button4_Click(object sender, EventArgs e)
{

con = new SqlConnection("Data


Source=.\\SQLEXPRESS;AttachDbFilename=C:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();

String ina = txtina.Text;


String di = txtdi.Text;
String ti = txtti.Text;
String id = txtid.Text;
String s = txts.Text;
String dp = DropDownList1.SelectedItem.Text;
String ss = DropDownList2.SelectedItem.Text;
String str;

88
str = "insert into INTERVIEW_DETAIL values('" + ina + "','" + di + "','" + ti +
"','" + id + "','" + s + "','" + dp + "','" + ss + "')";
cmd = new SqlCommand(str, con);
int i;
i = cmd.ExecuteNonQuery();
if (i != 0)
{
Label8.Text = "insert sucessfully";

txtina.Text = " ";


txtdi.Text = " ";
txtti.Text = " ";
txtid.Text = " ";
txts.Text = " ";
DropDownList1.SelectedItem.Text = " ";
DropDownList2.SelectedItem.Text = " ";
}
else
{
Label8.Text = "error";

txtina.Text = " ";


txtdi.Text = " ";
txtti.Text = " ";
txtid.Text = " ";
txts.Text = " ";
DropDownList1.SelectedItem.Text = " ";
DropDownList2.SelectedItem.Text = " ";
}
con.Close();

}
protected void Button3_Click(object sender, EventArgs e)
{
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=C:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();

String ina = txtina.Text;


String di = txtdi.Text;
String ti = txtti.Text;
String id = txtid.Text;
String s = txts.Text;
String dp = DropDownList1.SelectedItem.Text;
String ss = DropDownList2.SelectedItem.Text;

89
String str;
str = "update INTERVIEW_DETAIL set DAY_OF_INTERVIEW='" + di +
"',TIME_OF_INTERVIEW='" + ti + "',ID_OF_CANDIDATE='" + id +
"',SELECTED_CANDIDATE='" + s + "',DEPARTMENT='" + dp +
"',DESIGNATION='" + ss + "' where INTERVIEW_N0='" + ina + "'";
cmd = new SqlCommand(str, con);
int i;
i = cmd.ExecuteNonQuery();
if (i != 0)
{
Label8.Text = "update record sucessfully";

txtina.Text = " ";


txtdi.Text = " ";
txtti.Text = " ";
txtid.Text = " ";
txts.Text = " ";
DropDownList1.SelectedItem.Text = " ";
DropDownList2.SelectedItem.Text = " ";
}
else
{
Label8.Text = "error";

txtina.Text = " ";


txtdi.Text = " ";
txtti.Text = " ";
txtid.Text = " ";
txts.Text = " ";
DropDownList1.SelectedItem.Text = " ";
DropDownList2.SelectedItem.Text = " ";
}
con.Close();
}
protected void Button2_Click(object sender, EventArgs e)
{
con = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=D:\\SHREE.mdf;Integrated
Security=True;Connect Timeout=30;User Instance=True");
con.Open();

String ina = txtina.Text;


String di = txtdi.Text;
String ti = txtti.Text;
String id = txtid.Text;
String s = txts.Text;

90
String dp = DropDownList1.SelectedItem.Text;
String ss = DropDownList2.SelectedItem.Text;
String str;
str = "delete from INTERVIEW_DETAIL where INTERVIEW_NO='" + ina +
"'";
cmd = new SqlCommand(str, con);
int i;
i = cmd.ExecuteNonQuery();
if (i != 0)
{
Label8.Text = "delete record sucessfully";

txtina.Text = " ";


txtdi.Text = " ";
txtti.Text = " ";
txtid.Text = " ";
txts.Text = " ";
DropDownList1.SelectedItem.Text = " ";
DropDownList2.SelectedItem.Text = " ";
}
else
{
Label8.Text = "error";

txtina.Text = " ";


txtdi.Text = " ";
txtti.Text = " ";
txtid.Text = " ";
txts.Text = " ";
DropDownList1.SelectedItem.Text = " ";
DropDownList2.SelectedItem.Text = " ";
}
con.Close();

}
protected void Button1_Click(object sender, EventArgs e)
{

}
}

91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107

You might also like