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.EvaluationManage.StudentEvaluation { public class EvaluationStudentSettingScoreView { /// /// 主键ID /// [DisplayName("主键ID")] public Guid EvaluationStudentSettingScoreID { get; set; } /// /// 评价学生设定ID /// [Required] [DisplayName("评价学生设定ID")] public Guid? EvaluationStudentSettingID { get; set; } /// /// 教学任务班ID /// [Required] [DisplayName("教学任务班ID")] public Guid? EducationMissionClassID { get; set; } /// /// 教学任务ID /// [Required] [DisplayName("教学任务ID")] public Guid? EducationMissionID { get; set; } /// /// 学年学期ID /// [Required] [DisplayName("学年学期ID")] public Guid? SchoolyearID { get; set; } /// /// 学年学期对应的Value值 /// [DisplayName("SchoolyearValue")] public int? SchoolyearValue { get; set; } /// /// 学年学期 /// [DisplayName("学年学期")] public string SchoolyearCode { get; set; } /// /// 任务名称 /// [Required] [DisplayName("任务名称")] public string MissionName { get; set; } /// /// 任务班名称 /// [Required] [DisplayName("任务班名称")] public string MissionClassName { get; set; } /// /// 院系所ID /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")] public Guid? CollegeID { get; set; } /// /// 院系所代码 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")] public string CollegeNo { get; set; } /// /// 院系所名称 /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")] public string CollegeName { 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 /// [Required] [DisplayName("课程信息ID")] public Guid? CoursematerialID { get; set; } /// /// 课程代码 /// [DisplayName("课程代码")] public string CourseCode { get; set; } /// /// 课程名称 /// [DisplayName("课程名称")] public string CourseName { get; set; } /// /// 课程结构 /// [DisplayName("课程结构")] public int? CourseStructureID { get; set; } /// /// 课程结构 /// [DisplayName("课程结构")] public string CourseStructureName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseStructure.ToString()).Where(x => x.Value == CourseStructureID).Select(x => x.Name).FirstOrDefault(); } } /// /// 课程属性 /// [DisplayName("课程属性")] public int? CourseCategoryID { get; set; } /// /// 课程属性 /// [DisplayName("课程属性")] public string CourseCategoryName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseCategory.ToString()).Where(x => x.Value == CourseCategoryID).Select(x => x.Name).FirstOrDefault(); } } /// /// 课程类型 /// [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? CourseQualityID { get; set; } /// /// 课程性质 /// [DisplayName("课程性质")] public string CourseQualityName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CourseQuality.ToString()).Where(x => x.Value == CourseQualityID).Select(x => x.Name).FirstOrDefault(); } } /// /// 课程学分 /// [DisplayName("课程学分")] public decimal? Credit { get; set; } /// /// 开课教研室ID /// [Required] [DisplayName("开课教研室")] public Guid? DepartmentID { get; set; } /// /// 开课教研室代码 /// [DisplayName("开课教研室代码")] public string DepartmentNo { get; set; } /// /// 开课教研室 /// [DisplayName("开课教研室")] public string DepartmentName { get; set; } /// /// 处理方式 /// [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 int? TeachingModeID { get; set; } /// /// 授课方式 /// [DisplayName("授课方式")] public string TeachingModeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(x => x.Value == TeachingModeID).Select(x => x.Name).FirstOrDefault(); } } /// /// 任务状态 /// [DisplayName("任务状态")] public int? MissionClassStatus { get; set; } /// /// 任务状态 /// public string MissionClassStatusName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EM_EducationMissionClassStatus.ToString()).Where(x => x.Value == MissionClassStatus).Select(x => x.Name).FirstOrDefault(); } } /// /// 评价表ID /// [Required] [DisplayName("评价表ID")] public Guid? EvaluationTableID { get; set; } /// /// 评价表编号 /// [DisplayName("评价表编号")] public string EvaluationTableCode { get; set; } /// /// 评价表名 /// [DisplayName("评价表名")] public string EvaluationTableName { get; set; } /// /// 参评类型ID /// [DisplayName("参评类型ID")] public Guid? EvaluationParticipateTypeID { get; set; } /// /// 参评类型 /// [DisplayName("参评类型")] public int? ParticipateTypeID { get; set; } /// /// 参评类型 /// [DisplayName("参评类型")] public string ParticipateTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EM_ParticipateType.ToString()).Where(x => x.Value == ParticipateTypeID).Select(x => x.Name).FirstOrDefault(); } } /// /// 评价类型ID /// [DisplayName("评价类型ID")] public Guid? EvaluationTypeID { get; set; } /// /// 评价类型编号 /// [DisplayName("评价类型编号")] public string EvaluationTypeCode { get; set; } /// /// 评价类型 /// [DisplayName("评价类型")] public string EvaluationTypeName { get; set; } /// /// 任课教师ID /// [Required] [DisplayName("任课教师ID")] public Guid? UserID { get; set; } /// /// 教师工号 /// [DisplayName("教师工号")] public string StaffCode { get; set; } /// /// 任课教师 /// [DisplayName("任课教师")] public string StaffName { get; set; } /// /// 职称 /// [DisplayName("职称")] public int? TitleID { get; set; } /// /// 职称 /// [DisplayName("职称")] public string TitleName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()).Where(x => x.Value == TitleID).Select(x => x.Name).FirstOrDefault(); } } /// /// 任课方式 /// [Required] [DisplayName("任课方式")] public int? TeachingMethodID { get; set; } /// /// 任课方式 /// [DisplayName("任课方式")] public string TeachingMethodName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString()).Where(x => x.Value == TeachingMethodID).Select(x => x.Name).FirstOrDefault(); } } /// /// 参评人数 /// [DisplayName("参评人数")] public int? ParticipateCount { get; set; } /// /// 未评人数 /// [DisplayName("未评人数")] public int? NoParticipateCount { get; set; } /// /// 有效评数 /// [DisplayName("有效评数")] public int? ValidityParticipateCount { get; set; } /// /// 有效评率% /// [DisplayName("有效评率%")] public decimal? ValidityParticipateRate { get; set; } /// /// 开放状态 /// [DisplayName("开放状态")] public bool OpenState { get; set; } /// /// 开放状态 /// [DisplayName("开放状态")] public string OpenStateName { get { return this.OpenState == true ? "是" : "否"; } } /// /// 评分 /// [Required] [DisplayName("评分")] [RegularExpression(@"^\d+(\.\d{1,2})?$", ErrorMessage = "请输入分数或保留2位以下小数点分数")] public decimal? TotalScore { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } /// /// 状态 /// [DisplayName("状态")] public int? RecordStatus { 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; } } }