using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.Entities; using EMIS.ViewModel.UniversityManage.TeacherManage; namespace EMIS.ViewModel.EvaluationManage { public class TeacherEvaluationView { /// /// ID /// [DisplayName("ID")] public Guid EntityID { get; set; } /// /// 编号 /// [DisplayName("编号")] public string EntityCode { get; set; } /// /// 任务班ID /// [DisplayName("任务班ID")] [Required] public Guid? EducationMissionClassID { get; set; } /// /// 任务班名称 /// [DisplayName("任务班名称")] public string EducationMissionClassName { get; set; } /// /// 参评类型 /// [DisplayName("参评类型")] public string EvaluationTypeName { get; set; } /// /// 评价表ID /// [DisplayName("评价表ID")] [Required] public Guid? TableID { get; set; } /// /// 评价表名 /// [DisplayName("评价表名")] public string EvaluationTableName { get; set; } /// /// 评价表编号 /// [DisplayName("评价表编号")] public string EvaluationTableNo { get; set; } /// /// 学年学期 /// [DisplayName("学年学期")] public Guid? SchoolyearID { get; set; } /// /// 学年学期代码 /// [DisplayName("学年学期")] public string SchoolyearCode { get; set; } /// /// 课程名称 /// [DisplayName("课程名称")] public string CourseName { get; set; } /// /// 课程代码 /// [DisplayName("课程代码")] public string CourseCode { get; set; } /// /// 开放状态 /// [DisplayName("开放状态")] public int OpenStatus { get; set; } /// /// 开放状态 /// [DisplayName("开放状态")] public string OpenStatusName { get; set; } ///// ///// 状态 ///// //[DisplayName("状态")] //public int RecordStatus { get; set; } ///// ///// 创建人 ///// //[DisplayName("创建人")] //public Guid? CreateUserID { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? EntityCreateTime { get; set; } ///// ///// 修改人 ///// //[DisplayName("修改人")] //public Guid? ModifyUserID { get; set; } ///// ///// 修改时间 ///// //[DisplayName("修改时间")] //public DateTime? ModifyTime { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } public Guid? DepartmentID { get; set; } public Guid? CollegeID { get; set; } public Guid? CampusID { get; set; } public IEnumerable Sys_User { get; set; } [DisplayName("教师名称")] public string UserNames { get { return string.Join(",", Sys_User.Select(s => s.Name)); } } /// /// 参评人 /// [DisplayName("教师名称")] public IEnumerable Participators { get; set; } /// /// 参评人名称 /// [DisplayName("参选人")] public string ParticipatorNames { get { return string.Join(",", Participators.Select(s => s.Name)); } } } public class ParticipatorView { public string Code { get; set; } public string Name { get; set; } } }