using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using EMIS.ViewModel.CacheManage; using EMIS.ViewModel.EducationManagement; using EMIS.ViewModel.EducationManage; using EMIS.Entities; using EMIS.ViewModel.Students; namespace EMIS.ViewModel.DQPSystem { public class SOCGenerateView { /// /// 教学任务ID /// [DisplayName("教学任务ID")] public Guid? EducationMissionID { get; set; } /// /// SOC设置ID /// [DisplayName("SOC设置ID")] public Guid? SOCTemplateID { get; set; } /// /// 处理方式 /// [DisplayName("处理方式")] public int? HandleModeID { get; set; } /// /// 处理方式 /// [DisplayName("处理方式")] public string HandleModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_HandleMode.ToString()) .Where(x => x.Value == HandleModeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 选修类型 /// public int? OptionalCourseTypeID { get; set; } /// /// 院系专业ID /// [DisplayName("院系专业ID")] public Guid? FacultymajorID { get; set; } /// /// 院系专业 /// [DisplayName("院系专业")] public string FacultymajorName { get; set; } /// /// 开课学年 /// //[Required] [DisplayName("开课学年")] public int? SchoolyearNumID { get; set; } [DisplayName("开课学年")] public string SchoolyearNumNameStr { get; set; } /// /// 开课学年 /// [DisplayName("开课学年")] public string SchoolyearNumName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()) .Where(x => x.Value == SchoolyearNumID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学期 /// //[Required] [DisplayName("学期")] public int? SchoolcodeID { get; set; } [DisplayName("学期")] public string SchoolcodeStr { get; set; } /// /// 学期 /// [DisplayName("学期")] public string SchoolcodeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault(); } } public SOCView SOCView { get; set; } public IEnumerable SOCDetailViewList { get; set; } public EducationMissionClassView EducationMissionClassView { get; set; } public IEnumerable MissionClassTeacherViewList { get; set; } public List ClassmajorIDList { get; set; } public IEnumerable StudentUserIDList { get; set; } public IEnumerable ClassmajorList { get; set; } public EducationMissionView EducationMissionView { get; set; } public IEnumerable StudentList { get; set; } } }