using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TEAMModelOS.SDK.Models.Cosmos.BI.BISchool; namespace TEAMModelOS.SDK.Models.Cosmos.BI { public class CurrencyModel { } /// /// 学校基础信息 /// public class ScBase { public string id { get; set; } public string code { get; set; } /// /// 学校名称 /// public string name { get; set; } /// /// 学校log /// public string picture { get; set; } public string areaId { get; set; } public int size { get; set; } public long createTime { get; set; } } /// /// 学校基础信息信息 /// public class ScBaseInfo : ScBase { /// /// 国家 /// public string region { get; set; } /// /// 省份 /// public string province { get; set; } /// /// 城市 /// public string city { get; set; } /// /// 区/县/郡 /// public string dist { get; set; } /// /// 详细地址 /// public string address { get; set; } /// /// 规模大小 /// public int scale { get; set; } } /// /// /// public class YearMonth { public string id { get; set; } public double cnt { get; set; } } /// /// 研修活动统计 /// public class AreaStudy { public string id { get; set; } public string code { get; set; } public int totalTime { get; set; } /// /// 线上观看视频的学时 /// public long onlineTime { get; set; } /// /// 线下研修学时 /// public long offlineTime { get; set; } /// /// 课堂实录学时 /// public long classTime { get; set; } /// /// 必修的 /// public Currency currency { get; set; } = new Currency(); } /// /// 学校列表信息 /// public record BISchoolInfo { public string id { get; set; } public string name { get; set; } public string picture { get; set; } public string areaId { get; set; } public string areaName { get; set; } public int size { get; set; } public int scale { get; set; } public Edition edition { get; set; } public long createDate { get; set; } public List assists { get; set; } = new List(); public List sales { get; set; } = new List(); public List serial { get; set; } = new List(); public List service { get; set; } = new List(); public List hard { get; set; } = new List(); public int less { get; set; } public int lastWeekLess { get; set; } public int monthLess { get; set; } } /// /// 区级信息 /// public record AreaStats { public string id { get; set; } public string name { get; set; } public int weekSc { get; set; } public int monthSc { get; set; } public int tch { get; set; } public int dayTch { get; set; } public int weekTch { get; set; } public int monthTch { get; set; } public int room { get; set; } public int witRoom { get; set; } public int resourceCnt { get; set; } public int size { get; set; } public long useSize { get; set; } public int stu { get; set; } public int dayStu { get; set; } public int weekStu { get; set; } public int monthStu { get; set; } public ManyLessStats lessStats { get; set; } = new ManyLessStats(); public ManyScActStats actStats { get; set; } = new ManyScActStats(); public ScSRStats srStats { get; set; } = new ScSRStats(); } /// /// 前端显示学校统计数据 /// public record ScStats { public string id { get; set; } public string schoolId { get; set; } public string name { get; set; } public string picture { get; set; } public string areaId { get; set; } public int tch { get; set; } public int dayTch { get; set; } public int weekTch { get; set; } public int monthTch { get; set; } public int stu { get; set; } public int dayStu { get; set; } public int weekStu { get; set; } public int monthStu { get; set; } public int room { get; set; } public int witRoom { get; set; } public int resourceCnt { get; set; } public int size { get; set; } public long scCreateTime { get; set; } public long upTime { get; set; } public ManyLessStats lessStats { get; set; } = new ManyLessStats(); public ManyScActStats actStats { get; set; } = new ManyScActStats(); public ScSRStats srStats { get; set; } = new ScSRStats(); } /// /// 所有 /// public record AllScStats { public int areaCnt { get; set; } public int sc { get; set; } public int weekSc { get; set; } public int monthSc { get; set; } public int tch { get; set; } public int dayTch { get; set; } public int weekTch { get; set; } public int monthTch { get; set; } public int stu { get; set; } public int dayStu { get; set; } public int weekStu { get; set; } public int monthStu { get; set; } public int room { get; set; } public int witRoom { get; set; } public int resourceCnt { get; set; } public int size { get; set; } public long scCreateTime { get; set; } public long upTime { get; set; } public ScLessStats lessStats { get; set; } = new ScLessStats(); public ScActStats actStats { get; set; } = new ScActStats(); public ScSRStats srStats { get; set; } = new ScSRStats(); } public record AreaInfoStats { public string areaId { get; set; } public string name { get; set; } public int lessAct { get; set; } public int lessCnt { get; set; } public int actCnt { get; set; } } /// /// 课例活动数据 /// public record ScLessStats { public int all { get; set; } public int open { get; set; } public int less { get; set; } public int lastDay { get; set; } public int day { get; set; } public int lastWeek { get; set; } public int week { get; set; } public int lastTerm { get; set; } public int term { get; set; } public int month { get; set; } public int lastMonth { get; set; } public int lastDayInter { get; set; } public int dayInter { get; set; } public int lastMonthInter { get; set; } public int monthInter { get; set; } public int lastYearInter { get; set; } public int yearInter { get; set; } } /// /// 课例活动数据 /// public record ManyLessStats : ScLessStats { public int lastYear { get; set; } public List yearInters { get; set; } = new List();//12个月 public List year { get; set; } = new List(); //12个月 } public record ScActStats { public int all { get; set; } public int exam { get; set; } public int survey { get; set; } public int vote { get; set; } public int homework { get; set; } public int lastDay { get; set; } public int dayCnt { get; set; } public int lastWeek { get; set; } public int week { get; set; } public int lastTerm { get; set; } public int term { get; set; } public int lastMonth { get; set; } public int month { get; set; } } /// /// 学校活动数据 /// public record ManyScActStats : ScActStats { public int lastYear { get; set; } public List year { get; set; } = new List(); //12个月 } /// /// 研修统计数据 /// public record ScSRStats { public int learnTime { get; set; } public int online { get; set; } public int offline { get; set; } public int classRoom { get; set; } public int submit { get; set; } public int notStarted { get; set; } public int ongoing { get; set; } public int finish { get; set; } } /// /// 查询去年的统计 /// public record LastYearLessAndAct { /// /// 课例活动 /// public LessonStats lesson { get; set; } = new LessonStats(); /// /// 活动 /// public ActivityStats activity { get; set; } = new ActivityStats(); } }