using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel.DataAnnotations; using EMIS.ViewModel.CacheManage; using System.ComponentModel; namespace EMIS.ViewModel.EducationManage { public class BaseTeacherTeachingView { /// /// 用户ID /// [DisplayName("用户ID")] public Guid UserID { get; set; } /// /// 教职工号 /// [DisplayName("教职工号")] public string LoginID { get; set; } /// /// 姓名 /// [DisplayName("姓名")] public string Name { get; set; } /// /// 性别 /// [DisplayName("性别")] public int? Sex { get; set; } /// /// 性别 /// [DisplayName("性别")] public string SexName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()) .Where(x => x.Value == Sex).Select(x => x.Name).FirstOrDefault(); } } /// /// 出生日期 /// [DisplayName("出生日期")] public DateTime? BirthDate { get; set; } /// /// 教师类型 /// [DisplayName("教师类型")] public int? TeacherType { get; set; } /// /// 教师类型 /// [DisplayName("教师类型")] public string TeacherTypeName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeacherType.ToString()) .Where(x => x.Value == TeacherType).Select(x => x.Name).FirstOrDefault(); } } /// /// 在职状态 /// [DisplayName("在职状态")] public int? IncumbencyState { get; set; } /// /// 在职状态 /// [DisplayName("在职状态")] public string IncumbencyStateName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_IncumbencyState.ToString()) .Where(x => x.Value == IncumbencyState).Select(x => x.Name).FirstOrDefault(); } } /// /// 职称 /// [DisplayName("职称")] public int? Title { get; set; } /// /// 职称 /// [DisplayName("职称")] public string TitleName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString()) .Where(x => x.Value == Title).Select(x => x.Name).FirstOrDefault(); } } /// /// 任课方式 /// [Required] [DisplayName("任课方式")] public int? TeachingMethod { get; set; } /// /// 任课方式 /// [DisplayName("任课方式")] public string TeachingMethodName { get { return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString()) .Where(x => x.Value == TeachingMethod).Select(x => x.Name).FirstOrDefault(); } } /// /// 教研室ID /// [DisplayName("教研室ID")] public Guid? DepartmentID { get; set; } /// /// 教研室代码 /// [DisplayName("教研室代码")] public string DepartmentCode { get; set; } /// /// 教研室 /// [DisplayName("教研室")] public string DepartmentName { 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; } } }