using System; using System.Collections.Generic; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; using System.ComponentModel; namespace EMIS.ViewModel.RetakeManage { public class RetakeStudentView { /// /// 学年学期ID /// [DisplayName("学年学期ID")] public Guid? SchoolyearID { get; set; } /// /// 用户ID /// [DisplayName("用户ID")] public Guid? UserID { get; set; } /// /// 课程信息ID /// [DisplayName("课程信息ID")] public Guid? CoursematerialID { get; set; } /// /// 课程代码 /// [DisplayName("课程代码")] public string CourseCode { get; set; } /// /// 课程名称 /// [DisplayName("课程名称")] public string CourseName { get; set; } /// /// 课程简称 /// [DisplayName("课程简称")] public string Abbreviation { get; set; } /// /// 课程类型 /// [DisplayName("课程类型")] public int? CourseTypeID { get; set; } /// /// 课程类型 /// [DisplayName("课程类型")] public string CourseTypeDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()) .Where(x => x.Value == CourseTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 课程学分 /// [DisplayName("课程学分")] public decimal? CourseCredit { get; set; } /// /// 成绩学分 /// [DisplayName("学分")] public decimal? Credit { get; set; } /// /// 总成绩 /// [DisplayName("总成绩")] public decimal? TotalScore { get; set; } /// /// 开课学年 /// [DisplayName("开课学年")] public int? SchoolyearNumID { get; set; } /// /// 开课学年 /// [DisplayName("开课学年")] public string SchoolyearNumDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()) .Where(x => x.Value == SchoolyearNumID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 开课学期 /// [DisplayName("开课学期")] public int? StarttermID { get; set; } /// /// 开课学期 /// [DisplayName("开课学期")] public string StarttermDesc { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString()) .Where(x => x.Value == StarttermID) .Select(x => x.Name).FirstOrDefault(); } } } }