employeeDocument Refactor

This commit is contained in:
MahanCh
2025-05-05 18:09:53 +03:30
parent 9cdb922aa1
commit 6eec454685
63 changed files with 16549 additions and 978 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using _0_Framework.Application;
@@ -56,10 +57,17 @@ public interface IAdminWorkFlowApplication
Task<OperationResult> EditEmployeeInEmployeeDocumentWorkFlow(EditEmployeeInEmployeeDocument command);
/// <summary>
/// لیست کارگاه هایی که از کلاینت، پرسنلی را شروع به کار زدند و مدارک آنها کامل آپلود نشده است
/// </summary>
/// <param name="workshops"></param>
/// <param name="roleId"></param>
/// <returns></returns>
Task<ICollection<WorkshopWithDocumentsViewModelForWorkFlow>> GetWorkshopDocumentCreatedEmployeeForAdmin(List<long> workshops, long roleId);
#endregion
Task<int> GetEmployeeDocumentWorkFlowCountsForAdmin(List<long> workshopIds);
Task<int> GetWorkFlowCountsForAdmin(List<long> workshopIds, long accountId);
Task<int> GetEmployeeDocumentWorkFlowCountsForAdmin(List<long> workshopIds, long roleId);
Task<int> GetWorkFlowCountsForAdmin(List<long> workshopIds, long accountId, long roleId);
Task<int> GetWorkFlowCountForChecker();
@@ -85,6 +93,7 @@ public interface IAdminWorkFlowApplication
#endregion
}
/// <summary>
@@ -112,7 +121,7 @@ public class ClientLeftWorkEmployeesWorkFlowViewModel
/// </summary>
public string LeftWorkDate { get; set; } = string.Empty;
}
/// <summary>

View File

@@ -11,13 +11,17 @@ public interface IWorkFlowApplication
Task<OperationResult> CreateRollCallConfirmedWithoutLunchBreak(CreateRollCallConfirmedWithoutLunchBreak command);
Task<int> GetCountAllWorkFlows(long workshopId);
Task<int> GetCountAllWorkFlows(long workshopId, long accountId);
Task<int> GetRollCallAbsentsWorkFlows(long workshopId);
Task<int> GetCountCutRollCallByBgService(long workshopId);
Task<int> GetAllWorkFlowCount(long workshopId);
Task<int> GetAllWorkFlowCount(long workshopId , long accountId);
Task<int> GetAllWorkFlowCountAsync(long workshopId);
Task<DailyRollCallWorkFlowViewModel> GetAbsentRollCallWorkFlowsByDate(long workshopId, DateTime date);
Task<int> GetAllRollCallCount(long workshopId);
Task<int> GetAllEmployeeDocuments(long workshopId, long accountId);
Task<DailyRollCallWorkFlowViewModel> GetAbsentRollCallWorkFlowsByDate(long workshopId, DateTime date);
Task<DailyRollCallConfirmedWithoutLunchBreakViewModel> GetEmployeesWithoutLunchBreakByDate(long workshopId, DateTime date);
Task<DailyRollCallWorkFlowViewModel> GetRollCallWorkFlowsCutByBgServiceByDate(long workshopId, DateTime date);
Task<DailyRollCallWorkFlowViewModel> GetUndefinedRollCallsByDate(long workshopId, DateTime date);