Commit Graph

30 Commits

Author SHA1 Message Date
b58481a36f add employee client api 2025-12-24 18:07:43 +03:30
SamSys
7a10d5ce59 changes 2025-12-18 10:40:11 +03:30
SamSys
3d88feeee7 Clent Add Employee Change to authorizedCanceled 2025-12-17 19:13:47 +03:30
c63eb23b22 Handle null API response in employee authorization checks 2025-12-01 10:07:09 +03:30
238926118f Handle additional status code 3 in UID service response for employee authorization checks 2025-11-30 11:09:25 +03:30
626722e805 Handle null response from UID service in GetPersonalInfo and return appropriate failure message 2025-11-29 11:43:58 +03:30
0b439d0268 Refactor and integrate face embedding API support
Refactored `EmployeeUploadPicture.cshtml.cs` to improve readability, maintainability, and modularity. Introduced `_httpClientFactory` for HTTP requests and added `SendEmbeddingsToApi` for Python API integration. Enhanced employee-related operations, including activation, image handling, and settings management.

Added `IFaceEmbeddingService` interface and implemented it in `FaceEmbeddingService` to manage face embeddings. Integrated with a Python API for generating, refining, deleting, and retrieving embeddings. Included robust error handling and detailed logging.

Improved code structure, reduced duplication, and added comments for better debugging and future development.

Add face embedding integration for employee management

Introduced `IFaceEmbeddingService` and its implementation to manage
face embeddings via a Python API. Integrated embedding generation
into `EmployeeApplication` and `EmployeeUploadPictureModel`,
enabling image uploads, embedding creation, and validation.

Refactored `EmployeeUploadPictureModel` for clarity, adding methods
to handle image processing, API interactions, and employee
activation/deactivation with embedding checks. Enhanced error
handling, logging, and user feedback.

Removed legacy code and updated dependencies to include
`IHttpClientFactory` and `IFaceEmbeddingService`. Added localized
error messages and improved maintainability by streamlining code.
2025-11-11 18:52:35 +03:30
6584558e6a fix: update error message for invalid national ID and birth date mismatch 2025-10-11 14:35:37 +03:30
SamSys
c7f5310c56 Edit Employee change NationalCode Validation By Nationality 2025-10-07 14:02:12 +03:30
MahanCh
744078dd6c add id to select lists 2025-07-23 10:46:00 +03:30
MahanCh
2bdfdb366e fix create employee by client 2025-07-15 15:39:32 +03:30
d27b8484a2 add entire teamwork api to original 2025-06-23 17:07:15 +03:30
SamSys
fcad12d3ef ClientCreateEmployee change merged 2025-06-22 15:11:51 +03:30
b2cb3ae173 finish employee unauthorized 2025-06-22 15:05:38 +03:30
SamSys
84ff2bc8f1 uid bug fixed 2025-06-22 11:36:02 +03:30
7b2eefa954 create employee without auth for client p1 - not finished 2025-06-18 15:31:13 +03:30
6469bf5a50 fix createEmployee personnel code bug 2025-06-01 17:43:53 +03:30
SamSys
ebde36ad8d uid Autorize for create Employee admin Side 2025-05-03 17:48:47 +03:30
SamSys
ebaef13c4d merge ReCalculate Values 2025-05-03 17:45:09 +03:30
MahanCh
625200bed1 add uid authorize in crearte client 2025-05-01 15:01:36 +03:30
MahanCh
d1158b95cb fix Employee doc workflow 2025-04-30 19:51:19 +03:30
MahanCh
9592960a40 add recalculate values 2025-04-30 14:55:38 +03:30
MahanCh
cc740439ec get the employees select2 changes 2025-04-16 20:04:57 +03:30
MahanCh
d32b6a10c0 fix date of issue bug in create employee 2025-03-16 14:25:12 +03:30
MahanCh
c7a99f7ca0 fix add employee by client bugs 2025-03-11 18:53:57 +03:30
MahanCh
d7d938dfcc Add employee by client part 2 2025-03-09 21:52:06 +03:30
MahanCh
89a01b5948 add employee by client to orginal part 1 2025-03-08 21:49:34 +03:30
SamSys
db1b729717 add new features : WorkFlow - SubAccount - [reward - loan - fine - salaryAid] - CustomizeWorkshopSettings ... 2024-12-02 02:52:59 +03:30
SamSys
c300e84330 Create workshop bug : employerSelct2 job list mixed --> buf fixed, Employee bug: NoActive Employee Error on new employee --> bug fixed 2024-08-11 21:43:48 +03:30
samsys
75bc2360ea Add project files. 2024-07-05 21:36:15 +03:30