Leave Scheduler System
Leave Scheduler System
Leave Scheduler System
1.1 INTRODUCTION
It is generally accepted as a common saying that every work and no play makes
jack a dull boy (Drucker, 2011). Thus, this is a phenomenon that occasion the need for
work leave. Human is said to be only functioning resources that pushes the activities of
other management resources into action. The proper functioning of the element of
directing calls for keen and meticulous implementation of workable administrative plan.
apparently a known fact that men are finite and this have elastic limit. The human body
functions at its best for adequate and effective discharge of duties when adequate
refreshing plan is put in order. Hence, this gives rise to the need for a work leave. Work
leave therefore is a deliberate system that is put in place by the management to formally
absent members of staff from work on order to certain and increase their level of
effectiveness. Additionally, the work leave plan it also regarded as a temporal absence of
an employee from his or her primary job while maintaining the status of employee
(Drucker, 2011). There are dimensions of work leave such as garden leave, annual leave,
sabbatical leave, medical leave, exam leave, etc. According to the U. S Department on
Management,work leave enables employees to take time off from work for various
reasons. This act is ubiquitous among the nations of the world. Urbycoz in his words
asserts that the term “work leave” originated in the British civil service where employees
had the right to request special leave for exceptional purpose. According to the MANILA
DOCTORS HOSPITAL guideline, work leave is carried out to attain the employees
1
highest working efficiency as far as performance and compliance to duties are concerned.
The information also pinpoints that many employees commit general leave of absence but
the these leaves are subject to prior computation and meticulous monitoring in order to
give what should be vested to an employee. Thus, this indicates that the work leave is
designed and implemented in such a way that the scheduling has zero negative effect on
keenly contracted. This scheduling design in line with the management system monitors
the number of leaves and employee commits and proper computations of such absence.
systematic way. This will in turn retain and improve the work efficiency and quality of
service. The design and implementation of work leave scheduling and management
enabling the employee to be refreshed for quality service. Performance and delivery and
secondly to ensure that the scheduling plan has a positive effective on the growth and
informs that the human resources are the valuable resources an organization depends on
for it success because of the potential to manage the most note worthy and valuable
resources of an organization (Porter & Kramer, 2011). This, therefore, indicates that
the proper design and implementation of work leave scheduling in the managerial system
would succeed a breast the human resources of the managerial consequently since the
human resource equally needs adequate rest to function at its best in order to avoid
personal and managerial collapse, a proper work leave scheduling system must be put in
2
3
1.2 STATEMENT OF THE PROBLEMS
properly fractionalize the decisions that surround the work leave prioritization. This
however has been the order of the day in most organization in the sense that proper
prioritization is neglected and not brought to book. This in turn reflects a negative effect
on hesole aim of the establishment which is the maximizations only approve work leave
respectively without prioritizing the need for the later to want the former the need for the
HriditaAfsana (2013), comments in his works the major part of Human Resource
department is to keep all the records of personal information and managing leave data of
all the employees, most importantly paid leaves taken by employees, up to date and
readily available in times of need. He stress that “the maintenance of these become
apparently difficult for the Human Resource department when all the is done manually”
Thus, Hridita stress the computation of the employees work leave in order to by
pass the huddle created by the manual approach system. But this research emphasizes the
The aim of this project is to develop a work leave scheduling and management
4
1.4 SIGNIFICANCE OF THE STUDY
companies because it will aid a clearer understanding of administering work leave in the
ways and manner that it does not affect the growth and development of the management.
It will be of immense benefits to private firm owners, who quite for a purposeful,
an updated options is far as work leave smooth running. This project will be an eye
opener to the human resource manager as he sits meticulously on his decisions making,
regarding the leaves to approve or not. On a final not this project will recommend ways
form the work leave management plan through priority scheduling techniques
scheduling and management system using priority scheduling techniques. It uses the
hold of relevant information for his project, the company to located at 77/79 Eric Moore
Road, Surulere, Lagos, Nigeria. The company is into importing and distributing the TVs
5
1.6 DEFINITIONS OF TERMS
Term that are germane to this project are defined and they are as follows:
Work: Is the activity involving in mental or physical effort done in order to achieve a
Leave: Is a period of time that one must be away from one’s primary job while
Work Leave: This can be defined as the time off work to much on employee may be
entitled depend on the organization leave plan schedule through a formal process prior to
approval.
staffing, leading and controlling (a group of one or more people or entitle) or effort for
Management System: This can be defined as a set of policies, process and procedure
used by an organization to ensure that it can fulfill the tasks required to achieve its
objectives.
Priority: This can be defined as the fact or condition of being regarded or treated as more
importance than others, it also refers to the important to be dealt with first. In this work, it
6
Priority Scheduling: This can be defined as the method or techniques of scheduling
processes based on priority. In this project, it is used to consider the work leave priority
project writeup.
Chapter one of this project deals with the introduction to the general work in the
project. It also entails the statement of the problem, aim and objectives of the project, the
significance of the study, the scope and limitation of the study and organization of the
report.
Chapter two deals with the review of related journals and books, historical
Chapter three covers the methods used for data collection, description of the
current procedure, problems of existing system, description of the proposed system and
The design involves the system design, output design form, input design form, database
structure and the procedure of the system. The implementation involves the
implementation techniques used in details, choice of programming language used and the
hardware and software support. The documentation of the system involves the operation
7
Chapter five deals with the summary, experience gained, conclusion,
8
CHAPTER TWO
using the attendance register for staff. The staff needs to submit their leaves manually to
their respective authorities. This increases the paperwork and maintaining the records
becomes tedious. Maintaining notices in the records also increases the paperwork. The
main objective of the proposed system is to decrease the paperwork and help in easier
record maintenance by having particular centralized Database System, where Leaves and
Notices are maintained. The proposed system automates the existing system. It decreases
the paperwork and enables easier record maintenance. It also reduces chances of Data
loss. He also stated that Leave Management System is the important system in
each company. Some company still comfort with the manual system and the other make
change the system from manual to computerize to make the management more effective.
enter and manage leave requests according to company rules. This time of the year, many
Employer need to ensure they are keeping staff happy but retaining the right workforce to
do the job for themselves and customers over Eid-New Year, traditionally a time with
high priorities on maintenance and preparations for the year ahead. This company
develop an automated payroll and leave management systems which offers an on-line
leave management system designed to radically simplify for employees and employers
9
alike the process of planning, applying for and approving leave. This system eliminates
paperwork and cuts delay by enabling employees and supervisors to action time-off
applications simply by entering the dates and type of leave being sought after the
employee has viewed his or her entitlements online. Employees used a personal ID code
to get immediate access to their entitlements, while managers can at a glance see all
employees' leave history, leave balances, pending leave applications and approved. The
benefit of the system is that it saves time by eliminating paperwork, enhances employee
satisfaction by speeding up the process and helps managers by ensuring compliance with
about scheduling policies of central processing unit (CPU) for computer system. A
number of problems were solved to find the appropriate among them. Therefore, based
on performance, the shortest job first (SJF) algorithm is suggested for the CPU
scheduling problem to decrease either the average waiting time or average turnaround
time. Also, the first come first serve (FCFS) algorithm is suggested for the CPU
scheduling problems to reduce either the average CPU utilization or average throughput.
Employee Leave Management System by Jain (2014) affirms that the success of
strategically has become very important for the companies in today world HR manager’s
role and skills have developed significantly because of the adoption and use of new
technologies. He reveal that In the existing system, leaves are maintained using the
10
attendance register for staff. The staff needs to submit their leaves manually to their
respective authorities. This increases the paperwork & maintaining the records becomes
tedious. Maintaining notices in the records also increases the paperwork. The main
objective of the proposed system is to reduce the paperwork and help in easier record
Notices are maintained. The proposed system modernizes and automates the existing
system. It decreases the paperwork and enables easier record maintenance. It also reduces
chances of Data loss. This module intelligently adapts to HR policy of the management &
workflow of leave applications and their approvals. The periodic crediting of leave is also
automated. There are features like email notifications, automatic approval of leave, report
(2012), The new method of adoptive CPU scheduling using Fonseca and Fleming’s
genetic algorithm, proposed a new CPU scheduling. This algorithm based on three
parameters of CPU burst time, VO service time and priority of processes. The proposed
FFGA multi objective optimization algorithm is used. It selects and runs the desired
process through adaptation. In this algorithm, the priority of processes increases with
time. The proposal algorithm is analyzed with the other method showed that the average
11
12
2.2 REVIEW OF RELATED WORKS
works inform that the influence of work-life balance on employee commitment and this
should be of interest to social workers. In the banking sector where employees work
balance and the relationship between work-life balance and commitment. In other words
the concept of work leave makes the acquisition of the best working ability from an
employee obtainable. Work leave is regarded as a break from work for the refreshing of
the mental reasoning of a worker in order to bring out the best from them. Bridget Miller
notes that the work leaves are legally mandated to be available and others are voluntarily
absence from work place based on the contractual agreement of employment. He adds
Leave can also be defined as a period of time that an employee must be away
from his primary job, while maintaining the status of employee. Thus, it can further be
seen as the hours or days employee of an organization is permitted to be away from their
employment. This implies that the times. Taken off is paid by the company or
organization and the employees are allowed to request the time for any reason they wish
to be off from work. Ultimately, it is supposed that work leave enables the employee to
bring out the best in him when he returns back to the office. This time off is important to
13
2.2.1 TYPES OF WORK LEAVE
Employees need time to leave work for many different types of situation and they
will need to request this time from their supervisor. The employee of any organization are
entitled to certain types of leaves during their work tenures help them maintain adequacy
There are different types of work leave, some are official authorized to be offered,
According to the policy of MetLife, there are types of leave that all employees of
v. Volunteering leave
This type of leave is completed one year of permanent employee who has
completed one year of continuous service at MetLife. He/she will be able to avail earned
14
request for leave fare assistance (LFA) with an application of minimum 3days of earned
leave which must be submitted within two months before the date of availing. Un–availed
annual earned leave(s) shall be accumulated or carried forward to next year which shall
2. CASUAL LEAVE
This can be applied by an employee when he/she is unable to attend office due to
for maximum (3) days at a stretch and cannot be prefixed with annual leave or holiday. It
cannot be carried forward to next year. The company have right to disallow any casual
leave if it is not satisfied with the reasons for absence of the employees for which casual
3. SICK LEAVE
All employees are entitled to sick leave from the date of joining at MetLife. Sick
leaves are counted in calendar days and are not carried forward to next year. If an
employee remain sick for more than two consecutive working days then the employee
must provide a medical certificate issued by a licensed medical practitioner after joining.
4. MATERNITY LEAVE
with full payment. After completion of (6) six months service in the company will be
entitled to avail maternity leave. This type of leave is not be admissible more than twice
15
5. VOLUNTARY LEAVE
social activities and help people in need. All permanent employees of MetLife can apply
for up to 1 working day or (2 half days) of each calendar year and this leave is not carried
6. STUDY LEAVE
This type of leave is guided by the policies developed by MetLife Bangladesh for
no other leave is under this policy permissible or if all other applicable leave has been
i. Bereavement
ii. Administrative
iii. Voting
16
CHAPTER THREE
Research methodology refers to the methods or tools that is used during the research
work. The proposed system is developed with C# programming language and MYSQL as
i. For Data Gathering: the method I used in gathering of data is direct. Due to the
ii. Technique Used: the technique that I used in the proposed system is the parallel
with the existing one in case of system failure so that it will not be back to square
iii. Tools: The system frontend was implemented using C# while Microsoft SQL
Other method that can be employed for the system aside the ones i used are;
the internet.
scheduling determines which processes run when there are multiple runnable processes.
17
For the system of single processor, when multiple process comes, then one process can be
execute at a time and other process remain in waiting state until the CPU becomes ideal
or can be schedule again. To expand the CPU usage, the goal of multiprogramming is to
have some procedure running at all times. CPU scheduling manages the issue of choosing
which of the procedures in the ready queue is to be assigned the CPU. Operating System
number of algorithms is used to schedule processes such as First Come First Serve
(FCFS), Shortest Job First (SJF), round robin and priority scheduling algorithm. In FCFS,
the process that arrives first is executed first. The SJF works on shortest burst time it
means the job that has lowest burst time is executed first and then another process and so
on. In the round robin scheduling, processes are executed in First In First Out (FIFO)
manner but are given a small amount of CPU time called a time-slice or a quantum. The
CPU is preempted, if a process does not complete before its CPU-time expires and given
assigned to each process, and priority is allowed to run. Each process have their different
priorities, according to the priority the processes are executed. Higher priority process
will executed first and then the lower priority and so on. Generally, we use the lowest
integer as highest priority. If the two or more process has equal priorities then they
executed in FCFS manner such that the process which enters first will executed first. The
decision of priority can be internally or externally. Internal priority uses some factors
these are available to calculate the priority of a process. External priorities are set by
18
19
3.2 ANALYSIS OF THE EXISTING SYSTEM
Before the use of computer for work leave management system the existing paper
work related to leave management, leaves are maintained using the attendance register
for staff. The staff needs to submit their leaves manually to their respective authorities.
This increases the paperwork & maintaining the records becomes tedious. Maintaining
The use of paper work for work leave does not ensures security of every record. It
increases the redundancy of data and gives various facilities. It leads to loss of data. The
employee has to write a letter to its superior for leave which makes it a tedious work for
the employee.
1. Lack of Security
Paper document filing can be less secure than electronic filing systems.
Misplaced documents can easily be placed in the wrong hands. Clients expect
their information to be secure in your hands. If you can’t keep this safe, you are at
risk for losing them. A cabinet filled with files is way easier to access than a
2. Access Time
Manual leave document filing is very time consuming. Not only do you
have to organize and store the files, hunting down the information when it is need
20
can take time. It can take anywhere from minutes to hours to hunt down a file,
depending on how well your organization is. This can cause annoyance for
3. Higher Cost
When you use paper documents for your work leave your costs are going
to be higher because you are paying for ink and paper. Your office supply bill will
be higher if you are using a manual document filing process. While you might
think this is insignificant, overtime it’s a lot of money that can be used in better
ways.
21
CHAPTER FOUR
Generally, all efforts are geared toward designing a system program that
eliminates all the setbacks of the existing manual method. This new approach is simple,
The proposed is designed in order to meet the goal and objective of the
organization. The design of the system is intended to solve the various problems
contributed in the manual method of work leave request and approval method.
In the below figure, it is Admin dashboard page screen which contain the all
module of the project like add employee, Requested leave, Show allowed leave and show
employee.
22
Figure 1:Work Leave requestAdmin Home Page Screenshot
In the below figure management can log-in with there unique Id and password and
23
Figure 4: Adminlogin Page Screenshot
This form will add new employee where fills all necessary details.
24
Figure 5: Add Employee Page Screenshot
25
4.1.3 PRIORITY INPUT DATA AND RESULT
Input :
process no-> 1 2 3 4 5
arrival time-> 0 1 3 2 4
burst time-> 3 6 1 2 4
priority-> 3 4 9 7 8
Output :
Process_noStart_timeComplete_timeTurn_Around_TimeWating_Time
1 0 3 3 0
2 3 9 8 2
4 9 11 9 7
3 11 12 9 8
5 12 16 12 8
4.1.4 DATABASE
Database entails the organization and access mode that are implemented in
carrying out our specified operations upon the records of the file.
The files used in this system have records that have been organized randomly
(random organization) and for this purpose, it will be more appropriate to access the
26
Table1: Employees Table Structure
ID BIGINT
GENDER VARCHAR
PHONE_NO VARCHAR
ADDRESS VARCHAR
DEPARTMENT VARCHAR
POSITION VARCHAR
This refers to the step by step method of using the proposed system. The proposed
system comprises of management Login, Employee Login, add different Leave, Request
for leave, Approve leave request, Report. The steps to use the proposed system are as
follows
a. You are prompted to supply the username and password this verifies that you are
27
b. If the username and password supplied are correct as that of an administrator you
are prompted with the home page for the administrator and if the supplied details
is that of aemployee you are redirected to the employee page where you can apply
aemployee.
d. As an administrator you are directed to page containing all the facilities of the
system.
e. As anemployee supply the details given to you by the administrator then you will
new application considering the hardware and software needed for effective performance
of the program.
3. Train employees
28
It is an integrated development environment from Microsoft. It is used to develop
console and graphical user interface application along with Windows Forms or WPF
application, web sites, web application and web services in both native code together
with managed code for all platforms. It includes a code editor supporting intelligence as
well as code refactoring. In this project Microsoft Visual Studio 2012 has been used.
Microsoft Visual C# It’s an implementation of the c sharp (C#) language, targets the
.NET framework, along with the language services that lets the visual studio IDE support
C# projects. While the languages are a part of visual studio, the compiler is available
whose primary function is to store and retrieve data as requested by other applications, be
it those on another computer across a network. I have used Microsoft SQL Server 2010
In preparation for the installation of the new system, the method of changeover is
given serious consideration to determine the success of the new system. Suitable
changeover technique for this system is pilot changeover. The pilot changeover operates
by applying the new system bit-by-bit until it covers the whole of the operations. The
result obtained from using the pilot method on a small portion of the operations would be
used in determining the suitability of the need system for the rest of the operations. This
method is similar to testing small sample of a distribution if the test yields a good result
29
then the whole system become fully operational and the manual/existing system is
eliminated.
4.2.3 SOFTWARE
helps to design and implement a system that would allow shopping by getting into the
company website on the internet from anywhere. It also helps to design and implement a
website that will be more interactive and more information about company activities.
community, which does not necessitate the use of offices and staff stationed around the
world.
Step 1: Boot your computer and click on start button on task bar
30
Step 4:Supply your username and password to access the system
Step 6: Logout
CHAPTER FIVE
5.1 SUMMARY
standalone application (Desktop Application) that can only be accessed throughout the
organization system or a specified group/Dept. This system can be used to automate the
workflow of leave applications and their approvals. The periodic crediting of leave is also
automated. There are features like Scheduling leave request, approval of leave, report
generators etc. in this system. Work Leave Scheduling Management application will
5.2 CONCLUSION
administration in the Public Service. In this the whole study was summarized and the
findings were analysed. From the findings in this study the recommendations were made
which can be implemented to ensure that what has been discovered as challenges or areas
31
of non-compliance can be addressed. Perhaps when these recommendations are
implemented there can be change in how leave as benefit is perceived, managed and
utilized.
5.3RECOMMENDATION
Emanating from the findings, the following are the recommendations that can
be implemented.
are always changes and amendments on the leave policy, as the result training
Employee leave management is a basic HR task and one that affects all
employees. It was discovered that the public sector is still using the manual
during the leave processing. Sharma (2009) highlights the importance of the
Improves discipline.
departments. Some of the cases may not be controlled such as the family
responsibility leave. The researcher suggests that the public sector must plan
It is not left to accumulate towards the end of the calendar year. Leave
given to the staff members. This will ensure that leave is well managed
and further that the officials will know their leave days.
33
SOURCE CODE
using MySql.Data.MySqlClient;
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 LEAVE_SCHEDULER
{
public partial class frmLogin : Form
{
public frmLogin()
{
InitializeComponent();
}
34
try
{
leave.OpenMe();
MySqlDataReadermyreader;
string sql = "SELECT * FROM user_table WHERE staff_id
='" + txtuser.Text + "' AND password ='" + txtpass.Text + "'";
MySqlCommandcmd = new MySqlCommand(sql, leave.mycon);
myreader = cmd.ExecuteReader();
int i = 0;
while (myreader.Read())
{
i = i + 1;
}
if (i> 0)
{
MessageBox.Show("Access Granted>>>>");
this.Hide();
frmMain g = new frmMain();
g.lbldont.Text = txtuser.Text;
g.btnrequest.Location = new Point (16, 47);
g.btncheck.Location = new Point (16, 147);
g.btnlogout.Location = new Point(16, 245);
g.btncheck.Visible = true;
g.btnrequest.Visible = true;
g.btnshowleave.Visible = false;
g.btngrant.Visible = false;
g.btnAddstaff.Visible = false;
g.ShowDialog();
this.Close();
leave.CloseMe();
}
else
{
MessageBox.Show("YOU'RE NOT A REGISTERED STAFF!");
}
leave.CloseMe();
}
catch (Exception ex)
{
leave.CloseMe();
MessageBox.Show(ex.Message);
}
}
else
{
MessageBox.Show("MODE OF LOGIN NOT ACCEPTED");
}
}
35
{
Application.Exit();
}
using MySql.Data.MySqlClient;
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 LEAVE_SCHEDULER
{
public partial class frmAddstaff : Form
{
public frmAddstaff()
{
InitializeComponent();
}
36
{
if (txtmail.Text == "" || txtname.Text == "" ||
txtpass.Text == "" || txtphone.Text == "" || txtpost.Text == "" ||
cmbgender.SelectedIndex == 0)
{
MessageBox.Show("ALL FIELDS ARE REQUIRED TO BE FILLED CORRECTLY");
txtname.Focus();
}
else
{
try
{
leave.OpenMe();
string sql = "INSERT INTO user_table
(name,email,staff_id,gender,dob,post,phone_no,password) values
(@name,@email,@staff_id,@gender,@dob,@post,@phone_no,@password)";
MySqlCommandcmd = new MySqlCommand(sql, leave.mycon);
cmd.Parameters.AddWithValue("name", txtname.Text.Trim());
cmd.Parameters.AddWithValue("email", txtmail.Text.Trim());
cmd.Parameters.AddWithValue("staff_id", txtid.Text.Trim());
cmd.Parameters.AddWithValue("gender", cmbgender.Text.Trim());
cmd.Parameters.AddWithValue("dob", dateTimePicker1.Text.Trim());
cmd.Parameters.AddWithValue("post", txtpost.Text.Trim());
cmd.Parameters.AddWithValue("phone_no", txtphone.Text.Trim());
cmd.Parameters.AddWithValue("password", txtpass.Text.Trim());
cmd.ExecuteNonQuery();
leave.CloseMe();
txtpost.Text = "";
txtname.Text = "";
txtpass.Text = "";
txtphone.Text = "";
txtmail.Text = "";
cmbgender.SelectedIndex = 0;
Random rnd = new Random();
int a = rnd.Next(9000, 10000);
txtid.Text = "ST" + a.ToString();
MessageBox.Show("STAFF ADDED SUCCESSFULLY");
txtname.Focus();
}
catch (Exception ab)
{
leave.CloseMe();
MessageBox.Show(ab.Message);
}
}
}
}
}
37
using MySql.Data.MySqlClient;
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 LEAVE_SCHEDULER
{
public partial class frmrequest : Form
{
public frmrequest()
{
InitializeComponent();
}
38
leave.CloseMe();
txtdescription.Text = "";
txtdays.Text = "";
MessageBox.Show("REQUEST MADE SUCCESSFULLY");
txtdescription.Focus();
}
catch (Exception ab)
{
leave.CloseMe();
MessageBox.Show(ab.Message);
}
}
}
using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
39
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace LEAVE_SCHEDULER
{
public partial class frmshowleaves : Form
{
public frmshowleaves()
{
InitializeComponent();
}
40
}
41
private void lst1_DoubleClick(object sender, EventArgs e)
{
int a = int.Parse(lst1.SelectedItems[0].Text);
try
{
leave.OpenMe();
MySqlDataReader reader;
string sql = "SELECT * FROM request_table WHERE id ='"
+ a + "'";
MySqlCommandcmd = new MySqlCommand(sql, leave.mycon);
reader = cmd.ExecuteReader();
while (reader.Read())
{
txtname.Text = reader["name"].ToString();
txtphone.Text = reader["phone"].ToString();
txtpost.Text = reader["post"].ToString();
txtid.Text = reader["staff_id"].ToString();
txtdays.Text = reader["days"].ToString();
txtdescription.Text = reader["description"].ToString();
txtend.Text = reader["end"].ToString();
txtstart.Text = reader["start"].ToString();
}
leave.CloseMe();
}
catch (Exception ex)
{
leave.CloseMe();
MessageBox.Show(ex.Message);
}
}
}
}
42