using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using TEAMModelOS.SDK.Context.Attributes.Azure; namespace TEAMModelOS.SDK.Models { /// /// 课程 /// public class Course : CosmosEntity { public Course() { pk = "Course"; subject = new SubjectSimple(); period = new PeriodSimple(); schedule = new List(); } /// /// 课程名称 /// [Required(ErrorMessage = "{0} 必须填写")] public string name { get; set; } /// /// 课程编码 /// /* [Required(ErrorMessage = "{0} 必须填写")] public string courseCode { get; set; }*/ ///// ///// 学期编码 ///// //public string semesterCode { get; set; } /// /// 科目编码 /// public SubjectSimple subject { get; set; } /// /// 学段编码 /// public PeriodSimple period { get; set; } /// /// 任课教师范围 /// //public List teachers { get; set; } public string scope { get; set; } //public string notice { get; set; } public List schedule { get; set; } //public List classes { get; set; } public string no { get; set; } ///新增字段 /// /// 创建者的id /// [Required(ErrorMessage = "creatorId 必须设置")] public string creatorId { get; set; } /// /// 学校编码或教师tmdid /// [Required(ErrorMessage = "school 必须设置")] public string school { get; set; } } public class Schedule { /// /// 教室 /// public string room { get; set; } /// /// 班级名单id /// public string classId { get; set; } public string teacherId { get; set; } /// /// 自定义名单 /// public string stulist { get; set; } public List time { get; set; } = new List(); public string notice { get; set; } } public class Customize { public string id { get; set; } public string name { get; set; } public Teachers teacher { get; set; } = new Teachers(); public string scope { get; set; } public string code { get; set; } } public class timeInfo { public string id { get; set; } public string week { get; set; } //public string start { get; set; } //public string end { get; set; } } public class PeriodSimple { public string id { get; set; } public string name { get; set; } } public class SubjectSimple { public string id { get; set; } public string name { get; set; } } /* public class Info { public string id { get; set; } public string name { get; set; } }*/ public class Teachers { public string id { get; set; } public string name { get; set; } } }