EnVisageOnline/Main/Source/EnVisage/Code/Charts/DonutChartData.cs

48 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
namespace EnVisage.Code.Charts
{
public class DoubleDonutChartData
{
public DonutChartData CostData { get; set; }
public DonutChartData DurationData { get; set; }
public decimal TotalCost { get; set; }
public decimal TotalDuration { get; set; }
}
public class DonutChartData
{
public DonutChartData()
{
Goals = new List<DonutChartDataItem>();
OtherGoals = new List<DonutChartDataItem>();
OtherProjectTypes = new List<DonutChartDataItem>();
ProjectTypes = new List<DonutChartDataItem>();
}
public decimal? TotalCost { get; set; }
public decimal? TotalDuration { get; set; }
public IEnumerable<DonutChartDataItem> Goals { get; set; }
public IEnumerable<DonutChartDataItem> OtherGoals { get; set; }
public IEnumerable<DonutChartDataItem> OtherProjectTypes { get; set; }
public IEnumerable<DonutChartDataItem> ProjectTypes { get; set; }
}
public class DonutChartDataItem
{
public List<Guid> TypeId { get; set; }
public List<DonutChartDataItem> PieDatas { get; set; }
public string Label { get; set; }
public decimal? Cost { get; set; }
public decimal? Duration { get; set; }
public string PresetColor { get; set; }
public string GroupType { get; set; }
public Guid? ProjectTypeId { get; set; }
public Guid? GoalId { get; set; }
public IEnumerable<dynamic> ChildItems { get; set; }
public IEnumerable<dynamic> OtherChildItems { get; set; }
}
}