using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using EMIS.ViewModel.CacheManage; namespace EMIS.ViewModel.GraduationManage.GraduationSetting { public class GraduateDesignCourseScoreView { /// /// 学位申请ID /// [DisplayName("学位申请ID")] public Guid DegreeApplyID { get; set; } /// /// 毕业申请ID /// [DisplayName("毕业申请ID")] public Guid GraduationApplyID { get; set; } /// /// 最终成绩ID /// [DisplayName("最终成绩ID")] public Guid? FinallyScoreID { get; set; } /// /// 学年学期 /// [DisplayName("学年学期")] public Guid? SchoolyearID { get; set; } /// /// 学年学期 /// [DisplayName("学年学期")] public string SchoolyearCode { get; set; } /// /// 录入班级名称 /// [DisplayName("录入班级名称")] public string ClassName { get; set; } /// /// 设定类型 /// public int? ExaminationTypeID { get; set; } /// /// 设定类型 /// public string ExaminationTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationType.ToString()) .Where(x => x.Value == ExaminationTypeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 考试方式 /// [DisplayName("考试方式")] public int? ExaminationModeID { get; set; } /// /// 考试方式 /// [DisplayName("考试方式")] public string ExaminationModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString()) .Where(x => x.Value == ExaminationModeID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 处理方式 /// [Required] [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(); } } /// /// 录入人 /// [DisplayName("录入人")] public Guid? CreatorUserID { get; set; } /// /// 录入人编号 /// [DisplayName("录入人编号")] public string CreatorUserCode { get; set; } /// /// 录入人姓名 /// [DisplayName("录入人姓名")] public string CreatorUserName { 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 bool IsMainCourse { get; set; } /// /// 是否学位课程 /// [DisplayName("是否学位课程")] public string IsMainCourseName { get { return this.IsMainCourse == true ? "是" : "否"; } } /// /// 课程学分 /// [DisplayName("课程学分")] public decimal? Credit { get; set; } /// /// 理论学时 /// [DisplayName("理论学时")] public int? TheoryCourse { get; set; } /// /// 实践学时 /// [DisplayName("实践学时")] public int? Practicehours { get; set; } /// /// 实验学时 /// [DisplayName("实验学时")] public int? Trialhours { get; set; } /// /// 总学时 /// [DisplayName("总学时")] public int? Totalhours { 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 Guid? DepartmentID { get; set; } /// /// 开课教研室 /// [DisplayName("开课教研室")] public string DepartmentName { get; set; } /// /// 开课学年 /// [DisplayName("开课学年")] public int? SchoolyearNumID { get; set; } /// /// 开课学年 /// [DisplayName("开课学年")] public string SchoolyearNumName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()) .Where(x => x.Value == SchoolyearNumID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学期 /// [DisplayName("学期")] public int? SchoolcodeID { get; set; } /// /// 学期 /// [DisplayName("学期")] public string SchoolcodeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault(); } } /// /// 开课学期 /// [DisplayName("开课学期")] public int? StarttermID { get; set; } /// /// 开课学期 /// public string StarttermName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Startterm.ToString()) .Where(x => x.Value == StarttermID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 学生ID /// [DisplayName("学生ID")] public Guid? UserID { get; set; } /// /// 学号 /// [DisplayName("学号")] public string LoginID { get; set; } /// /// 姓名 /// [DisplayName("姓名")] public string UserName { get; set; } /// /// 校区ID /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")] public Guid? CampusID { get; set; } /// /// 校区代码 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")] public string CampusNo { get; set; } /// /// 校区名称 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")] public string CampusName { get; set; } /// /// 院系所ID /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public Guid? CollegeID { get; set; } /// /// 院系所代码 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")] public string CollegeCode { get; set; } /// /// 院系所名称 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")] public string CollegeName { get; set; } /// /// 院系专业ID /// [DisplayName("院系专业ID")] public Guid? FacultymajorID { get; set; } /// /// 院系专业编号 /// [DisplayName("院系专业编号")] public string FacultymajorCode { get; set; } /// /// 院系专业名称 /// [DisplayName("院系专业名称")] public string FacultymajorName { 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 ClassmajorCode { get; set; } /// /// 班级名称 /// [DisplayName("班级名称")] public string ClassmajorName { get; set; } /// /// 考试性质 /// [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? ExamsStateID { get; set; } /// /// 考试状态 /// public string ExamsStateName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsState.ToString()) .Where(x => x.Value == ExamsStateID) .Select(x => x.Name).FirstOrDefault(); } } /// /// 平时成绩 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Peacetime")] public decimal? PeacetimeScore { get; set; } /// /// 实验成绩 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Technique")] public decimal? TechniqueScore { get; set; } /// /// 理论成绩 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Theoretical")] public decimal? TheoreticalScore { get; set; } /// /// 总成绩 /// [DisplayName("总成绩")] public decimal? TotalScore { get; set; } /// /// 成绩等级ID /// [DisplayName("成绩等级ID")] public Guid? ResultTypeDetailID { get; set; } /// /// 等级名称 /// [DisplayName("等级名称")] public string ResultTypeDetailName { get; set; } /// /// 学分 /// [DisplayName("学分")] public decimal? ScoreCredit { get; set; } /// /// 绩点 /// [DisplayName("绩点")] public decimal? GradePoint { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } /// /// 创建人 /// [DisplayName("创建人")] public Guid? CreateUserID { get; set; } /// /// 创建时间 /// [DisplayName("创建时间")] public DateTime? CreateTime { get; set; } /// /// 修改人 /// [DisplayName("修改人")] public Guid? ModifyUserID { get; set; } /// /// 修改时间 /// [DisplayName("修改时间")] public DateTime? ModifyTime { get; set; } } }