using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.Students { public class CourseGradeView { /// /// 学生ID /// [DisplayName("学生ID")] public Guid? UserID { get; set; } /// /// 学年 /// [DisplayName("学年")] public Guid? SchoolyearID { get; set; } /// /// 课程名称 /// [DisplayName("课程名称")] public string CourseName { get; set; } /// /// 课程背景颜色 /// [DisplayName("课程背景颜色")] public string CourseTypeColour { get; set; } /// /// 俱乐部ID /// [DisplayName("俱乐部ID")] public Guid? Club { get; set; } /// /// 成绩 /// [DisplayName("成绩")] public decimal? TotalScore { get; set; } public string TotalScoreStr { get; set; } /// /// 学分 /// [DisplayName("学分")] public decimal? ScoreCredit { get; set; } /// /// 课程ID /// [DisplayName("课程ID")] public Guid? CoursematerialID { get; set; } /// /// 学年数 /// [DisplayName("学年数")] public int? SchoolyearNumID { get; set; } /// /// 拟毕业日期 /// [DisplayName("拟毕业日期")] public DateTime? PlanningGraduateDate { get; set; } /// /// 开课学期 /// [DisplayName("开课学期")] public int? StarttermID { get; set; } /// /// 开课学期 /// [DisplayName("开课学期")] public string StarttermName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString()) .Where(x => x.Value == StarttermID) .Select(x => x.Name).FirstOrDefault(); } } } }