using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels;
using VOL.Entity.Enum;
namespace VOL.Model.Ai.Response
{
///
/// 体测成绩
///
public class Ai_SportsTestDto
{
///
/// 序号
///
public int Id { get; set; }
///
/// 学籍号
///
public string StudentNo { get; set; }
///
/// 姓名
///
public string StudentName { get; set; }
///
/// 成绩
///
public double Value { get; set; }
///
/// 数据类型
///
public SportsTestDataType SportsTestDataType { get; set; }
///
///测试项目
///
public int CategoryEnumType { get; set; }
///
/// 测试项目名称
///
public string ItemName
{
get
{
if (CategoryEnumType > 0)
{
if (SportsTestDataType == SportsTestDataType.TrainingData)
{
// 将 CategoryEnumType 转换为 TrainingItemType 枚举类型
var trainingItemEnum = (TrainingItemType)Enum.Parse(typeof(TrainingItemType), CategoryEnumType.ToString());
return trainingItemEnum.GetDisplayName();
}
else if (SportsTestDataType == SportsTestDataType.SportsTestData)
{
// 将 CategoryEnumType 转换为 SportsTestItemType 枚举类型
var sportsTestItemEnum = (SportsTestItemType)Enum.Parse(typeof(SportsTestItemType), CategoryEnumType.ToString());
return sportsTestItemEnum.GetDisplayName();
}
}
return string.Empty;
}
}
public string ItemUnit
{
get
{
if (CategoryEnumType > 0)
{
if (SportsTestDataType == SportsTestDataType.TrainingData)
{
// 将 CategoryEnumType 转换为 TrainingItemType 枚举类型
var trainingItemEnum = (TrainingItemType)Enum.Parse(typeof(TrainingItemType), CategoryEnumType.ToString());
return trainingItemEnum.GetDisplayDescription();
}
else if (SportsTestDataType == SportsTestDataType.SportsTestData)
{
// 将 CategoryEnumType 转换为 SportsTestItemType 枚举类型
var sportsTestItemEnum = (SportsTestItemType)Enum.Parse(typeof(SportsTestItemType), CategoryEnumType.ToString());
return sportsTestItemEnum.GetDisplayDescription();
}
}
return string.Empty;
}
}
///
/// 测试时间
///
public DateTime TestTime { get; set; }
///
/// 是否有录像
///
public bool IfVideo { get; set; }
///
/// 上传状态
///
public bool UploadStatus { get; set; } = true;
///
/// 视频集合
///
public List FileList { get; set; }
}
}