using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using EMIS.ViewModel.CacheManage; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.ScoreManage { public class ResitStudentView { /// /// 学年学期ID /// [DisplayName("学年学期ID")] public Guid? SchoolyearID { get; set; } public Guid? FinalExaminationID { get; set; } /// /// 院系所 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public Guid? CollegeID { get; set; } /// /// 院系所 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public string CollegeName { get; set; } /// /// 学年学期 /// [DisplayName("学年学期")] public string SchoolyearCode { get; set; } /// /// 用户ID /// [DisplayName("用户ID")] public Guid UserID { get; set; } /// /// 学号 /// [DisplayName("")] public string LoginID { get; set; } /// /// 姓名 /// [DisplayName("")] public string UserName { get; set; } /// /// 性别 /// [DisplayName("性别")] public int? SexID { get; set; } /// /// 性别 /// [DisplayName("性别")] public string SexName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == SexID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 教研室ID /// [DisplayName("教研室ID")] public Guid? DepartmentID { get; set; } /// /// 年级专业ID /// [DisplayName("年级专业ID")] public Guid? GrademajorID { get; set; } /// /// 年级专业编号 /// [DisplayName("年级专业编号")] public string GrademajorCode { get; set; } /// /// 年级专业名称 /// [DisplayName("年级专业名称")] public string GrademajorName { get; set; } /// /// 班级信息ID /// [DisplayName("班级信息ID")] public Guid? ClassmajorID { get; set; } /// /// 班级编号 /// [DisplayName("班级编号")] public string ClassmajorNo { get; set; } /// /// 班级名称 /// [DisplayName("班级名称")] public string ClassmajorName { get; set; } /// /// 年级 /// [DisplayName("年级")] public int? Year { get; set; } /// /// 专业ID(Value) /// [DisplayName("专业ID(Value)")] 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(); } } /// /// 培养层次(所修学历) /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")] public int? EducationID { get; set; } /// /// 培养层次(所修学历) /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")] public string EducationName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()) .Where(x => x.Value == EducationID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学习形式 /// [DisplayName("学习形式")] public int? LearningformID { get; set; } /// /// 学习形式 /// [DisplayName("学习形式")] public string LearningformName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()) .Where(x => x.Value == LearningformID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学制 /// [DisplayName("学制")] public decimal? LearnSystem { get; set; } /// /// 录入班级名称 /// [DisplayName("录入班级名称")] public string ClassName { get; set; } /// /// 成绩类型 /// [DisplayName("")] public int? ResultTypeID { get; set; } /// /// 成绩类型 /// [DisplayName("成绩类型")] public string ResultTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ResultType.ToString()) .Where(x => x.Value == ResultTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 考试性质 /// [DisplayName("考试性质")] public int? ExamsCategoryID { get; set; } /// /// 考试性质 /// [DisplayName("考试性质")] public string ExamsCategoryName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString()) .Where(x => x.Value == ExamsCategoryID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 考试方式 /// [DisplayName("考试方式")] public int? ExaminationModeID { get; set; } /// /// 开课院系所ID /// [DisplayName("开课院系所ID")] public Guid? CourseCollegeID { get; set; } /// /// 课程学分 /// [DisplayName("课程学分")] public decimal? CourseCredit { get; set; } /// /// 课程信息ID /// [DisplayName("课程信息ID")] public Guid? CoursematerialID { get; set; } /// /// 课程代码 /// [DisplayName("课程代码")] public string CourseCode { get; set; } /// /// 课程名称 /// [DisplayName("课程名称")] public string CourseName { get; set; } /// /// 课程类型 /// [DisplayName("课程类型")] public int? CourseTypeID { get; set; } /// /// 课程类型 /// [DisplayName("课程类型")] public string CourseTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseType.ToString()) .Where(x => x.Value == CourseTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 考试状态 /// [DisplayName("考试状态")] public int? ExamsStateID { get; set; } /// /// 考试状态 /// [DisplayName("考试状态")] public string ExamsStateName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString()) .Where(x => x.Value == ExamsStateID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学年数 /// [DisplayName("学年数")] public int? SchoolyearNumID { get; set; } /// /// 开课学期 /// [DisplayName("开课学期")] public int? StartTermID { get; set; } /// /// 学分 /// [DisplayName("学分")] public decimal? Credit { get; set; } /// /// 总学时 /// [DisplayName("总学时")] public int? TotalHours { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } /// /// 创建人ID /// [DisplayName("创建人ID")] public Guid? CreatorUserID { get; set; } } }