-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
73 lines (68 loc) · 1.77 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from data.employee_func import new_employee, list_employee, delete_emp
from data.attendance_log import mark_attendance, emp_attendance, monthly_report, late_report
from data.path import emp_import, path_delete_emp
def attendance():
print("Attendance Menu \n 1. Mark Attendance \n 2. Attendance Report \n 3. Monthly Report \n 4. Late Report \n 5.Back")
selection=int(input("Enter choice: "))
if selection==1:
mark_attendance()
attendance()
elif selection==2:
emp_attendance()
attendance()
elif selection==3:
monthly_report()
attendance()
elif selection==4:
late_report()
attendance()
elif selection==5:
main_menu()
else:
print("Invalid choice. Enter 1-3")
attendance()
def emp_mngmt():
print("Employee Management Menu \n 1. Add Employee \n 2. Employee List \n 3. Delete Employee \n 4. Back")
selection=int(input("Enter choice: "))
if selection==1:
new_employee()
elif selection==2:
list_employee()
elif selection==3:
delete_emp()
emp_mngmt()
elif selection==4:
main_menu()
else:
print("Invalid choice. Enter 1-4")
emp_mngmt()
main_menu()
def main_menu():
print("Welcome, \n 1. Attendance \n 2. Employee Management \n 3. Import File \n 4. Quit")
selection=int(input("Enter choice: "))
if selection==1:
attendance()
elif selection==2:
emp_mngmt()
elif selection==3:
import_export()
elif selection==4:
exit
else:
print("Invalid choice. Enter 1-4")
main_menu()
def import_export():
print("Import Menu \n 1. Import Employees from File \n 2. Delete Employees from File \n 3. Back")
selection=int(input("Enter choice: "))
if selection==1:
emp_import()
import_export()
elif selection==2:
path_delete_emp()
import_export()
elif selection==3:
main_menu()
else:
print("Invalid choice. Enter 1-3")
import_export
main_menu()