MCPcopy Index your code
hub / github.com/geekcomputers/Python / add_employee_form_submit

Function add_employee_form_submit

bank_managment_system/QTFrontend.py:1138–1154  ·  view source on GitHub ↗
(name, password, salary, position)

Source from the content-addressed store, hash-verified

1136 # show_popup_message(stacked_widget,"Invalid admin credentials",0)
1137
1138 def add_employee_form_submit(name, password, salary, position):
1139 if (
1140 len(name) != 0
1141 and len(password) != 0
1142 and len(salary) != 0
1143 and len(position) != 0
1144 ):
1145 backend.create_employee(name, password, salary, position)
1146 show_popup_message(
1147 stacked_widget, "Employee added successfully", ADMIN_MENU_PAGE
1148 )
1149
1150 else:
1151 print("Please fill in all fields")
1152 show_popup_message(
1153 stacked_widget, "Please fill in all fields", ADD_EMPLOYEE_PAGE
1154 )
1155
1156 def update_employee_data(name, password, salary, position, name_to_update):
1157 try:

Callers 1

setup_main_windowFunction · 0.85

Calls 2

show_popup_messageFunction · 0.85
create_employeeMethod · 0.80

Tested by

no test coverage detected