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.ScoreManage { public class NotPassStudentView { /// /// 学生ID /// [DisplayName("学生ID")] public Guid? UserID { get; set; } /// /// 学号 /// [DisplayName("学号")] public string LoginID { get; set; } /// /// 姓名 /// [DisplayName("姓名")] public string UserName { get; set; } /// /// 教学点 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")] public Guid? CampusID { get; set; } /// /// 教学点名称 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")] public string CampusName { get; set; } /// /// 年级 /// [DisplayName("年级")] public int? Years { get; set; } /// /// 标准专业 /// [DisplayName("标准专业")] public int? StandardID { get; set; } /// /// 专业代码 /// [DisplayName("专业代码")] public string StandardCode { get { var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()) .Where(x => x.Value == StandardID) .Select(x => x.Code).FirstOrDefault(); return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : ""); } } /// /// 标准专业名称 /// [DisplayName("专业名称")] public string StandardName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()) .Where(x => x.Value == StandardID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 班级名称 /// [Required] [DisplayName("班级名称")] public Guid? ClassMajorID { get; set; } /// /// 班级编号 /// [DisplayName("班级编号")] public string ClassMajorCode { get; set; } /// /// 班级名称 /// [DisplayName("班级名称")] public string ClassMajorName { get; set; } /// /// 不及格门数 /// [DisplayName("不及格门数")] public int NotPassCount { get; set; } } }