Professional Documents
Culture Documents
HRM Documentation
HRM Documentation
PROJECT REPORT
ON
Human Resource Management System
Submitted to
SHIVAJI UNIVERSITY, KOLHAPUR.
Submitted as partial fulfilment of the requirement of
Submitted By
Through
THE PRINCIPAL
CERTIFICATE
This is to certify that the project report entitled Human Resource
Management System Submitted by Mr. Kadam Abhishek Madhukar, Mr.Janugade
Omkar Avinash, Mr.Khade Harshad Dattatray in partial fulfilment of the requirement
for the award of Bachelor of Computer Applications- III (Sem-VI) to Shivaji
University, Kolhapur has been carried out by them under the guidance of Mr. Sutar
A. T.
To the best my knowledge and belief, this is their original work and the matter
presented in this project has not submitted earlier.
CERTIFICATE
This is to certify that the project report entitled Human Resource Management
System submitted by Mr. Kadam Abhishek Madhukar, Mr.Janugade Omkar
Avinash, Mr.Khade Harshad Dattatray In partial fulfilment of the requirement for the
award of Bachelor of Computer Application-III (Sem-VI) to Shivaji University,
Kolhapur has been carried out by them under the guidance of Mr. Sutar A .T.
To the best my knowledge and belief, this is their original work and the matter
presented in this project has not submitted earlier.
CERTIFICATE
This is to certify that the project report entitled Human Resource
Management System Submitted by Mr. Kadam Abhishek Madhukar, Mr.Janugade
Omkar Avinash, Mr.Khade Harshad Dattatray In partial fulfilment of the requirement
for the award of Bachelor of Computer Application-III (Sem-VI) to Shivaji University,
Kolhapur has been carried out by them under my guidance satisfactory.
To the best my knowledge and belief, this is their original work and the matter
presented in this Project has not submitted earlier.
Respected Sir,
We undersigned hereby declare that the project report
Human Resource Management System developed and submitted under the
guidance of Mr. Sutar A.T. This is our original work. The empirical finding in this project
is based on the data collection by us. While preparing this project. We have not copied
from any other project report.
We understand that, any such coping is liable to be punished in a way the center
university authorities may be deemed it.
Place: Patan
Date:
Thanking You,
Sign
SUBMITTED BY,
Introduction
INTRODUCTION TO PROJECT
Introduction:-
One computer can perform the work of many people in less time. So,
because of computerization economical problem is also minimized. Some
data is confidential and it should not be accessible to all the people of the
organization, authorization of data is given by the password protection
MANUAL SYSTEM:-
• Purpose:-
Shri Software Solutions is committed to providing innovative and
reliable technology solutions tailored to meet the specific needs of
businesses and organizations. Their goal is to enhance operational
efficiency, productivity, and competitiveness through cutting-edge
software applications and comprehensive IT services. They stay updated
with the latest advancements and industry best practices to deliver
secure and scalable solutions. As a trusted advisor and partner, Shri
Software Solutions empowers businesses to thrive in the digital age by
offering personalized and future-proof IT solutions.
• Service:-
Shri Software Solutions offers a wide range of services to cater to the
diverse needs of businesses. Their services include software development,
where they create innovative and customized applications to streamline
processes and improve efficiency. They also provide robust infrastructure
solutions, ensuring reliable and secure IT infrastructure for businesses.
Additionally, Shri Software Solutions offers comprehensive IT services such
as system integration, network management, and technical support,
providing a holistic approach to meet the technological requirements of their
clients.
PROPOSED SYSTEM
QUESTIONNAIRES
Que.4: How do you currently handle the recruitment and onboarding process?
Answer: Our recruitment and onboarding processes involve a combination of
email communication, manual paperwork, and face-to-face
interactions.
Que.7: Are there any specific features or functionalities you would like to see in
an HRM software solution?
Answer: We would like an HRM software solution that offers centralized
Employee information management, automated attendance
tracking, streamlined payroll processing, performance evaluation
tools, training program management, compliance tracking, and robust
reporting and analytics capabilities.
Que.8: What are your goals and expectations for implementing an HRM software
system?
Answer: Our goals for implement an HRM software system include improving
operational efficiency, reducing manual workloads, enhancing data
accuracy.
Feasibility study:-
1) Technical Feasibility:
2) Operational Feasibility:-
Operational feasibility ends at checking if the system will be help the
user to work in more efficient & accurate manner through all routine
operation. The system is made to be comprehensive in nature using a full
menu driven system & appropriate user informative message. On the
category, the work load on the user will be lessened to a great lessened to a
great extent, as the system is aimed at taking care of the complex
procedures & automatic calculations. Thus the system is operationally
feasible.
3) Economical Feasibility:-
While considering economical feasibility, it is checked in points like
performance, information & outputs for the system. Economic of the system
looks at the financial aspect of the project. It determines whether the system
is economical feasible, in other world it determines whether the investment
that goes into the implementation of the system is recoverable.
System Analysis
System Design
DATABASE DESIGN
1) AppliedLeave Table:
2) Departments Table :
3) Employee Table :
4) Payroll Table :
5) Projects Table :
6) QRattendence Table :
“Forms Design”
FORMS DESIGN
1) Dashboard Form :
2) Departments Form :
3) Employee Form :
4) Projects Form :
5) Leaves Form :
6) Payroll Form :
7) Reports Form :
“Reports”
REPORTS DESIGN
1) Employee Report :
2) Payroll Report :
3) Projects Report :
LIMITATIONS
1. Limited accessibility.
2. Lack of real-time updates.
3. Dependency on local infrastructure.
4. Reduced collaboration and communication.
5. Limited scalability.
6. Data backup and disaster recovery challenges.
7. Restricted integration capabilities.
8. The application may rely on manual software patch installations.
9. Lack of cloud-based features.
10. Difficulty in accessing support and updates.
FUTURE MODIFICATIONS
1. Mobile accessibility
2. Data synchronization
3. Cloud integration
CONCLUSION
Keeping these in mind this system has been developed in a way, it should
accommodate future enhancement, similarly various features have included in this
system by giving due consideration of the organization. As this system is developed
using modular approach it facilities easy maintenance.
We are sincerely hope that this software system will reduce the burden of
management, that it will also save a lot of their valuable time and money this
exercise develops ours skills and also increase our confidence level.
BIBLOGRAPHY
SOURCE CODE
using AForge.Video;
using AForge.Video.DirectShow;
using Guna.UI2.WinForms;
using Guna.UI2.WinForms.Enums;
using System;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using Xamarin.Forms;
using ZXing;
namespace WindowsFormsApp1
FilterInfoCollection filterInfoCollection;
VideoCaptureDevice videoCaptureDevice;
public frmDashboard()
InitializeComponent();
timer1.Start();
cn.Open();
while (drMAX.Read())
Empno.Text = drMAX[0].ToString();
cn.Close();
emp.Show();
this.Hide();
Exit.BackColor = Color.Gray;
Exit.BackColor = Color.Black;
dep.Show();
this.Hide();
/* timer.Interval = 10000;
timer.Start();*/
MAX();
emponleave();
gridleave();
pgbar();
l.Show();
this.Hide();
fr.Show();
this.Hide();
f.Show();
this.Hide();
cn.Open();
cmdMAX.Parameters.AddWithValue("@date", Convert.ToDateTime(dt));
while (drMAX.Read())
txtempleave.Text = drMAX[0].ToString();
cn.Close();
cn.Open();
command.Parameters.AddWithValue("@todayDate", Convert.ToDateTime(dt));
adapter.Fill(dataTable);
gridonleave.DataSource = dataTable;
cn.Close();
panelempdetail.Focus();
panelempdetail.Show();
string r = gridonleave.SelectedRows[0].Cells[0].Value.ToString();
cn.Open();
cmdFind.Parameters.AddWithValue("@id", r);
while (find.Read())
teid.Text = r;
tfname.Text = find[1].ToString();
tmname.Text = find.GetValue(2).ToString();
tlname.Text = find.GetValue(3).ToString();
tgender.Text = find.GetValue(4).ToString();
taddress.Text = find.GetValue(5).ToString();
tdob.Text = Convert.ToDateTime(find.GetValue(6)).ToString("dd - MM -
yyyy");
tqual.Text = find.GetValue(7).ToString();
tphno.Text = find.GetValue(8).ToString();
tmail.Text = find.GetValue(9).ToString();
tsalary.Text = find.GetValue(10).ToString();
tjoining.Text = Convert.ToDateTime(find.GetValue(11)).ToString("dd -
MM - yyyy");
tdesignation.Text = find.GetValue(12).ToString();
tdepartment.Text = find.GetValue(13).ToString();
tactive.Text = find.GetValue(14).ToString();
imgEmp2.Image = bitmap;
cn.Close();
cellcontent();
panelempdetail.Hide();
cn.Open();
// create a command to retrieve the progress value for each project from
the database
progressBar.Width = progressWidth;
progressBar.Height = progressWidth;
reader.Read();
progressBar.Value = progressValue;
progressBar.ProgressThickness = 26;
progressBar.Text = projectname;
progressBar.TextMode = ProgressBarTextMode.Custom;
progressBar.ShowText = true;
progressBar.ProgressEndCap = System.Drawing.Drawing2D.LineCap.Round;
progressBar.ForeColor = Color.Black;
progressBar.ProgressColor = Color.LightSeaGreen;
progressBar.ProgressColor2 = Color.Cyan;
panelproject.Controls.Add(progressBar);
cn.Close();
videoCaptureDevice.SignalToStop();
videoCaptureDevice = null;
filterInfoCollection = new
FilterInfoCollection(FilterCategory.VideoInputDevice);
if (filterInfoCollection.Count > 0)
videoCaptureDevice = new
VideoCaptureDevice(filterInfoCollection[0].MonikerString);
videoCaptureDevice.NewFrame += VideoCaptureDevice_NewFrame;
videoCaptureDevice.Start();
else
er.ShowDialog();
opencam();
try
qrCodeDetected = true;//!
lastQRCodeDetectionTime = DateTime.Now;//!
if (result != null)
cn.Open();
cmdFind.Parameters.AddWithValue("@id", result.ToString());
if (!find.HasRows)
closecam();
ida.ShowDialog();
opencam();
cn.Close();
else
while (find.Read())
panelempattend.Show();//shows panel
panelempattend.BringToFront();
closecam();
txtid1.Text = result.ToString();
txtfname1.Text = find[1].ToString();
txtLname1.Text = find.GetValue(3).ToString();
txtGender1.Text = find.GetValue(4).ToString();
txtdesignation1.Text = find.GetValue(12).ToString();
txtdepartment1.Text = find.GetValue(13).ToString();
picEmployee.Image = bitmap1;
lastQRCodeDetectionTime = DateTime.Now;
}
cn.Close();
}));
else
videoCaptureDevice.SignalToStop();
videoCaptureDevice = null;
qrCodeDetected = false;
webcam.Image = bitmap;
closecam();
txtid1.Text = null;
txtfname1.Text = null;
txtLname1.Text = null;
txtGender1.Text=null;
txtdesignation1.Text = null;
txtdepartment1.Text=null;
try
cn.Open();
cmdFind.Parameters.AddWithValue("@Today", today);
if (!find.HasRows)
cn.Close();
cn.Open();
cmd.Parameters.AddWithValue("@empid", txtid1.Text);
cmd.Parameters.AddWithValue("@fname", txtfname1.Text);
cmd.Parameters.AddWithValue("@lname", txtLname1.Text);
cmd.Parameters.AddWithValue("@gender", txtGender1.Text);
cmd.Parameters.AddWithValue("@designation",
txtdesignation1.Text);
cmd.Parameters.AddWithValue("@department", txtdepartment1.Text);
cmd.Parameters.AddWithValue("@date", DateTime.Now);
cmd.ExecuteNonQuery();
cn.Close();
MessageBox.Show("Saved");
panqrattendclear();
panelempattend.Hide();
opencam();
else
MessageBox.Show("Already Marked");
cn.Close();
panelempattend.Hide();
opencam();
catch(Exception msg)
MessageBox.Show(msg.Message);
closecam();//close camera
s.exitbtn();
frmProjects.Show();
this.Hide();
frmviewPresenty.ShowDialog();
frmReports.ShowDialog();
namespace WindowsFormsApp1
{
public partial class frmDepartments : Form
{
public frmDepartments()
{
InitializeComponent();
}
else
{
frmError er = new frmError();
er.Show();
}
}
{
MAX();
show();
}
else
{
frmError er = new frmError();
er.Show();
}
}
private void find()
{
if (txtDepartpId.Text != "")
{
cn.Open();
string strFind = "SELECT * FROM Departments WHERE D_Id=@D_Id";
SqlCommand cmdFind = new SqlCommand(strFind, cn);
cmdFind.Parameters.AddWithValue("@D_Id", txtDepartpId.Text);
SqlDataReader find = cmdFind.ExecuteReader();
if (!find.HasRows)
{
frmNotfound ida = new frmNotfound();
ida.ShowDialog();
}
while (find.Read())
{
txtDepartName.Text = find[1].ToString();
txtDepartHead.Text = find.GetValue(2).ToString();
txtDepartDesc.Text = find.GetValue(3).ToString();
}
cn.Close();
}
else
{
enterId i = new enterId();
i.ShowDialog();
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using QRCoder;
namespace WindowsFormsApp1
public frmEmployee()
InitializeComponent();
string genderp;
string act;
string gend;
string Astatus;
cn.Open();
sa.Fill(ds);
Empgrid.DataSource = ds.Tables[0];
cn.Close();
cn.Open();
while (drMAX.Read())
txtEmpid.Text = drMAX[0].ToString();
cn.Close();
try
imgqr.Image;
byte[] arr;
if (rdoMale.Checked == true)
gend = rdoMale.Text;
else
gend = rdoFemale.Text;
if (toggleActive.Checked == true)
Astatus = "Active";
else
Astatus = "Unactive";
cn.Open();
cmd.Parameters.AddWithValue("@id", txtEmpid.Text);
cmd.Parameters.AddWithValue("@fname", txtFname.Text);
cmd.Parameters.AddWithValue("@mname", txtMname.Text);
cmd.Parameters.AddWithValue("@lname", txtLname.Text);
cmd.Parameters.AddWithValue("@gender", gend);
cmd.Parameters.AddWithValue("@address", txtAddress.Text);
cmd.Parameters.AddWithValue("@dob", txtDOB.Value);
cmd.Parameters.AddWithValue("@Qualification",
txtqualification.Text);
cmd.Parameters.AddWithValue("@phone", txtPhone.Text);
cmd.Parameters.AddWithValue("@email", txtEmail.Text);
cmd.Parameters.AddWithValue("@salary", txtSalary.Text);
cmd.Parameters.AddWithValue("@jdate", txtJdate.Value);
cmd.Parameters.AddWithValue("@designation",
txtDesignation.Text);
cmd.Parameters.AddWithValue("@department",
txtDepartment.Text);
cmd.Parameters.AddWithValue("@status", Astatus);
cmd.Parameters.AddWithValue("@photo", imageData);
cmd.Parameters.AddWithValue("@QR", arr);
cmd.ExecuteNonQuery();
cn.Close();
s.ShowDialog();
show();
clear();
MAX();
else
er.ShowDialog();
catch(Exception ex)
MessageBox.Show(ex.Message);
s.exitbtn();
if (p != null)
if (open.ShowDialog() == DialogResult.OK)
p.Image = Image.FromFile(open.FileName);
show();
MAX();
frmDashboard.Show();
this.Hide();
dep.Show();
this.Hide();
clear();
MAX();
imgEmployee.Image=null;
imgqr.Image = null;
txtEmpid.Text = "";
txtFname.Text = "";
txtMname.Text = "";
txtLname.Text = "";
rdoFemale.Checked = false;
rdoMale.Checked = false;
txtAddress.Text = "";
txtqualification.SelectedItem=null;
txtPhone.Text = "";
txtEmail.Text = "";
txtSalary.Text = "";
txtDesignation.SelectedItem = null;
txtDepartment.SelectedItem = null;
toggleActive.Checked = false;
try
imgEmployee.Image.Save(ms, imgEmployee.Image.RawFormat);
imageData = ms.ToArray();
byte[] arr;
if (rdoMale.Checked == true)
gend = rdoMale.Text;
else
gend = rdoFemale.Text;
if (toggleActive.Checked == true)
Astatus = "Active";
else
Astatus = "Unactive";
cn.Open();
cmd.Parameters.AddWithValue("@firstname", txtFname.Text);
cmd.Parameters.AddWithValue("@middlename", txtMname.Text);
cmd.Parameters.AddWithValue("@lastname", txtLname.Text);
cmd.Parameters.AddWithValue("@gender", gend);
cmd.Parameters.AddWithValue("@address", txtAddress.Text);
cmd.Parameters.AddWithValue("@DOB", txtDOB.Value);
cmd.Parameters.AddWithValue("@Qualification",
txtqualification.Text);
cmd.Parameters.AddWithValue("@phonenumber", txtPhone.Text);
cmd.Parameters.AddWithValue("@email", txtEmail.Text);
cmd.Parameters.AddWithValue("@salary", txtSalary.Text);
cmd.Parameters.AddWithValue("@joiningdate", txtJdate.Value);
cmd.Parameters.AddWithValue("@designation",
txtDesignation.Text);
cmd.Parameters.AddWithValue("@department",
txtDepartment.Text);
cmd.Parameters.AddWithValue("@status", Astatus);
cmd.Parameters.AddWithValue("@photo", imageData);
cmd.Parameters.AddWithValue("@QR", arr);
cmd.Parameters.AddWithValue("@Id", txtEmpid.Text);
cmd.ExecuteNonQuery();
cn.Close();
s.ShowDialog();
show();
clear();
MAX();
else
er.ShowDialog();
catch(Exception ms)
MessageBox.Show(ms.Message);
string gendercell;
string stausa;
txtEmpid.Text = Empgrid.SelectedRows[0].Cells[0].Value.ToString();
txtFname.Text = Empgrid.SelectedRows[0].Cells[1].Value.ToString();
txtMname.Text= Empgrid.SelectedRows[0].Cells[2].Value.ToString();
txtLname.Text= Empgrid.SelectedRows[0].Cells[3].Value.ToString();
gendercell = Empgrid.SelectedRows[0].Cells[4].Value.ToString();
txtAddress.Text= Empgrid.SelectedRows[0].Cells[5].Value.ToString();
txtDOB.Value =
Convert.ToDateTime(Empgrid.SelectedRows[0].Cells[6].Value.ToString());
txtqualification.SelectedItem =
Empgrid.SelectedRows[0].Cells[7].Value.ToString();
txtPhone.Text= Empgrid.SelectedRows[0].Cells[8].Value.ToString();
txtEmail.Text= Empgrid.SelectedRows[0].Cells[9].Value.ToString();
txtSalary.Text= Empgrid.SelectedRows[0].Cells[10].Value.ToString();
txtJdate.Value =
Convert.ToDateTime(Empgrid.SelectedRows[0].Cells[11].Value.ToString());
txtDesignation.SelectedItem=
Empgrid.SelectedRows[0].Cells[12].Value.ToString();
txtDepartment.SelectedItem=
Empgrid.SelectedRows[0].Cells[13].Value.ToString();
stausa = Empgrid.SelectedRows[0].Cells[14].Value.ToString();
imgEmployee.Image = bitmap;
imgqr.Image = bit;
if (gendercell == "Male")
rdoMale.Checked = true;
else
rdoFemale.Checked = true;
//for toggle
if(stausa =="Active")
toggleActive.Checked = true;
else
toggleActive.Checked = false;
if (txtEmpid.Text != "")
cn.Open();
cmdFind.Parameters.AddWithValue("@id", txtEmpid.Text);
if (!find.HasRows)
ida.ShowDialog();
while (find.Read())
txtFname.Text = find[1].ToString();
txtMname.Text = find.GetValue(2).ToString();
txtLname.Text = find.GetValue(3).ToString();
genderp= find.GetValue(4).ToString();
txtAddress.Text = find.GetValue(5).ToString();
txtDOB.Value =
Convert.ToDateTime(find.GetValue(6).ToString());
txtqualification.SelectedItem = find.GetValue(7).ToString();
txtPhone.Text = find.GetValue(8).ToString();
txtEmail.Text = find.GetValue(9).ToString();
txtSalary.Text = find.GetValue(10).ToString();
txtJdate.Value =
Convert.ToDateTime((DateTime)find.GetValue(11));
txtDesignation.SelectedItem=find.GetValue(12).ToString();
txtDepartment.SelectedItem=find.GetValue(13).ToString();
act= find.GetValue(14).ToString();
imgEmployee.Image = bitmap;
imgqr.Image = bit;
if(genderp =="Male")
rdoMale.Checked = true;
if(genderp== "Female")
rdoFemale.Checked = true;
if(act=="Active")
toggleActive.Checked = true;
else
toggleActive.Checked=false;
cn.Close();
else
i.ShowDialog();
cellcontent();
l.Show();
this.Hide();
fr.Show();
this.Hide();
panelempdetail.Focus();
panelempdetail.Show();
panelempdetail.BringToFront();
string r = Empgrid.SelectedRows[0].Cells[0].Value.ToString();
cn.Open();
cmdFind.Parameters.AddWithValue("@id", r);
while (find.Read())
teid.Text = r;
tfname.Text = find[1].ToString();
tmname.Text = find.GetValue(2).ToString();
tlname.Text = find.GetValue(3).ToString();
tgender.Text = find.GetValue(4).ToString();
taddress.Text = find.GetValue(5).ToString();
tdob.Text = Convert.ToDateTime(find.GetValue(6)).ToString("dd -
MM - yyyy");
tqual.Text = find.GetValue(7).ToString();
tphno.Text = find.GetValue(8).ToString();
tmail.Text = find.GetValue(9).ToString();
tsalary.Text = find.GetValue(10).ToString();
tjoining.Text =
Convert.ToDateTime(find.GetValue(11)).ToString("dd - MM - yyyy");
tdesignation.Text = find.GetValue(12).ToString();
tdepartment.Text = find.GetValue(13).ToString();
tactive.Text = find.GetValue(14).ToString();
imgEmp2.Image = bitmap;
cn.Close();
panelempdetail.Hide();
int a = Convert.ToInt32(teid.Text);
++a;
cn.Open();
cmdFind.Parameters.AddWithValue("@id", a);
while (find.Read())
tfname.Text = find[1].ToString();
tmname.Text = find.GetValue(2).ToString();
tlname.Text = find.GetValue(3).ToString();
tgender.Text = find.GetValue(4).ToString();
taddress.Text = find.GetValue(5).ToString();
tdob.Text = Convert.ToDateTime(find.GetValue(6)).ToString("dd -
MM - yyyy");
tqual.Text = find.GetValue(7).ToString();
tphno.Text = find.GetValue(8).ToString();
tmail.Text = find.GetValue(9).ToString();
tsalary.Text = find.GetValue(10).ToString();
tjoining.Text =
Convert.ToDateTime(find.GetValue(11)).ToString("dd - MM - yyyy");
tdesignation.Text = find.GetValue(12).ToString();
tdepartment.Text = find.GetValue(13).ToString();
tactive.Text = find.GetValue(14).ToString();
imgEmp2.Image = bitmap;
cn.Close();
f.Show();
this.Hide();
imgqr.Image = qrCode.GetGraphic(5);
projectsmenu.Show();
this.Hide();
reportsmenu.ShowDialog();
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
public frmProjects()
InitializeComponent();
string ch;
cn.Open();
while (drMAX.Read())
txtPrjid.Text = drMAX[0].ToString();
cn.Close();
cn.Open();
sa.Fill(ds);
GridPrj.DataSource = ds.Tables[0];
cn.Close();
txtPrjid.Text = "";
txtPrjname.Text = "";
txtPrjhead.Text = "";
txtWorkingEmployees.Text = "";
toggleStateprj.Checked = false;
MAX();
txtprogress.Text = (ProgressBar.Value).ToString()+"%";
if(toggleStateprj.Checked==true)
txtStateofProject.Text = "Done";
else
s.exitbtn();
string state;
if(toggleStateprj.Checked==true)
state = "Done";
else
cn.Open();
cmd.Parameters.AddWithValue("@P_id", txtPrjid.Text);
cmd.Parameters.AddWithValue("@P_Name", txtPrjname.Text);
cmd.Parameters.AddWithValue("@P_Head", txtPrjhead.Text);
cmd.Parameters.AddWithValue("@Workingempl",
txtWorkingEmployees.Text);
cmd.Parameters.AddWithValue("@Startson", txtStartDate.Value);
cmd.Parameters.AddWithValue("@Progress", ProgressBar.Value);
cmd.Parameters.AddWithValue("@Endson", txtEndDate.Value);
cmd.Parameters.AddWithValue("@State",state);
cmd.ExecuteNonQuery();
cn.Close();
s.ShowDialog();
show();
clear();
MAX();
else
er.Show();
show();
MAX();
clear();
MAX();
cn.Open();
cmd.Parameters.AddWithValue("@P_id", txtPrjid.Text);
cmd.Parameters.AddWithValue("@P_Name", txtPrjname.Text);
cmd.Parameters.AddWithValue("@P_Head", txtPrjhead.Text);
cmd.Parameters.AddWithValue("@Workingempl",
txtWorkingEmployees.Text);
cmd.Parameters.AddWithValue("@Startson", txtStartDate.Value);
cmd.Parameters.AddWithValue("@Progress", ProgressBar.Value);
cmd.Parameters.AddWithValue("@Endson", txtEndDate.Value);
cmd.Parameters.AddWithValue("@State", txtStateofProject.Text);
cmd.ExecuteNonQuery();
cn.Close();
u.ShowDialog();
show();
clear();
MAX();
else
er.Show();
if (txtPrjid.Text != "")
cn.Open();
cmdFind.Parameters.AddWithValue("@P_Id", txtPrjid.Text);
if (!find.HasRows)
ida.ShowDialog();
while (find.Read())
txtPrjname.Text = find[1].ToString();
txtPrjhead.Text = find.GetValue(2).ToString();
txtWorkingEmployees.Text = find.GetValue(3).ToString();
txtStartDate.Value=Convert.ToDateTime(find.GetValue(4));
ProgressBar.Value=Convert.ToInt32(find.GetValue(5).ToString());
txtEndDate.Value=Convert.ToDateTime(find.GetValue(6).ToString());
ch=find.GetValue(7).ToString();
toggleStateprj.Checked=false;
else
toggleStateprj.Checked=true;
cn.Close();
else
i.ShowDialog();
find();
frmDashboard.Show();
this.Hide();
dep.Show();
this.Hide();
emp.Show();
this.Hide();
l.Show();
this.Hide();
fr.Show();
this.Hide();
f.Show();
this.Hide();
string state;
txtPrjid.Text = GridPrj.SelectedRows[0].Cells[0].Value.ToString();
txtPrjname.Text = GridPrj.SelectedRows[0].Cells[1].Value.ToString();
txtPrjhead.Text = GridPrj.SelectedRows[0].Cells[2].Value.ToString();
txtWorkingEmployees.Text =
GridPrj.SelectedRows[0].Cells[3].Value.ToString();
txtStartDate.Value =
Convert.ToDateTime(GridPrj.SelectedRows[0].Cells[4].Value.ToString());
ProgressBar.Value=
Convert.ToInt32(GridPrj.SelectedRows[0].Cells[5].Value.ToString());
txtEndDate.Value =
Convert.ToDateTime(GridPrj.SelectedRows[0].Cells[6].Value.ToString());
state = GridPrj.SelectedRows[0].Cells[7].Value.ToString();
toggleStateprj.Checked = false;
else
toggleStateprj.Checked = true;
cellcontent();
frmReports.ShowDialog();
namespace WindowsFormsApp1
{
public partial class frmLeavemanagement : Form
{
public frmLeavemanagement()
{
InitializeComponent();
}
SqlConnection cn = new SqlConnection(@"Data
Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Users\pooja\source\repos\HRM
Application\Database\employee.mdf;Integrated Security=True;Connect Timeout=30");
string da;
}
while (find.Read())
{
txtFname.Text = find[1].ToString();
txtMname.Text = find.GetValue(2).ToString();
txtLname.Text = find.GetValue(3).ToString();
txtDepartment.Text = find.GetValue(13).ToString();
}
cn.Close();
}
else
{
enterId i = new enterId();
i.ShowDialog();
}
}
txtMname.Text = "";
txtLname.Text = "";
txtDepartment.Text ="";
txtLeavetype.SelectedItem = null;
}
cmd.Parameters.AddWithValue("@total_leave_count",(txtDto.Value.Subtract(
txtDfrom.Value)).TotalDays);
cmd.ExecuteNonQuery();
cn.Close();
updateempleaves();
frmlapplied s = new frmlapplied();
s.ShowDialog();
clear();
MAX();
else
{
frmError er = new frmError();
er.Show();
}
}
cn.Open();
cn.Open();
string str = "UPDATE Payroll SET Present_Days=@pd WHERE Emp_id=@id";
SqlCommand cmd = new SqlCommand(str, cn);
cmd.Parameters.AddWithValue("@pd", Convert.ToInt32(da)-
Convert.ToInt32(txtDto.Value.Subtract(txtDfrom.Value).TotalDays));
cmd.Parameters.AddWithValue("@id",txtEmpid.Text);
cn.Close();
}
{
frmProjects pr = new frmProjects();
pr.show();
this.Hide();
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
public frmPayroll()
InitializeComponent();
txtPaymentid.Text= "";
txtEmpid.Text = "";
txtFname.Text = "";
txtMname.Text = "";
txtLname.Text = "";
txtDepartment.Text = "";
txtDesignation.Text = "";
txtMonth.Text = "";
txtPresentdays.Text = "";
txtSalary.Text = "";
txtbonus.Text = "";
txtTotalSalary.Text = "";
txtMonth.Text = DateTime.Now.ToString("MMMM");
cn.Open();
while (drMAX.Read())
txtPaymentid.Text = drMAX[0].ToString();
cn.Close();
if (txtEmpid.Text != "")
cn.Open();
cmdFind.Parameters.AddWithValue("@id", txtEmpid.Text);
if (!find.HasRows)
ida.ShowDialog();
try
while (find.Read())
txtFname.Text = find[1].ToString();
txtMname.Text = find.GetValue(2).ToString();
txtLname.Text = find.GetValue(3).ToString();
txtDesignation.Text = find.GetValue(12).ToString();
txtDepartment.Text = find.GetValue(13).ToString();
catch( Exception )
er.ShowDialog();
cn.Close();
else
i.ShowDialog();
MAX();
txtMonth.Text = DateTime.Now.ToString("MMMM");
findEmp();
s.exitbtn();
clear();
MAX();
try
cn.Open();
cmd.Parameters.AddWithValue("@Pid", txtPaymentid.Text);
cmd.Parameters.AddWithValue("@id", txtEmpid.Text);
cmd.Parameters.AddWithValue("@fname", txtFname.Text);
cmd.Parameters.AddWithValue("@mname", txtMname.Text);
cmd.Parameters.AddWithValue("@lname", txtLname.Text);
cmd.Parameters.AddWithValue("@Department",
txtDepartment.Text);
cmd.Parameters.AddWithValue("@Designation",
txtDesignation.Text);
cmd.Parameters.AddWithValue("@paymentdate",
DateTime.Now.Date);
cmd.Parameters.AddWithValue("@month", txtMonth.Text);
cmd.Parameters.AddWithValue("@presentdays",
txtPresentdays.Text);
cmd.Parameters.AddWithValue("@salary", txtSalary.Text);
cmd.Parameters.AddWithValue("@bonus", txtbonus.Text);
cmd.Parameters.AddWithValue("@totalSalary",
txtTotalSalary.Text);
cmd.ExecuteNonQuery();
cn.Close();
s.ShowDialog();
clear();
MAX();
else
er.Show();
catch
try
cn.Open();
cmd.Parameters.AddWithValue("@id", txtEmpid.Text);
cmd.Parameters.AddWithValue("@fname", txtFname.Text);
cmd.Parameters.AddWithValue("@mname", txtMname.Text);
cmd.Parameters.AddWithValue("@lname", txtLname.Text);
cmd.Parameters.AddWithValue("@Department",
txtDepartment.Text);
cmd.Parameters.AddWithValue("@Designation",
txtDesignation.Text);
cmd.Parameters.AddWithValue("@paymentdate",
DateTime.Now.Date);
cmd.Parameters.AddWithValue("@month", txtMonth.Text);
cmd.Parameters.AddWithValue("@presentdays",
txtPresentdays.Text);
cmd.Parameters.AddWithValue("@salary", txtSalary.Text);
cmd.Parameters.AddWithValue("@bonus", txtbonus.Text);
cmd.Parameters.AddWithValue("@totalSalary", txtTotalSalary);
cmd.Parameters.AddWithValue("@Pid", txtPaymentid.Text);
cmd.ExecuteNonQuery();
cn.Close();
s.ShowDialog();
clear();
MAX();
else
er.Show();
catch(Exception ex)
MessageBox.Show(ex.Message);
cn.Close();
emp.Show();
this.Hide();
frmDashboard.Show();
this.Hide();
dep.Show();
this.Hide();
l.Show();
this.Hide();
stick.Visible = true;
stick.Visible=false;
d.ShowDialog();
p.Show();
this.Hide();
p.show();
this.Hide();
f.Show();
this.Hide();
proj.Show();
this.Hide();
try
if (txtbonus.Text != null)
txtTotalSalary.Text = sum.ToString();
else
MessageBox.Show("insert Bonus");
catch
try
int a = Convert.ToInt32(txtPresentdays.Text);
if (a > 27)
catch
frmReports.ShowDialog();
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class frmPayrolldata : Form
{
public frmPayrolldata()
{
InitializeComponent();
}
string[] month = { "January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December" };
String[] department = { "HR", "Sales", "Manufacture", "IT","Collection"};
{
cn.Open();
string s = "select * from Payroll WHERE Month = '" + txtsort.Text
+ "' ";
SqlDataAdapter sa = new SqlDataAdapter(s, cn);
SqlCommandBuilder b = new SqlCommandBuilder(sa);
var ds = new DataSet();
sa.Fill(ds);
gridpayroll.DataSource = ds.Tables[0];
if( ds.Tables[0].Rows.Count == 0)
{
frmNotfound ida = new frmNotfound();
ida.ShowDialog();
}
cn.Close();
}
else
{
frmSortError er = new frmSortError();
er.ShowDialog();
}
}
2022-2023
HOD/ Director/Principal