using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace YD_XinWei.Commons.Dto.LargeScreen { /// /// 大屏数据 /// public class LargeScreenDto { /// /// 基本信息 /// public BasicInfoDto BasicInfo { get; set; } = new BasicInfoDto(); /// /// 各项目数据 /// public ItemDataDto ItemData { get; set; } = new ItemDataDto(); /// /// 班级运动榜 /// public ClassSportsRankingDto ClassSportsRankList { get; set; } = new ClassSportsRankingDto(); /// /// 各项目实时数据 /// public List ItemRealTimeResultList { get; set; } = new List(); } /// /// 基本信息 /// public class BasicInfoDto { /// /// 男生人数 /// public int MaleCount { get; set; } /// /// 女生人数 /// public int FemaleCount { get; set; } /// /// 学生总人数(只读,自动计算) /// public int StudentCount => MaleCount + FemaleCount; /// /// 本周训练次数 /// public int WeekTrainingCount { get; set; } /// /// 同比增长 /// public int Increase { get; set; } } /// /// 各项目数据 /// public class ItemDataDto { /// /// 项目id /// public int ProjectId { get; set; } /// /// 项目优良率 /// public double ExcellentRate { get; set; } /// /// 男生排名 /// public List MaleRankList { get; set; } /// /// 女生排名 /// public List FemaleRankList { get; set; } } /// /// 学生成绩排名 /// public class StudentScoreRankingDto { /// /// 排名 /// public int Rank { get; set; } /// /// 学生学号 /// public string StudentNo { get; set; } /// /// 学生姓名 /// public string StudentName { get; set; } /// /// 成绩 /// public string Score { get; set; } } /// /// 班级运动榜 /// public class ClassSportsRankingDto { /// /// 排名 /// public int Rank { get; set; } /// /// 班级Id /// public int ClassId { get; set; } /// /// 班级名称 /// public string ClassName { get; set; } /// /// 运动次数 /// public int Count { get; set; } } /// /// 各项目实时成绩 /// public class ItemRealTimeResultDto { /// /// 学生学号 /// public string StudentNo { get; set; } /// /// 学生姓名 /// public string StudentName { get; set; } /// ///学生照片 /// public string Photo { get; set; } /// /// 年级班级名称 /// public int GradeAndClassName { get; set; } /// /// 项目名称 /// public string ProjectName { get; set; } /// /// 成绩 /// public int Result { get; set; } /// /// 得分 /// public int Score { get; set; } /// /// 等级 /// public string Rank { get; set; } /// /// 创建时间 /// public string CreateTime { get; set; } } }