Onpage Handler CaseHistory-> Edit and WorkFlow->Edit

This commit is contained in:
SamSys
2024-12-24 16:57:11 +03:30
parent 48b5d9ea8b
commit 79a38c31a8
46 changed files with 2508 additions and 1151 deletions

View File

@@ -286,7 +286,7 @@ public class WorkFlowApplication : IWorkFlowApplication
var rollCalls = _rollCallACL.GetRollCallsOverlappingLeaves(workshopId, startOfDay, endOfDay);
var activeEmployees = _rollCallACL.GetActiveWorkshopRollCallEmployees(workshopId, startOfDay, endOfDay);
var rollCallsForDate = rollCalls.FirstOrDefault(x=>x.Date==date);
var rollCallsForDate = rollCalls.FirstOrDefault(x => x.Date == date);
if (rollCallsForDate == null)
return new();

View File

@@ -29,7 +29,7 @@ namespace WorkFlow.Infrastructure.ACL.CustomizedWorkshopSettings
public List<(long EmployeeId, string Name)> GetEmployeesWithoutBreakTime(long workshopId)
{
var list = _customizeWorkshopSettingsApplication.GetEmployeeSettingsByWorkshopId(workshopId);
return list.Where(x => x.BreakTime.BreakTimeType == BreakTimeType.WithTime)
return list.Where(x => x.BreakTime.BreakTimeType == BreakTimeType.WithoutTime)
.Select(x => (x.EmployeeId, x.EmployeeFullName)).ToList();
}