cameraDirectLogin from admin - fix bug at GetWorkshopAbsentHistory

This commit is contained in:
SamSys
2024-12-12 14:55:55 +03:30
parent 67d16e0295
commit 331f20619e
18 changed files with 259 additions and 128 deletions

View File

@@ -13,10 +13,11 @@ public interface ILeaveRepository : IRepository<long, Leave>
OperationResult RemoveLeave(long id);
#region Pooya
List<LeaveViewModel> GetByWorkshopIdEmployeeIdInDates(long workshopId, long employeeId, DateTime start, DateTime end);
/// <summary>
/// چک می کند که آیا پرسنل مرخصی روزانه استحقاقی دارد یا خیر
/// </summary>
bool HasLeave(long employeeId, long workshopId, DateTime date);
bool HasDailyLeave(long employeeId, long workshopId, DateTime date);
#endregion
bool CheckContractExist(DateTime myDate,long employeeId, long workshopId);