Mitarbeiter anlegen funktioniert

This commit is contained in:
2025-02-26 10:33:01 +01:00
parent e2410d0852
commit 3738bf1c6e
3 changed files with 25 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ from ..PyqcrmFlags import PyqcrmAppliEmpyFlags
class EmployeeDAO(QObject):
newEmployeeAdded = Signal()
newEmployeeAdded = Signal(bool)
__cur = None
__all_cols = None
@@ -44,7 +44,8 @@ class EmployeeDAO(QObject):
if self.__cur:
self.__cur.callproc("addApplicant", (json.dumps(data), applicant, enc_key,))
self.__con.commit()
self.newEmployeeAdded.emit()
self.newEmployeeAdded.emit(True)
except mariadb.Error as e:
print(str(e))
self.newEmployeeAdded.emit(False)