Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ABSTRACT
system for the HR Group for a company. Some features of this system will be creating
interviews, storing Interview results for the applicant and finally Hiring of the applicant.
website in which jobseekers can register themselves and then attend the exam. Based on
the outcome of the exam the jobseekers will be short listed. For fresher, the exam will be
conducted at some venue after short listing of the preliminary Aptitude Test. The details
of the examination, venue & Date of the examination will be made available to them
1. Administrator: Administrator has the full authority over the website. He can
view all the registered users and have the power to delete them. He can edit the web
pages and update them. He can view all the company details also.
directed to his homepage. Here he can update his profile, change password and see the
or disapprove candidates attending examination and provides results about the selected
candidates.
PROBLEM DESCRIPTION
A System analysis is the detailed study of the various operations performed by the
system and their relationships within and outside the system. Analysis is the process of
breaking something into its parts so that the whole may be understood. System Analysis
is concerned with becoming aware of the problem, identifying the relevant and most
decisional variables, analyzing and synthesizing the various factors and determining an
system solutions are studied and recommendations are made about committing the
SYSTEM SPECIFICATION
Hardware Specification
CPU : PENTIUM IV
COPROCESSOR : BUILT IN
HARD DISK : 40 GB
Software Specification
SYSTEM STUDY
CGPU MS 4
EXISTING SYSTEM
employees they make an announcement through newspaper. People who are eligible send
application to the organization or company. From these applications they are called for
interviews or tests. After tests company has to do short listing manually. From these
shortlisted candidates, they are called for interviews. After interview short listed
Recruitment is done manually. These tasks are time consuming. It may take one
month or long. People around the world cannot apply. Online CGPU system is very
convenient because in the manual system there are lots of difficulties in conducting and
PROPOSED SYSTEM
system for the HR Group for a company. Some features of this system will be creating
Interviews, Storing Interview results for the applicant and finally hiring of the applicant.
This project Online CGPU is an online website in which jobseekers can register
themselves and then attend the exam. Based on the outcome of the exam the jobseekers
will be shortlisted. The details of the examination & Date of the examination will be
made available to them through the website. People all around the world can apply and
Online CGPU enables the users to have the typical examination facilities and
features at their disposal. It resolves typical issues of manual examination processes and
activities into a controlled and closely monitored work flow in the architecture of the
application. This multi platform solution brings in by default, the basic intelligence and
immense possibilities for further extension of the application as required by the user. The
system makes it friendly to distribute, share and manage the examination entities with
higher efficiency and easiness. It is a comprehensive resource for finding a job online.
A Data Flow Diagram (DFD) is a diagram that describes the flow of data and
the processes that change or transform data throughout a system. It’s a structured analysis
and design tool that can be used for flowcharting in place of, or in association with,
CGPU MS 6
information oriented and process oriented system flowcharts. When analysts prepare the
Data Flow Diagram, they specify the user needs at a level of detail that virtually
determines the information flow into and out of the system and the required data
resources. This network is constructed by using a set of symbols that do not imply a
physical implementation. The Data Flow Diagram reviews the current physical system,
prepares input and output specification, specifies the implementation plan etc.
Four basic symbols are used to construct data flow diagrams. They are symbols that
represent data source, data flows, and data transformations and data storage. The points at
which data are transformed are represented by enclosed figures, usually circles, which are
called nodes.
_ Source or
Destination of data
_ Data Flow
_ Process
_ Storage
Context Diagram
CGPU MS 7
Administrator
Online
Company Candidate
CGPU
Database
CGPU MS 8
If authenticated user
Admin
Login Tbl Login
Username, Password
Compa
ny
Manage
ment
System
1.1.1
User Data
Manage store
ment
1.1.2
Short
listing
of
Candid
ates
CGPU MS 9
Update user
Validate Tbl Login
Compan
y Status
Admin
Update
Validate Tbl Login
user
Resume of
Admin View
Resume Tbl Candidate
Registered users
User details
View
Details
CGPU MS 1
1
SOFTWARE DESCRIPTION
programmers create standalone, websites, web applications, and web services that run on
any platforms supported by Microsoft’s .Net Framework(for all versions after 6).
Supported platforms include Microsoft windows, servers and workstations, Pocket PC,
Smart Phones and World Wide Web browsers not Java Virtual Machine that all other
The most important language feature added in this version was the introduction of
generics, which are similar in many aspects to C++ templates. This potentially increases
the number of bugs caught at compile time instead of run time by encouraging the use of
strict type checking in areas where it was not possible before. C++ also got a similar
upgrade with the addition of C++/CLI which is slated to replace the use of Managed C++.
Other new features of Visual Studio 2005 include the “Development Designer” which
for web publishing when combined with ASP.NET 2.0 and load testing to see application
The .NET framework is an integral windows component that supports building and
running the next generation of applications and XML web services. The key component
of the .NET framework are the common language runtime and the .NET frame work
library, which includes ADO.NET, ASP.NET, and windows forms. The .NET framework
executed remotely.
application.
The .NET framework has two main components: the common language
runtime and the .NET framework class library. The common language runtime
is the foundation of the .Net framework. You can think of the runtime as an
agent that manages code at execution time, remoting while also enforcing
strict type safely and other forms of code accuracy that ensure security and
of the runtime.
CGPU MS 1
4
Code that targets the runtime is known as managed code, while code that does
not target the runtime is known as unmanaged code. The class library, the
oriented collection reusable types that you can use to develop applications
The .NET framework can be hosted by unmanaged component that load the
CLR into their processes and initiate the execution of managed code.
ASP.NET works directly with the runtime to enable ASP.NET application and
XML web services, both of which are discussed later in this topic.
Internet explorer is an unmanaged application that hosts the runtime (in the
form of a MIME type extension) using internet explorer to the host runtime
HTML documents. Hosting the runtime in this way makes mobile code
possible, but with significant improvement that only managed code can offer,
runtime and the class library to your application and to the overall system. The
architecture.
We can use the .NET framework to develop the following types of application
and services:
CGPU MS 1
5
Console applications
Windows services
when features such as life cycle management strong type naming, cross
amount of code that a developer must write to turn the business logic the
(IIS) for building web applications with ASP.Net and the next release of
”managed” by the .NET framework to write your business logic, while still
ASP.NET
ASP.NET pages and ASP.NET web services files contain server-side (as
Web applications and XML Web Services take advantage of the features
IIS
the world’s second most popular web server in terms of overall websites.
ADO.NET
SQL Server and XML, as well as to data sources exposed through OLE
connect to these data sources and retrieve, manipulate, and update the data
System.Xml.ddl.
ADO.NET Components
There are two components of ADO.NET that you can use to access and
manipulate data:
The DataSet
The .Net framework Data Providers are components that have been
return data, modify data, run stored procedures, and send or retrieve
stream of data from the data source. Finally the Data Adapter provides the
bridge between the DataSet object and the data source. The Data Adapter
object uses the command object to execute SQL Commands at the data
source to both load the DataSet with data, and reconcile changes made to
The DataSet
of any data source.As a result, it can be used with multiple and differing
data sources, used with XML data, or used to manage data local to the
objects made uop of rows and columns of data, as well as primary key,
foreign key, constraint, and relation information about the data in the
DataTable objects.
Benefits of ADO.NET
ADO.NET offers several advantages over previous versions of ADO and over
other data access components.These benefits fall into the following categories:
1. Interoperability
CGPU MS 1
9
2. Maintainability
3. Programmability
4. Scalability
DATABASE DESIGN
TABLES USED
CODING
Db connection
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
CGPU MS 2
2
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
/// <summary>
/// Summary description for dbConnection
/// </summary>
public class dbConnection
{
SqlConnection con;
SqlCommand cmd;
public static string cns = "Data
Source=.\\SQLEXPRESS;AttachDbFilename=|
DataDirectory|\\CGPU.mdf;Integrated Security=True;User Instance=True";
}
Bussiness Layer
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
//*****************
using System.Collections;
/// <summary>
/// Summary description for BussinessLayer
/// </summary>
public class BussinessLayer
{
public BussinessLayer()
{
CGPU MS 2
3
//
// TODO: Add constructor logic here
//
}
public static DataTable GetData(string query)
{
SqlConnection conn = dbConnection.OpenConnection();
SqlDataAdapter da = new SqlDataAdapter(query, conn);
DataTable dt = new DataTable();
da.Fill(dt);
dbConnection.CloseConnection(conn);
return dt;
}
public static SqlDataReader getReaderData(String sql)
{
SqlConnection conn = dbConnection.OpenConnection();
SqlCommand cmd = new SqlCommand(sql, conn);
return cmd.ExecuteReader();
}
public static bool PutData(string query)
{
try
{
SqlConnection conn = dbConnection.OpenConnection();
SqlCommand cmd = new SqlCommand(query, conn);
int i = cmd.ExecuteNonQuery();
dbConnection.CloseConnection(conn);
if (i > 0)
return true;
else
return false;
}
catch (Exception ex)
{
return false;
}
public static string GetSingleData(string query)
{
SqlConnection conn = dbConnection.OpenConnection();
SqlCommand cmd = new SqlCommand(query, conn);
object o = cmd.ExecuteScalar();
String s = o.ToString();
dbConnection.CloseConnection(conn);
return s;
}
Add question
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
}
protected void btnSave_Click(object sender, EventArgs e)
{
int qno=1;
String qst, ch1, ch2, ch3, ch4, ans;
qst = txtQstn.Text;
ch1 = txtCh1.Text;
ch2 = txtCh2.Text;
ch3 = txtCh3.Text;
ch4 = txtCh4.Text;
ans = txtAns.Text;
Admincanview
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
CGPU MS 2
6
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session.Count == 0)
{
Response.Redirect("home.aspx");
}
}
}
Adminchangepass
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
Label1.Visible = true;
Label1.Text = "Successfully changed";
//Response.Write("<script>alert('Success')</script>");
if (Session.Count == 0)
{
Response.Redirect("home.aspx");
}
x = Session["uname"].ToString();
if (!IsPostBack)
{
if (dtb.Rows.Count == 0)
{
}
else
{
txtName.Text = dtb.Rows[0]["Name"].ToString();
txtColname.Text = dtb.Rows[0]
["CollegeName"].ToString();
txtColph.Text = dtb.Rows[0]["CollegePhone"].ToString();
txtColemail.Text = dtb.Rows[0]
["CollegeEmail"].ToString();
ddlDegree.SelectedValue = dtb.Rows[0]
["Degree"].ToString();
ddlBranch.SelectedValue = dtb.Rows[0]
["Branch"].ToString();
txtmark.Text = dtb.Rows[0]["Mark"].ToString();
txtemail.Text = dtb.Rows[0]["Email"].ToString();
txtContact.Text = dtb.Rows[0]["Contactno"].ToString();
txtHomeadd.Text = dtb.Rows[0]["Address"].ToString();
CGPU MS 2
8
ddlState.SelectedValue = dtb.Rows[0]
["State"].ToString();
txtPin.Text = dtb.Rows[0]["pincode"].ToString();
}
}
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
String cname = txtName.Text;
String Colname = txtColname.Text;
String ph = txtColph.Text;
String Colemail = txtColemail.Text;
String degree = ddlDegree.SelectedValue;
String branch = ddlBranch.SelectedValue;
String mark = txtmark.Text;
String add = txtHomeadd.Text;
String email = txtemail.Text;
String contact = txtContact.Text;
String state = ddlState.SelectedValue;
String pin = txtPin.Text;
try
{
String sql1 = "update tblStudent set Name='" + cname +
"', Address='" + add + "',CollegeName='" + Colname +
"',CollegePhone='" + ph + "', CollegeEmail='" + Colemail
+
"',Degree='" + degree + "',Branch='" + branch +
"',Mark='" + mark +
"',Email='" + email + "',Contactno='" + contact +
"',State='" + state + "',pincode='" + pin + "' where
Username='" + x + "'";
bool Insert1 = BussinessLayer.PutData(sql1);
if (Insert1)
{
lblmsg.Text = "Details successfully updated";
}
}
catch (Exception ex)
{
Response.Write(ex.ToString());
}
}
}
Companycreateexam
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
CGPU MS 2
9
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
if (dr.Read())
{
txtCname.Text = dr.GetString(0);
}
dr.Close();
}
}
protected void btndot_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs
e)
{
txtdate.Text = Calendar1.SelectedDate.ToShortDateString();
Calendar1.Visible = false;
}
protected void btnCreate_Click(object sender, EventArgs e)
{
if (txtdate.Text == "")
{
Response.Write("<scriptalert('Select a date');</script>");
return;
}
String cname,edate,sub,cid;
cname=txtCname.Text;
edate=txtdate.Text;
sub=DDL.Text;
cid=Session["uname"].ToString();
Comreg
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (txtcomadd.Text == "" || txtcomcontact.Text == "" ||
txtcomemail.Text == "" || txtcomname.Text == "" || txtcompassword.Text
== "" || txtcompost.Text == "" || txtcomusername.Text == "")
{
Response.Write("<script>alert('Missing Fields! Please fillup
all the fields')</script>");
}
else
{
String Status = "c";
String sql1 = "insert into tblLogin
(Username,Password,Status) values('" +
txtcomusername.Text + "','" + txtcompassword.Text +
"','" + Status + "')";
CGPU MS 3
1
String sql2 = "insert into tblCompany
(Name,Address,Post,Criteria,Username,Phone,Email) values('" +
txtcomname.Text + "','" + txtcomadd.Text + "','" + txtcompost.Text +
"','" + txtcomcriteria.Text + "','" + txtcomusername.Text + "','" +
txtcomcontact.Text + "','" + txtcomemail.Text + "')";
bool Insert1 = BussinessLayer.PutData(sql1);
bool Insert2 = BussinessLayer.PutData(sql2);
}
}
}
Exam1
using System;
CGPU MS 3
2
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
//while (dr.Read())
//{
// ddlCompany.Items.Add(dr.GetString(0));
//}
//dr.Close();
ddlCompany.DataSource = BussinessLayer.GetData(sql);
ddlCompany.DataTextField = "CompanyName";
ddlCompany.DataValueField = "CompanyCode";
ddlCompany.DataBind();
ddlCompany.Items.Insert(0,new ListItem("<Select Company>",
"0"));
//ddlSubject.Items.Add("<Select Subject>");
//ddlExamID.Items.Add("<Select ExamId>");
}
}
protected void ddlCompany_SelectedIndexChanged(object sender,
EventArgs e)
{
String sql = "Select DISTINCT Subject From ExamDetails WHERE
CompanyCode='" + ddlCompany.SelectedValue + "'";
ddlSubject.DataSource = BussinessLayer.GetData(sql);
ddlSubject.DataTextField = "Subject";
ddlSubject.DataValueField = "Subject";
ddlSubject.DataBind();
ddlSubject.Items.Insert(0, new ListItem("<Select Subject>",
"0"));
}
protected void ddlSubject_SelectedIndexChanged(object sender,
EventArgs e)
{
String sql = "Select DISTINCT ExamCode From ExamDetails WHERE
CompanyCode='" + ddlCompany.SelectedValue + "' AND Subject='" +
ddlSubject.SelectedValue + "'";
CGPU MS 3
3
ddlExamID.DataSource = BussinessLayer.GetData(sql);
ddlExamID.DataTextField = "ExamCode";
ddlExamID.DataValueField = "ExamCode";
ddlExamID.DataBind();
ddlExamID.Items.Insert(0, new ListItem("<Select ExamId>", "0"));
}
protected void Button1_Click(object sender, EventArgs e)
{
Session.Add("Company", ddlCompany.SelectedValue);
Session.Add("Subject", ddlSubject.SelectedValue);
Session.Add("ExamId", ddlExamID.SelectedValue);
Response.Redirect("~/perform_test.aspx");
}
}
Perform_test
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
set
{
this.ViewState["_CurrentPage"] = value;
}
}
//Response.Write(Session["Company"]);
if (!Page.IsPostBack)
{
Session.Add("CorrectAnswers", 0);
Session.Add("Questions", getRandomNumbers(3, 5));
Session.Add("Answer", "");
}
if (repeat_exam_data.Controls.Count > 0)
{
for (int i = 1; i <= 4; i++)
{
RadioButton rad =
repeat_exam_data.Controls[0].FindControl("Choice" + i.ToString()) as
RadioButton;
if (rad.Checked)
{
Session["Answer"] = rad.Text;
break;
}
CGPU MS 3
5
}
}
GetPage();
}
exam_data =
BussinessLayer.GetExamData(Session["Company"].ToString(),
Session["Subject"].ToString(), Session["ExamId"].ToString());
PagedDataSource pgds = new PagedDataSource();
pgds.DataSource = exam_data.DefaultView;
pgds.AllowPaging = true;
pgds.PageSize = 1;
pgds.CurrentPageIndex = CurrentPage;
repeat_exam_data.DataSource = pgds;
repeat_exam_data.DataBind();
Cmd_Next.Enabled = !pgds.IsLastPage;
Cmd_Finish.Enabled = pgds.IsLastPage;
lblQno.Text = Convert.ToString((CurrentPage + 1));
lblCorrectAnswers.Text = Session["CorrectAnswers"].ToString();
}
protected void Cmd_Next_Click(object sender, EventArgs e)
{
CalculateMark();
CurrentPage += 1;
GetPage();
}
protected void Cmd_Finish_Click(object sender, EventArgs e)
{
CalculateMark();
}
}
CGPU MS 3
6
Regform
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
if (!IsPostBack)
{
for (int i = 1950; i <= 2000; i++)
{
ddlYear.Items.Add(i.ToString());
}
}
}
if (ddlMonth.SelectedIndex == 1)
{
ddlDate.Items.Clear();
for (int i = 1; i < 29; i++)
{
ddlDate.Items.Add(i.ToString());
}
/* if (int.Parse(ddlYear.SelectedItem.ToString()) % 4 ==
0)
{
ddlDate.Items.Add("29");
}*/
}
else if (ddlMonth.SelectedIndex == 4 ||
ddlMonth.SelectedIndex == 6 || ddlMonth.SelectedIndex == 9 ||
ddlMonth.SelectedIndex == 11)
{
ddlDate.Items.Clear();
for (int i = 1; i < 31; i++)
{
ddlDate.Items.Add(i.ToString());
CGPU MS 3
7
}
}
else
{
ddlDate.Items.Clear();
for (int i = 1; i < 32; i++)
{
ddlDate.Items.Add(i.ToString());
}
string sex;
string dt;
if (rdbMale.Checked == true)
sex = "Male";
else
sex = "Female";
dt=ddlDate.Text + "/" + ddlMonth.Text + "/" + ddlYear.Text ;
String Status="s";
if (txtColemail.Text == "" || txtColname.Text == "" ||
txtColph.Text == "" || txtContact.Text == "" || txtDegreemark.Text == ""
|| txtemail.Text == "" || txtHomeadd.Text == "" || txtMarkX.Text == ""
|| txtMarkXII.Text == "" || txtName.Text == "" || txtPassword.Text == ""
|| txtPin.Text == "" || txtUsername.Text == "")
{
lblmsg.Visible = true;
lblmsg.Text = "Missing Fields";
}
else
{
}
}
CGPU MS 3
9
/* protected void ddlcategory_SelectedIndexChanged(object sender,
EventArgs e)
{
if (ddlcategory.Text == "Fresher")
{
txtExpYears.Enabled = false;
txtCompanyAdd.Enabled = false;
txtCompany.Enabled = false;
txtdesignation.Enabled = false;
txtSalary.Enabled = false;
}
else
{
txtExpYears.Enabled = true;
txtCompanyAdd.Enabled = true;
txtCompany.Enabled = true;
txtdesignation.Enabled = true;
txtSalary.Enabled = true;
}
}*/
}
CGPU MS 4
0
ER Diagram
Company
Code
Company
Name Exam
Subject
Code
Exam
Date ExamDetails
Exam
Company ID
ID
Qst No Subject
Question
Choice
Question
1
Choice
2 Answer
Choice 3
Choice 4
CGPU MS 4
1
User
Address name
Post
Company
DO
College
Criteria B
Name Gend
Addre
er
Email
ss Mark
Name Phone
Userna
College
Student me
Phone
College
Email Email
Usernam
Degree Contact
e Status
Passwor no
Branch
d State
Pin
Login
code
Exam Student
ID ID
Result
CGPU MS 4
2
SCREENSHOTS
Screen: 1
CGPU MS 4
3
Screen: 2
CGPU MS 4
4
Screen3
CGPU MS 4
5
Screen4
CGPU MS 4
6
and searching the appropriate candidate for a specific job has become a huge task. And so
for realizing the need of easy management of this process the site has been developed. It’s
very easy to update and maintain information through this site. The main features of this
site includes flexibility, easy to manipulate information’s easy access searching, storage,
reduce manual work in an efficient manner , a quick, convenient, reliable, timely and
effective way to reach recruiting, search and employment professionals worldwide and
most economical. The project could very well be enhanced further as per the
requirements.
more strategic decision making process is fast gaining ground as a popular outsourced
function. Most Online Recruiting sites deliver easy-to-use search capabilities, customer
service and convenience. The immense power of web enabling crucial recruitment
processes to covert them into online recruitment systems is a key factor in easing out the
recruitment processes. Recruiting and staffing software makes data collection easier and
tasks get completed quicker. The return on investment is immediate, simply because of
the reduced time and increased ease of recruitment processes. E-Recruiting technology is
CGPU MS 4
7
skill-based with automated pre-screening features which is the next step in the evolution
of online recruiting.
increase dramatically in the next few years as corporate end users upgrade their hiring
The three macro economics trends that are seen as fuelling the growth of this
industry are:
In wake of the new and related trends, it is imperative for frequent upgrades to a
company’s software or web applications to make it easier for clients and employees to
BIBLIOGRAPHY
Book Referred:
edition)
Site Referred:
www.google.com
www.w3schools.com
CGPU MS 4
9
www.yahoo.com