123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- 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
- {
- /// <summary>
- /// 用户ID
- /// </summary>
- [DisplayName("用户ID")]
- public Guid UserID { get; set; }
- /// <summary>
- /// 教职工号
- /// </summary>
- [DisplayName("教职工号")]
- public string LoginID { get; set; }
- /// <summary>
- /// 姓名
- /// </summary>
- [DisplayName("姓名")]
- public string Name { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [DisplayName("性别")]
- public int? Sex { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- [DisplayName("性别")]
- public string SexName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
- .Where(x => x.Value == Sex).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 出生日期
- /// </summary>
- [DisplayName("出生日期")]
- public DateTime? BirthDate { get; set; }
- /// <summary>
- /// 教师类型
- /// </summary>
- [DisplayName("教师类型")]
- public int? TeacherType { get; set; }
- /// <summary>
- /// 教师类型
- /// </summary>
- [DisplayName("教师类型")]
- public string TeacherTypeName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeacherType.ToString())
- .Where(x => x.Value == TeacherType).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 在职状态
- /// </summary>
- [DisplayName("在职状态")]
- public int? IncumbencyState { get; set; }
- /// <summary>
- /// 在职状态
- /// </summary>
- [DisplayName("在职状态")]
- public string IncumbencyStateName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_IncumbencyState.ToString())
- .Where(x => x.Value == IncumbencyState).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 职称
- /// </summary>
- [DisplayName("职称")]
- public int? Title { get; set; }
- /// <summary>
- /// 职称
- /// </summary>
- [DisplayName("职称")]
- public string TitleName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Title.ToString())
- .Where(x => x.Value == Title).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 任课方式
- /// </summary>
- [Required]
- [DisplayName("任课方式")]
- public int? TeachingMethod { get; set; }
- /// <summary>
- /// 任课方式
- /// </summary>
- [DisplayName("任课方式")]
- public string TeachingMethodName
- {
- get
- {
- return IdNameExt.GetDictionaryItem(DictionaryItem.EM_TeachingMethod.ToString())
- .Where(x => x.Value == TeachingMethod).Select(x => x.Name).FirstOrDefault();
- }
- }
- /// <summary>
- /// 教研室ID
- /// </summary>
- [DisplayName("教研室ID")]
- public Guid? DepartmentID { get; set; }
- /// <summary>
- /// 教研室代码
- /// </summary>
- [DisplayName("教研室代码")]
- public string DepartmentCode { get; set; }
- /// <summary>
- /// 教研室
- /// </summary>
- [DisplayName("教研室")]
- public string DepartmentName { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
- public string CollegeNo { get; set; }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
- public string CollegeName { get; set; }
-
- }
- }
|