Change PrintAll And PrintOne Contract

This commit is contained in:
SamSys
2024-12-07 18:57:44 +03:30
parent 6f89211b8b
commit ba0951dc22
17 changed files with 230 additions and 102 deletions

View File

@@ -273,7 +273,7 @@ public class WorkFlowApplication : IWorkFlowApplication
RollCallId = e.RollCallId
}).ToList(),
DayOfWeekFa = x.DateTime.DayOfWeek.DayOfWeeKToPersian()
}).Where(y => y.RollCallWorkFlowPerDayViewModels != null && y.RollCallWorkFlowPerDayViewModels.Any()).ToList();
}).Where(y => y.RollCallWorkFlowPerDayViewModels != null && y.RollCallWorkFlowPerDayViewModels.Any()).OrderBy(x=>x.DateTime).ToList();
}
public List<DailyRollCallWorkFlowViewModel> GetAbsentRollCallWorkFlows(long workshopId)
{
@@ -342,7 +342,7 @@ public class WorkFlowApplication : IWorkFlowApplication
result.Add(newItem);
}
return result;
return result.OrderBy(x=>x.DateTime).ToList();
}
public List<DailyRollCallConfirmedWithoutLunchBreakViewModel> GetEmployeesWithoutLunchBreak(long workshopId)
{