Академический Документы
Профессиональный Документы
Культура Документы
In the order to work with the application, the user will have to click
the Login button located at the welcome screen. If the user wants to exit the
application without logging in the user may simply click on Logout button
which is located below the ‘Login’ button is disabled at the startup of the
application but is enabled as soon as the user clicks the ‘Login’ button(at
least once).
The coding behind the ‘Login’ button, the ‘logout’ button and the
form are as follows:-
namespace human_resource_management
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Close();
}
}
}
}
namespace human_resource_management
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
}
if (ctr < 3)
{
lblMessage.Visible = true;
lblMessage.Text = "Incorrect User Name or Password. Please
try again.";
txtUserName.Focus();
}
else
{
MessageBox.Show("UnauthorizedAccess.Aborting.............");
Close();
}
}
}
}
This is the HR Management Menu form:-
This is the HR Management Menu form. It has four buttons; they are
“Employee”, “Appraisal”, “Payroll”, and “Recruitment”. Each of these
buttons after clicking open up a form, which allows the user to work with
the respective forms as desired.
The “Payroll” button opens the Employee Payroll form which allows
the user to manage transactions related with payroll of the employees.
The coding behind payroll button:-
private void button3_Click(object sender, EventArgs e)
{
Payroll_Details PD1 = new Payroll_Details();
PD1.Show();
}
DataTable dt;
DataRow dr;
string code;
this.employeeDetailsTableAdapter.Fill(this.humanResource1DataSet.EmployeeDetai
ls);
txtCode.Enabled=false;
txtName.Enabled=false;
txtAddress.Enabled=false;
txtContectNo.Enabled = false;
txtState.Enabled=false;
txtCountry.Enabled=false;
cbDesignation.Enabled=false;
cbDepartment.Enabled=false;
cbDesignation.Items.Add("MANAGER");
cbDesignation.Items.Add("AUTHOR");
cbDesignation.Items.Add("Designer");
cbDepartment.Items.Add("MARKETING");
cbDepartment.Items.Add("FINANCE");
cbDepartment.Items.Add("IDD");
cmdSave.Enabled=false;
In this form the user can enter appraisal details of a new employee or
an existing employee by clicking on the add button. After entering the
details the user needs to click the save button to save the data entered.
The user can also delete an existing appraisal profile of an employee
after selecting if through the binding navigator and then clicking on the
delete button.
If the user finished or does not wish to work on the current
form but wishes to go back to the menu form, the user can do so by clicking
on the menu button.
The Employee Appraisal Form (Design):-
The coding when Employee Appraisal Form is loaded:-
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace human_resource_management
{
public partial class Appraisal_Details : Form
{
public Appraisal_Details()
{
InitializeComponent();
}
DataTable dt;
DataRow dr;
string code;
this.employeeAppraisalTableAdapter.Fill(this.humanResource1DataSet2.EmployeeAp
praisal);
txtCode.Enabled = false;
txtName.Enabled = false;
txtAddress.Enabled = false;
txtContactNo.Enabled = false;
txtState.Enabled = false;
txtCountry.Enabled = false;
dtpStartDate.Enabled = false;
dtpEndDate.Enabled = false;
txtNewRecruit.Enabled = false;
cbDesignation.Enabled = false;
cbDepartment.Enabled = false;
cbDesignation.Items.Add("MANAGER");
cbDesignation.Items.Add("AUTHOR");
cbDesignation.Items.Add("Designer");
cbDepartment.Items.Add("MARKETING");
cbDepartment.Items.Add("FINANCE");
cbDepartment.Items.Add("IDD");
cmdSave.Enabled = false;
}
The coding behind Add button:-
private void cmdAdd_Click(object sender, EventArgs e)
{
cmdSave.Enabled = true;
txtName.Enabled = true;
txtAddress.Enabled = true;
txtContactNo.Enabled = true;
txtState.Enabled = true;
txtCountry.Enabled = true;
dtpStartDate.Enabled = true;
dtpEndDate.Enabled = true;
txtNewRecruit.Enabled = true;
cbDepartment.Enabled = true;
cbDesignation.Enabled = true;
txtName.Text = "";
txtAddress.Text = "";
txtContactNo.Text = "";
txtState.Text = "";
txtCountry.Text = "";
dtpStartDate.Text = "";
dtpEndDate.Text = "";
txtNewRecruit.Text = "";
cbDesignation.Text = "";
cbDepartment.Text = "";
int ctr = 1, len;
string codeval;
dt = humanResource1DataSet2.Tables["EmployeeAppraisal"];
len = dt.Rows.Count - 1;
dr = dt.Rows[len];
code = dr["Employee_Code"].ToString();
codeval = code.Substring(1, 3);
if ((ctr >= 1) && (ctr < 9))
{
ctr = ctr + 1;
txtCode.Text = "C00" + ctr;
}
else if ((ctr >= 9) && (ctr < 99))
{
ctr = ctr + 1;
txtCode.Text = "C0" + ctr;
}
else if (ctr >= 99)
{
ctr = ctr + 1;
txtCode.Text = "c" + ctr;
}
cmdAdd.Enabled = false;
}
The coding behind Save button:-
private void cmdSave_Click(object sender, EventArgs e)
{
dt = humanResource1DataSet2.Tables["EmployeeAppraisal"];
dr = dt.NewRow();
dr[0] = txtCode.Text;
dr[1] = txtName.Text;
dr[2] = txtAddress.Text;
dr[3] = txtContactNo.Text;
dr[4] = txtState.Text;
dr[5] = txtCountry.Text;
dr[6] = dtpStartDate.Text;
dr[7] = dtpEndDate.Text;
dr[8] = txtNewRecruit.Text;
dr[9] = cbDesignation.SelectedItem;
dr[10] = cbDepartment.SelectedItem;
dt.Rows.Add(dr);
employeeAppraisalTableAdapter.Update(humanResource1DataSet2);
txtCode.Text = System.Convert.ToString(dr[0]);
txtCode.Enabled = false;
txtName.Enabled = false;
txtAddress.Enabled = false;
txtContactNo.Enabled = false;
txtState.Enabled = false;
txtCountry.Enabled = false;
dtpStartDate.Enabled = false;
dtpEndDate.Enabled = false;
txtNewRecruit.Enabled = false;
cbDesignation.Enabled = false;
cbDepartment.Enabled = false;
this.employeeAppraisalTableAdapter.Fill(this.humanResource1DataSet2.EmployeeAp
praisal);
cmdAdd.Enabled = true;
cmdSave.Enabled = false;
}
If the user has finished or does not wish to work on the current form
but wishes to go back to the menu form, the user can do so by clicking on
the menu button.
The Employee Payroll Form (Design):-
The coding when Employee Payroll Form is loaded:-
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace human_resource_management
{
public partial class Appraisal_Details : Form
{
public Appraisal_Details()
{
InitializeComponent();
}
DataTable dt;
DataRow dr;
string code;
this.employeeAppraisalTableAdapter.Fill(this.humanResource1DataSet2.EmployeeAp
praisal);
txtCode.Enabled = false;
txtName.Enabled = false;
txtAddress.Enabled = false;
txtContactNo.Enabled = false;
txtState.Enabled = false;
txtCountry.Enabled = false;
dtpStartDate.Enabled = false;
dtpEndDate.Enabled = false;
txtNewRecruit.Enabled = false;
cbDesignation.Enabled = false;
cbDepartment.Enabled = false;
cbDesignation.Items.Add("MANAGER");
cbDesignation.Items.Add("AUTHOR");
cbDesignation.Items.Add("Designer");
cbDepartment.Items.Add("MARKETING");
cbDepartment.Items.Add("FINANCE");
cbDepartment.Items.Add("IDD");
cmdSave.Enabled = false;
}
}
The coding behind Save button:-
private void cmdSave_Click(object sender, EventArgs e)
{
dt = humanResource1DataSet2.Tables["EmployeeAppraisal"];
dr = dt.NewRow();
dr[0] = txtCode.Text;
dr[1] = txtName.Text;
dr[2] = txtAddress.Text;
dr[3] = txtContactNo.Text;
dr[4] = txtState.Text;
dr[5] = txtCountry.Text;
dr[6] = dtpStartDate.Text;
dr[7] = dtpEndDate.Text;
dr[8] = txtNewRecruit.Text;
dr[9] = cbDesignation.SelectedItem;
dr[10] = cbDepartment.SelectedItem;
dt.Rows.Add(dr);
employeeAppraisalTableAdapter.Update(humanResource1DataSet2);
txtCode.Text = System.Convert.ToString(dr[0]);
txtCode.Enabled = false;
txtName.Enabled = false;
txtAddress.Enabled = false;
txtContactNo.Enabled = false;
txtState.Enabled = false;
txtCountry.Enabled = false;
dtpStartDate.Enabled = false;
dtpEndDate.Enabled = false;
txtNewRecruit.Enabled = false;
cbDesignation.Enabled = false;
cbDepartment.Enabled = false;
this.employeeAppraisalTableAdapter.Fill(this.humanResource1DataSet2.EmployeeAp
praisal);
cmdAdd.Enabled = true;
cmdSave.Enabled = false;
}
namespace human_resource_management
{
public partial class Recruitment_Details : Form
{
public Recruitment_Details()
{
InitializeComponent();
}
DataTable dt;
DataRow dr;
string code;
this.employeeRecruitmentTableAdapter.Fill(this.humanResource1DataSet4.Employee
Recruitment);
txtCode.Enabled = false;
txtRecruitmentID.Enabled = false;
txtName.Enabled = false;
cbDesignation.Enabled = false;
cbDepartment.Enabled = false;
cbSkill.Enabled = false;
cbQualification.Enabled = false;
txtExperience.Enabled = false;
txtReferance.Enabled = false;
txtContactNo.Enabled = false;
cbDesignation.Items.Add("MANAGER");
cbDesignation.Items.Add("AUTHOR");
cbDesignation.Items.Add("Designer");
cbDepartment.Items.Add("MARKETING");
cbDepartment.Items.Add("FINANCE");
cbDepartment.Items.Add("IDD");
cbSkill.Items.Add("Newspaper");
cbSkill.Items.Add(" Good Communication Skills");
cbSkill.Items.Add(" Good in Decision Making");
cbSkill.Items.Add("High knowledge in Technical Feild");
cbQualification.Items.Add("GNIIT ");
cbQualification.Items.Add("Bsc.It");
cbQualification.Items.Add(" BBA");
cbQualification.Items.Add("MBA ");
cmdSave.Enabled = false;
}
this.employeeRecruitmentTableAdapter.Fill(this.humanResource1DataSet4.Employee
Recruitment);
cmdAdd.Enabled = true;
cmdSave.Enabled = false;
}
Hardware:-
Processor :-Intel® Core™2 Duo CPU T6500 @ 2.10 GHz
R.A.M :-2.96 GB, 2.09 GHz,
Mother Board:- Mobile Intel® 965 Express Chipset Family
Software:-
Operating System: - Windows XP, Service Pack 2
Application Software:-
Front End
Microsoft Visual Studio 2005
Back End
Microsoft SQL Server 2005
CONCLUSION:-
_______________