This commit is contained in:
SamSys
2024-12-23 20:39:04 +03:30
parent 947c121f4e
commit 48b5d9ea8b
18 changed files with 865 additions and 152 deletions

View File

@@ -1,6 +0,0 @@
namespace WorkFlow.Application.Contracts;
public class Class1
{
}

View File

@@ -10,5 +10,5 @@ public record DailyRollCallWorkFlowViewModel
public string DayOfWeekFa { get; set; }
public bool IsHoliday { get; set; }
public bool IsFriday { get; set; }
}

View File

@@ -0,0 +1,11 @@
#nullable disable
namespace WorkFlow.Application.Contracts.Shared;
public class DailyWorkFlowEmployeesWithRollCallOnLeaveViewModel
{
public string DateFa { get; set; }
public string DayOfWeek { get; set; }
public List<WorkFlowEmployeeWithRollCallOnLeaveViewModel> EmployeesList { get; set; }
public DateTime Date { get; set; }
public int EmployeesListCount { get; set; }
}

View File

@@ -0,0 +1,16 @@
#nullable disable
namespace WorkFlow.Application.Contracts.Shared;
public class WorkFlowEmployeeWithRollCallOnLeaveViewModel
{
public long EmployeeId { get; set; }
public long LeaveId { get; set; }
public long RollCallId { get; set; }
public string EmployeeFullName { get; set; }
public string StartOfOverlapDateFa { get; set; }
public DateTime StartOfOverlapDateTime { get; set; }
public DateTime EndOfOverlapDateTime { get; set; }
public string EndOfOverlapDateFa { get; set; }
public string StartOfOverlapTime { get; set; }
public string EndOfOverlapTime { get; set; }
}

View File

@@ -17,18 +17,21 @@ public interface IWorkFlowApplication
int GetAllWorkFlowCount(long workshopId);
DailyRollCallWorkFlowViewModel GetAbsentRollCallWorkFlowsByDate(long workshopId, DateTime date);
DailyRollCallConfirmedWithoutLunchBreakViewModel GetEmployeesWithoutLunchBreakByDate(long workshopId, DateTime date);
DailyRollCallWorkFlowViewModel GetRollCallWorkFlowsCutByBgServiceByDate(long workshopId, DateTime date);
DailyRollCallWorkFlowViewModel GetUndefinedRollCallsByDate(long workshopId, DateTime date);
DailyWorkFlowEmployeesWithRollCallOnLeaveViewModel GetRollCallsOverlappingLeaveByDate(long workshopId,
DateTime date);
List<RollCallConfirmAbsenceViewModel> GetConfirmAbsencesBy(long workshopId, DateTime start, DateTime end);
List<DailyRollCallWorkFlowViewModel> GetRollCallWorkFlowsCutByBgService(long workshopId);
List<RollCallConfirmAbsenceViewModel> GetConfirmAbsencesBy(long workshopId, DateTime start, DateTime end);
List<DailyWorkFlowEmployeesWithRollCallOnLeaveViewModel> GetRollCallsOverlappingLeaves(long workshopId);
List<DailyRollCallWorkFlowViewModel> GetRollCallWorkFlowsCutByBgService(long workshopId);
List<DailyRollCallWorkFlowViewModel> GetAbsentRollCallWorkFlows(long workshopId);
List<DailyRollCallWorkFlowViewModel> GetUndefinedRollCalls(long workshopId);
List<DailyRollCallConfirmedWithoutLunchBreakViewModel> GetEmployeesWithoutLunchBreak(long workshopId);
List<DailyRollCallConfirmedWithoutLunchBreakViewModel> GetEmployeesWithoutLunchBreak(long workshopId);
List<(long Id, string Name)> GetEmployeesWithoutGroup(long workshopId);
}