Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 25

Academic Year: 2021-2022

St. Theresa's Girls School


BHEL BHOPAL

Computer Scientific Project On:

"EMPLOYEE MANAGEMENT SYSTEM"

Name: Sneha Prajapati

Class XIIth "B"

ROLL NO:12221

________________________________________
__

CERTIFICATE
This is to certify that Sneha Prajapati of class XII B
has worked under my supervision on project
of "employee management system" and completed
it to my full satisfaction
I wish her success in life.

Examiner name: Mrs. Bini Santosh


Signature:_______

________________________________________
_____
ACKNOWLEDGEMENT
We are thankful to our computer teacher Mrs Bini
Santosh ma'am

Who helped and guided us throughout the project


Without whose guidance our project would have
been incomplete and imperfect. I would also like to
thank computer department of our school who
helped and gave time for the completion of my
project.

________________________________________
______

Index.
1. Introduction....
2. Objective.........
3. Features of employee management system.....
4. Hardware and software requirement......
5. #main code .....
6 #Output.....

________________________________________
______
Introduction

The task is to create a Database-driven Employee


Management System in Python that will store the
information in the MySQL Database. The script will
contain
the following operations:

• Add Employee

• Remove Employee

• Promote Employee

•Display Employees

The idea is that we perform different changes in


our Employee Record by using different functions
for example the Add employee will insert a new
row in our Employee, also, we will create a
Remove Employee Function which will delete the
record of any particular existing employee in our
Employee table. This System works on the
concepts of taking the information from the
database making required changes in the fetched
data and applying the changes in the record which
we will see in our Promote Employee System. We
can also have the information about all the existing
employees by using the Display Employee
function. The main advantage of connecting our
program to the database is that the information
becomes lossless even after closing our program
a number of times.

This report includes a development presentation of


an information system for managing the staff data
within a small company or organization. The
system as such as it has been developed is called
Employee Management System. It consists of
functionally related GUI (application program) and
database. The choice of the programming tools is
individual
and particular.

________________________________________
______

Objective of Project on Employee


Management System:

The main objective of the Project on Employee


Management System is to manage the details of
employee, salary, leaves, attendance, registration.
It manages all the information about employee,
skills, registration, and employee. The project is
totally built at administrative end and thus only the
administrator is guaranteed the access. The
purpose of the project is to build an application
program to reduce the manual work for managing
the employee, salary, skills, leaves. It tracks all the
details about the leaves, attendance, and
registration.

Functionalities provided by Employee


Management System are as follows:

• Provides the searching facilities based on various


factors. Such as employee, leaves, attendance,
registration.
• Employee Management System also manages
the skills details online for attendance details,
registration details, and employee.

• It tracks all the information of salary, skills,


attendance etc.

• Manage the information of salary.


• Shows the information and description of the
employee, leaves.

• To increase efficiency of managing the employee,


salary.

• It deals with monitoring the information and


transactions of attendance.

• Manage the information of employee.

• Editing, adding and updating of Records is


improved which results in proper resource
management of employee data.

________________________________________
______

Features of the Employee Management


System:

• Product and Component based.


• Creating & Changing Issues at ease Query Issue
List to any depth.
• Reporting & charting in more comprehensive
way.
• User Accounts to control the access and maintain
security.
• Simple Status & Resolutions.
• Multi-level Priorities & Severities.
• Targets & Milestones for guiding the
programmers.
• Attachments & Additional Comments for more
information.
• Robust database back-end.
• Various level of reports available with a leaf filter
criteria's.
• Accuracy in work.
• Easy & fast retrieval of information.
• Well designed reports.
• Decrease the load of the person involve in
existing manual system.
• Access of any information individually.
• Work becomes very speedy.
• Easy to update information

________________________________________
______

HARDWARE AND SOFTWARE


REQUIREMENTS

I. OPERATING SYSTEM : WINDOWS 7 AND


ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD


ATHALON(3800+-4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR


PENTIUM OR MSI
K9MM-V VIA K8M800+8237R PLUS CHIPSET
FOR AMD ATHALON

IV. RAM : 512 MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up


required)

VII. FLOPPY DRIVE 1.44 MB : (If Backup


required)

VIII. MONITOR 14.1 or 15-17 inch

IX. Key board and mouse


X. Printer : required

SOFTWARE REQUIREMENTS:

Windows OS

Python

My SQL

________________________________________
______

SOURCE CODE

#table creation
Import mysql.connector as sql
Conn=sql.connect(host='localhost',user='root',pass
wd='manager',database='employees')
Cur = conn.cursor()
#cur.execute('create table user_table(username
varchar(25) primary key,password varchar(25) not
null)')

Print('======================= WELCOME
TO START EMPLOYEE MANAGEMENT SYSTEM
=====================================')

Import datetime as dt
Print(dt.datetime.now())
Print('1.REGISTER')
Print()
Print('2.LOGIN')
Print()

N=int(input('enter your choice='))


Print()

If n==1:
Name=input("Enter a Username=')
Print()
Passwd=int(input('Enter a 4 DIGIT
Password='))
Print()
V_SQLInsert="INSERT INTO log_id (user_id,
password) values (" + str (passwd) +" ,' "+ name +
"')"
Cur.execute(V_SQLInsert)
Conn.commit()
Print()
Print('USER created succesfully')
Import main
If n==2:
Name=input('Enter your Username=')
Print()
Passwd=int(input('Enter your 4 DIGIT
Password='))

V_Sql_Sel="select * from log_id where


password='"+str (passwd)+"' and user_id= '
"+name+"'"
Cur.execute(V_Sql_Sel)
If cur.fetchall() is None:
Print()
Print('Invalid username or password')
Else:
Print()
Import main

++++++++++++++++++++++++++++++++++++++
++++++++++

#MAINP.PY FILE#

Import time
Print ("\t\t\t",time.ctime())

Import mysql.connector as sql

Conn=sql.connect(host='localhost',user='root',
password="manager", database=" employees')

Mycursor conn.cursor()
Def menu():
Print(" EMPLOYEES MANAGEMENT
SYSTEM ")
C='yes'
C=input("do you want to continue or not(yes or
No):")
While(c=='yes'):
Print("1.login")
Print("2.employee registeration")
Print("3.employee details")
Print("4.update salary")
Print("5.employees list")
Print("6.know the number of employees")
Print("7.work experience")
Print("8.know your salary")
Print("exiting")
Choice=int(input(" enter the choice: ")
If choice==1:
Login()
Elif choice==2:
Register()
Elif choice==3:
Details()
Elif choice==4:
Em_salary()
Elif choice==5:
Em_list()
Elif choice = 6:
Em_count()
Elif choice==7:
Em perform()
Elif choice==8:
Salary()
Else:
Print ("exit")
Break
Else: print("Thank You")
Def login():
Import sys
User_id=input("enter USER ID :")
Pwd=int(input("enter the password :"))
If user_id == 'vishal'and pwd == 6054:
Print("welcome to EMPLOYEE
MANAGEMENT SYSTEM")
Else:
Print("invalid user id and password")
Sys.exit()

Def register():
Import mysql.connector as sql
Conn=sql.connect(host="localhost",user='root',pas
sword="manager", database=" employees')

Mycursor conn.cursor()
V_em_no=int(input("enter your employee ID"))
V_em_name=input ("enter your name:")
V_em_dept=input("enter department you want
to join :")
V_em_salary=input ("enter your salary:")
V_em_age=int(input("enter your age:"))
V_sql_insert="insert into office
values("+int(v_em_no)
+","+v_em_name+","+v_em_dept+","+str(v_em_sa
lary)+","+str(v_em_age)+")"
Mycursor.execute(v_sql_insert)
Conn.commit()
Print("congrats you have joined suuceessfully")
Print(" registerd suyccessfully ")

Def details():
Import mysql.connector as sql
Conn=sql.connect(host='localhost',user='root',pass
word="manager", database=" employees')
Mycursor conn.cursor()
Mycursor.execute("select* from OFFICE")
Results=mycursor.fetchall()
Conn.commit()
For x in results:
Print(x)
Def em salary():
Import mysql.connector as sql

Conn=sql.connect(host='localhost',user='root',pass
word="manager", database=" employees')
Mycursor=conn.cursor()
Nam=input("enter your name")
Mycursor.execute("update office set
em_salary=em_salary+em_salary*10/100 Where
em_name='{}'".format(nam))
Conn.commit()
Def em_list():
Import mysql.connector as sql
Try:

Conn=sql.connect(host='localhost',user='root',pass
word="manager", database=' employees')

Mycursor conn.cursor()
Mycursor.execute("select em_name from
office order by em_name asc")
List mycursor.fetchall()
For x in list_:
Print (x)
A=mycursor.rowcount()
Print("total employees are",a)
Except:
+v_em_name+","+v_em_dept+","+v_em_performa
nce+" "+str(v_em_work) +")"
Print(v_sql insert)
Mycursor.execute(v_sql_insert)
Conn.commit()
Print("performance added")

You might also like