FlexitimeTracker/DataCenter_Windows/WindowsDataCenter/Interfaces/TimeLogList.cs
Chris.Watts90@outlook.com 59e27c2991 Flatten the TimeLogsList object.
put DayOfWeek and Day into the DailyLogs object to help flatten.
changed GetTimeLogList to return List<DailyLogs>.
#15
2017-02-15 16:51:19 +00:00

22 lines
625 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
namespace Interfaces
{
public class TimeLogList
{
public TimeLogList()
{
TimeLogs = new List<DailyLogs>();
}
public DateTime SelectedDate { get; set; }
public int CalendarWeek { get; set; }
public int TimeLogCount { get { return TimeLogs.Sum(x => x.LogCount); } }
public List<DailyLogs> TimeLogs { get; set; }
public double WeeklyTotal {
get { return TimeLogs.Sum(x => x.DailyTotal); }
}
public float HoursPerWeekMinutes { get; set; }
}
}