using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.EducationManage { public class CourseProcessView { public CourseProcessView() { CourseProcessTeacherViewList = new List(); } /// /// CourseProcessID /// [DisplayName("课程进度ID")] public System.Guid CourseProcessID { get; set; } /// /// EducationSchedulingClassID /// [DisplayName("任务班名称")] public Nullable EducationMissionClassID { get; set; } [DisplayName("任务班名称")] public string EducationMissionClassName { get; set; } public Guid? CollegeID { get; set; } public Guid? CourseCollegeID { get; set; } /// /// 授课方式 /// [DisplayName("授课方式")] public int? TeachingModeID { get; set; } /// /// 授课方式 /// [DisplayName("授课方式")] public string TeachingModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()) .Where(x => x.Value == TeachingModeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// Week /// [Required] [DisplayName("周次")] public Nullable Week { get; set; } /// /// Times /// [Required] [DisplayName("学时")] public Nullable Times { get; set; } /// /// ClassroomTypeID /// [DisplayName("教室类型")] public Nullable ClassroomTypeID { get; set; } [DisplayName("教室类型")] public string ClassroomTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ClassroomType.ToString()) .Where(x => x.Value == ClassroomTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// ClassroomTypeID /// [DisplayName("教室")] public Nullable ClassroomID { get; set; } [DisplayName("教室")] public string ClassroomName { get; set; } public IList CourseProcessTeacherViewList { get; set; } //public string StaffIDAndTeachTypes { get; set; } public string StaffNames { get { return string.Join(",", CourseProcessTeacherViewList.OrderBy(w => w.TeachingMethod).ThenBy(w => w.Name).Select(w => w.Name)); } } /// /// RecordStatus /// public Nullable RecordStatus { get; set; } /// /// CreateTime /// public Nullable CreateTime { get; set; } /// /// CreateUserID /// public Nullable CreateUserID { get; set; } /// /// ModifyUserID /// public Nullable ModifyUserID { get; set; } /// /// ModifyTime /// public Nullable ModifyTime { get; set; } } }