0% found this document useful (0 votes)
46 views

Campus Selection System

The document describes a campus selection system created using C# .NET and WinForms. The system streamlines the campus hiring process by connecting employers and students. For recruiters, it provides a platform to post jobs, review profiles, and schedule interviews. Students can create profiles, submit resumes, and apply to relevant positions. The system incorporates features like resume uploads and interview scheduling to facilitate the recruitment process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Campus Selection System

The document describes a campus selection system created using C# .NET and WinForms. The system streamlines the campus hiring process by connecting employers and students. For recruiters, it provides a platform to post jobs, review profiles, and schedule interviews. Students can create profiles, submit resumes, and apply to relevant positions. The system incorporates features like resume uploads and interview scheduling to facilitate the recruitment process.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

Campus Selection System

The Campus Selection System, meticulously crafted using C# .NET and


WinForms, stands as a testament to the seamless integration of technology into
the campus hiring process. This sophisticated system serves as a professional
intermediary, connecting prospective employers and talented students in an
efficient and user-friendly manner.
For recruiters, the system provides a streamlined platform for posting job
opportunities, reviewing comprehensive student profiles, and scheduling
interviews. Meanwhile, students benefit from an intuitive interface to create
profiles, submit resumes, and apply for positions relevant to their career
aspirations. The use of C# for backend logic ensures robust functionality, while
WinForms contributes to a polished and responsive graphical user interface.
The Campus Selection System, through its meticulous design, incorporates
features such as secure resume uploads, simplified interview scheduling, and
real-time communication channels. Its implementation adheres to the highest
standards of professionalism, offering an advanced and contemporary approach
to campus placements. This project not only exemplifies technical prowess but
also represents a commitment to elevating the recruitment experience for both
students and employers in an academic setting.

AddCompany.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace CampusRecruitmentSystemCSharp
{
public partial class AddCompany : Form
{
public AddCompany()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
string gen = string.Empty;

try
{
string str = "INSERT INTO
company(name,since,center,ceo,founder,emp,username,pass) VALUES('" + TextBox2.Text +
"','" + TextBox3.Text+ "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" +
TextBox7.Text + "','" + TextBox8.Text + "','" + TextBox9.Text + "'); ";

SqlCommand cmd = new SqlCommand(str, con);


cmd.ExecuteNonQuery();

//-------------------------------------------//

string str1 = "select max(Id) from company;";

SqlCommand cmd1 = new SqlCommand(str1, con);


SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
MessageBox.Show("Company Information Saved Successfully..");
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";

}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}

private void button2_Click(object sender, EventArgs e)


{
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
}

private void AddCompany_Load(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
string str1 = "select max(id) from company;";

SqlCommand cmd1 = new SqlCommand(str1, con);


SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
string val = dr[0].ToString();
if (val == "")
{
textBox1.Text = "1";
}
else
{
int a;
a = Convert.ToInt32(dr[0].ToString());
a = a + 1;
textBox1.Text = a.ToString();
}
}
con.Close();
}
}
}

AddStudent.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace CampusRecruitmentSystemCSharp
{
public partial class AddStudent : Form
{
public AddStudent()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
string gen = string.Empty;
try
{
string str = "INSERT INTO
student(f_name,m_name,l_name,gen,email,cont,city,addr,dob,age,sch,s_yop,s_uni,s_aggr,hsc,
h_yop,h_uni,h_aggr,coll,c_yop,c_uni,c_aggr,depart,o_qualif,username,password) VALUES('" +
textBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','"+gen +"','" + TextBox4.Text +
"','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox8.Text + "','"
+ TextBox9.Text + "','" + TextBox10.Text + "','" + TextBox11.Text + "','" + TextBox12.Text + "','"
+ TextBox13.Text + "','" + TextBox14.Text + "','" + TextBox15.Text + "','" + TextBox16.Text + "','"
+ TextBox17.Text + "','" + TextBox18.Text + "','" + TextBox19.Text + "','" + TextBox20.Text +
"','" + TextBox21.Text + "','" + TextBox22.Text + "','" + TextBox23.Text + "','"+TextBox24.Text
+"','"+TextBox25.Text +"'); ";

SqlCommand cmd = new SqlCommand(str, con);


cmd.ExecuteNonQuery();

//-------------------------------------------//

string str1 = "select max(Id) from student;";

SqlCommand cmd1 = new SqlCommand(str1, con);


SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
MessageBox.Show("student Information Saved Successfully..");
textBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
TextBox10.Text = "";
TextBox11.Text = "";
TextBox12.Text = "";
TextBox13.Text = "";
TextBox14.Text = "";
TextBox15.Text = "";
TextBox16.Text = "";
TextBox17.Text = "";
TextBox18.Text = "";
TextBox19.Text = "";
TextBox20.Text = "";
TextBox21.Text = "";
TextBox22.Text = "";
TextBox23.Text = "";
TextBox24.Text = "";
TextBox25.Text = "";
radioButton1.Checked = true;
}

}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}

private void Button2_Click(object sender, EventArgs e)


{
textBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
TextBox10.Text = "";
TextBox11.Text = "";
TextBox12.Text = "";
TextBox13.Text = "";
TextBox14.Text = "";
TextBox15.Text = "";
TextBox16.Text = "";
TextBox17.Text = "";
TextBox18.Text = "";
TextBox19.Text = "";
TextBox20.Text = "";
TextBox21.Text = "";
TextBox22.Text = "";
TextBox23.Text = "";
TextBox24.Text = "";
TextBox25.Text = "";
radioButton1.Checked = true;
}
}
}

AddVacancy.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace CampusRecruitmentSystemCSharp
{
public partial class AddVacancy : Form
{
public AddVacancy()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
string gen = string.Empty;

try
{
string str = "INSERT INTO vacancy(c_id,c_name,profile,salary,eligible,bond,email)
VALUES('" + textBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text
+ "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "'); ";

SqlCommand cmd = new SqlCommand(str, con);


cmd.ExecuteNonQuery();

//-------------------------------------------//

string str1 = "select max(Id) from vacancy;";

SqlCommand cmd1 = new SqlCommand(str1, con);


SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
MessageBox.Show("Vacancy Information Saved Successfully..");
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";

}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}

private void Button2_Click(object sender, EventArgs e)


{
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
}
}
}

ViewCompany.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace CampusRecruitmentSystemCSharp
{
public partial class ViewCompany : Form
{
public ViewCompany()
{
InitializeComponent();
}

private void ViewCompany_Load(object sender, EventArgs e)


{
// TODO: This line of code loads data into the 'compusDataSet.company' table. You can
move, or remove it, as needed.
this.companyTableAdapter.Fill(this.compusDataSet.company);
using (SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True"))
{

string str2 = "SELECT * FROM company";


SqlCommand cmd2 = new SqlCommand(str2, con);
SqlDataAdapter da = new SqlDataAdapter(cmd2);
DataTable dt = new DataTable();
da.Fill(dt);

DataGridView1.DataSource = new BindingSource(dt, null);


}
}

private void button1_Click(object sender, EventArgs e)


{
using (SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True"))
{

string str2 = "SELECT * FROM company where id='"+textBox1.Text +"'";


SqlCommand cmd2 = new SqlCommand(str2, con);
SqlDataAdapter da = new SqlDataAdapter(cmd2);
DataTable dt = new DataTable();
da.Fill(dt);

DataGridView1.DataSource = new BindingSource(dt, null);


}
}
}
}

ViewVacancy.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace CampusRecruitmentSystemCSharp
{
public partial class ViewVacancy : Form
{
public ViewVacancy()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
if (textBox1.Text != "")
{
try
{
string getCust = "select c_name,profile,salary,eligible,bond,email from vacancy
where id=" + Convert.ToInt32(textBox1.Text) + " ;";

SqlCommand cmd = new SqlCommand(getCust, con);


SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{
Label9.Text = dr.GetValue(0).ToString();
Label10.Text = dr.GetValue(1).ToString();
Label11.Text = dr.GetValue(2).ToString();
Label12.Text = dr.GetValue(3).ToString();
Label13.Text = dr.GetValue(4).ToString();
Label14.Text = dr.GetValue(5).ToString();

}
else
{
MessageBox.Show(" Sorry, This ID, " + textBox1.Text + " Vacancy Record is not
Available. ");
textBox1.Text = "";
}
}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}
}

private void Button2_Click(object sender, EventArgs e)


{
Label10.Text = "";
Label11.Text = "";
Label12.Text = "";
Label13.Text = "";
Label14.Text = "";
Label9.Text = "";
}
}
}

UpdateCompany.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace CampusRecruitmentSystemCSharp
{
public partial class UpdateCompany : Form
{
public UpdateCompany()
{
InitializeComponent();
}

private void UpdateCompany_Load(object sender, EventArgs e)


{
// TODO: This line of code loads data into the 'compusDataSet2.company' table. You
can move, or remove it, as needed.
this.companyTableAdapter.Fill(this.compusDataSet2.company);
using (SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True"))
{

string str2 = "SELECT * FROM company";


SqlCommand cmd2 = new SqlCommand(str2, con);
SqlDataAdapter da = new SqlDataAdapter(cmd2);
DataTable dt = new DataTable();
da.Fill(dt);

DataGridView1.DataSource = new BindingSource(dt, null);


}
}

private void button1_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
if (textBox1.Text != "")
{
try
{
string getCust = "select name,since,center,ceo,founder,emp,username,pass from
company where id=" + Convert.ToInt32(textBox1.Text) + " ;";

SqlCommand cmd = new SqlCommand(getCust, con);


SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{
TextBox2.Text = dr.GetValue(0).ToString();
TextBox3.Text = dr.GetValue(1).ToString();
TextBox4.Text = dr.GetValue(2).ToString();
TextBox5.Text = dr.GetValue(3).ToString();
TextBox6.Text = dr.GetValue(4).ToString();
TextBox7.Text = dr.GetValue(5).ToString();
TextBox8.Text = dr.GetValue(6).ToString();
TextBox9.Text = dr.GetValue(7).ToString();

}
else
{
MessageBox.Show(" Sorry, This ID, " + textBox1.Text + " Company Record is
not Available. ");
textBox1.Text = "";
}
}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}
}

private void button2_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
try
{
string str = " Update company set name='" + TextBox2.Text + "',since='" +
TextBox3.Text + "',center='" + TextBox4.Text + "',ceo='" + TextBox5.Text + "',founder='" +
TextBox6.Text + "',emp='" + TextBox7.Text + "',username='" + TextBox8.Text + "',pass='" +
TextBox9.Text + "' where id='" + textBox1.Text + "'";

SqlCommand cmd = new SqlCommand(str, con);


cmd.ExecuteNonQuery();

string str1 = "select max(id) from company;";

SqlCommand cmd1 = new SqlCommand(str1, con);


SqlDataReader dr = cmd1.ExecuteReader();
if (dr.Read())
{
MessageBox.Show("" + TextBox2.Text + "'s Details is Updated Successfully.. ",
"Important Message");
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";

}
}
catch (SqlException excep)
{
MessageBox.Show(excep.Message);
}
con.Close();
}

private void Button3_Click(object sender, EventArgs e)


{
SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\
MSSQLLocalDB;AttachDbFilename=c:\users\dell\documents\visual studio 2015\Projects\
CampusRecruitmentSystemCSharp\CampusRecruitmentSystemCSharp\compus.mdf;Integrated
Security=True");
con.Open();
try
{
string str = "DELETE FROM company WHERE id = '" + textBox1.Text + "'";

SqlCommand cmd = new SqlCommand(str, con);


cmd.ExecuteNonQuery();
con.Close();
MessageBox.Show("company Record Delete Successfully");
using (con)
{

string str2 = "SELECT * FROM company";


SqlCommand cmd2 = new SqlCommand(str2, con);
SqlDataAdapter da = new SqlDataAdapter(cmd2);
DataTable dt = new DataTable();
da.Fill(dt);

DataGridView1.DataSource = new BindingSource(dt, null);


}
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox5.Text = "";
TextBox6.Text = "";
TextBox7.Text = "";
TextBox8.Text = "";
TextBox9.Text = "";
}

catch (SqlException ex)


{
MessageBox.Show(ex.Message);
MessageBox.Show("Please Enter Company Record Id..");
}
}
}
}

HomeStudent.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CampusRecruitmentSystemCSharp
{
public partial class HomeStudent : Form
{
public HomeStudent()
{
InitializeComponent();
}

private void AddStudentToolStripMenuItem_Click(object sender, EventArgs e)


{
AddStudent obj = new CampusRecruitmentSystemCSharp.AddStudent();
obj.ShowDialog();
}

private void ViewVacancyToolStripMenuItem_Click(object sender, EventArgs e)


{
ViewVacancy obj1 = new CampusRecruitmentSystemCSharp.ViewVacancy();
obj1.ShowDialog();
}

private void ViewCompanyToolStripMenuItem_Click(object sender, EventArgs e)


{
ViewCompany obj2 = new CampusRecruitmentSystemCSharp.ViewCompany();
obj2.ShowDialog();
}

private void LogoutToolStripMenuItem_Click(object sender, EventArgs e)


{
Form1 obj3 = new CampusRecruitmentSystemCSharp.Form1();
obj3.ShowDialog();
}
}
}

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy