ALWIN MEMORIAL PUBLIC SCHOOL
Indira Nagar, Selaiyur, Chennai – 600073
AISSCE 2023 – 2024
EMPLOYEE MANAGEMENT
BONAFIDE CERTIFICATE
This is to certify that the project titled EMPLOYEE
MANAGEMENT is a Bonafide work done by
SARAVANA KUMAR CUTHAMBAKKAM in
partial fulfillment of the requirements in computer
science practicals as prescribed by CBSE for AISSCE
2023– 2024.
REGISTER NO.
TEACHER-IN-CHARGE PRINCIPAL
INTERNAL EXTERNAL EXAMINER
EXAMINER
ACKNOWLEDGEMENT
In the accomplishment of the project successfully, many people
have best owned upon us with their blessings and the heart
pledged support, This time we are careful to thank all the people
who have been concerned with the project.
Primarily, we would thank God for being able to complete this
project with success. Then we would like to thank our computer
science teacher, Mrs.ANANTHY and Mrs.LAVANYA, whose
valuable guidance was the one that helped us patch this project.
Their suggestions and instructions have served as the major
contributor towards the completion of this project.
Then we would thank our parents, friends and our classmates
who had helped us with their valuable suggestions and guidance
during various phases of the completion of this project.
ABSTRACT
Requirement definition and management is recognised as a
necessary step in the delivery of successful systems and software
projects, discipline is also required by standards,regulations, and
quality improvement initiatives. Creating and managing
requirements is a challenge for IT, systems and product
development projects or indeed for any activity where you have
to manage contractual relationships. Organizations need to
effectively define and manage requirements to ensure they are
meeting the needs of the customers while proving compliance
and staying on the schedule and within budge. The impact of the
poorly expressed requirement can bring a business out of
compliance or even cause injury or death. Requirement definition
and management is an activity that can deliver a high, fast return
on investment.
THE EMPLOYEE MANAGEMENT SYSTEM undertaken as a
project is based on relevant technologies. The main aim of this
project is to develop software for digital bank management
systems. This project has been developed to carry out the
processes easily and quickly, which is not possible with the
manual system, which are overcome by this project. This project
is developed using python and MySQL languages and hence it
provides the complete solution for the current management
system.
REQUIREMENT ANALYSIS
• import mysql.connector
• import random
• import sys
• import re
APPLICATIONS
The project “EMPLOYEE MANAGEMENT SYSTEM” includes the
following functionalities:
• Logins can be done with minimum user events.
• All Login details and accounts are stored in files on stable
storage.
• employee can view their account details and can
use them as necessary
• an employee can inquire about an account
• All employee’s data are stored in files on a stable storage
• Account holders have to pass through a login
system to enter their accounts
• This system possesses no.-protected administrative
access; thus preventing the whole management system
from unauthorized access 10
• To provide flexibility for secure data
• For better performance.
• They are reducing manpower.
• For doing work more accurately.
• Faster performance.
from os import system
import random
import re
import mysql.connector
con = mysql.connector.connect(host="localhost", user="root",
password="Netaddress@123", database="employee")
regex = r'\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b'
Pattern = re.compile("(0|91)?[7-9][0-9]{9}")
def Add_Employ():
print("Add Employee RecorD")
Id = (random.randint(1,99999999))
Name = input("Enter Employee Name: ")
if (check_employee_name(Name) == True):
print("Employee Name Already Exists")
press = input("Press Any Key To Continue..")
Add_Employ
EmailId = input("Enter Employee Email ID: ")
if(re.fullmatch(regex, EmailId)):
print("Valid Email")
else:
print("Invalid Email")
press = input("Press Any Key To Continue..")
Add_Employ()
Phoneno = input("Enter Employee Phone No.: ")
if(Pattern.match(Phoneno)):
print("Valid Phone Number")
else:
print("Invalid Phone Number")
press = input("Press Any Key To Continue..")
Add_Employ()
Address = input("Enter Employee Address: ")
Post = input("Enter Employee Post: ")
Salary = input("Enter Employee Salary: ")
data = (Id, Name, EmailId, Phoneno, Address, Post, Salary)
sql = 'insert into empdata values(%s,%s,%s,%s,%s,%s,%s)'
c = con.cursor()
c.execute(sql, data)
con.commit()
print(" Added Employee Record")
print("***Note Your ID:",Id,"And Your Name Is ",Name,'***')
press = input("Press Enter To Continue..")
menu()
def check_employee_name(employee_name):
sql = 'select * from empdata where name=%s'
c = con.cursor(buffered=True)
data = (employee_name,)
c.execute(sql, data)
r = c.rowcount
if r == 1:
return True
else:
return False
def check_employee(employee_id):
sql = 'select * from empdata where id=%s'
c = con.cursor(buffered=True)
data = (employee_id,)
c.execute(sql, data)
r = c.rowcount
if r == 1:
return True
else:
return False
def Display_Employ():
print("Display Employee Record")
s = 'select * from empdata'
c = con.cursor()
c.execute(s)
r = c.fetchall()
for i in r:
print("Emp Id: ", i[0])
print("Emp Name: ", i[1])
print("Emp Email Id: ", i[2])
print("Emp Phone No.: ", i[3])
print("Emp Address: ", i[4])
print("Emp Post: ", i[5])
print("Emp Salary: ", i[6])
press = input("press enter to Continue..")
menu()
def Update_Employ():
print("Update Employee Record ")
Id = input("Enter Employee Id: ")
if(check_employee(Id) == False):
print("Employee Record Not exists")
press = input("press enter to contnue")
menu()
else:
emailid = input("Enter Employee Email ID: ")
if(re.fullmatch(regex, emailid)):
print("Valid email")
else:
print("Invalid Email")
press = input("press enter to contnue")
Update_Employ()
phoneno = input("Enter Employee Phone No.: ")
if(Pattern.match(phoneno)):
print("Valid Phone Number")
else:
print("invalid Phone Number")
press = input("press enter to contnue")
Update_Employ()
Address = input("Enter Employee Address: ")
sql = 'UPDATE empdata set Email_Id = %s, Phone_no = %s, Address
= %s where Id = %s'
data = (emailid, phoneno, Address, Id)
c = con.cursor()
c.execute(sql, data)
con.commit()
print("Updated Employee Record")
press = input("Press Any Key To Continue..")
menu()
def Promote_Employ():
print(' Promote Employee Record')
Id = input("Enter Employee Id: ")
if(check_employee(Id) == False):
print("Employee Record Not exists")
press = input("press enter to contnue")
menu()
else:
Amount = int(input("Enter Increase Salary: "))
sql = 'select salary from empdata where Id=%s'
data = (Id,)
c = con.cursor()
c.execute(sql, data)
r = c.fetchone()
t = r[0]+Amount
sql = 'update empdata set Salary = %s where Id = %s'
d = (t, Id)
c.execute(sql, d)
con.commit()
print("Employee Promoted")
press = input("Press Enter key To Continue..")
menu()
def Remove_Employ():
print("Remove Employee Record ")
Id = input("Enter Employee Id: ")
if(check_employee(Id) == False):
print("Employee Record Not exists\nTry Again")
press = input("Press Enter Key To Continue")
menu()
else:
sql = 'delete from empdata where Id = %s'
data = (Id,)
c = con.cursor()
c.execute(sql, data)
con.commit()
print("Employee Removed")
press = input("Press Enter key To Continue")
menu()
def Search_Employ():
print(" Search Employee Record ")
Id = input("Enter Employee Id: ")
if(check_employee(Id) == False):
print("Employee Record Not exist")
press = input("Press Any Key To Continue")
menu()
else:
sql = 'select * from empdata where Id = %s'
data = (Id,)
c = con.cursor()
c.execute(sql, data)
r = c.fetchall()
for i in r:
print("Employee Id: ", i[0])
print("Employee Name: ", i[1])
print("Employee Email Id: ", i[2])
print("Employee Phone No.: ", i[3])
print("Employee Address: ", i[4])
print("Employee Post: ", i[5])
print("Employee Salary: ", i[6])
print("\n")
press = input("Press Enter key To Continue..")
menu()
def menu():
system("cls")
print("***********************************WELOCME*********
********************************")
print("--------------------->>EMPLOYEE MANAGEMENT SYSTEM <<--------
---------------")
print("1. Add Employee")
print("2. Display Employee Record(note this will display all the
employee)")
print("3. Update Employee Record")
print("4. Promote Employee Record")
print("5. Remove Employee Record")
print("6. Search Employee Record")
print("7. Exit\n")
print("Choice Options: [1/2/3/4/5/6/7]")
ch = int(input("Enter your Choice: "))
if ch == 1:
system("cls")
Add_Employ()
elif ch == 2:
system("cls")
Display_Employ()
elif ch == 3:
system("cls")
Update_Employ()
elif ch == 4:
system("cls")
Promote_Employ()
elif ch == 5:
system("cls")
Remove_Employ()
elif ch == 6:
system("cls")
Search_Employ()
elif ch == 7:
system("cls")
print("YOU HAVE EXITED THIS PAGE ")
exit(0)
else:
print("Invalid Choice!")
press = input("Press Enter key To Continue")
menu()
menu()