The RTU University: Major Project / Internship MCA VI Semester MCA-621

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 152

The RTU University

Major Project / Internship


MCA VI Semester
MCA-621

A Project Report on

HUMAN RESOURCE MANAGEMENT SYSTEM

Submitted for partial fulfillment for award of the degree in


Master of Computer Application (MCA)

BY STUDENT Under the Supervision

Name-Nirmal Pareek

Enrollment No- 18crcr

Page 1
Letter Head Of The Organization

CERTIFICATE OF ORIGINALITY

This is to certify that the project report entitled “Human Resource


Management System” submitted to The RTU University in partial
fulfillment of the requirement for the award of the degree of MASTER
OF COMPUTER APPLICATIONS ( MCA) , is an authentic and original
work carried out by Mr. Nirmal Pareek with enrolment no. 18crc under
my guidance.

The matter embodied in this project is genuine work done by the


student and has not been submitted whether to this University or to any
other University / Institute for the fulfillment of the requirements of any
course of study.

Signature of the Student: Signature of the Guide


Date: Date:

Nirmal Pareek Nirmal Pareek


Trainee Cum Developer
Jaipur Nirmal Technologies

The RTU University

Page 2
Mansarovar, Jaipur

DECLARATION BY THE CANDIDATE

I hereby declare that the project entitled, “Human Resource

Management System ”is a bonafide genuine research work carried

out by me under the guidance of

Student’s Name

Nirmal Pareek
Date:

Place:

Acknowledgement

Page 3
This project would not have been possible without the support of many people. We
take this opportunity to express our sincere thanks and deep gratitude to all those
people who extended their wholehearted co-operation and have helped us in
completing this project successfully.

We would like to express our heart full gratitude towards our guide, for her advice
and guidance for the successful completion of this project. Her inspiring suggestions
and timely guidance enabled me to perceive the various aspects of the project in a
new light.

We would also like to extend our sincere thanks to the staff of MCA department for
their invaluable help and support.

Finally, we take this opportunity to mention our sincere thanks to one and all those
who helped us directly or indirectly for the completion of our project.

Table Of Contents

Page 4
CHAPTER 1 : INTRODUCTION

1.1 Company/Educational Institute Profile


1.2 Existing System and Need for System
1.3 Scope of Work
1.4 Operating Environment – Hardware and Software

CHAPTER 2: PROPOSED SYSTEM

2.1 Proposed System


2.2 Objectives of System
2.3 User Requirements

CHAPTER 3: ANALYSIS & DESIGN

3.1 Entity Relationship Diagram (ERD)


3.2 System Architecture
3.3 Database Requirements & User Interfaces
3.4 Data Flow Diagram (DFD)
3.5 Data Dictionary
3.6 Table Design
3.7Menu Screens
3.8Test Procedures and Implementation

4.1 CHAPTER 4: Forms and Report Specifications

Drawbacks and Limitations

Proposed Enhancements

Conclusions

Bibliography

Annexures:
Annexure 1: Input Forms with data
Annexure 2: Output Reports with Data
Annexure 3: Sample Code

1.INTRODUCTION

Page 5
HUMAN RESOURCE MANAGEMENT SYSTEM is an efficient and effective management
of “Human Capital” has progressed to an increasingly imperative and complex process. It
consists of three parts admin, hr, employee. The HRMS function also consists of tracking
existing employee data which traditionally includes personal histories, skills, capabilities,
accomplishments salary, and leave information. The Admin’s right is to register the new
candidate through interview, add designations, add departments, add salary, add leaves, add
vacancies, add companies events, add project.
Successful employee management and leadership promote employee engagement, employee
motivation, employee development, and employee retention. The existing system leads to
many errors like data redundancy, data inconsistency, and also much more paper work that
wastes valuable time and money. Keeping this in mind we are developing a software named
as “HRMS” which is very user friendly.
A “human resource category” is a way of classifying skills that is useful in matching resource
requirements to particular people when developing the human resource plan for a project. The
Human resource plan contains for each human resource category, information such as:
1. Admin
 Manage interviews
 Manage salary
 Manage employees
 Manage vacancy
 Manage departments
 Manage designations
 Manage events
 Manage projects
 Manage leave
2. HR
 View interviews
 View salary
 View employees
 View vacancy
 View departments
 View designations
 View events
 View leave
3. Employee
 View details
 View personal details
 View salary
 View leave
 Apply leave
 Add additional details

1.1 Company/Educational Institute Profile


Dotsquares Academy is an advance placement program is a special endeavor by

Page 6
Dotsquare offers Unique Onshore Recruitment Oriented Programs for Professional
Metamorphosis & Career Transformation. The program is to meant to develop
professional through Internship program that is being taught by Real Time Industry
Experts having 8-10 Years of Experience. APP (Advanced Placement Program) aims to
nurture the fresh talent to transform them into high quality developers.

The students are taught by the industry experts in the areas like business ethics, on floor
work experience, live project handling and client management skill. The knowledge
instilled would work like an added advantage and leverage against the cut throat
competitions of today’s times.

APP is the prime learning opportunity for the aspirants and to be taught by the active
project managers who like gold mines of expertise & experience & experience is
definitely a never before opportunity.

1.2 Existing System and Need for System


In the current system, there are three modules such as, admin, hr, employee. The Admin first
login with his/ her username and password. His work is to add designations, departments,
leave and salary of employees, adding of vacancies, events , projects and taking interviews of
employees etc. Second is the HR of the company who first login with his/ her username and
password. He/ she views personal details of employees, interview details, event, project,
designations, departments, vacancies etc. Then comes the employees who can see their
personal detail, can add additional details, view their salaries and leaves, can also apply their
leaves etc. HRMS reduces the paper work and is user friendly. It makes the work of HR and
employees easy.

1.3 Scope of Work


Every application has its own merits and demerits. The project has covered almost all the
requirements. Further requirements and improvements can easily be done since the coding is
mainly structured or modular in nature. Changing the existing modules or adding new
modules can append improvements. Further enhancements can be made to the application, so
that the web site functions very attractive and useful manner than the present one.
This project HUMAN RESOURCE MANAGEMENT SYSTEM deals with the member
addition process, edit, delete, search process for employee and salary details. This project is
successful in meeting the goals of this concern, where the manual system was not at their full
satisfaction. By computerizing , the accuracy of the data recording has increased. This system
provides precise enlistment of employee’s information. Data can be retrieved as and when
required.
It is concluded that the application works well and satisfy the company and students. The
application is tested very well and errors are properly debugged.
The site works according to the restrictions provided in their respective browsers. Further
enhancements can be made to the application, so that the web site functions very interactive
and useful to existing application .The application satisfies both the company and students by
eliminating more input.
The project must the end user requirements. Accuracy and fast must be imposed in the

Page 7
Project. The project is development as easy as possible for the sake of end user. The project
has to be developed with view of satisfying the future requirements and future enhancement.
The tool has been finally implemented satisfying the needs specified by the company. As per
the performance is concerned this system requires processing as well as time taken due to
large amount of data.
The system is designed in such a way that even when large amount of data used for
processing there would less performance degradation.
Any special skills required over and above those that people in the category would normally
be expected to have, as well as the required level of proficiency and the relative importance
of these skills. Every application has its own merits and demerits.
The project has covered almost all the requirements. Further requirements and improvements
can easily be done since the coding is mainly structured or modular in nature.
Changing the existing modules or adding new modules can append improvements. Further
enhancements can be made to the application, so that the web site functions very attractive
and useful manner than the present one.

1.4 Operating Environment-Hardware and Software

1.4.1 Hardware Requirements


The stranded input device like keyboard and mouse are to get input. The output will
be generated and display in the monitor. The reports can also be exported to a SQL-
server document are text file. The standard printer is used to take output.

Operating System : Windows/XP/7/8.


Front End : Microsoft Visual Studio Professional 2013.
Back End : SQL Server, SQL to LINQ.
Languages Used : C#.
1.4.2 Hardware Specification
Processor : x86 compatible processor
RAM : 512 MB or greater
Hard Disk : 20 GB or greater
Monitor : VGA/SVGA
Keyboard : 104 keys standard
Mouse : 3 buttons

1.4.3 Software Requirement


Operating System : Windows 8
Environment : Microsoft Visual Studio 2013 Professional
.Net Framework : Version 4.5

Page 8
Language : C#.Net
Web Technology : Asp.Net

2. PROPOSED SYSTEM

The proposed system solves problem elated to data accessing problems, because it helps the
user to add the details of the employee to the firm database easily, improving data recovery
speed, easy searching and also provide editing of data in the database.
The main feature of the project is to manage the records of the company’s employees. It
includes records such as, registration, adding of records, viewing of records. The three
modules of the HRMS maintains records of the company’s employees. The Admin maintains
the adding of records of new candidates. The Hr of the company views the necessary records
related to the company and the employees. The employee maintains its records by adding his/
her personal details, applying of leaves, view other records related to him/ her.
Advantages:
1. Very simple and easy to implement.
2 . Protection of data.
3. Ensure data accuracy.
4. Administrator discretion and control over the entire system.
5 . Reduces manual data entry.
6. Greater efficiency.
7. User friendly and attractive.
8. Less time consuming.
9. The proposed system has three modules:

 Admin
 HR
 Employee
 Login and logout(Admin, Hr, Employee)

2.1 Objectives of System


It is difficult to note down all the problems manually. Instead it is decided to develop an
““Development of the Human Resource Management System”” to ease the operation. A
system is required which is being capable of elimination all the problems and become useful
to jobseeker and thus the new system is derived. The company needs to manage the entire job
to be appointed and job seeker resumes details in a faster manner so that time is saved. The
user must exercise full control over these activities.

2.2 User Requirements

Page 9
Every user should be comfortable with the basic working of the computer. The user must
have the knowledge of English. The user must carry his/ her login ID and password to access
his/ her working for authentication. The login ID and password used for identification of
admin, hr, employee. The user of the application will be admin, hr and the employees of the
company. If the admin logins with his/ her username and password, then he/she would be
adding details regarding the employees of the company. If Hr logins with his/ her username
and password, then he/ she would be viewing the details of the employees and can take
interviews. If Employee logins with his/ her login username and password, then he/ she
would be viewing his/ her details and can also add his/ her details.

3.ANALYSIS & DESIGN


Design
Design is multi-step process that focuses on data structure software architecture, procedural
details, (algorithms etc.) and interface between modules. The design process also translates
the requirements into the presentation of software that can be accessed for quality before
coding begins.
Computer software design changes continuously as new methods; better analysis and broader
understanding evolved. Software Design is at relatively early stage in its revolution.
Therefore, Software Design methodology lacks the depth, flexibility and quantitative nature
that are normally associated with more classical engineering disciplines. However techniques
for software designs do exist, criteria for design qualities are available and design notation
can be applied.
To create project, add base masters and masters to the project, assign behaviors to the
master, create and assign behavior sets, and then apply, test and validate those behaviors.
All designing is done using the CSS, Html, JavaScript etc.

3.1 Entity Relationship Diagram


An entity-relationship diagram (ERD) is a graphical representation of an information system
that shows the relationship between people, objects, places, concepts or events within that
system. An ERD is a data modeling technique that can help define business processes and
can be used as the foundation for a relational database.
It is useful for organizing data that can be represented by a relational structure, an entity-
relationship diagram can't sufficiently represent semi-structured or unstructured data, and an
ERD is unlikely to be helpful on its own in integrating data into a pre-existing information
system.
Three main components of an ERD are the entities, which are objects or concepts that can
have data stored about them, the relationship between those entities, and the cardinality,
which defines that relationship in terms of numbers.
There are three cardinal relationships. The three main cardinal relationships are:

 One-to-One(1.1): For example, if each customer in a database is associated with one


mailing address.

 One-to-Many(1.M): For example, a single customer might place an order for

Page
10
multiple products. The customer is associated with multiple entities, but all those
entities have a single connection back to the same customer.

 Many-to-Many(M.N): For example, at a company where all call center agents work
with multiple customers, each agent is associated with multiple customers, and
multiple customers might also be associated with multiple agents.
For graphical representation following symbols are used:-
 Entity- Entities are represented by means of rectangles. Rectangles are named with
the entity set they represent.

 Attributes- Attributes are the properties of entities. Attributes are represented by


means of ellipses. Every ellipse represents one attribute and is directly connected to
its entity (rectangle)

If the attributes are composite, they are further divided in a tree like structure. Every node is
then connected to its attribute. That is, composite attributes are represented by ellipses that
are connected with an ellipse.
Multivalued attributes are depicted by double ellipse.

Derived attributes are depicted by dashed ellipse.

ER Diagram

Page
11
3.2 System Architecture

Page
12
Linq.dbml

Page
13
Page
14
3.3 Database Requirements & User Interfaces
Database Requirements
SQL stands for Structured Query Language. SQL lets us access and manipulate databases.
SQL is an ANSI (American National Standard Institute) standard. SQL can execute queries
against a database. SQL can retrieve data from the databases. SQL can insert, update, delete,
create new database, create new tables in databases, etc. in a database. SQL can stored
procedure in a database. SQL can also create views in a database, can set permissions on
tables, procedures, and views.
The database design is a must for any application developed especially more for the data
store projects. Since the chatting method involves storing the message in the table and
produced to the sender and receiver, proper handling of the table is a must.
In the project, login table is designed to be unique in accepting the username and the length
of the username and password should be greater than zero
The complete listing of the tables and their fields are provided in the annexure under the title
‘Table Structure’.
LINQ to SQL classes is used for few lines of coding. It helps in making coding easy to
understand. Its extension is (.dbml). In this tables that are in the database are dragged to the
window. LINQ-SQL class is used in the project. It offers an infrastructure (runtime) for the
management of relational data as objects. For asp.net developers, LINQ to SQL also known
as DLINQ is an electrifying part of Language Integrated Query as this allows quering data in
SQL server database by using usual LINQ expressions. It also allows to update, delete and
insert data, but the only drawback from which it suffers is its limitation to the SQL server
database. However, there are many benefits of LINQ to SQL over ADO.Net like reduced
complexity, few lines of code and many more.

User Interfaces
Hardware Interface
The stranded input device like keyboard and mouse are to get input. The output will be
generated and display in the monitor. The reports can also be exported to a SQL-server
document are text file. The stranded printer in used to take outputs.
Software Interface
The design part and interface is done using the front end as ASP.Net and SQL server as a
backend of the project.

3.4 Data Flow Diagram


The data flow diagram is one of the most improvement tools used by the system analyst
DeMacro (1978) Nad Gand Sarson (1979) popularized the use if the data flow diagram as
modeling tools through their structured system analysis methodologies.

Page
15
A data flow diagram should be the first tool used by system analyst to model system
components. These components are the system processes; the data used by this processes and
external entities that interact with the system and the information flows in the system.
There are four kinds of system components:
1.Process
Process show what system does. Each process has one or more data inputs and produce one
or more data output, Circles in a data flow diagram represent process. Each process has
unique name and number. This name and number appear inside the circle that represents the
processes in a data flow diagram.
This process is represented as circle.

Data Stores
File or data store is depositary of data. They contain data that is retained in the system.
Processes can enter the data into a data store or retrieve data from the data store. Each data
store is represented by thin line in the data flow diagram and each data store has a unique
name.
The data store is represented in form of a line

External Entities
External entities are outside the system but they either supply input data into the system or
use the system output, they are entities which the designer has no control. Square or
rectangle may represent external entities that supply data into a system or some times called
sources. External entities that use the system data are sometimes called sinks.

Page
16
Data Flows
Dataflow model the passage of data in the system and are represented lines joining system
components. An arrow indicates the direction of the flow and the line labeled by the name of
the data flow.

DFD Diagram
Admin Module

Page
17
Hr Module

Page
18
Employees Module

Page
19
3.5 Data Dictionary
A data dictionary is a collection of descriptions of the data objects or items in a data model
for the benefit of programmers and others who need to refer to them. A first step in analyzing
a system of objects with which users interact is to identify each object and its relationship to
other objects. This process is called data modeling and results in a picture of object
relationships.
After each data object or item is given a descriptive name, its relationship is described, the
type of data (such as text or image or binary value) is described, possible predefined values
are listed, and a brief textual description is provided. This collection can be organized for
In current project, SQL Server Management Studio is used for database requirements. SQL
Server Management Studio (SSMS) is a software application first launched with Microsoft
SQL Server 2005 that used for configuring, managing, and administering all components
within Microsoft SQL Server. The tool includes both script editors and graphical tools which
work with objects and features of the server.
SQL Server is used in the project. It is Microsoft’s Relational Database Management System
(RDBMS). It is a full featured database primarily designed to compete against competitors
Oracle database (DB) and MYSQL. Like, all major RDBMS , SQL Server supports ANSI
SQL, the standard SQL language.
LINQ-SQL class is used in the project. It offers an infrastructure (runtime) for the
management of relational data as objects. For asp.net developers, LINQ to SQL also known
as DLINQ is an electrifying part of Language Integrated Query as this allows quering data in
SQL server database by using usual LINQ expressions. It also allows to update, delete and
insert data, but the only drawback from which it suffers is its limitation to the SQL server
database. However, there are many benefits of LINQ to SQL over ADO.Net like reduced
complexity, few lines of code and many more.

3.6 Table Design


Table
A database is a collection of data about a specific topic.
3.6.1 Normalization:
Normalization is the process of strutting relational database schema such that most ambiguity
is removed. The stage of normalization are referred to as forms and progress from the least
restrictive(first normal form)through the most restrictive(Fifth normal form), generally , most
database designers do not attempt to implement anything higher then normal form of Boyce
code Normal Form.
3.6.2.1 First Normal Form
A relation is said to be in First normal form (INF) if and each attributed of the relation is
atomic. More simply, to be INF, each column must contain only a single value and each now
contain in the same column.
3.6.2.2 Second Normal Form

Page
20
In the Second normal Form, a relation must first fulfill the requirement to be in first Normal
Form. Additional, each donkey attribute in the relation must be functionality dependent upon
the primary key.
3.6.2.3 Third Normal Form
A table is said to be in third normal form and every non key attribute is functionality
dependent only on the primary key. This normalization process is applied to this system and
the normalized tables are given in the above section.

3.10 Menu Screens


Login Page

Admin home page

Page
21
MyAdministration

Add dept

Page
22
Add design

Add Interview

Page
23
Select Candidate

Add Employee

Page
24
Add Salary

Add Leave

Page
25
Add Event

Add Project

Page
26
Add Vacancy

Logout

Page
27
Hr login

Home Page

Page
28
My admin

View Department

Page
29
Edit Department

View Designation

Page
30
Edit designation

View Employee Details

Page
31
Edit Employee Details

View Interview Details

Page
32
Edit Interview Details

View Leave

Page
33
Edit Leave

View Salary

Page
34
Edit Salary

View Project

Page
35
Edit Project

View vacancy

Page
36
Edit Vacancy

View Event

Page
37
Edit Event

View EduDetails

Page
38
Home Page

Page
39
My Administration

View Employee Details

Page
40
Add Personal Details

Page
41
Apply Leave

View Employee Leave

Page
42
View Salary

View Project

Page
43
View Vacancy

View Personal Profile

Page
44
Page
45
4.Test Procedures and Implementation
System Testing
System testing involves user training system testing and successful running of the developed
proposed system. The user tests the developed system and changes are made according to
their needs. The testing phase involves the testing of developed system using various kinds of
data.
An elaborate testing of data is prepared and the system is tested using the test data. While
testing, errors are noted and the corrections are made. The corrections are also noted for the
future use. The users are trained to operate the developed system.

Testing
System testing is the stage of implementation that is aimed at ensuring that the system works
accurately and efficiently before live operation commences. Testing is vital to the success of
the system. System testing makes logical assumption that if all the parts of the system are
correct, then the goal will be successfully achieved. A series of testing are done for the
proposed system before the system is ready for the user acceptance testing.
The following are the types of Testing
1. Unit Testing
2. Integration Testing
3. Validation Testing
4. Verification testing
5. User acceptance testing

Unit Testing

Unit testing focuses verification efforts on the smallest unit of the software design, the
module. This is also known as “module testing”. The modules are tested separately. This
testing was carried out during programming stage itself. In this testing each module is found
to be working satisfactorily as regards to the expected output from the module.

Integration Testing

Data can be lost across an interface: one module can have adverse efforts on another.
Integration testing is the systematic testing for construction of program structure, while at the
same time conducting tests to uncover errors associated within the interface. Here correction
is difficult because the isolation of cause is complicated by the cast expense of the entire
program. Thus in the integration testing step, all the errors uncovered are corrected for the
next testing steps.

Page
46
Validation Testing

At the conclusion of integration testing, software is completely assembled as a package,


interfacing errors have been uncovered and corrected and a final series of software tests
begins validation test has been conducted one of the two possible conditions exists. One is the
function or performance characteristics confirm to specification and are accepted and the
other is deviation from specification is uncovered and a deficiency list is created.

Verification Testing
Verification is a fundamental concept in software design. This is the bridge between customer
requirements and an implementation that satisfies those requirements.
This is verifiable if it can be demonstrated that the testing will result in an implementation
that satisfies the customer requirements.
Inadequate testing or non-testing leads to errors that may appear few months later. This will
create two problems

 Time delay between the cause and appearance of the problem.


 The effect of the system errors on files and records within the system.

User Acceptance Testing

User acceptance testing of a system is the key factor of the success of any system. The system
under study is tested for the user acceptance by constantly keeping in touch with the
prospective system users at any time of developing and making changes whenever required.

4. Forms and Report Specifications


Software Requirements Specification (SRS) is the starting point of the software development
activity. Little importance was given to this phases in the early days of software development.
The emphasis was first on coding and then shifted to design.
As systems grew more complex, it become evident that the goal of the entire system cannot
be easily comprehended. Hence need for the requirements analysis phase arose. Now, for
large software systems, requirements analysis is perhaps the most difficult activity and also
the most error prone.
Some of the difficulty is due to the scope of this phase. The software project is imitated by
the client needs. In the beginning these needs are in the minds of various people in the client
organization. The requirement analyst has to identify the requirements by tacking to these
people and understanding there needs. In situations where the software is to automated a
currently manuals process, most of the needs can be understood by observing the current
practice.

Page
47
The SRS is a means of translating the ideas in the minds of the clients (the output) into formal
document (the output of the requirements phase). Thus the output of the phase is a set of
formally specified requirements, which hopefully are complete and consistent, while the
input has none of these properties.

Drawbacks and Limitations


 It has three accessing modes such as Admin, HR and the Employee.
 This website can be used by the management only.
 No other outsider can use this website.
 This website is desktop based.
 No other person can access the information until he/ she is the employee of the
company until they have the username and password provided to them by the
company admin.
 This website is not accessed on Android phones.
 This project can be updated and modified only on specific version of “Microsoft
Visual Studio 2013 Professional”.
 The database should be updated regularly.

Proposed Enhancements
 The project must the end user requirements. Accuracy and fast must be imposed in the
Project.
 The project is development as easy as possible for the sake of end user. The project
has to be developed with view of satisfying the future requirements and future
enhancement.
 The tool has been finally implemented satisfying the needs specified by the company.
 As per the performance is concerned this system requires processing as well as time
taken due to large amount of data.
 The system is designed in such a way that even when large amount of data used for
processing there would less performance degradation.
 Any special skills required over and above those that people in the category would
normally be expected to have, as well as the required level of proficiency and the
relative importance of these skills.
 Every application has its own merits and demerits.
 The project has covered almost all the requirements.
 Further requirements and improvements can easily be done since the coding is mainly
structured or modular in nature.
 Changing the existing modules or adding new modules can append improvements.
 Further enhancements can be made to the application, so that the web site functions
very attractive and useful manner than the present one.

Page
48
Conclusions
This project HUMAN RESOURCE MANAGEMENT SYSTEM deals with the member
addition process, edit, delete, search process for employee and salary details. This project is
successful in meeting the goals of this concern, where the manual system was not at their full
satisfaction. By computerizing , the accuracy of the data recording has increased. This system
provides precise enlistment of employee’s information. Data can be retrieved as and when
required.
It is concluded that the application works well and satisfy the company and students. The
application is tested very well and errors are properly debugged.
The site works according to the restrictions provided in their respective browsers. Further
enhancements can be made to the application, so that the web site functions very interactive
and useful to existing application .The application satisfies both the company and students by
eliminating more input.

Bibliography
 ASP.NET 3.5 Unleashed / Stephen Walther Publisher: Sams

 Programming ASP.NET 3.5 / Jesse Liberty, Dan Maharry, Dan Hurwitz Publisher:
O'Reilly Media, Inc.

 SQL for SQL Server- First Edition 2003; By Bryan Syverson

 An Introduction To Database- Bipin C. Desai

 SQL, PL / SQL- Second Revised Edittion; By Ivan Bayross

 https://www.wikepedia.com/dfd-diagram

 http://www.tutorialspoint.com/dbms/er_diagram_representation.htm

Annexures
HR (Admin)

Connection.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

public class Connection


{
LinqDataContext linq;
public Connection()
{

Page
49
linq = new LinqDataContext();
}
public List<interview> edit(int id)
{
var g = from x in linq.interviews.ToList()
where x.c_id.Equals(id)
select x;
return g.ToList();

}
public List<department> edit1(int id)
{
var f = from y in linq.departments.ToList()
where y.dept_id.Equals(id)
select y;
return f.ToList();
}
public List<designation> edit2(int id)
{
var a = from x in linq.designations.ToList()
where x.design_id.Equals(id)
select x;
return a.ToList();
}
public List<event1> edit3(int id)
{
var b = from x in linq.event1s.ToList()
where x.eve_id.Equals(id)
select x;
return b.ToList();
}

public List<leave> edit4(int id)


{
var d = from x in linq.leaves.ToList()
where x.id.Equals(id)
select x;
return d.ToList();

}
public List<project> edit5(int id)
{
var e = from x in linq.projects.ToList()
where x.proj_id.Equals(id)
select x;
return e.ToList();

public List<vacancy> edit6(int id)


{
var g = from x in linq.vacancies.ToList()
where x.vac_id.Equals(id)
select x;
return g.ToList();
}

public List<salary> edit7(int id)


{
var h = from x in linq.salaries.ToList()
where x.emp_id.Equals(id)
select x;

Page
50
return h.ToList();

}
public List<emp1> edit8(int id)
{
var i = from x in linq.emp1s.ToList()
where x.e_id.Equals(id)
select x;
return i.ToList();
}

public void insertdepart(string title, string descpt)


{
department obj = new department();
obj.dept_title = title;
obj.dept_descrpt = descpt;
linq.departments.InsertOnSubmit(obj);
linq.SubmitChanges();
}
public void insertdesignation(string title, string descpt)
{
designation obj1 = new designation();
obj1.design_title = title;
obj1.design_descrpt = descpt;
linq.designations.InsertOnSubmit(obj1);
linq.SubmitChanges();
}
public void insert3(string name, string ename, string date, string time, string
technology)
{
interview obj2 = new interview();
obj2.c_name = name;
obj2.e_name = ename;
obj2.interview_date = date;
obj2.interview_time = time;
obj2.tech = technology;
linq.interviews.InsertOnSubmit(obj2);
linq.SubmitChanges();

}
public List<emp1> showEmployee()
{
var getdata = linq.emp1s.ToList();
return getdata;
}
public List<department> showDepart()
{
var data = linq.departments.ToList();
return data;
}
public List<designation> showDesign()
{
var data1 = linq.designations.ToList();
return data1;
}

public List<emp1> showSal()


{
var sal1 = linq.emp1s.ToList();
return sal1;

Page
51
}

public void inupdate(string uname, string status)


{
interview i = new interview();
i = linq.interviews.Where(x => x.c_name.Equals(uname)).FirstOrDefault();
i.status = status;

linq.SubmitChanges();

}
public void insertvacancy(string title, int post, string descpt)
{
vacancy obj3 = new vacancy();
obj3.vac_title = title;
obj3.vac_post = post;
obj3.vac_descpt = descpt;
linq.vacancies.InsertOnSubmit(obj3);
linq.SubmitChanges();
}
public void insertproject(string title, string descpt)
{
project obj4 = new project();
obj4.proj_title = title;
obj4.proj_descpt = descpt;
linq.projects.InsertOnSubmit(obj4);
linq.SubmitChanges();
}
public void insertevant(string title, string date, string date1, string descpt)
{
event1 obj5 = new event1();
obj5.eve_title = title;
obj5.form_date = date;
obj5.to_date = date1;
obj5.eve_descpt = descpt;
linq.event1s.InsertOnSubmit(obj5);
linq.SubmitChanges();
}
public void addemployee(int id, string name, string dob, string gender, string
emailid, string contact, string t, string username, string pass, string cnfrmpass,
string type, string deprt, string degn)
{

emp1 emp = new emp1();


emp.candidate_id = id;
emp.Employee_name = name;
emp.DOB = dob;
emp.gender = gender;
emp.email_id = emailid;
emp.contact_no = contact;
emp.technology = t;
emp.username = username;
emp.password1 = pass;
emp.conf_pass = cnfrmpass;
emp.usertype = type;
emp.dept = deprt;
emp.design = degn;
linq.emp1s.InsertOnSubmit(emp);
linq.SubmitChanges();
}

Page
52
public void addsalary(int empid, string name, float amount, string d, string
month)
{
salary sal = new salary();
sal.emp_id = empid;
sal.emp_name = name;
sal.e_amount = amount;
sal.e_date = d;
sal.e_month = month;
linq.salaries.InsertOnSubmit(sal);
linq.SubmitChanges();

}
public void showid(int id, string cname, string ename, string date, string time,
string techno, string statuss)
{
interview i = new interview();
i = linq.interviews.Where(x => x.c_id == id).FirstOrDefault();
i.c_name = cname;
i.e_name = ename;
i.interview_date = date;
i.interview_time = time;
i.tech = techno;
i.status = statuss;
linq.SubmitChanges();

public List<emp1> showdata()


{
var data2 = linq.emp1s.ToList();
return data2;
}
public List<emp1> showemp(int empid)
{
var data2 = from x in linq.emp1s.ToList()
where x.e_id.Equals(empid)
select x;
return data2.ToList();
}

public List<leave> showemplev(int empid)


{
var d1 = from x in linq.leaves.ToList()
where x.employee_id.Equals(empid)
select x;
return d1.ToList();
}
//public List<EduDetail> showemplev(int empid)
//{
// var d1 = from x in linq.EduDetails.ToList()
// where x.employee_id.Equals(empid)
// select x;
// return d1.ToList();
//}
public List<salary> showemplsal(int empid)
{
var a = from x in linq.salaries.ToList()
where x.emp_id.Equals(empid)

Page
53
select x;
return a.ToList();
}

public List<salary> showemplallsal()


{
var a = from x in linq.salaries.ToList()
select x;
return a.ToList();
}

public List<EduDetail> showeprofile()


{
var data3 = linq.EduDetails.ToList();

return data3.ToList();
}

public void insertleave(int id, string name, string type, string status, string
fromdate, string todate, string descrptt)
{

leave lev = new leave();


lev.employee_id = id;
lev.e_name = name;
lev.l_type = type;
lev.l_status = status;
lev.from_date = fromdate;
lev.to_date = todate;
lev.description = descrptt;
linq.leaves.InsertOnSubmit(lev);
linq.SubmitChanges();
}

public List<emp1> showleave()


{
var le = linq.emp1s.ToList();
return le;
}
public List<emp1> eshowsalary()
{
var sal = linq.emp1s.ToList();
return sal;
}

public List<emp1> eshowleave()


{
var ln = linq.emp1s.ToList();
return ln;
}
public void updateinfo(int id, string cname, string ename, string date, string
time, string techno, string statuss)
{
interview obj = new interview();
obj = linq.interviews.Where(x => x.c_id.Equals(id)).FirstOrDefault();
obj.c_name = cname;
obj.e_name = ename;
obj.interview_date = date;
obj.interview_time = time;

Page
54
obj.tech = techno;
obj.status = statuss;
linq.SubmitChanges();

}
public void updatedepart(int id, string title, string descpt)
{
department dep = new department();
dep = linq.departments.Where(x => x.dept_id.Equals(id)).FirstOrDefault();
dep.dept_title = title;
dep.dept_descrpt = descpt;
linq.SubmitChanges();

}
public void updatedesign(int id, string title, string descpt)
{
designation des = new designation();
des = linq.designations.Where(x => x.design_id.Equals(id)).FirstOrDefault();
des.design_title = title;
des.design_descrpt = descpt;
linq.SubmitChanges();
}
public void updateevent(int id, string title, string date, string todate, string
descpt)
{
event1 eve = new event1();
eve = linq.event1s.Where(x => x.eve_id.Equals(id)).FirstOrDefault();
eve.eve_title = title;
eve.form_date = date;
eve.to_date = todate;
eve.eve_descpt = descpt;
linq.SubmitChanges();
}

public void updateleave(int id, int eid, string name, string type, string status,
string fromdate, string todate, string decpt)
{
leave lev = new leave();
lev = linq.leaves.Where(x => x.id.Equals(id)).FirstOrDefault();
lev.employee_id = eid;
lev.e_name = name;
lev.l_type = type;
lev.l_status = status;
lev.from_date = fromdate;
lev.to_date = todate;
lev.description = decpt;
linq.SubmitChanges();

public void updateproject(int id,string title,string decrpt)


{
project pro = new project();
pro = linq.projects.Where(x => x.proj_id.Equals(id)).FirstOrDefault();
pro.proj_title = title;
pro.proj_descpt = decrpt;
linq.SubmitChanges();

public void updatevacancy(int id,string title,int post,string descrpt)


{

Page
55
vacancy vac = new vacancy();
vac = linq.vacancies.Where(x => x.vac_id.Equals(id)).FirstOrDefault();
vac.vac_title = title;
vac.vac_post = post;
vac.vac_descpt = descrpt;
linq.SubmitChanges();
}

public void updatesalary(int emid, string name, float amount, string date, string
month)
{
salary sal = new salary();
sal = linq.salaries.Where(x => x.emp_id.Equals(emid)).FirstOrDefault();
sal.emp_id = emid;
sal.emp_name = name;
sal.e_amount = amount;
sal.e_date = date;
sal.e_month = month;
linq.SubmitChanges();
}
public void updateemp(int eid,string name,string edob,string gen,string
email,string contact,string tech,string type,string dpt,string dsgn)
{
emp1 emp = new emp1();
emp = linq.emp1s.Where(x => x.e_id.Equals(eid)).FirstOrDefault();
emp.e_id = eid;
emp.Employee_name = name;
emp.DOB = edob;
emp.gender = gen;
emp.email_id = email;
emp.contact_no = contact;
emp.technology = tech;
emp.usertype = type;
emp.dept = dpt;
emp.design = dsgn;
linq.SubmitChanges();
}

public void delemp(int empid)


{
emp1 objemp=new emp1();
var del=linq.emp1s.Where(x => x.e_id.Equals(empid)).FirstOrDefault();
linq.emp1s.DeleteOnSubmit(del);
linq.SubmitChanges();

}
public void applyleave(int id, string name, string type, string status, string
fromdate, string todate, string descrptt)
{

leave lev = new leave();


lev.employee_id = id;
lev.e_name = name;
lev.l_type = type;
lev.l_status = status;
lev.from_date = fromdate;
lev.to_date = todate;
lev.description = descrptt;
linq.leaves.InsertOnSubmit(lev);
linq.SubmitChanges();

Page
56
}
public void insertedudetails(int id,string tenboard,int tenyear,float
tenper,string tendiv,string twelthboard,int twelthyear,float twelthper,string
twelthdiv,string ugcourse,string ugunivercity,string ugcollage,int ugyear,float
ugper,string ugdiv,string pgcourse,string pgunivercity,string pgcollage,int
pgyear,float pgper,string pgdiv,string excourse,string exunivercity,string
excollage,int exyear,float exper,string exdiv)
{
//string excourse,string exunivercity,string excollage,int exyear,float
exper,string exdiv
EduDetail edu = new EduDetail();
edu.empid = id;
edu.ten_board = tenboard;
edu.ten_year = tenyear;
edu.ten_per = tenper;
edu.ten_div = tendiv;
edu.twelth_board = twelthboard;
edu.twelth_year = twelthyear;
edu.twelth_per = twelthper;
edu.twelth_div = twelthdiv;
edu.ug_course = ugcourse;
edu.ug_univercity = ugunivercity;
edu.ug_college = ugcollage;
edu.ug_year = ugyear;
edu.ug_per = ugper;
edu.ug_div = ugdiv;
edu.pg_course = pgcourse;
edu.pg_univercity = pgunivercity;
edu.pg_college = pgcollage;
edu.pg_year = pgyear;
edu.pg_per = pgper;
edu.pg_div = pgdiv;
edu.ex_course = excourse;
edu.ex_univercity = exunivercity;
edu.ex_college = excollage;
edu.ex_year = exyear;
edu.ex_per = exper;
edu.ex_div = exdiv;
linq.EduDetails.InsertOnSubmit(edu);
linq.SubmitChanges();

public List<EduDetail> showeprofile(int empid)


{
var data = from x in linq.EduDetails.ToList()
where x.empid.Equals(empid)
select x;
return data.ToList();
}
}

<script type="text/javascript" src="js/cufon-yui.js"></script>

<script type="text/javascript" src="js/cufon-georgia.js"></script>


<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/coin-slider.min.js"></script>

Page
57
<style type="text/css">
#one
{
background-color:white;
}
</style>
</head>
<body>

<form id="form1" runat="server">

<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo">
<h1><a href="index.html"><span>HRMS</span> <small>A complete solution for
managing Employees</small></a></h1>
</div>
<%-- <div align="right" id="two">

<asp:Label ID="Label1" runat="server" Text=""></asp:Label>


<asp:Button ID="Button1" runat="server" Text="Logout"
OnClick="Button1_Click1" />
</div>--%>

<div class="menu_nav">
<ul>
<li class="Active"><a href="home.aspx"><span>Home</span></a></li>
<li><a href="About.aspx"><span>About Us</span></a></li>
<li><a href="Options.aspx"><span>MyAdministration</span></a></li>
<li><a href="signin.aspx"><span>UserLogin</span></a></li>

</ul>
</div>

<div class="clr"></div>

</div>
</div>
</div>

<div align="center" id="one">

<h2 align="center">Login</h2>

<asp:TextBox ID="TextBox1" runat="server" placeholder="Username"></asp:TextBox><br


/><br />

<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"


placeholder="Password"></asp:TextBox><br /><br />

<asp:Button ID="Button2" runat="server" Text="Login" OnClick="Button1_Click" /><br


/><br />

</div>

Page
58
<div class="fbg">
<div class="fbg_resize">
<div class="col c1">
<h2><span>Employees</span> Gallery</h2>
<a href="#"><img src="img/image1.jpg" width="75" height="75" alt=""
class="gal"/> </a> <a href="#"><img src="img/image2.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image3.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image4.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image5.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image6.jpg" width="75" height="75" alt=""
class="gal" /></a> </div>
<div class="col c2">
<h2><span>HRMS</span> Overview</h2>
<p>Human Resource Management (HRMS or HR) is the manangement of human
resources in the organisations.It is primarily concerned with the management of people
within organisations,focusing on policies and on systems.
<%--Curabitur sed urna id nunc pulvinar semper. Nunc sit amet tortor sit
amet lacus sagittis posuere cursus vitae nunc.Etiam venenatis, turpis at eleifend
porta, nisl nulla bibendum justo.--%></p>
<ul class="fbg_ul">
<li><a href="#">Managing Employees<%--Lorem ipsum dolor labore--%> </a></li>
<li><a href="#">Managing Salary<%--Excepteur officia deserunt.--%></a></li>
<li><a href="#">Managing Interviews<%--Integer tellus ipsum tempor sed.--
%></a></li>
<li><a href="#">Managing Leave<%--Integer tellus ipsum tempor sed.--
%></a></li>
</ul>
</div>
<div class="col c3">
<h2><span>Contact</span> Us</h2>
<p>For any queries we have provided our contact details.Below are the
details:-<%--Nullam quam lorem, tristique non vestibulum nec, consectetur in risus.
Aliquam a quam vel leo gravida gravida eu porttitor dui.--%></p>
<p class="contact_info"> <span>Address:</span> Dotsquares Academy, Jaipur<br
/>
<span>Mobile No:</span>7742318332<br />
<%--<span>FAX:</span> +458-4578<br />--%>
<%-- <span>Others:</span> +301 - 0125 - 01258<br />--%>
<span>E-mail:</span> <a href="#">prableennanray@gmail.com</a> </p>
</div>
<div class="clr"></div>
</div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="lf"><center>&copy; Copyright 2017 MyWebSite</center></p>
<%-- <p class="rf">Design by Dream <a href="http://www.dreamtemplate.com/">Web
Templates</a></p>
<div style="clear:both;"></div>--%>
</div>
</div>

<%--<div align="center">This template downloaded form <a href='http://all-free-


download.com/free-website-templates/'>free website templates</a></div>--%>

Page
59
</form>
</body>
</html>

Signin.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class signin : System.Web.UI.Page


{

LinqDataContext linq = new LinqDataContext();


Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();

}
protected void Button1_Click(object sender, EventArgs e)
{
string uname = TextBox1.Text;
string pass = TextBox2.Text;

var log = from a in linq.emp1s


where a.username.Equals(uname)
&& a.password1.Equals(pass)
select a;
foreach (var data in log)
{
Session["empid"] = data.e_id;
Session["username"] = data.username;
Session["userpass"] = data.password1;
Session["utype"] = data.usertype;
if (Session["utype"].Equals("admin"))
{
Response.Redirect("home.aspx");
}
else
if (Session["utype"].Equals("hr"))
{
Response.Redirect("human%20Resource/home.aspx");
}
else
if (Session["utype"].Equals("Employee"))
{
Response.Redirect("Employee/home.aspx");
}

}
}

Page
60
MasterPage.aspx
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs"
Inherits="MasterPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link href="css/StyleSheet.css" rel="stylesheet" type="text/css" />


<link rel="stylesheet" type="text/css" href="css/coin-slider.css" />

<script type="text/javascript" src="js/cufon-yui.js"></script>

<script type="text/javascript" src="js/cufon-georgia.js"></script>


<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<script type="text/javascript" src="js/coin-slider.min.js"></script>
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>

<form id="form1" runat="server">

<div class="main">
<div class="header">
<div class="header_resize">
<div class="logo">
<h1><a href="index.html"><span>HRMS</span> <small>A complete solution for
managing Employees</small></a></h1>
</div>
<%-- <div align="right" id="two">

<asp:Label ID="Label1" runat="server" Text=""></asp:Label>


<asp:Button ID="Button1" runat="server" Text="Logout"
OnClick="Button1_Click1" />
</div>--%>

<div class="menu_nav">
<ul>
<li class="Active"><a href="home.aspx"><span>Home</span></a></li>
<li><a href="About.aspx"><span>About Us</span></a></li>
<li><a href="Options.aspx"><span>MyAdministration</span></a></li>
<li><a href="Login.aspx"><span>UserLogin</span></a></li>

</ul>
</div>

<div class="clr"></div>
<asp:Label ID="Label2" runat="server" Text=""></asp:Label>

Page
61
<asp:Button ID="Button1" runat="server" Text="Logout"
OnClick="Button1_Click" />

</div>
</div>
</div>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>
<div class="fbg">
<div class="fbg_resize">
<div class="col c1">
<h2><span>Employees</span> Gallery</h2>
<a href="#"><img src="img/image1.jpg" width="75" height="75" alt=""
class="gal"/> </a> <a href="#"><img src="img/image2.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image3.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image4.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image5.jpg" width="75" height="75" alt=""
class="gal" /></a> <a href="#"><img src="img/image6.jpg" width="75" height="75" alt=""
class="gal" /></a> </div>
<div class="col c2">
<h2><span>HRMS</span> Overview</h2>
<p>Human Resource Management (HRMS or HR) is the manangement of human
resources in the organisations.It is primarily concerned with the management of people
within organisations,focusing on policies and on systems.
<%--Curabitur sed urna id nunc pulvinar semper. Nunc sit amet tortor sit
amet lacus sagittis posuere cursus vitae nunc.Etiam venenatis, turpis at eleifend
porta, nisl nulla bibendum justo.--%></p>
<ul class="fbg_ul">
<li><a href="#">Managing Employees<%--Lorem ipsum dolor labore--%> </a></li>
<li><a href="#">Managing Salary<%--Excepteur officia deserunt.--%></a></li>
<li><a href="#">Managing Interviews<%--Integer tellus ipsum tempor sed.--
%></a></li>
<li><a href="#">Managing Leave<%--Integer tellus ipsum tempor sed.--
%></a></li>
</ul>
</div>
<div class="col c3">
<h2><span>Contact</span> Us</h2>
<p>For any queries we have provided our contact details.Below are the
details:-<%--Nullam quam lorem, tristique non vestibulum nec, consectetur in risus.
Aliquam a quam vel leo gravida gravida eu porttitor dui.--%></p>
<p class="contact_info"> <span>Address:</span> Dotsquares Academy, Jaipur<br
/>
<span>Mobile No:</span>7742318332<br />
<%--<span>FAX:</span> +458-4578<br />--%>
<%-- <span>Others:</span> +301 - 0125 - 01258<br />--%>
<span>E-mail:</span> <a href="#">prableennanray@gmail.com</a> </p>
</div>
<div class="clr"></div>
</div>
</div>
<div class="footer">
<div class="footer_resize">
<p class="lf"><center>&copy; Copyright 2017 MyWebSite</center></p>
<%-- <p class="rf">Design by Dream <a href="http://www.dreamtemplate.com/">Web
Templates</a></p>
<div style="clear:both;"></div>--%>
</div>
</div>

Page
62
<%--<div align="center">This template downloaded form <a href='http://all-free-
download.com/free-website-templates/'>free website templates</a></div>--%>

</form>
</body>
</html>

MasterPage.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage


{
protected void Page_Load(object sender, EventArgs e)
{

protected void Button1_Click(object sender, EventArgs e)


{
Session.Abandon();
Session.Clear();
Response.Redirect("signin.aspx");

}
}

Coin slider.css
/*
Coin Slider jQuery plugin CSS styles
http://workshop.rs/projects/coin-slider
*/
.coin-slider {
padding:0;
overflow:hidden;
zoom:1;
position:relative;
float:right;
}
.coin-slider a {
text-decoration:none;
outline:none;

Page
63
border:none;
}
/* buttons for switching */
.cs-buttons {
margin:12px 0 0;
padding:0;
font-size:0;
float:left;
}
.cs-buttons a {
margin:0 2px;
width:20px;
height:20px;
float:left;
color:#fff;
text-indent:-10000px;
background:url(../images/slide_p.png) no-repeat center center;
}
.cs-buttons a.cs-active {
color:#fff;
background-image:url(../images/slide_a.png);
}
/* text in slider */
.cs-title {
padding:16px 60px 16px 24px;
width:876px;
color:#fff;
font-size:15px;
line-height:1.5em;
background:url(../images/overlay.png) repeat left top;
}
.cs-title big {
font-size:20px;
}
/* buttons Next and Prew */
.cs-prev, .cs-next {
background:url(../images/overlay.png) repeat left top;
color:#fff;
padding:0px 10px;
}

StyleSheet.css

/* Design by http://www.dreamtemplate.com */
@charset "utf-8";
body {
margin:0;
padding:0;
width:100%;
color:#6e6e6e;
font:normal 12px/1.5em "Liberation sans", Arial, Helvetica, sans-serif;
background:#f8f8f8 url(../images/main_bg.gif) repeat-x left top;
}
html, .main {
padding:0;
margin:0;
}
.main {
background:url(../images/header_bg.gif) repeat-x left 554px;
}
.clr {
clear:both;

Page
64
padding:0;
margin:0;
width:100%;
font-size:0;
line-height:0;
}
h2 {
margin:8px 0;
padding:8px 0;
font-size:25px;
font-weight:bold;
color:#232323;
}
p {
margin:8px 0;
padding:0 0 8px 0;
}
a {
color:#58a1b3;
text-decoration:underline;
}
.header, .content, .menu_nav, .fbg, .footer, form, ol, ol li, ul, .content .mainbar,
.content .sidebar {
margin:0;
padding:0;
}
.header {
}
.header_resize {
margin:0 auto;
padding:0;
width:960px;
}
.logo {
padding:0;
float:left;
width:auto;
height:140px;
}
h1 {
margin:0;
padding:50px 0 0;
font-size:40px;
font-weight:normal;
line-height:1.2em;
text-transform:uppercase;
}
h1 a, h1 a:hover {
color:#fff;
text-decoration:none;
}
h1 span {
}
h1 small {
display:block;
font-size:12px;
line-height:1.2em;
letter-spacing:normal;
text-transform:uppercase;
color:#fff;
}
.slider {

Page
65
padding:0;
background:no-repeat left bottom;
}
.rss {
padding:18px 20px 0 0;
float:right;
width:auto;
}
.rss p {
margin:0;
padding:0;
float:right;
width:auto;
color:#fff;
font-size:13px;
line-height:1.5em;
font-weight:bold;
}
.rss a {
color:#fff;
text-decoration:none;
}
.rss a:hover {
text-decoration:underline;
}
.rss img {
margin:-3px 0 -3px 6px;
border:none;
}
.menu_nav {
margin:0 auto;
padding:0;
float:right;
}
.menu_nav ul {
list-style:none;
padding:62px 0 0;
float:left;
}
.menu_nav ul li {
margin:0;
padding:0;
float:left;
}
.menu_nav ul li a {
display:block;
margin:0;
padding:5px 10px;
font-size:15px;
line-height:20px;
font-weight:normal;
color:#fff;
text-decoration:none;
text-transform:uppercase;
}
.menu_nav ul li.active a {
text-decoration:none;
color:#fff;
}
.menu_nav ul li a:hover {
text-decoration:underline;
color:#fff;

Page
66
}
.content {
padding:40px 0 24px;
}
.content_resize {
margin:0 auto;
padding:0;
width:960px;
}
.content .mainbar {
margin:0;
padding:0;
float:left;
width:620px;
}
.content .mainbar h2 {
margin-bottom:0;
padding-bottom:8px;
font-size:30px;
line-height:1.2em;
color:#353c3e;
}
.content .mainbar div.img {
padding:12px 0 0;
float:left;
}
.content .mainbar img {
}
.content .mainbar img.fl {
}
.content .mainbar .article {
margin:0 0 32px;
padding:0 0 16px;
background:url(../images/dash.gif) repeat-x left bottom;
}
.content .mainbar .post_content {
float:right;
width:auto;
}
.content .mainbar .post_content strong {
color:#3f3f3f;
}
.content .sidebar {
padding:0;
float:right;
width:260px;
}
.content .sidebar .gadget {
margin:0 0 12px;
padding:12px 20px 24px 0;
}
.content .sidebar h2 {
color:#232323;
}
ul.sb_menu, ul.ex_menu {
margin:0;
padding:0;
list-style:none;
color:#959595;
}
ul.sb_menu li, ul.ex_menu li {
margin:0;

Page
67
}
ul.sb_menu li {
padding:4px 0;
width:220px;
}
ul.ex_menu li {
padding:4px 0;
}
ul.sb_menu li a {
color:#9a9a9a;
text-decoration:none;
margin-left:-16px;
padding:4px 8px 4px 16px;
}
ul.ex_menu li a {
font-weight:bold;
color:#161616;
text-decoration:none;
}
ul.sb_menu li a:hover, ul.ex_menu li a:hover {
color:#58a1b3;
font-weight:bold;
text-decoration:none;
}
p.spec {
padding:0 0 16px;
}
p.infopost {
margin-bottom:8px;
padding:6px 0 6px 12px;
color:#6e6e6e;
background:#fff;
border:1px solid #f2f2f2;
}
p.infopost a {
padding:0 2px;
color:#6e6e6e;
text-decoration:underline;
}
p.infopost a.com {
display:block;
float:right;
margin:-10px 0;
padding:10px 0 0;
width:106px;
height:28px;
font-weight:normal;
text-decoration:none;
color:#fff;
font-size:30px;
text-align:center;
background:url(../images/comment.gif) no-repeat left top;
}
p.infopost a.com:hover {
text-decoration:none;
}
p.infopost a.com span {
font-weight:normal;
}
.content .mainbar .post_content a.rm {
float:left;
font-weight:normal;

Page
68
color:#58a1b3;
text-decoration:underline;
}
.content p.pages {
margin:0;
padding:24px 0;
font-size:11px;
color:#929292;
text-align:left;
background:repeat-x left top;
}
.content p.pages span, .content p.pages a {
padding:8px 12px;
text-decoration:none;
}
.content p.pages span, .content p.pages a:hover {
color:#fff;
background:#58a1b3;
border:1px solid #58a1b3;
}
.content p.pages a {
color:#929292;
border:1px solid transparent;
}
.content p.pages small {
font-size:12px;
float:right;
}
.content .mainbar .comment {
margin:0;
padding:16px 0 0 0;
}
.content .mainbar .comment img.userpic {
border:1px solid #dedede;
margin:10px 16px 0 0;
padding:0;
float:left;
}
.fbg {
padding:16px 0;
background:#1c1c1c url(../images/fbg_bg.gif) repeat-x left top;
}
.fbg_resize {
margin:0 auto;
width:960px;
padding:16px 0;
color:#929292;
}
.fbg h2 {
color:#868686;
padding-bottom:24px;
}
.fbg img.gal {
margin:0 8px 8px 0;
padding:0;
background-color:#fff;
border:1px solid #dfdfdf;
}
.fbg .col {
margin:0;
float:left;
}

Page
69
.fbg .c1 {
padding:0 16px 0 0;
width:280px;
}
.fbg .c2 {
padding:0 36px 0 16px;
width:300px;
}
.fbg .c3 {
padding:0 0 0 16px;
width:294px;
}
.fbg .fbg_ul {
margin:0;
padding:0;
list-style:none;
}
.fbg .fbg_ul li {
margin:0;
padding:0;
list-style:none;
}
.fbg .fbg_ul li a {
display:block;
margin:0;
padding:2px 0 2px 12px;
color:#929292;
text-decoration:none;
background:url(../images/li.gif) no-repeat left center;
}
.fbg .fbg_ul li a:hover {
color:#58a1b3;
text-decoration:underline;
}
.fbg p.contact_info {
line-height:1.8em;
}
.fbg p.contact_info a {
color:#58a1b3;
text-decoration:underline;
}
.fbg p.contact_info span {
display:block;
float:left;
width:74px;
font-weight:bold;
color:#f8f8f8;
}
ol {
list-style:none;
}
ol li {
display:block;
clear:both;
}
ol li label {
display:block;
margin:0;
padding:16px 0 0 0;
}
ol li input.text {
width:480px;

Page
70
border:1px solid #c0c0c0;
margin:0;
padding:5px 2px;
height:16px;
background-color:#fff;
}
ol li textarea {
width:480px;
border:1px solid #c0c0c0;
margin:0;
padding:2px;
background-color:#fff;
}
ol li .send {
margin:16px 0 0 0;
}
.searchform {
padding:0;
float:left;
}
#formsearch {
margin:0;
padding:16px 0 24px;
width:auto;
height:30px;
}
#formsearch span {
display:block;
margin:0;
padding:0;
float:left;
background:url(../images/search_bg.gif) no-repeat left top;
}
#formsearch input.editbox_search {
margin:0;
padding:8px 6px;
float:left;
width:170px;
font-size:12px;
line-height:14px;
color:#a8acb2;
background:none;
outline:none;
border:none;
}
#formsearch input.button_search {
margin:0;
padding:0;
border:none;
float:left;
}
.footer {
background:#1c1c1c url(../images/footer_bg.gif) repeat-x left bottom;
}
.footer_resize {
margin:0 auto;
padding:12px 0;
width:960px;
line-height:1.5em;
color:#6b6b6b;
background:url(../images/dash_footer.gif) repeat-x left top;
}

Page
71
.footer_resize p {
margin:24px 0;
padding:0;
line-height:normal;
white-space:nowrap;
text-indent:inherit;
}
.footer_resize a {
color: #f8f8f8;
font-weight: normal;
margin: 0;
padding: 0;
border: none;
text-decoration: underline;
background-color: transparent;
}

.footer_resize a:hover {
color:#f8f8f8;
background-color:transparent;
text-decoration:none;
}
.footer_resize .lf {
float:left;
}
.footer_resize .rf {
float:right;
}
a {
outline:none;
}

AddDept.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="AddDept.aspx.cs" Inherits="AddDept" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">
<h2 align="center">Add Department</h2>
<table align="center">
<tr>
<td>Department Title</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Enter
department Title"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="enter department title"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td></td>
</tr>

Page
72
<tr>
<td>Description</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"
placeholder="Enter Description"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="enter description"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>
</tr>
</table>
<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />
</div>
<div>
<asp:Button ID="Button2" runat="server" Text="Back" OnClick="Button2_Click" />
</div>

</div>

</asp:Content>

AddDept.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddDept : System.Web.UI.Page


{

LinqDataContext linq = new LinqDataContext();


Connection con;

protected void Page_Load(object sender, EventArgs e)


{

con = new Connection();

}
protected void Button1_Click(object sender, EventArgs e)
{
string title = TextBox1.Text;
string descpt = TextBox2.Text;
con.insertdepart(title, descpt);
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Options.aspx");
}
}

AddDesignation.aspx

Page
73
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="AddDesignation.aspx.cs" Inherits="AddDesignation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">
<h2 align="center">Add Designation</h2>
<table align="center">
<tr>
<td>Designation Title</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Enter
Designation Title"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="Enter designation title"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Description</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"
placeholder="Enter Description"></asp:TextBox></td>
<td> <asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="Enter description"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>
</tr>
</table>
<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />
</div>

</div>
</asp:Content>

AddDesignation.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddDesignation : System.Web.UI.Page


{

Page
74
LinqDataContext linq = new LinqDataContext();
Connection con;

protected void Page_Load(object sender, EventArgs e)


{

con = new Connection();

protected void Button1_Click(object sender, EventArgs e)


{
string title = TextBox1.Text;
string descpt = TextBox2.Text;
con.insertdesignation(title, descpt);
}
}

AddInterview.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="AddInterview.aspx.cs" Inherits="AddInterview" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">
<h2 align="center">Add Interview</h2>
<table align="center">

<tr>
<td>Candidate Name</td>
<td><asp:TextBox ID="TextBox1" runat="server" placeholder="enter
Interviee Name"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="enter candidate name"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>Emp Name</td>
<td>
<asp:DropDownList ID="DropDownList1"
runat="server"></asp:DropDownList></td>
<%-- <asp:DropDownList ID="ddlempname" runat="server">

</asp:DropDownList></td>--%>
<td>

Page
75
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="enter Emp name"
ControlToValidate="DropDownList1"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Interview Date</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" placeholder="Enter
Interview Date"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ErrorMessage="enter Interview Date"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>Interview Time</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" placeholder="Enter
Interview Time"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ErrorMessage="enter Interview Time"
ControlToValidate="TextBox3"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Technology</td>
<td>
<asp:DropDownList ID="DropDownList2" runat="server">
<asp:ListItem>Asp.Net</asp:ListItem>
<asp:ListItem>Java</asp:ListItem>
<asp:ListItem>Php</asp:ListItem>
<asp:ListItem>Web Development</asp:ListItem>
<asp:ListItem>HR</asp:ListItem>
<asp:ListItem>IOS</asp:ListItem>
</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server" ErrorMessage="enter technology"
ControlToValidate="DropDownList2"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>

</table>
<br />

Page
76
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click"
/>

</div>

</div>

</asp:Content>

AddInterview.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddInterview : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();
if(!IsPostBack)
{
var dropdown = con.showEmployee();
DropDownList1.DataSource = dropdown;
DropDownList1.DataTextField = "Employee_name";
DropDownList1.DataValueField = "Employee_name";
DropDownList1.DataBind();
DropDownList1.Items.Insert(0, "--select one--");

}
}
protected void Button1_Click(object sender, EventArgs e)
{
string name = TextBox1.Text;
string ename = DropDownList1.SelectedValue;
string date = TextBox2.Text;
string time = TextBox3.Text;
string technology = DropDownList2.SelectedValue;
con.insert3(name, ename, date, time, technology);
Session["name"] = name;

Response.Redirect("Candidate.aspx");

Candidate.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="Candidate.aspx.cs" Inherits="Candidate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

Page
77
<style type="text/css">
#one
{
background-color:white;
}
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">
<h2 align="center">&nbsp;Candidate</h2>
<table align="center">

<tr>
<td>Candidate Id</td>
<td>
<asp:Label ID="Label1" runat="server"
Text="Label"></asp:Label></td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td>Candidate Name</td>
<td><asp:Label ID="Label2" runat="server"
Text="Label"></asp:Label></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Type</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="1">Selected</asp:ListItem>
<asp:ListItem Value="2">Rejected</asp:ListItem>
<asp:ListItem Value="3">On Hold</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td></td>
</tr>

</table>
<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />

</div>

</div>

</asp:Content>

Page
78
Candidate.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Candidate : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();

if (Session["name"]!=null)
{
if(!IsPostBack)
{
Label2.Text = Session["Name"].ToString();
var x = (from can in linq.interviews
where can.c_name.Equals(Session["name"])
select can).FirstOrDefault();
Label1.Text = (x.c_id).ToString();
}

}
}
protected void Button1_Click(object sender, EventArgs e)
{
con = new Connection();
Label2.Text = Session["Name"].ToString();
string status = DropDownList1.SelectedItem.Text;
con.inupdate(Label2.Text,status);
if (DropDownList1.SelectedItem.Value == "1")
{
Response.Redirect("AddEmployee.aspx");
}
else
{
Response.Redirect("home.aspx");
}

AddEmployee.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="AddEmployee.aspx.cs" Inherits="AddEmployee" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center" id="one">

Page
79
<h2 align="center">Add Employee</h2>
<table>
<tr>
<td>Candidate Id</td>
<td>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>

</td>
</tr>
<tr>
<td></td>
</tr>

<tr>
<td>Employee Name</td>
<td>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</td>
</tr>

<tr>
<td></td>
</tr>
<tr>
<td>DOB</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" Placeholder="Enter
DOB"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="Enter DOB"
ControlToValidate="TextBox4"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Gender</td>
<td>
<asp:RadioButtonList ID="RadioButtonList1" runat="server"
RepeatDirection="Horizontal" Width="130px">
<asp:ListItem>Male</asp:ListItem>
<asp:ListItem>FEMALE</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Email Id</td>
<td>
<asp:TextBox ID="TextBox5" runat="server" Placeholder="Enter
Email"></asp:TextBox>
</td>
<td>

Page
80
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="Enter Emailid"
ControlToValidate="TextBox5"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Contact No</td>
<td>
<asp:TextBox ID="TextBox6" runat="server" TextMode="Number"
Placeholder="Enter Phone Number"></asp:TextBox>
</td>

<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ErrorMessage="Enter Contactno."
ControlToValidate="TextBox6"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>

<tr>
<td>Technology</td>

<td>
<asp:Label ID="tech" runat="server" Text="Label"></asp:Label>
</td>

</tr>
<tr>
<td></td>
</tr>

<tr>
<td>Username</td>
<td>
<asp:TextBox ID="TextBox8" runat="server" Placeholder="Enter
Username"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ErrorMessage="Enter user name"
ControlToValidate="TextBox8"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Password</td>
<td>
<asp:TextBox ID="TextBox9" runat="server" TextMode="Password"
Placeholder="Enter Password"></asp:TextBox>

Page
81
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server" ErrorMessage="Enter Password"
ControlToValidate="TextBox9"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Confirm Password</td>
<td>
<asp:TextBox ID="TextBox10" runat="server" TextMode="Password"
Placeholder="Re-enter password"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6"
runat="server" ErrorMessage="Enter Confirm Password"
ControlToValidate="TextBox10"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Usertype</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem>Admin</asp:ListItem>
<asp:ListItem>HR</asp:ListItem>
<asp:ListItem>Employee</asp:ListItem>
</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7"
runat="server" ErrorMessage="select user type"
ControlToValidate="DropDownList1"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>

<tr>
<td>Select Department</td>
<td>
<asp:DropDownList ID="DropDownList2" runat="server">

</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8"
runat="server" ErrorMessage="select Department"
ControlToValidate="DropDownList2"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>

Page
82
<td>Select Designation</td>
<td>
<asp:DropDownList ID="DropDownList3" runat="server">

</asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9"
runat="server" ErrorMessage="select designation"
ControlToValidate="DropDownList3"></asp:RequiredFieldValidator></td>

</tr>

</table>

<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click"/>

</div>

</div>

</asp:Content>

AddEmployee.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddEmployee : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();
if (Session["name"] != null)
{
if (!IsPostBack)
{
Label2.Text = Session["Name"].ToString();
var x = (from can in linq.interviews
where can.c_name.Equals(Session["name"])
select can).FirstOrDefault();
Label1.Text = (x.c_id).ToString();
tech.Text = x.tech;

var dropdown = con.showDepart();


DropDownList2.DataSource = dropdown;
DropDownList2.DataTextField = "dept_title";
DropDownList2.DataValueField = "dept_title";
DropDownList2.DataBind();
DropDownList2.Items.Insert(0, "--select one--");

Page
83
var dropdown1 = con.showDesign();
DropDownList3.DataSource = dropdown1;
DropDownList3.DataTextField = "design_title";
DropDownList3.DataValueField = "design_title";
DropDownList3.DataBind();
DropDownList3.Items.Insert(0, "--select one--");

}
}

//protected void Button1_Click(object sender, EventArgs e)


//{

// DateTime dob=DateTime.Parse(TextBox4.Text);
// string gender = RadioButtonList1.SelectedItem.Text;
// string emailid = TextBox5.Text;
// string contact = TextBox6.Text;
// string username = TextBox8.Text;
// string pass = TextBox9.Text;
// string cnfrmpass = TextBox10.Text;
// string type = DropDownList1.SelectedValue;
// string deprt = DropDownList2.SelectedValue;
// string degn = DropDownList3.SelectedValue;
// con.addemployee( dob, gender, emailid, contact, username, pass, cnfrmpass,
type, deprt, degn);
// Response.Redirect("home.aspx");
//}

protected void Button1_Click(object sender, EventArgs e)


{

int id = int.Parse(Label1.Text);
string name=Label2.Text;
string dob = TextBox4.Text;
string gender = RadioButtonList1.SelectedItem.Text;
string emailid = TextBox5.Text;
string contact = TextBox6.Text;
string t=tech.Text;
string username = TextBox8.Text;
string pass = TextBox9.Text;
string cnfrmpass = TextBox10.Text;
string type = DropDownList1.SelectedValue;
string deprt = DropDownList2.SelectedValue;
string degn = DropDownList3.SelectedValue;
con.addemployee(id,name,dob, gender, emailid, contact,t, username, pass,
cnfrmpass, type, deprt, degn);
Response.Redirect("home.aspx");
}
}

AddEvent.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="AddEvent.aspx.cs" Inherits="AddEvent" %>

Page
84
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">
<h2 align="center">Add Event</h2>
<table align="center">
<tr>
<td>Event Title</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Enter Event
Title"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="enter event title"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>From Date</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" placeholder="Enter From
Date"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="enter From Date"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>To Date</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" placeholder="Enter To
Date"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ErrorMessage="enter To Date"
ControlToValidate="TextBox3"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td></td>
</tr>
<tr>
<td>Description</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" TextMode="MultiLine"
placeholder="Enter Description"></asp:TextBox></td>
<td>

Page
85
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ErrorMessage="enter Description"
ControlToValidate="TextBox4"></asp:RequiredFieldValidator></td>

</tr>
</table>
<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />
</div>

</div>
</asp:Content>

AddEvent.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddEvent : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();
}
protected void Button1_Click(object sender, EventArgs e)
{
string title = TextBox1.Text;
string date = TextBox2.Text;
string date1 = TextBox3.Text;
string descpt = TextBox4.Text;
con.insertevant(title,date,date1,descpt);
}

AddLeave.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="AddLeave.aspx.cs" Inherits="AddLeave" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
.auto-style1 {
height: 26px;
}
</style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">

Page
86
<h2 align="center">Add Leave</h2>
<table align="center">
<tr>
<td>Select Emp Id</td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server"
AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="select Emp id"
ControlToValidate="DropDownList1"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Emp Name</td>
<td>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="Enter Emp Name"
ControlToValidate="TextBox4"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Select Leave Type</td>

<td> <asp:DropDownList ID="DropDownList2" runat="server">


<asp:ListItem>Casual Leave</asp:ListItem>
<asp:ListItem>On Duty</asp:ListItem>
<asp:ListItem>Academic Leave</asp:ListItem>
<asp:ListItem>Half Paid</asp:ListItem>
<asp:ListItem>Privilege Leave</asp:ListItem>
</asp:DropDownList>></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ErrorMessage="Select Leave type"
ControlToValidate="DropdownList2"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Select Leave Status</td>
<td>
<asp:DropDownList ID="DropDownList3" runat="server">
<asp:ListItem>Approved</asp:ListItem>
<asp:ListItem>Not Approved</asp:ListItem>
<asp:ListItem>Pending</asp:ListItem>

</asp:DropDownList></td>
<td>

Page
87
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ErrorMessage="Select Leave status"
ControlToValidate="DropdownList3"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>From Date</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" placeholder="Enter From
Date"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
runat="server" ErrorMessage="Enter from date"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>To Date</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" placeholder="Enter To
Date"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6"
runat="server" ErrorMessage="Enter To date"
ControlToValidate="TextBox3"></asp:RequiredFieldValidator></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Description</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"
placeholder="Enter Description"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7"
runat="server" ErrorMessage="Enter Description"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>

</tr>
</table>
<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />

</div>

</div>
</asp:Content>

AddLeave.cs
using System;

Page
88
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddLeave : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();
if (!IsPostBack)
{
var dropdown3 = con.showleave();
DropDownList1.DataSource = dropdown3;
DropDownList1.DataTextField = "e_id";
DropDownList1.DataValueField = "e_id";
DropDownList1.DataBind();

}
protected void Button1_Click(object sender, EventArgs e)
{
var d1 = linq.leaves.Where(x => x.employee_id ==
DropDownList1.SelectedValue.FirstOrDefault());
int id=int.Parse(DropDownList1.SelectedValue);
string name = TextBox4.Text;
string type = DropDownList2.SelectedValue;
string status = DropDownList3.SelectedValue;
string formdate = TextBox2.Text;
string todate = TextBox3.Text;
string descrptt = TextBox1.Text;
con.insertleave(id, name, type, status, formdate, todate, descrptt);

Response.Redirect("AddLeave.aspx");
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
int eid = int.Parse(DropDownList1.SelectedValue);
var sear = from ser in linq.emp1s
where ser.e_id == eid
select new
{
ser.Employee_name
};
foreach (var serr in sear)
{
TextBox4.Text = serr.Employee_name;
}

}
}

AddProject.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="AddProject.aspx.cs" Inherits="AddProject" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">

Page
89
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center" id="one">
<h2 align="center">Add Project</h2>
<table align="center">
<tr>
<td>Project Title</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Enter
Project Title"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1"
runat="server" ErrorMessage="enter project title"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Description</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"
placeholder="Enter Description"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="enter description"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>
</tr>
</table>
<br />
<div class="div">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />

</div>

</div>
</asp:Content>

AddProject.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddProject : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();

Page
90
}
protected void Button1_Click(object sender, EventArgs e)
{
string title = TextBox1.Text;
string descpt = TextBox2.Text;
con.insertproject(title,descpt);
}
}

AddSalary.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="AddSalary.aspx.cs" Inherits="AddSalary" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="one">
<h2 align="center">Add Salary</h2>
<table align="center">
<tr>
<td>Emp Id </td>
<td>
<asp:DropDownList ID="DropDownList1" runat="server" Width="124px"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True">

</asp:DropDownList></td>

</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Emp Name</td>
<td>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Amount </td>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Enter
Amount"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
runat="server" ErrorMessage="enter amount"
ControlToValidate="TextBox1"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>&nbsp;</td>

Page
91
</tr>
<tr>
<td>Date</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" placeholder="Enter
Date"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
runat="server" ErrorMessage="enter date"
ControlToValidate="TextBox2"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Month</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" placeholder="Enter
Month"></asp:TextBox></td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4"
runat="server" ErrorMessage="enter month"
ControlToValidate="textBox3"></asp:RequiredFieldValidator></td>
</tr>
</table>
<br />
<div align="center" class="div">

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="Save" Width="63px"
OnClick="Button1_Click" />
</div>

</div>

</asp:Content>

AddSalary.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddSalary : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();
if (!IsPostBack)
{
var dropdown2 = con.showdata();
DropDownList1.DataSource = dropdown2;
DropDownList1.DataTextField = "e_id";

Page
92
DropDownList1.DataValueField = "e_id";
DropDownList1.DataBind();

protected void Button1_Click(object sender, EventArgs e)


{

var d =linq.salaries.Where(x => x.emp_id==


DropDownList1.SelectedValue.FirstOrDefault());
int empid = int.Parse(DropDownList1.SelectedValue);
string name = TextBox4.Text;
float amount = float.Parse(TextBox1.Text);
string date = TextBox2.Text;
string month = TextBox3.Text;
con.addsalary(empid, name, amount, date, month);

}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
int eid = int.Parse(DropDownList1.SelectedValue);
var search = from ser in linq.emp1s
where ser.e_id == eid
select new {
ser.Employee_name
};
foreach(var serr in search)
{
TextBox4.Text = serr.Employee_name;
}
}

AddVacancy.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"


AutoEventWireup="true" CodeFile="AddVacancy.aspx.cs" Inherits="AddVacancy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style type="text/css">
#one
{
background-color:white;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div id="one">

<h2 align="center">Add Vacancy</h2>


<table align="center">
<tr>
<td>Vacancy Title</td>
<td>
<asp:TextBox ID="TextBox1" runat="server" placeholder="Enter
Vacancy Title"></asp:TextBox></td>
</tr>
<tr>

Page
93
<td>&nbsp;</td>
</tr>
<tr>
<td>No.of Posts</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" TextMode="Number"
placeholder="Enter posts"></asp:TextBox></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>Description</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" TextMode="MultiLine"
placeholder="Enter Description"></asp:TextBox></td>
</tr>
</table>
<br />
<div align="center">
<asp:Button ID="Button1" runat="server" Text="Save"
OnClick="Button1_Click" />

</div>

</div>

</asp:Content>

AddVacancy.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AddVacancy : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
con = new Connection();
}

protected void Button1_Click(object sender, EventArgs e)


{
string title = TextBox1.Text;
int post = int.Parse(TextBox2.Text);
string descpt = TextBox3.Text;
con.insertvacancy(title,post,descpt);
}
}

Humanresource

MasterPage2.aspx

Page
94
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage2.master.cs"
Inherits="human_Resource_MasterPage2" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<!-- Bootstrap Core CSS -->


<link href="css/bootstrap.min.css" rel="stylesheet">

<!-- Custom CSS -->


<link href="css/landing-page.css" rel="stylesheet">

<!-- Custom Fonts -->


<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet"
type="text/css">
<link href="https://fonts.googleapis.com/css?
family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet"
type="text/css">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script
src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script
src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<asp:ContentPlaceHolder id="head" runat="server">


</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<%--<div>--%>
<nav class="navbar navbar-default navbar-fixed-top topnav" role="navigation">
<div class="container topnav">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<%--<a class="navbar-brand topnav" href="#">Start Bootstrap</a>--%>

Page
95
<asp:Label ID="Label1" runat="server" Text=""></asp:Label><br />
<asp:Button ID="Button1" runat="server" Text="Logout"
OnClick="Button1_Click" />
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="home.aspx">Home</a>
</li>
<li>
<a href="Options1.aspx">MyAdministration</a>
</li>
<li>
<a href="RulesPolicies">Rules And Policies</a>
</li>
</ul>

</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container -->
</nav>
<!-- Header -->
<%--<a name="about"></a>

<!-- /.intro-header -->

<!-- Page Content -->

<a name="services"></a>--%>

<!-- /.content-section-a -->

<!-- /.content-section-b -->

<!-- /.content-section-a -->

<a name="contact"></a>
<div class="intro-header">
<div class="container">

<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<div align="center">
<asp:ContentPlaceHolder id="ContentPlaceHolder1"
runat="server">

</asp:ContentPlaceHolder>
</div>
<%--<h1>Landing Page</h1>
<h3>A Template by Start Bootstrap</h3>--%>
<%--<hr class="intro-divider">
<ul class="list-inline intro-social-buttons">
<li>

Page
96
<a href="https://twitter.com/SBootstrap" class="btn
btn-default btn-lg"><i class="fa fa-twitter fa-fw"></i> <span class="network-
name">Twitter</span></a>
</li>
<li>
<a
href="https://github.com/IronSummitMedia/startbootstrap" class="btn btn-default btn-
lg"><i class="fa fa-github fa-fw"></i> <span class="network-name">Github</span></a>
</li>
<li>
<a href="#" class="btn btn-default btn-lg"><i
class="fa fa-linkedin fa-fw"></i> <span class="network-name">Linkedin</span></a>
</li>
</ul>
</div>--%>
</div>
</div>

</div>
<!-- /.container -->

</div>
<!-- /.banner -->

<!-- Footer -->


<footer>
<div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="list-inline">
<li>
<a href="home.aspx">Home</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="Options1.aspx">MyAdministration</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="#services">Rules</a>
</li>
<li class="footer-menu-divider">&sdot;</li>
<li>
<a href="#contact">Contact</a>
</li>
</ul>
<p class="copyright text-muted small">Copyright &copy; Our Company
2017. All Rights Reserved</p>
</div>

</div>
</div>
</footer>

<!-- jQuery -->


<script src="js/jquery.js"></script>

<!-- Bootstrap Core JavaScript -->


<script src="js/bootstrap.min.js"></script>

Page
97
<%--</div>--%>
</form>
</body>
</html>

MasterPage.Master.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_MasterPage2 : System.Web.UI.MasterPage


{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] != null)
{

Label1.Text = Session["username"].ToString();

}
else
{

Response.Redirect("../signin.aspx");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Session.Abandon();
Session.Clear();
Response.Redirect("../signin.aspx");

}
}

Option.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"


AutoEventWireup="true" CodeFile="Options1.aspx.cs"
Inherits="human_Resource_ViewOptions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2 align="center">Select Options</h2>
<table align="center">
<tr>
<td>
<asp:Button ID="Button1" runat="server" Text="View Department"
ForeColor="Black" Width="141px" OnClick="Button1_Click" />

</td>
</tr>
<tr>
<td>&nbsp;</td>

Page
98
</tr>

<tr>
<td>
<asp:Button ID="Button2" runat="server" Text="View Designation"
ForeColor="Black" Width="141px" OnClick="Button2_Click" />
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<asp:Button ID="Button3" runat="server" Text="View Employee"
ForeColor="Black" Width="141px" OnClick="Button3_Click" />

</td>
</tr>

<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button4" runat="server" Text="View Interview"
ForeColor="Black" Width="141px" OnClick="Button4_Click" />

</td>
</tr>

<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button5" runat="server" Text="View Leave"
ForeColor="Black" Width="141px" OnClick="Button5_Click" />

</td>
</tr>

<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button6" runat="server" Text="View Salary"
ForeColor="Black" Width="141px" OnClick="Button6_Click" />

</td>
</tr>

<tr>
<td>&nbsp; </td>
</tr>

<tr>
<td>

Page
99
<asp:Button ID="Button7" runat="server" Text="View Project"
ForeColor="Black" Width="141px" OnClick="Button7_Click" />

</td>
</tr>

<tr>
<td> &nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button8" runat="server" Text="View Vacancy"
ForeColor="Black" Width="141px" OnClick="Button8_Click" />

</td>
</tr>

<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button9" runat="server" Text="View Event"
ForeColor="Black" Width="141px" OnClick="Button9_Click" />

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<asp:Button ID="Button10" runat="server" Text="View EduDetails"
ForeColor="Black" Width="141px" OnClick="Button10_Click"/>
</td>
</tr>

</table>
<br />
<br />
<br />
<br />
</div>
</asp:Content>

Option.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewOptions : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] == null)
{

Page
100
Response.Redirect("Login.aspx");
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("ViewDept.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("ViewDesign.aspx");
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Redirect("ViewEmployee.aspx");
}
protected void Button4_Click(object sender, EventArgs e)
{
Response.Redirect("ViewInterview.aspx");
}
protected void Button5_Click(object sender, EventArgs e)
{
Response.Redirect("ViewLeave.aspx");
}
protected void Button6_Click(object sender, EventArgs e)
{
Response.Redirect("ViewSalary.aspx");
}
protected void Button7_Click(object sender, EventArgs e)
{
Response.Redirect("ViewProject.aspx");
}
protected void Button8_Click(object sender, EventArgs e)
{
Response.Redirect("ViewVacancy.aspx");
}
protected void Button9_Click(object sender, EventArgs e)
{
Response.Redirect("viewevent.aspx");
}
protected void Button10_Click(object sender, EventArgs e)
{
Response.Redirect("ViewEdudetails.aspx");
}
}

ViewDept.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"


AutoEventWireup="true" CodeFile="ViewDept.aspx.cs" Inherits="human_Resource_ViewDept"
%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Department</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>

Page
101
<trstyle="color:gold;" >
<th>Department Id</th>
<th>Department Title</th>
<th>deparment Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("dept_id")%></td>
<td><%#Eval("dept_title")%></td>
<td><%#Eval("dept_descrpt")%></td>
<td><a href='editdepart.aspx?id=<%# Eval("dept_id")
%>'>edit</a></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>

</div>
<div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

ViewDept.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewDept : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
con = new Connection();
var a = from en in linq.departments
select en;
Repeater1.DataSource = a;
Repeater1.DataBind();
}

}
}

Editdepart.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"


AutoEventWireup="true" CodeFile="editdepart.aspx.cs"
Inherits="human_Resource_editdepart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{

Page
102
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h1>Edit Department</h1>
<br />
<%--<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />--%><%--
<br />--%>
<asp:Label ID="Label1" runat="server" Text="DeptTitle"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server" Text="Description"></asp:Label>
<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click" />

</div>
</asp:Content>

Editdepart.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editdepart : System.Web.UI.Page


{

Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if (Request.QueryString["id"] != null)
{

int id = int.Parse(Request.QueryString["id"].ToString());
var dgs = c.edit1(id);
if (!IsPostBack)
{

foreach (var y in dgs)


{
// TextBox1.Text = (x.c_name).ToString();
// TextBox1.Text = (y.dept_id).ToString();
TextBox2.Text = y.dept_title.ToString();
TextBox3.Text = y.dept_descrpt.ToString();

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

Page
103
{
int id=int.Parse(Request.QueryString["id"]);
string title = TextBox2.Text;
string descpt = TextBox3.Text;
c.updatedepart(id, title, descpt);
}
}

ViewDesign.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="ViewDesign.aspx.cs"
Inherits="human_Resource_ViewDesign" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div>
<h2>View Designation</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Designation Id</th>
<th>Designation Title</th>
<th>Designation Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("design_id")%></td>
<td><%#Eval("design_title")%></td>
<td><%#Eval("design_descrpt")%></td>
<td><a href='editdesign.aspx?id=<%# Eval("design_id")
%>'>edit</a></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

ViewDesign.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewDesign : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;

Page
104
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
con = new Connection();
var b = from des in linq.designations
select des;
Repeater1.DataSource = b;
Repeater1.DataBind();

}
}
}

Editdesign.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editdesign.aspx.cs"
Inherits="human_Resource_editdesign" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center" >
<h2>Edit Designation</h2>
<asp:Label ID="Label1" runat="server" Text="DesignTitle"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server" Text="Description"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" />
</div>
</asp:Content>

Editdesign.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editdesign : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if (Request.QueryString["id"] != null)
{

Page
105
int id = int.Parse(Request.QueryString["id"].ToString());
var desg = c.edit1(id);
if (!IsPostBack)
{

foreach (var x in desg)


{
// TextBox1.Text = (x.c_name).ToString();
// TextBox1.Text = (y.dept_id).ToString();
// TextBox2.Text = y.dept_title.ToString();
// TextBox3.Text = y.dept_descrpt.ToString();
TextBox1.Text = x.dept_title.ToString();
TextBox2.Text = x.dept_descrpt.ToString();

}
}

}
}

protected void Button1_Click(object sender, EventArgs e)


{
//int id=int.Parse(Request.QueryString["id"]);
//string title = TextBox2.Text;
//string descpt = TextBox3.Text;
//c.updatedepart(id, title, descpt);
int id = int.Parse(Request.QueryString["id"]);
string title = TextBox1.Text;
string descpt = TextBox2.Text;
c.updatedesign(id, title, descpt);
}
}

ViewEdudetails.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"


AutoEventWireup="true" CodeFile="ViewEdudetails.aspx.cs"
Inherits="human_Resource_ViewEdudetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<h2>View Employee Education Details</h2>
<asp:Panel ID="Panel1" runat="server">
<asp:Label ID="Label1" runat="server" Text="Emp
Id"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label3" runat="server" Text="10th
Board"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label4" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label5" runat="server" Text="10th
Year"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label6" runat="server"
Text=""></asp:Label><br /><br />

Page
106
<asp:Label ID="Label7" runat="server" Text="10th
Per"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label8" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label9" runat="server" Text="10th
Div"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label10" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label11" runat="server" Text="12th
Board"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label12"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label13" runat="server" Text="12th
Year"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label14" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label15" runat="server" Text="12th
Per"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label16" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label17" runat="server" Text="12th
Div"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label18" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label19" runat="server" Text="UG
Course"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label20"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label21" runat="server" Text="UG
University"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label22"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label23" runat="server" Text="UG
College"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label24"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label25" runat="server" Text="UG
Year"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label26" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label27" runat="server" Text="UG
Per"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label28" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label29" runat="server" Text="UG
Div"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label30" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label31" runat="server" Text="PG
Course"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label32"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label33" runat="server" Text="PG
University"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label34"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label35" runat="server" Text="PG
College"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label36"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label37" runat="server" Text="PG
Year"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label38" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label39" runat="server" Text="PG
Per"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label40" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label41" runat="server" Text="PG
Div"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label42" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label43" runat="server" Text="Extra
Course"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label44"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label45" runat="server" Text="Extra
University"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label46"
runat="server" Text=""></asp:Label><br /><br />

Page
107
<asp:Label ID="Label47" runat="server" Text="Extra
College"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label48"
runat="server" Text=""></asp:Label><br /><br />
<asp:Label ID="Label49" runat="server" Text="Extra
Year"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label50" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label51" runat="server" Text="Extra
Per"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label52" runat="server"
Text=""></asp:Label><br /><br />
<asp:Label ID="Label53" runat="server" Text="Extra
Div"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label54" runat="server"
Text=""></asp:Label><br /><br />
<%--<table border="1" align="center" class="table">--%>
<%-- <asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:grey;">
<th>Emp Id</th>
<th>10th Board</th>
<th>10th Year</th>
<th>10th Per</th>
<th>10th Div</th>
<th>12th Board</th>
<th>12th Year</th>
<th>12th Per</th>
<th>12th Div</th>
<th>UG Course</th>
<th>UG University</th>
<th>UG College</th>
<th>UG Year</th>
<th>UG Per</th>
<th>UG Div</th>
<th>PG Course</th>
<th>PG University</th>
<th>PG College</th>
<th>PG Year</th>
<th>PG Per</th>
<th>PG Div</th>
<th>Extra Course</th>
<th>Extra University</th>
<th>Extra College</th>
<th>Extra Year</th>
<th>Extra Per</th>
<th>Extra Div</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:gold; text-align:center; ">
<td><%#Eval("empid")%></td>
<td><%#Eval("ten_board")%></td>
<td><%#Eval("ten_year")%></td>
<td><%#Eval("ten_per")%></td>
<td><%#Eval("ten_div")%></td>
<td><%#Eval("twelth_board")%></td>
<td><%#Eval("twelth_year")%></td>
<td><%#Eval("etwelth_per")%></td>
<td><%#Eval("twelth_div")%></td>
<td><%#Eval("ug_course")%></td>
<td><%#Eval("ug_univercity")%></td>
<td><%#Eval("ug_college")%></td>
<td><%#Eval("ug_year")%></td>
<td><%#Eval("ug_per")%></td>
<td><%#Eval("ug_div")%></td>

Page
108
<td><%#Eval("pg_course")%></td>
<td><%#Eval("pg_univercity")%></td>
<td><%#Eval("pg_college")%></td>
<td><%#Eval("ug_year")%></td>
<td><%#Eval("pg_per")%></td>
<td><%#Eval("pg_div")%></td>
<td><%#Eval("ex_course")%></td>
<td><%#Eval("ex_univercity")%></td>
<td><%#Eval("ex_college")%></td>
<td><%#Eval("ex_year")%></td>
<td><%#Eval("ex_per")%></td>
<td><%#Eval("ex_div")%></td>

</tr>
</ItemTemplate>
</asp:Repeater>

</table>--%>
</asp:Panel>
</div>
</asp:Content>

ViewEdudetails.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewEdudetails : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{

con = new Connection();


if (Session["empid"] != null)
{
int empid = int.Parse(Session["empid"].ToString());

var b = con.showeprofile();
foreach (var x in b)
{

Label2.Text = x.empid.ToString();
Label4.Text= x.ten_board.ToString();
Label6.Text= x.ten_year.ToString();
Label8.Text = x.ten_per.ToString();
Label10.Text = x.ten_div.ToString();
Label12.Text = x.twelth_board.ToString();
Label14.Text = x.twelth_year.ToString();
Label16.Text = x.twelth_per.ToString();
Label18.Text = x.twelth_div.ToString();
Label20.Text = x.ug_course.ToString();
Label22.Text = x.ug_univercity.ToString();
Label24.Text = x.ug_college.ToString();

Page
109
Label26.Text = x.ug_year.ToString();
Label28.Text = x.ug_per.ToString();
Label30.Text = x.ug_div.ToString();
Label32.Text = x.pg_course.ToString();
Label34.Text = x.pg_univercity.ToString();
Label36.Text = x.pg_college.ToString();
Label38.Text = x.pg_year.ToString();
Label40.Text = x.pg_per.ToString();
Label42.Text = x.pg_div.ToString();
Label44.Text = x.ex_course.ToString();
Label46.Text = x.ex_univercity.ToString();
Label48.Text = x.ex_college.ToString();
Label50.Text = x.ex_year.ToString();
Label52.Text = x.ex_per.ToString();
Label54.Text = x.ex_div.ToString();

//else
//{
// Response.Redirect("../signin.aspx");
//}
//Repeater1.DataSource = b;
//Repeater1.DataBind();

}
}

ViewEmployee.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"


AutoEventWireup="true" CodeFile="ViewEmployee.aspx.cs"
Inherits="human_Resource_ViewEmployee" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Employee Details</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Candidate Id</th>
<th>Employee Id</th>
<th>Employee Name</th>
<th>DOB</th>
<th>Gender</th>
<th>Email Id</th>
<th>Contact No</th>
<th>Technology</th>
<th>Usertype</th>
<th>Department</th>
<th>Designation</th>
</tr>

Page
110
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("candidate_id")%></td>
<td><%#Eval("e_id")%></td>
<td><%#Eval("Employee_name")%></td>
<td><%#Eval("DOB")%></td>
<td><%#Eval("gender")%></td>
<td><%#Eval("email_id")%></td>
<td><%#Eval("contact_no")%></td>
<td><%#Eval("technology")%></td>
<td><%#Eval("usertype")%></td>
<td><%#Eval("dept")%></td>
<td><%#Eval("design")%></td>
<td><a href='editemployee.aspx?id=<%# Eval("e_id")
%>'>edit</a></td>
<td><a href='editemployee.aspx?delid=<%# Eval("e_id")
%>'>delete</a></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

ViewEmployee.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewEmployee : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
con = new Connection();
var c = from ep in linq.emp1s
select new
{
ep.candidate_id,
ep.e_id,
ep.Employee_name,
ep.DOB,
ep.gender,
ep.email_id,
ep.contact_no,
ep.technology,
ep.usertype,
ep.dept,
ep.design

Page
111
};

Repeater1.DataSource = c;
Repeater1.DataBind();

}
}

Editemployee.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editemployee.aspx.cs"
Inherits="human_Resource_editemployee" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h2>Edit Employee Details</h2>
<asp:Label ID="Label1" runat="server" Text="Employee
Id"></asp:Label><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server" Text="Emp Name"></asp:Label> <asp:TextBox
ID="TextBox2" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label3" runat="server" Text="DOB"></asp:Label> <asp:TextBox
ID="TextBox3" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label4" runat="server" Text="Gender"></asp:Label> <asp:TextBox
ID="TextBox4" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label5" runat="server" Text="Email Id"></asp:Label> <asp:TextBox
ID="TextBox5" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label6" runat="server" Text="Contact
no."></asp:Label><asp:TextBox ID="TextBox6" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label7" runat="server"
Text="Technology"></asp:Label><asp:TextBox ID="TextBox7"
runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label8" runat="server" Text="User Type"></asp:Label>
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label9" runat="server"
Text="Department"></asp:Label><asp:TextBox ID="TextBox9"
runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label10" runat="server"
Text="Designation"></asp:Label><asp:TextBox ID="TextBox10"
runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="Save" OnClick="Button1_Click" />

</div>
</asp:Content>

Editemployee.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

Page
112
public partial class human_Resource_editemployee : System.Web.UI.Page
{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if(!IsPostBack)
{
if (Request.QueryString["id"] != null)
{

int id = int.Parse(Request.QueryString["id"].ToString());
var sa = c.edit8(id);

foreach (var x in sa)


{

TextBox1.Text=x.e_id.ToString();
TextBox2.Text=x.Employee_name.ToString();
TextBox3.Text=x.DOB.ToString();
TextBox4.Text=x.gender.ToString();
TextBox5.Text=x.email_id.ToString();
TextBox6.Text=x.contact_no.ToString();
TextBox7.Text=x.technology.ToString();
TextBox8.Text=x.usertype.ToString();
TextBox9.Text=x.dept.ToString();
TextBox10.Text=x.design.ToString();

}
}
else if (Request.QueryString["delid"] != null)
{

int empid = int.Parse(Request.QueryString["delid"].ToString());


c.delemp(empid);
Response.Redirect("ViewEmployee.aspx");
}
}

}
protected void Button1_Click(object sender, EventArgs e)
{
//(int eid,string name,string edob,string gen,string email,string
contact,string tech,string type,string dpt,string dsgn)
//int emid = int.Parse(Request.QueryString["id"].ToString());
//string name = TextBox2.Text;
//float amount = Convert.ToSingle(TextBox3.Text);
//string date = TextBox4.Text;
//string month = TextBox5.Text;
//c.updatesalary(emid, name, amount, date, month);
//Response.Redirect("ViewSalary.aspx");
int eid=int.Parse(Request.QueryString["id"].ToString());
string name=TextBox2.Text;

Page
113
string edob=TextBox3.Text;
string gen=TextBox4.Text;
string email=TextBox5.Text;
string contact=TextBox6.Text;
string tech=TextBox7.Text;
string type=TextBox8.Text;
string dpt=TextBox9.Text;
string dsgn=TextBox10.Text;
c.updateemp(eid,name,edob,gen,email,contact,tech,type,dpt,dsgn);
Response.Redirect("ViewEmployee.aspx");

}
}
Viewevent.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="viewevent.aspx.cs"
Inherits="human_Resource_ViewDepart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<%--<style type="text/css">
.p
{
background-color:white;
color:black;
font-style:bold;
font-size:16px;
padding:2cm 2cm 2cm 2cm;
table-layout:fixed;
}
</style>--%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Event</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >

<th>Event Title</th>
<th>Form Date</th>
<th>To Ddate</th>
<th>Event Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("eve_title")%></td>
<td><%#Eval("form_date")%></td>
<td><%#Eval("to_date")%></td>
<td><%#Eval("eve_descpt")%></td>
<td><a href='editevent.aspx?id=<%# Eval("eve_id")
%>'>edit</a></td>
</tr>
</ItemTemplate>

</asp:Repeater>

</table>
</div>
<div>

Page
114
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

Viewevent.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewDepart : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;

protected void Page_Load(object sender, EventArgs e)


{

if (!IsPostBack)
{
con = new Connection();

var s = from em in linq.event1s


select em;
Repeater1.DataSource = s;
Repeater1.DataBind();
}
}
}
Editevent.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editevent.aspx.cs"
Inherits="human_Resource_editevent" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h2>Edit Event</h2>
<asp:Label ID="Label1" runat="server"
Text="EventTitle"></asp:Label><asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server" Text="From
Date"></asp:Label><asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label3" runat="server" Text="To Date"></asp:Label> <asp:TextBox
ID="TextBox3" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label4" runat="server" Text="Description"></asp:Label>
<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click" />
</div>
</asp:Content>

Page
115
Editevent.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editevent : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if (Request.QueryString["id"] != null)
{

int id = int.Parse(Request.QueryString["id"].ToString());
var desg = c.edit3(id);
if (!IsPostBack)
{

foreach (var x in desg)


{
// TextBox1.Text = x.dept_title.ToString();
// TextBox2.Text = x.dept_descrpt.ToString();
TextBox1.Text = x.eve_title.ToString();
TextBox2.Text = x.form_date.ToString();
TextBox3.Text = x.to_date.ToString();
TextBox4.Text = x.eve_descpt.ToString();

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

//int id = int.Parse(Request.QueryString["id"]);
//string title = TextBox1.Text;
//string descpt = TextBox2.Text;
//c.updatedesign(id, title, descpt);
int id = int.Parse(Request.QueryString["id"]);
string title = TextBox1.Text;
string date = TextBox2.Text;
string todate = TextBox3.Text;
string descpt = TextBox4.Text;
c.updateevent(id, title, date, todate, descpt);
}
}

ViewInterview.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="ViewInterview.aspx.cs"
Inherits="human_Resource_ViewInterview" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

Page
116
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Interview Details</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Candidate Id</th>
<th>Candidate Name</th>
<th>Employee Name</th>
<th>Interview Date</th>
<th>Interview Time</th>
<th>Technology</th>
<th>Status</th>

</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("c_id")%></td>
<td><%#Eval("c_name")%></td>
<td><%#Eval("e_name")%></td>
<td><%#Eval("interview_date")%></td>
<td><%#Eval("interview_time")%></td>
<td><%#Eval("tech")%></td>
<td><%#Eval("status")%></td>
<td><a href='editinterview.aspx?id=<%# Eval("c_id")
%>'>edit</a></td>
<%-- --%>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div><div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

ViewInterview.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewInterview : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;

protected void Page_Load(object sender, EventArgs e)


{
if(!IsPostBack)
{
con = new Connection();
var w = from inv in linq.interviews
select inv;
Repeater1.DataSource = w;
Repeater1.DataBind();
}

Page
117
}
}

Editinterview.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editinterview.aspx.cs"
Inherits="human_Resource_editinfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h2>Edit Interview Details</h2>
<asp:Label ID="Label1" runat="server" Text="Candidate Name"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" ForeColor="#CC0000"></asp:TextBox><br /><br
/>
<asp:Label ID="Label2" runat="server" Text="Employee
Name"></asp:Label><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label3" runat="server" Text="Interview
Date"></asp:Label><asp:TextBox ID="TextBox4" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label4" runat="server" Text="Interview
Time"></asp:Label><asp:TextBox ID="TextBox5" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label5" runat="server" Text="Technology"></asp:Label>
<asp:TextBox ID="TextBox6" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label6" runat="server" Text="Status"></asp:Label><asp:TextBox
ID="TextBox7" runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click" />
</div>
</asp:Content>

Editinterview.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editinfo : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c=new Connection();
l = new LinqDataContext();
if(Request.QueryString["id"]!=null)
{

int id =int.Parse( Request.QueryString["id"].ToString());


var dg = c.edit(id);
if(!IsPostBack)
{

Page
118
foreach(var x in dg)
{
TextBox1.Text = (x.c_name).ToString();

TextBox3.Text = x.e_name;
TextBox4.Text = x.interview_date;
TextBox5.Text = x.interview_time;
TextBox6.Text = x.tech;
TextBox7.Text = x.status;
}

}
}

}
protected void Button1_Click(object sender, EventArgs e)
{
int id = int.Parse(Request.QueryString["id"].ToString());
string cname = TextBox1.Text;
string ename = TextBox3.Text;
string date = TextBox4.Text;
string time = TextBox5.Text;
string techno = TextBox6.Text;
string statuss = TextBox7.Text;
c.updateinfo(id,cname, ename, date, time, techno, statuss);

}
}

ViewLeave.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="ViewLeave.aspx.cs"
Inherits="human_Resource_ViewLeave" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Employee Leave</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Id</th>
<th>Employee Id</th>
<th>Employee Name</th>
<th>Leave Type</th>
<th>Leave Staus</th>
<th>From Date</th>
<th>To Date</th>
<th>Description</th>

</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">

Page
119
<td><%#Eval("id")%></td>
<td><%#Eval("employee_id")%></td>
<td><%#Eval("e_name")%></td>
<td><%#Eval("l_type")%></td>
<td><%#Eval("l_status")%></td>
<td><%#Eval("from_date")%></td>
<td><%#Eval("to_date")%></td>
<td><%#Eval("description")%></td>
<td><a href='editleave.aspx?id=<%# Eval("id")%>'>edit</a></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

ViewLeave.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewLeave : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;

protected void Page_Load(object sender, EventArgs e)


{
if(!IsPostBack)
{
con = new Connection();
var d = from ln in linq.leaves
select ln;
Repeater1.DataSource = d;
Repeater1.DataBind();

}
}
}
Editleave.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editleave.aspx.cs"
Inherits="human_Resource_editleave" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">

Page
120
<h2>Edit Leave</h2>
<asp:Label ID="Label1" runat="server" Text="EmpId"></asp:Label><asp:TextBox
ID="TextBox1" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server" Text="EmpName"></asp:Label><asp:TextBox
ID="TextBox2" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label3" runat="server"
Text="LeaveType"></asp:Label><asp:DropDownList ID="DropDownList1" runat="server"
AutoPostBack="True">
<asp:ListItem>Causal Leave</asp:ListItem>
<asp:ListItem>On Duty</asp:ListItem>
<asp:ListItem>Academic Leave</asp:ListItem>
<asp:ListItem>Half Paid</asp:ListItem>
<asp:ListItem>Priviledge Leave</asp:ListItem>
</asp:DropDownList><br /><br />
<asp:Label ID="Label4" runat="server" Text="LeaveStatus"></asp:Label>
<asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True">
<asp:ListItem>Approved</asp:ListItem>
<asp:ListItem>Not Approved</asp:ListItem>
<asp:ListItem>Pending</asp:ListItem>
</asp:DropDownList><br /><br />
<asp:Label ID="Label5" runat="server" Text="From
Date"></asp:Label><asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label6" runat="server" Text="To Date"></asp:Label> <asp:TextBox
ID="TextBox4" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label7" runat="server" Text="Description"></asp:Label>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click" />

</div>
</asp:Content>

Editleave.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editleave : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if (Request.QueryString["id"] != null)
{

int id = int.Parse(Request.QueryString["id"].ToString());
var even = c.edit4(id);
if (!IsPostBack)
{

foreach (var x in even)


{

TextBox1.Text=x.employee_id.ToString();
TextBox2.Text=x.e_name.ToString();
TextBox3.Text=x.from_date.ToString();

Page
121
TextBox4.Text=x.to_date.ToString();
TextBox5.Text=x.description.ToString();
DropDownList1.SelectedItem.Text = x.l_type.ToString();
DropDownList2.SelectedItem.Text = x.l_status.ToString();
}

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

int id = int.Parse(Request.QueryString["id"]);
int eid = int.Parse(TextBox1.Text);
string name = TextBox2.Text;
string type = DropDownList1.SelectedValue;
string status = DropDownList2.SelectedValue;
string fromdate = TextBox3.Text;
string todate = TextBox4.Text;
string decpt = TextBox5.Text;
c.updateleave(id, eid, name, type, status, fromdate, todate, decpt);
Response.Redirect("human%20Resource/ViewLeave.aspx");
}
}

ViewProject.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="ViewProject.aspx.cs"
Inherits="human_Resource_ViewProject" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Project</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Project Id</th>
<th>Project Title</th>
<th>Project Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("proj_id")%></td>
<td><%#Eval("proj_title")%></td>
<td><%#Eval("proj_descpt")%></td>
<td><a href='editproject.aspx?id=<%# Eval("proj_id")
%>'>edit</a></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>

Page
122
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

ViewProject.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewProject : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;

protected void Page_Load(object sender, EventArgs e)


{
if(!IsPostBack)
{
con = new Connection();
var f = from pro in linq.projects
select pro;
Repeater1.DataSource = f;
Repeater1.DataBind();

}
}
}
Editproject.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editproject.aspx.cs"
Inherits="human_Resource_editproject" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h2>Edit Project</h2>
<asp:Label ID="Label1" runat="server" Text="project
Title"></asp:Label><asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br /><br
/>
<asp:Label ID="Label2" runat="server"
Text="Description"></asp:Label><asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click"
/>

</div>
</asp:Content>

Editproject.cs

Page
123
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editproject : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if (Request.QueryString["id"] != null)
{

int id = int.Parse(Request.QueryString["id"].ToString());
var pro = c.edit5(id);
if (!IsPostBack)
{
foreach (var x in pro)
{

//TextBox2.Text = y.dept_title.ToString();
//TextBox3.Text = y.dept_descrpt.ToString();
TextBox1.Text = x.proj_title.ToString();
TextBox2.Text = x.proj_descpt.ToString();

}
}
}
}

protected void Button1_Click(object sender, EventArgs e)


{
//int id=int.Parse(Request.QueryString["id"]);
// string title = TextBox2.Text;
// string descpt = TextBox3.Text;
// c.updatedepart(id, title, descpt);
int id = int.Parse(Request.QueryString["id"]);
string title = TextBox1.Text;
string decrpt = TextBox2.Text;
c.updateproject(id,title,decrpt);

}
}
ViewSalary.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="ViewSalary.aspx.cs"
Inherits="human_Resource_ViewSalary" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>

Page
124
<h2>View Employee Salary</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater2" runat="server">

<HeaderTemplate>
<tr style="color:gold;" >
<th>Employee Id</th>
<th>Employee Name</th>
<th>Amount</th>
<th>Date</th>
<th>Month</th>
</tr>
</HeaderTemplate>
<ItemTemplate>

<tr style="color:white; text-align:center; ">


<td><%#Eval("emp_id")%></td>
<td><%#Eval("emp_name")%></td>
<td><%#Eval("e_amount")%></td>
<td><%#Eval("e_date")%></td>
<td><%#Eval("e_month")%></td>
<td><a href='editsalary.aspx?id=<%# Eval("emp_id")
%>'>edit</a></td>

</tr>
</ItemTemplate>

</asp:Repeater>
</table>
</div>
<div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>

viewSalary.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewSalary : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{
if (Session["empid"] != null)
{

int empid = int.Parse(Session["empid"].ToString());


con = new Connection();

var z = con.showemplallsal();

Page
125
Repeater2.DataSource = z;
Repeater2.DataBind();
}
}
}
}

Editsalary.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="editsalary.aspx.cs"
Inherits="human_Resource_editsalary" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h2>Edit salary</h2>
<asp:Label ID="Label1" runat="server" Text="Emp Id"></asp:Label><asp:TextBox
ID="TextBox1" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server" Text="Emp Name"></asp:Label><asp:TextBox
ID="TextBox2" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label3" runat="server" Text="Amount"></asp:Label><asp:TextBox
ID="TextBox3" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label4" runat="server" Text="Date"></asp:Label> <asp:TextBox
ID="TextBox4" runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label5" runat="server" Text="Month"></asp:Label> <asp:TextBox
ID="TextBox5" runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click" />
</div>
</asp:Content>

Editsalary.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editsalary : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if(!IsPostBack)
{
if (Request.QueryString["id"] != null)
{

Page
126
int id = int.Parse(Request.QueryString["id"].ToString());
var sa = c.edit7(id);

foreach (var x in sa)


{

//TextBox2.Text = y.dept_title.ToString();
//TextBox3.Text = y.dept_descrpt.ToString();
TextBox1.Text = x.emp_id.ToString();
TextBox2.Text = x.emp_name.ToString();
TextBox3.Text = x.e_amount.ToString();
TextBox4.Text = x.e_date.ToString();
TextBox5.Text = x.e_month.ToString();

}
}

protected void Button1_Click(object sender, EventArgs e)


{

int emid = int.Parse(Request.QueryString["id"].ToString());


string name = TextBox2.Text;
float amount = Convert.ToSingle(TextBox3.Text);
string date = TextBox4.Text;
string month = TextBox5.Text;
c.updatesalary(emid, name, amount, date, month);
Response.Redirect("ViewSalary.aspx");
}
}
ViewVacancy.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"
AutoEventWireup="true" CodeFile="ViewVacancy.aspx.cs"
Inherits="human_Resource_ViewVacancy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<h2>View Vacancy</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Vacancy Id</th>
<th>Vacancy Title</th>
<th>Vacancy Post</th>
<th>Vacancy Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("vac_id")%></td>
<td><%#Eval("vac_title")%></td>

Page
127
<td><%#Eval("vac_post")%></td>
<td><%#Eval("vac_descpt")%></td>
<td><a href='editvacancy.aspx?id=<%# Eval("vac_id")
%>'>edit</a></td>
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>
<a href="Options1.aspx">Back</a>
</div>
</asp:Content>
ViewVacancy.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_ViewVacancy : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con = new Connection();
var v = from va in linq.vacancies
select va;
// Repeater1.DataSource = v;
// Repeater1.DataBind();
Repeater1.DataSource = v;
Repeater1.DataBind();

}
}
Editvacancy.aspx

<%@ Page Title="" Language="C#" MasterPageFile="~/human Resource/MasterPage2.master"


AutoEventWireup="true" CodeFile="editvacancy.aspx.cs"
Inherits="human_Resource_editvacancy" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
.col
{
color:black;

</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="col" align="center">
<h2>Edit Vacancy</h2>

Page
128
<asp:Label ID="Label1" runat="server"
Text="VacancyTitle"></asp:Label><asp:TextBox ID="TextBox1"
runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label2" runat="server"
Text="VacancyPost"></asp:Label><asp:TextBox ID="TextBox2"
runat="server"></asp:TextBox><br /><br />
<asp:Label ID="Label3" runat="server"
Text="Description"></asp:Label><asp:TextBox ID="TextBox3"
runat="server"></asp:TextBox><br /><br />
<asp:Button ID="Button1" runat="server" Text="save" OnClick="Button1_Click"
/>

</div>
</asp:Content>

Editvacancy.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class human_Resource_editvacancy : System.Web.UI.Page


{
Connection c;
LinqDataContext l;
protected void Page_Load(object sender, EventArgs e)
{
c = new Connection();
l = new LinqDataContext();
if (Request.QueryString["id"] != null)
{

int id = int.Parse(Request.QueryString["id"].ToString());
var vac = c.edit6(id);
if (!IsPostBack)
{
foreach (var x in vac)
{
//TextBox1.Text = x.proj_title.ToString();
//TextBox2.Text = x.proj_descpt.ToString();
TextBox1.Text = x.vac_title.ToString();
TextBox2.Text = x.vac_post.ToString();
TextBox3.Text = x.vac_descpt.ToString();

}
}
}
}

protected void Button1_Click(object sender, EventArgs e)


{
//int id=int.Parse(Request.QueryString["id"]);
// string title = TextBox2.Text;
// string descpt = TextBox3.Text;
// c.updatedepart(id, title, descpt);

Page
129
int id = int.Parse(Request.QueryString["id"]);
string title = TextBox1.Text;
int post = int.Parse(TextBox2.Text);
string descrpt = TextBox3.Text;
c.updatevacancy(id, title,post, descrpt);
}
}

Masterpage3.master

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage3.master.cs"


Inherits="Employee_MasterPage3" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>HRMS</title>
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-
scalable=no' name='viewport'>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/owl.carousel.css" rel="stylesheet" type="text/css">
<link href="font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet"
type="text/css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<asp:ContentPlaceHolder id="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<%-- <div>--%>

<!-- PRELOADER STARTS HERE -->


<%--<div ></div>--%>
<!-- /PRELOADER ENDS HERE-->

<!-- HEADER STARTS HERE -->


<header class="navbar navbar-inverse navbar-fixed-top heading" role="banner">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle togglebutton" data-toggle="collapse" data-
target=".navbar-collapse">
<span class="sr-only">Toggle</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>

</button>

<a class='shym-logo'><h2>Employee</h2> </a>

</div>

Page
130
<div class="collapse navbar-collapse menubar">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown"><a href="home.aspx" class='dropdown-toggle'
data-toggle='dropdown'><i class="fa fa-fw fa-home"></i>Home</a>
<%--<ul class="dropdown-menu">
<li>
<a href="#">Bootstrap Templates</a></li>
<li><a href="#">Single page website </a></li>
<li><a href="#">Landing Page</a>
<li><a href="#">Admin Templates</a></li>

<li><a href="#">Login Page </a></li>


</ul>--%>
</li>
<li class='dropdown'><a href="../Login.aspx" <%--class='dropdown-
toggle' data-toggle='dropdown'--%>><%--<i class="fa fa-fw fa-support"></i>--%>Login
Page</a></li>
<%--<ul class='dropdown-menu'>
<li><a href="#">Megamenu</a></li>
<li><a href="#">Menu Bar</a>
<li><a href="#">Accordion</a></li>
<li><a href="#">Tabs</a>

</li>
</ul>--%>
<li><a href="Option3.aspx"><%--<i class="fa fa-fw fa-th"></i>--
%>MyAdministration</a></li>
<li><a href="About.aspx"><%--<i class="fa fa-fw fa-bar-chart-
o"></i>--%>About us</a></li>
<%-- <li class="dropdown">--%>
<%-- <a href="#" class="dropdown-toggle" data-
toggle="dropdown"><i class="fa fa-fw fa-users"></i>Users<i class="icon-angle-
down"></i></a>--%>
<%--<ul class="dropdown-menu">
<li><a href="#">Career</a></li>
<li><a href="#">Blog Single</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">404</a></li>
<li><a href="#">Registration</a></li>
<li class="divider"></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Use</a></li>
</ul>
</li>
<li><a href="#"><i class="fa fa-fw fa-book"></i>Blog</a></li>
--%>
</ul>
</div>
</div>
<div>
<asp:Label ID="Label1" runat="server" Text=""></asp:Label>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;
</div>
<asp:Button ID="Button1" runat="server" Text="Logout"
OnClick="Button1_Click" ForeColor="Black" />
</header><!---->

<!-- HEADER ENDS HERE -->

Page
131
<!--GALLERY STARTS HERE -->

<section class='gallery'>
<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

</asp:ContentPlaceHolder>

<%--<div class="home-caption">
<%--<div class="home-title">A Platform to download Free Photos</div>
<div class="home-subtitle">Your-Plugin is a platform to download free
Photos,Pictures,and Beautiful Pictures </div>
<a href="#" class="btn btn-lg downloadbtn">Start Your Download</a>
</div>

</section>

<!-- /GALLERY ENDS HERE -->


<section class='shym-option'>
<div class='container'>
<div class="row">
<div class="col-sm-4 shym-option-container">

<%--<span data-scroll-reveal="wait 0.25s, then enter top and move 40px over
1s" ><i class="fa fa-camera"></i></span>--%>
<%--<h3 class="shym-text-uppercase"> Stylish Pictures</h3>--%>
<%--<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It
has roots in a piece of classical Latin literature from 45 BC, making it over 2000
years old. Richard McClintock, a Latin professor at Hampden-Sydney College in
Virginia</p>
<a href="#" title="">Read More</a>--%>
</div>

<%--<div class="col-sm-4 shym-option-container">


<span data-scroll-reveal="wait 0.25s, then enter top and move 40px over 1s"
><i class="fa fa-dashboard"></i></span>
<h3 class="shym-text-uppercase">Magnificent Colors</h3>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has
roots in a piece of classical Latin literature from 45 BC, making it over 2000 years
old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia</p>
<a href="#" title="">Read More</a>
</div>

<div class="col-sm-4 shym-option-container">


<span data-scroll-reveal="wait 0.25s, then enter top and move 40px over
1s"><i class="fa fa-eye"></i></span>
<h3 class="shym-text-uppercase">Retina Ready</h3>
<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has
roots in a piece of classical Latin literature from 45 BC, making it over 2000 years
old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia</p>
<a href="#" title="">Read More</a>
</div>--%>
<%-- </div>--%>

Page
132
<!-- /COLUMNS -->
</div>
</section>
<!-- /OPTION ENDS HERE -->

<div class="copyrights">
<div class="container">
<p class="pull-
left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &copy; Copyright 2017 MyWebSite</p>
<%--<p class="pull-right">App Landing Page Designed and Developed by <a
href='http://www.scriptcafe.in'>Scriptcafe.in </a></p>--%>
</div>
<%-- <script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/owl.carousel.min.js"></script>
<script src="js/scrollReveal.js"></script>
<script src="js/function.js"></script>
--%>

</div>
</form>
</body>
</html>

Masterpage3.master.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_MasterPage3 : System.Web.UI.MasterPage


{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] != null)
{

Label1.Text=Session["username"].ToString();

}
else
{

Response.Redirect("../signin.aspx");
}
}

Page
133
protected void Button1_Click(object sender, EventArgs e)
{
Session.Abandon();
Session.Clear();
Response.Redirect("../signin.aspx");
}
}

Option3.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="Option3.aspx.cs" Inherits="Employee_Option3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<br />

<h2 align="center">Select Options</h2>


<table align="center">
<tr>
<td>
<asp:Button ID="Button1" runat="server" Text="View Employee"
ForeColor="Black" Width="141px" OnClick="Button1_Click" />

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button2" runat="server" Text="Add Additional Details"
ForeColor="Black" Width="141px" OnClick="Button2_Click" />
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<asp:Button ID="Button3" runat="server" Text="Apply Leave"
ForeColor="Black" Width="141px" OnClick="Button3_Click" />

</td>
</tr>

<tr>
<td>&nbsp;</td>
</tr>

<tr>

Page
134
<td>
<asp:Button ID="Button4" runat="server" Text="View Leave"
ForeColor="Black" Width="141px" OnClick="Button4_Click" />

</td>
</tr>

<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button5" runat="server" Text="View Salary"
ForeColor="Black" Width="141px" OnClick="Button5_Click" />

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<asp:Button ID="Button6" runat="server" Text="View Project"
ForeColor="Black" Width="141px" OnClick="Button6_Click" />

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button7" runat="server" Text="View Vacancy"
ForeColor="Black" Width="141px" OnClick="Button7_Click" />

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>

<tr>
<td>
<asp:Button ID="Button8" runat="server" Text="View Profile"
ForeColor="Black" Width="141px" OnClick="Button8_Click"/>

</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>

</table>
<br />
<br />

Page
135
<br />
<br />
</div>
</asp:Content>

Option3.aspx
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_Option3 : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["username"] == null)
{

Response.Redirect("Login.aspx");
}

}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("ViewEmp.aspx");
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("PersnlDetails.aspx");
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Redirect("ApplyLeave.aspx");
}
protected void Button4_Click(object sender, EventArgs e)
{
Response.Redirect("ViewLeave.aspx");
}
protected void Button5_Click(object sender, EventArgs e)
{
Response.Redirect("ViewSalary.aspx");
}
protected void Button6_Click(object sender, EventArgs e)
{
Response.Redirect("ViewProject.aspx");
}
protected void Button7_Click(object sender, EventArgs e)
{
Response.Redirect("ViewVacancy.aspx");
}
protected void Button8_Click(object sender, EventArgs e)
{
Response.Redirect("ViewEProfile.aspx");
}
}

Page
136
Persnldetails.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="PersnlDetails.aspx.cs"
Inherits="Employee_PersnlDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


<style>
h1{
font-style:italic;
color:red;
}

.button {
display: inline-block;
border-radius: 4px;
background-color:gray;
border: none;
color: darkred;
text-align: center;
font-size: 28px;

height:50px;
width:100px;
transition: all 0.5s;
cursor: pointer;
margin: 5px;
}

.button {
cursor: pointer;
display: inline-block;
position: relative;
transition: 0.5s;
}

.button after:hover {
content: '00bb';
position: absolute;
opacity: 0;
top: 0;
right: -20px;
transition: 0.5s;
}

.button:hover{
padding-right: 25px;
}

.button:hover after {
opacity: 1;
right: 0;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div align="center">
<asp:Panel ID="edu" runat="server">
<table align="center">
<tr>
<th colspan="4"><h1>Add Personal Detail</h1></th>

Page
137
</tr>
<tr>
<td>Empid</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"
ForeColor="Black"></asp:TextBox> <%--<asp:TextBox ID="txtempid"
runat="server"></asp:TextBox>--%></td>
</tr>
<tr>
<td>10th</td>
</tr>
<tr>
<td>Board</td>

<td>
<asp:TextBox ID="txt10Board" runat="server" placeholder="Enter
Board" ForeColor="Black"></asp:TextBox>

</td>

<td>Year</td>
<td>
<asp:TextBox ID="txt10Year" runat="server" placeholder="Enter
Year" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td>Percentage</td>
<td>
<asp:TextBox ID="txt10Percentage" runat="server"
placeholder="Enter Percentage" ForeColor="Black"></asp:TextBox>
</td>
<td>Division</td>
<td>
<asp:TextBox ID="txt10Division" runat="server" placeholder="Enter
Division" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>12th</td>
</tr>
<tr>
<td>Board</td>
<td>
<asp:TextBox ID="txt12board" runat="server" placeholder="Enter
Board" ForeColor="Black"></asp:TextBox>
</td>
<td>Year</td>
<td>
<asp:TextBox ID="txt12Year" runat="server" placeholder="Enter
Year" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td>Percentage</td>
<td>
<asp:TextBox ID="txt12Percentage" runat="server"
placeholder="Enter Percentage" ForeColor="Black"></asp:TextBox>
</td>

Page
138
<td>Division</td>
<td>
<asp:TextBox ID="txt12Division" runat="server" placeholder="Enter
Division" ForeColor="#333333"></asp:TextBox>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>Graduation Detail</td>
<td>
<asp:DropDownList ID="ddlGraduation" runat="server"
ForeColor="Black">

<asp:ListItem>B.c.a.</asp:ListItem>
<asp:ListItem>B.tech</asp:ListItem>
<asp:ListItem>B.B.A.</asp:ListItem>
<asp:ListItem>B.com</asp:ListItem>
<asp:ListItem>B.a.</asp:ListItem>
<asp:ListItem>B.sc</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>

<td>University</td>
<td>
<asp:TextBox ID="txtgrdUnivercity" runat="server"
placeholder="Enter Univercity" ForeColor="Black"></asp:TextBox>
</td>
<td>College</td>
<td>
<asp:TextBox ID="txtgrdCollege" runat="server" placeholder="Enter
College" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td>Year</td>
<td>
<asp:TextBox ID="txtgrdYear" runat="server" placeholder="Enter
Year" ForeColor="Black"></asp:TextBox>
</td>
<td>Percentage</td>
<td>
<asp:TextBox ID="txtgrdPercentage" runat="server"
placeholder="Enter Percentage" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td>Division</td>
<td>
<asp:TextBox ID="txtgrdDivision" runat="server"
placeholder="Enter Division" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td> Post Graduation Detail</td>
<td>
<asp:DropDownList ID="ddlPostgraduation" runat="server"
ForeColor="Black">
<asp:ListItem>M.c.a.</asp:ListItem>

Page
139
<asp:ListItem>M.tech</asp:ListItem>
<asp:ListItem>M.sc.</asp:ListItem>
<asp:ListItem>M.B.A.</asp:ListItem>
<asp:ListItem>M.com</asp:ListItem>
<asp:ListItem>M.a.</asp:ListItem>
<asp:ListItem>L.L.B.</asp:ListItem>
<asp:ListItem>Other</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>

<td>University</td>
<td>
<asp:TextBox ID="txtpostgrdUnivercity" runat="server"
placeholder="Enter Univercity" ForeColor="Black"></asp:TextBox>
</td>
<td>College</td>
<td>
<asp:TextBox ID="txtpostgrdCollege" runat="server"
placeholder="Enter College" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td>Year</td>
<td>
<asp:TextBox ID="txtpostgrdYear" runat="server"
placeholder="Enter Year" ForeColor="Black"></asp:TextBox>
</td>
<td>Percentage</td>
<td>
<asp:TextBox ID="txtpostgrdPercentage" runat="server"
placeholder="Enter Percentage" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>
<td>Division</td>
<td>
<asp:TextBox ID="txtpostgrdDivision" runat="server"
placeholder="Enter Division" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>Extra Course</td>
<td>
<asp:TextBox ID="txtExtracourse" runat="server" placeholder="Enter
Course Name" ForeColor="Black"></asp:TextBox>
</td>
</tr>
<tr>

<td>University</td>
<td>
<asp:TextBox ID="txtExtracourseUnivercity" runat="server"
placeholder="Enter Univercity" ForeColor="Black"></asp:TextBox>

</td>
<td>College</td>
<td>

Page
140
<asp:TextBox ID="txtExtracourseCollege" runat="server"
placeholder="Enter College" ForeColor="Black"></asp:TextBox>

</td>
</tr>
<tr>
<td>Year</td>
<td>
<asp:TextBox ID="txtExtracourseYear" runat="server"
placeholder="Enter Year" ForeColor="Black"></asp:TextBox>

</td>
<td>Percentage</td>
<td>
<asp:TextBox ID="txtExtracoursePercentage" runat="server"
placeholder="Enter Percentage" ForeColor="Black"></asp:TextBox>

</td>
</tr>
<tr>
<td>Division</td>
<td>
<asp:TextBox ID="txtExtracourseDivision" runat="server"
placeholder="Enter Division" ForeColor="Black"></asp:TextBox>

</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td></td>

<td colspan="2">
<asp:Button ID="btnsave" runat="server" CssClass="button"
style="vertical-align:middle; top: 0px; left: 0px;" Text="Save" float="left"
OnClick="btnsave_Click" />

</td>
</tr>
</table>
</asp:Panel>
</div>
<br />
<br />
<br />
<div>
<asp:Panel ID="pro" runat="server">
<table align="center">
<tr>
<th colspan="2">
<h1>Profesional Detail</h1>
</th>
</tr>

<tr>
<td colspan="2" align="center">Previous Company Statements</td>
<caption>
<br />
</caption>
</tr>
<tr> <td>&nbsp;</td></tr>
<tr>

Page
141
<td>Job Exprience</td>
<td><asp:TextBox ID="txtJobExprience" runat="server" placeholder="Enter
Job Exprience"></asp:TextBox>
</td>
</tr>
<tr> <td>&nbsp;</td></tr>
<tr>
<td>Previous Company Name</td>
<td><asp:TextBox ID="txtcompanyName" runat="server" placeholder="Enter
Pervious Company Name"></asp:TextBox>
</td>
</tr>
<tr> <td>&nbsp;</td></tr>
<tr>
<td>Previous Post</td>
<td><asp:TextBox ID="txtPost" runat="server" placeholder="Enter Pervious
Post"></asp:TextBox>
</td>
</tr>
<tr> <td>&nbsp;</td></tr>
<tr>
<td>Previous Salary</td>
<td><asp:TextBox ID="txtperviousSalary" runat="server" placeholder="Enter
Pervious Salary"></asp:TextBox>
</td>
</tr>
<tr> <td>&nbsp;</td></tr>
<tr>
<td>Specilization</td>
<td>
<asp:TextBox ID="txtSpecilization" runat="server" placeholder="Enter
Specilization"></asp:TextBox>
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="btnProfsave" runat="server" CssClass="button"
style="vertical-align:middle" Text="Save" float="left" />
</td>
</tr>
</table>
</asp:Panel>
</div>
</asp:Content>

Persnldetails.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_PersnlDetails : System.Web.UI.Page


{

LinqDataContext linq = new LinqDataContext();


Connection con;
protected void Page_Load(object sender, EventArgs e)
{

Page
142
con = new Connection();
if (!IsPostBack)
{
if( Session["empid"]!=null)
{
TextBox1.Text = Session["empid"].ToString();

}
//var dropdown2 = from x in linq.emp1s
// select new
// {
// x.e_id
// };
//foreach (var g in dropdown2)
//{
// TextBox1.Text = g.e_id.ToString();

//}
}
}

//}
//protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
//{
// int eid = int.Parse(DropDownList1.SelectedValue);
// var search = from ser in linq.emp1s
// where ser.e_id == eid
// select new {
// ser.Employee_name
// };
// foreach(var serr in search)
// {
// TextBox1.Text = serr.Employee_name;
// }
//}
//}
protected void btnsave_Click(object sender, EventArgs e)
{

int id=int.Parse(TextBox1.Text);
string tenboard=txt10Board.Text;
int tenyear=int.Parse(txt10Year.Text);
float tenper=float.Parse(txt10Percentage.Text);
string tendiv=txt10Division.Text;
string twelthboard=txt12board.Text;
int twelthyear=int.Parse(txt12Year.Text);
float twelthper=float.Parse(txt12Percentage.Text);
string twelthdiv=txt12Division.Text;
string ugcourse=ddlGraduation.SelectedValue;
string ugunivercity=txtgrdUnivercity.Text;
string ugcollage=txtgrdCollege.Text;
int ugyear=int.Parse(txtgrdYear.Text);
float ugper=float.Parse(txtgrdPercentage.Text);
string ugdiv=txtgrdDivision.Text;
string pgcourse=ddlPostgraduation.SelectedValue;
string pgunivercity=txtpostgrdUnivercity.Text;
string pgcollage=txtpostgrdCollege.Text;
int pgyear=int.Parse(txtpostgrdYear.Text);
float pgper=float.Parse(txtpostgrdPercentage.Text);
string pgdiv=txtpostgrdDivision.Text;
string excourse=txtExtracourse.Text;

Page
143
string exunivercity=txtExtracourseUnivercity.Text;
string excollage=txtExtracourseCollege.Text;
int exyear=int.Parse(txtExtracourseYear.Text);
float exper=float.Parse(txtExtracoursePercentage.Text);
string exdiv=txtExtracourseDivision.Text;
con.insertedudetails(id, tenboard, tenyear, tenper, tendiv, twelthboard,
twelthyear, twelthper, twelthdiv, ugcourse, ugunivercity, ugcollage, ugyear, ugper,
ugdiv, pgcourse, pgunivercity, pgcollage, pgyear, pgper, pgdiv, excourse,
exunivercity, excollage, exyear, exper, exdiv);

}
}

Viewemp.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="ViewEmp.aspx.cs" Inherits="Employee_ViewEmp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<h2>Employee Details</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Candidate Id</th>
<th>Employee Id</th>
<th>Employee Name</th>
<th>DOB</th>
<th>Gender</th>
<th>Email Id</th>
<th>Contact No</th>
<th>Technology</th>
<th>Usertype</th>
<th>Department</th>
<th>Designation</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("candidate_id")%></td>
<td><%#Eval("e_id")%></td>
<td><%#Eval("Employee_name")%></td>
<td><%#Eval("DOB")%></td>
<td><%#Eval("gender")%></td>
<td><%#Eval("email_id")%></td>
<td><%#Eval("contact_no")%></td>
<td><%#Eval("technology")%></td>
<td><%#Eval("usertype")%></td>
<td><%#Eval("dept")%></td>
<td><%#Eval("design")%></td>

</tr>
</ItemTemplate>

Page
144
</asp:Repeater>
</table>
</div>
<div>
<a href="Options2.aspx">Back</a>
</div>
</asp:Content>

Viewemp.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_ViewEmp : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if(Session["empid"]!=null)
{

int empid = int.Parse(Session["empid"].ToString());


con = new Connection();
var c = con.showemp(empid);

Repeater1.DataSource = c;
Repeater1.DataBind();
}

}
}

VieweProfile.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="ViewEProfile.aspx.cs"
Inherits="Employee_ViewEProfile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<br />
<h2>View Personal Profile</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >

<th>Emp Id</th>

Page
145
<th>10th Board</th>
<th>10th Year</th>
<th>10th Per</th>
<th>10th Div</th>
<th>12th Board</th>
<th>12th Year</th>
<th>12th Per</th>
<th>12th Div</th>
<th>UG Course</th>
<th>UG University</th>
<th>UG College</th>
<th>UG Year</th>
<th>UG Per</th>
<th>UG Div</th>
<th>PG Course</th>
<th>PG University</th>
<th>PG College</th>
<th>PG Year</th>
<th>PG Per</th>
<th>PG Div</th>
<th>Extra Course</th>
<th>Extra University</th>
<th>Extra College</th>
<th>Extra Year</th>
<th>Extra Per</th>
<th>Extra Div</th>

</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">

<td><%#Eval("empid")%></td>
<td><%#Eval("ten_board")%></td>
<td><%#Eval("ten_year")%></td>
<td><%#Eval("ten_per")%></td>
<td><%#Eval("ten_div")%></td>
<td><%#Eval("twelth_board")%></td>
<td><%#Eval("twelth_year")%></td>
<td><%#Eval("twelth_per")%></td>
<td><%#Eval("twelth_div")%></td>
<td><%#Eval("ug_course")%></td>
<td><%#Eval("ug_univercity")%></td>
<td><%#Eval("ug_college")%></td>
<td><%#Eval("ug_year")%></td>
<td><%#Eval("ug_per")%></td>
<td><%#Eval("ug_div")%></td>
<td><%#Eval("pg_course")%></td>
<td><%#Eval("pg_univercity")%></td>
<td><%#Eval("pg_college")%></td>
<td><%#Eval("ug_year")%></td>
<td><%#Eval("pg_per")%></td>
<td><%#Eval("pg_div")%></td>
<td><%#Eval("ex_course")%></td>
<td><%#Eval("ex_univercity")%></td>
<td><%#Eval("ex_college")%></td>
<td><%#Eval("ex_year")%></td>
<td><%#Eval("ex_per")%></td>
<td><%#Eval("ex_div")%></td>

Page
146
</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
</asp:Content>

ViewEprofile.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_ViewEProfile : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Session["empid"] != null)
{

int empid = int.Parse(Session["empid"].ToString());


con = new Connection();
var c = con.showeprofile(empid);

Repeater1.DataSource = c;
Repeater1.DataBind();
}
}
}
}

ViewLeave.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="ViewLeave.aspx.cs" Inherits="Employee_ViewLeave" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<br />
<h2>View Employee Leave</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>

<tr style="color:gold;" >

<th>Employee Id</th>
<th>Employee Name</th>

Page
147
<th>Leave Type</th>
<th>Leave Staus</th>
<th>From Date</th>
<th>To Date</th>
<th>Description</th>

</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">

<td><%#Eval("employee_id")%></td>
<td><%#Eval("e_name")%></td>
<td><%#Eval("l_type")%></td>
<td><%#Eval("l_status")%></td>
<td><%#Eval("from_date")%></td>
<td><%#Eval("to_date")%></td>
<td><%#Eval("description")%></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
</asp:Content>

ViewLeave.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_ViewLeave : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{
if (Session["empid"] != null)
{

int empid = int.Parse(Session["empid"].ToString());


con = new Connection();
var c = con.showemplev(empid);

Repeater1.DataSource = c;
Repeater1.DataBind();
}
}
}
}

ViewProject.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="ViewProject.aspx.cs" Inherits="Employee_ViewProject"
%>

Page
148
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<br />
<h2>View Project</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Project Id</th>
<th>Project Title</th>
<th>Project Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("proj_id")%></td>
<td><%#Eval("proj_title")%></td>
<td><%#Eval("proj_descpt")%></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>
<a href="Options3.aspx">Back</a>
</div>
</asp:Content>

ViewProject.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_ViewProject : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
con = new Connection();
var s = from pro in linq.projects
select pro;
Repeater1.DataSource = s;
Repeater1.DataBind();

Page
149
}
}

ViewSalary.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="ViewSalary.aspx.cs" Inherits="Employee_ViewSalary" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<br />

<h3>View Salary</h3>

<table border="1" align="center" class="table">


<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Emp Id</th>
<th>Emp Name</th>
<th>Amount </th>
<th>Date</th>
<th>Month</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("emp_id")%></td>
<td><%#Eval("emp_name")%></td>
<td><%#Eval("e_amount")%></td>
<td><%#Eval("e_date")%></td>
<td><%#Eval("e_month")%></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>

</div>
</asp:Content>

ViewSalary.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_ViewSalary : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{

Page
150
if (!IsPostBack)
{
if (Session["empid"] != null)
{

int empid = int.Parse(Session["empid"].ToString());


con = new Connection();
var c = con.showemplsal(empid);

Repeater1.DataSource = c;
Repeater1.DataBind();
}
}
}
}

ViewVacancy.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Employee/MasterPage3.master"
AutoEventWireup="true" CodeFile="ViewVacancy.aspx.cs" Inherits="Employee_ViewVacancy"
%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div align="center">
<br />
<br />
<br />
<br />
<br />
<h2>View Vacancy</h2>
<table border="1" align="center" class="table">
<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<tr style="color:gold;" >
<th>Vacancy Id</th>
<th>Vacancy Title</th>
<th>Vacancy Post</th>
<th>Vacancy Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr style="color:white; text-align:center; ">
<td><%#Eval("vac_id")%></td>
<td><%#Eval("vac_title")%></td>
<td><%#Eval("vac_post")%></td>
<td><%#Eval("vac_descpt")%></td>

</tr>
</ItemTemplate>
</asp:Repeater>
</table>
</div>
<div>
<a href="Options3.aspx">Back</a>
</div>
</asp:Content>

ViewVacancy.cs

Page
151
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Employee_ViewVacancy : System.Web.UI.Page


{
LinqDataContext linq = new LinqDataContext();
Connection con;
protected void Page_Load(object sender, EventArgs e)
{

if (!IsPostBack)
{
con = new Connection();
var v = from va in linq.vacancies
select va;
// Repeater1.DataSource = v;
// Repeater1.DataBind();
Repeater1.DataSource = v;
Repeater1.DataBind();

}
}
}

Page
152

You might also like