You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
namespace GummingCommon
{
public class ChartEntity
{
/// <summary>
/// X轴开始刻度
/// </summary>
public object PointStart { get; set; }
/// <summary>
/// 警戒线
/// </summary>
public List<ChartWarnLineEntity> PlotLinesValue { get; set; }
/// <summary>
/// 图表数据
/// </summary>
public List<ChartGummingCommon> Series { get; set; }
/// <summary>
/// X轴坐标值
/// </summary>
public List<string> Categories { get; set; }
}
public class ChartWarnLineEntity
{
public string Color { get; set; }
public string Value { get; set; }
}
public class ChartGummingCommon
{
public string Name { get; set; }
public List<int> Record { get; set; }
public List<decimal> Rate { get; set; }
public List<int> Count { get; set; }
public List<int> Score { get; set; }
}
public class ChartCategoriesConvert
{
public static List<DateTime> ConvertFromDate(DateTime dtStart, DateTime dtEnd)
{
var rst = new List<DateTime>();
while (dtStart <= dtEnd)
{
rst.Add(dtStart);
dtStart = dtStart.AddDays(1);
}
return rst;
}
}
public class SelectEntity
{
public string RecId { get; set; }
public string Name { get; set; }
public string Code { get; set; }
}
}