115 lines
3.6 KiB
C#
115 lines
3.6 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// 体测成绩
|
|
/// </summary>
|
|
public class Ai_SportsTestDto
|
|
{
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 学籍号
|
|
/// </summary>
|
|
public string StudentNo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 姓名
|
|
/// </summary>
|
|
public string StudentName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 成绩
|
|
/// </summary>
|
|
public double Value { get; set; }
|
|
|
|
/// <summary>
|
|
/// 数据类型
|
|
/// </summary>
|
|
public SportsTestDataType SportsTestDataType { get; set; }
|
|
|
|
/// <summary>
|
|
///测试项目
|
|
/// </summary>
|
|
public int CategoryEnumType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 测试项目名称
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 测试时间
|
|
/// </summary>
|
|
public DateTime TestTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否有录像
|
|
/// </summary>
|
|
public bool IfVideo { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上传状态
|
|
/// </summary>
|
|
public bool UploadStatus { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// 视频集合
|
|
/// </summary>
|
|
public List<FileList> FileList { get; set; }
|
|
}
|
|
}
|