Documente Academic
Documente Profesional
Documente Cultură
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
CERTIFICATE
………………. ……
………
Prof. Mayank Pathak Prof Basant Tiwari
Head
Project Guide
Department of CSE.
Department of CSE
2
TIT,Bhopal
TIT,Bhopal
APPROVAL CERTIFICATE
3
INTERNAL EXAMINER EXTERNAL EXAMINER
Date: Date:
ACKNOWLEDGEMENT
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
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
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.
12
1.3 Scope of the Work
HR Documentation Management
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.
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
18
2.1 Survey of the existing software
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.
20
2.2 Problem Definition
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.
• Recruitment
• Appraisals
• Promotions/Increments/Transfers
• HR Policies
• Pay scales
• Educational/Technical Qualifications
21
• Employee Skill sets maintenance
• Perquisites (Medical, Vehicle, Telephone, Liveries etc)
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.
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
Technologies to be used
• Server: SQLServer
• DB: SQL
• Techno: ASP.Net
• Front-End: ASP.Net/SQLServer
25
3.3 Assumption & Working Environment
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
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
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.
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.
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
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.
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.
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.
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.
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
48
4.3 Scope for future enhancement
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.
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:-
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.
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:-
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.
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.
52
53
Salary_insert form
<br />
<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>
<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>
<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>
<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>
<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>
<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>
<asp:TextBox ID="TextBox14" runat="server" Height="25px" Style="z-index:
124; left: 581px;
position: absolute; top: 372px"></asp:TextBox>
<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>
<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
{
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");
}
}
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;
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
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>
<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" />
<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;
}
}
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();
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();
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();
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();
}
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
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>
<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>
<asp:TextBox ID="txthome" runat="server" Height="12px" Style="z-index:
118; left: 256px;
position: absolute; top: 334px" Width="145px"></asp:TextBox>
<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>
<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>
<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>
<asp:DropDownList ID="ddldesg" runat="server" AutoPostBack="True"
Style="z-index: 133;
left: 263px; position: absolute; top: 443px" Width="150px">
</asp:DropDownList>
<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>
</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();
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 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";
84
}
con.Close();
}
static string g;
}
}
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)
{
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";
}
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();
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";
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";
}
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