0% found this document useful (0 votes)
18 views

Test

Uploaded by

acd52349
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Test

Uploaded by

acd52349
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

welcome to my

computer science project


CERTIFICATION

This is to certify that the project entitled:

 “Employee management system”

is a record of the bona fide work of :

 Subham Jena

In partial fulfilment of the requirements in


COMPUTER SCIENCE
 provided by CBSE for the CBSE BOARD EXAM
(AISSCE) 2023-24 in the school:

 JAWAHAR NAVODAYA VIDYALAYA, BARO


KENDRAPADA, ODISHA

 DATE:

 ____________
______________
INTERNAL EXTERNAL
EXAMINER EXAMINER

ACKNOWLEDGEMENT

 I would like to express my gratitude for


my Computer Science teacher Mr. Siddhartha
Sinha for his valuable assistance, guidance
and advice for this project.

 I wish to express my deep gratitude and


my sincere thanks to the Principal, Mr. R.P.
Sahoo of
JAWAHAR NAVODAYA VIDAYALAYA,
BARO
KENDRAPADA, ODISHA
and for the facilities provided by my
institution.
SYNOPSIS
Objective of Employee Management System (EMS)
 This employee management system(EMS) is an offline
software to manage employee data in any office.
 . The application will be used by two types of users –
System Administrator and office employees.
 The application takes input from users and it stores data
and fetches data from database to perform different
operation.
 The System administrator has full control of the
application.
 The System Administrator will perform following
operation – Add employees as user to EMS , Search User ,
Reset Password , Delete User , Update Salary , Assign
Projects.
 The software keeps the record of all the employee’s total
working days and calculate the salary etc.
Functions and Features of the
Proposed System
Homepage:
Home page has
 Login

Login as Administrator
Login as Employee
 Help

This will make the user to


understand all the functions.
Login as Administrator
Using this option, the system administrator
login. System administrator will use the
password given by the company . Then
will get these options.
 Add user:
 This option allows the admin to add new
employees to the system.
 Search user:
 This option allows the admin to search
and access the work of an employee.
import mysql.connector as c
import datetime
con=c.connect(host="localhost",user="root",password="12345",database="subham")
cur=con.cursor()
print(" WELCOME TO EMPLOYEE MANAGEMENT SYSTEM")
while True:
print("1.login")
print("2.help")
a=input("enter your choice:")
if a=="1":
while True:
print("1.login as admin")
print("2.login as employee")
PROJECT CODE

b=input("enter your choice:")


if b=="1":
d=input("enter admin id:")
e=input("enter password:")
cur.execute("select * from adid")
ee=cur.fetchall()
for ii in ee:
if ii[0]==d and ii[1]==e:
while True:
print("1.add user")
print("2.search user")
print("3.reset password")
print("4.delete user")
print("5.update salary")
print("6.assign project")
print("0.exit")
f=input("enter choice:")
if f=="1":
g=input("enter id:")
h=input("password:")
j=input("enter name of employee:")
k=int(input("enter empcode:"))
l=int(input("set salary:"))
m=int(input("no of working days in the month:"))
cur.execute("insert into empdata values({},'{}','{}','{}',{},{})".format(k,j,g,h,m,l))
con.commit()
print("user added")
elif f=="2":
g=input("enter id:")
cur.execute("select * from empdata")
h=cur.fetchall()
for j in h:
if j[2]==g:

print("search successful")
print(“ empcode:",j[0]," name:",j[1]," empid:",j[2]," emppass:",j[3],"
workingdays:",j[4]," salary:",j[5])
break
else:
print("id doesnot exist")

elif f=="3":
print("1.user")
print("2.admin")
g=int(input("enter choice:"))
if g==1:
h=input("enter id:")
i=input("enter new password:")
cur.execute("update empdata set emppass='{}' where empid='{}'".format(i,h))
con.commit()
print("password changed")
elif g==2:
h=input("enter admin id:")
i=input("enter new password:")
cur.execute("update adid set adpass='{}' where adid='{}'".format(i,h))
con.commit()

elif f=="4":
h=input("enter id:")
cur.execute("select * from empdata")
k=cur.fetchall()
for j in k:
if j[2]==h:
i=int(input("to confirm press 1"))
if i==1:
cur.execute("delete from empdata where empid='{}'".format(h))
con.commit()
print("deleted the employee data successfully")
break
else:
print("id doesnot exist")
elif f=="5":
h=input("enter employee id:")
cur.execute("select * from empdata")
i=cur.fetchall()
for j in i:
if j[2]==h:
k=int(input("enter salary in rupees:"))
cur.execute("update empdata set salary={} where empid='{}'".format(k,h))
con.commit()
elif f=="6":
h=input("enter empcode:")
cur.execute("select empcode from empdata")
j=cur.fetchall()
for k in j:
if h==str(k[0]):
i=input("assign project:")
l=input("department:")
cur.execute("insert into projects values({},'{}','{}')".format(h,l,i))
con.commit()
break
else:
"no such employee found"
else:
print("There is no employee having empcode",h)
elif f=="0":
break
else:
print("No such option allowed")

else:
print("id not found")
continue

elif b=="2":
cur.execute("select curdate()")
date=cur.fetchall()
print(date)
d=input("enter employee id:")
cur.execute("select * from empdata")
e=cur.fetchall()
for f in e:
if f[2]==d:
g=input("enter employee password:")
if f[3]==g:
while True:

print("================ welcome ====================")


print("1.appear")
print("2.change password")
print("3.check no of working days")
print("4.all projects")
print("0.exit")
h=input("enter your choice:")
dc=0
if h=="1":
if h=="1":
if dc==0:
dc+=1
if f[2]==d:
w=f[4]+1
cur.execute("update empdata set workingdays={} whereempid='{}'".format(w,d))
con.commit()
print("appeared")
elif h=="2":
i=input("enter new password:")
cur.execute("update empdata set emppass='{}' where empid='{}'".format(i,d))
con.commit()
print("password changed")
elif h=="3":
print(f[4])
i=int(input("if you want to calculate salary press 1:"))
if i==1:
print((f[5]//30)*f[4])
elif h=="4":
k=f[0]
cur.execute('''select empdata.empcode,projects.current_project from projects inner join
empdata on projects.empcode=empdata.empcode;''')
i=cur.fetchall()
for j in i:
if j[0]==k:
print(j[1])
break
else:
print("currently not working any project")
elif h=="0":
break
else:
print("wrong password")
continue
else:
print("id not found")
break
else:
print("NO such option allowed")
elif a=="2":
print("for more help visit www.empmanagement.com")
else:
print("No such option allowed")
OUTPUTS FOR ADMIN
OUTPUTS FOR EMPLOYEE
SCOPE AND LIMITATIONS
SCOPE:

 The employee management system is a ofline


software to manage employee data in any
office

LIMITATIONS:
 This system uses python SQL. The data can’t
be accessed by internet.

You might also like