You are on page 1of 17

GOVENTHAN .

COURSE:
PYTHON

PROJECT:
EMPLOYEE MANAGEMENT SYSTEM
TITTLE PAGE NO
S.NO

1 INTRODUCTION 1

2 ABSTRACT 2

3 UPDATE DETAILS 6

4 DELETE DETAILS 8

5 CLEAR DETAILS 10

6 DATA CONECTIVITY 12

7 CONCLUSION 15
INTRODUCTION

I'm GOVENTAN.S Python Developer .

Guided by R.Ramya python developer at IPCS Global Salem.Welcome to


the employee management system . project report is below

An employee management project is a software application designed


to streamline and automate various tasks related to managing
employees within an organization. It provides a centralized system to
store and manage employee data, track attendance, handle payroll
processing, monitor performance, and generate reports. The specific
reports required in an employee management project may vary based
on the organization's needs and objectives. The project should include
functionalities to generate these reports in a user-friendly format, such
as PDF or Excel, and offer options for customization and filtering based
on desired parameters.

Overall, an employee management project with robust reporting


capabilities provides valuable insights, improves decision-making, and
enhances the efficiency of managing a workforce within an
organization.

1
ABSTRACT
The Employee Management System is a software application developed
using the Tkinter library in Python. It aims to provide a user-friendly
interface for managing employee information within an organization.
The system allows administrators to perform various tasks, such as
adding new employees, updating their details, and generating
reports.The graphical user interface (GUI) is designed using Tkinter, a
popular Python library for creating desktop applications. Tkinter
provides a set of widgets and tools that facilitate the development of
interactive interfaces. The system leverages these capabilities to create
a visually appealing and intuitive user experience

The key features of the Employee Management System include:

Employee Database: The system maintains a centralized database to


store employee information, such as names, contact details, job titles,
and departments. The database ensures data integrity and provides
easy access to employee records.

User Authentication: To ensure security and access control, the system


includes a user authentication mechanism. Administrators are required
to authenticate themselves before accessing or modifying employee
records.

CRUD Operations: The system enables administrators to perform CRUD


(Create, Read, Update, Delete) operations on employee records. They
can add new employees, view existing records, update employee
details, and delete employee records if necessary.

2
HOME PAGE

The Employee Management System is a software application.developed


using the Tkinter library in Python. It aims to provide a user-friendly
interface for managing employee information within an organization.
The system allows administrators to perform various tasks, such as
adding new employees, updating their details, and generating ,d
electing dates,and clear the dates on reports.The graphical user
interface (GUI) is designed using Tkinter, a popular Python library for
creating desktop applications. Tkinter provides a set of widgets and
tools that facilitate the development of interactive interfaces.

3
ADD DETAILS
If click the “Add details”:

After click on Add details :

THEORY:

The add details method is responsible for adding a new employee to


the system. It retrieves the values entered in the entry fields (name,
age, and designation) and checks if all fields are filled. If so, the
employee details are appended to the employees list, and the name is
inserted into the listbox. The entry fields are then cleared, and a
success message is displayed using a message

4
Program:

add_employee():

if txtName.get() == "" or txtAge.get() == "" or txtDoj.get() == "" or


txtEmail.get() == "" or comboGender.get() == "" or txtContact.get()==""or
txtAddress.get(1.0,END)=="":

messagebox.showerror("Error in Input", "please fill all the details")

return

db.insert(txtName.get(), txtAge.get(), txtDoj.get(), txtEmail.get(),


comboGender.get(), txtContact.get(),

txtAddress.get( 1.0, END))

messagebox.showinfo("Success", "Record Inserted")

clearAll()

displayAll()

5
UPDATE DETAILS
If click the “Update details”:

After click on Update details :

THEORY:

Update Employee: It is used to update the employees names , address


,age,contact,date of joining, and gmail ,also gender.it is all about
updating the employee details.

6
Program:
update_employee():

if txtName.get() == "" or txtAge.get() == "" or txtDoj.get() == "" or


txtEmail.get() == "" or comboGender.get() == "" or txtContact.get()==""or
txtAddress.get(1.0,END)=="":

messagebox.showerror("Error in Input", "please fill all the details")

return

db.update(row[0],txtName.get(), txtAge.get(), txtDoj.get(),


txtEmail.get(), comboGender.get(), txtContact.get(),

txtAddress.get( 1.0, END))

messagebox.showinfo("Success", "Record update")

clearAll()

displayAll()

7
DELETE DETAILS
If click the on“Delete details”:

After click on Delete details :

THEORY:

Delete Employee: With this functionality, users can select an employee


from a list and remove their record from the system. The system
identifies the selected employee and deletes their details from the
database or data structure.

8
Program:
delete_employee():

db.remove(row[0])

clearAll()

displayAll()

9
CLEAR DETAILS
If click the on “Clear details”:

After click on Clear details :

THEORY:

In an employee management system, a "Clear Data" function is typically


used to remove all employee records from the system, essentially
resetting it to an empty state. This function can be useful in situations
where you want to start fresh or clear out all existing employee data.
10
Program:

clearAll():

name .set("")

age .set("")

doj .set("")

gender .set("")

email .set("")

contact .set("")

txtAddress.delete(1.0,END)

11
DATA CONNECTIVITY
Data Connectivity Picture:

THEORY:

In Python, data connectivity refers to the ability to establish


connections and interact with various data sources, such as databases,
APIs, files, or web services. It involves retrieving data from these
sources, manipulating or processing the data, and potentially updating
or persisting the data back to the source. Python provides several
libraries and modules that facilitate data connectivity, enabling you to
interact with different types of data sources
12
Program:
import sqlite3

class Database:

def __init__(self, db):

self.con = sqlite3.connect(db)

self.cur = self.con.cursor()

sql = """

CREATE TABLE IF NOT EXISTS employees(

id Integer Primary Key,

name text,

age text,

doj text,

email text,

gender text,

contact text,

address text

self.cur.execute(sql)

self.con.commit()

# Insert Function

def insert(self, name, age, doj, email, gender, contact, address):

self.cur.execute("insert into employees values (NULL,?,?,?,?,?,?,?)",

(name, age, doj, email, gender, contact, address))

13
self.con.commit()

# Fetch All Data from DB

def fetch(self):

self.cur.execute("SELECT * from employees")

rows = self.cur.fetchall()

#print(rows)

return rows

# Delete a Record in DB

def remove(self, id):

self.cur.execute("delete from employees where id=?", (id,))

self.con.commit()

# Update a Record in DB

def update(self, id, name, age, doj, email, gender, contact, address):

self.cur.execute(

"update employees set name=?, age=?, doj=?, email=?, gender=?, contact=?, address=?
where id=?",

(name, age, doj, email, gender, contact, address, id))

self.con.commit()

14
CONCLUSION

In conclusion, an employee management system is a valuable project


that allows businesses or organizations to effectively manage and
maintain employee information. It provides functionalities such as
adding, deleting, updating, and retrieving employee details, helping
streamline HR processes and improve organizational efficiency.

15

You might also like