123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel;
- namespace EMIS.ViewModel
- {
- public class DepartmentView
- {
- /// <summary>
- /// 主键ID
- /// </summary>
- [DisplayName("主键ID")]
- public Guid DepartmentID { get; set; }
- /// <summary>
- /// 教研室代码
- /// </summary>
- [Required]
- [DisplayName("教研室代码")]
- [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
- public string No { get; set; }
- /// <summary>
- /// 教研室名称
- /// </summary>
- [Required]
- [DisplayName("教研室名称")]
- public string Name { get; set; }
- /// <summary>
- /// 教研室简称
- /// </summary>
- [DisplayName("教研室简称")]
- public string SimpleName { get; set; }
- /// <summary>
- /// 英文名称
- /// </summary>
- [DisplayName("英文名称")]
- public string EnglishName { get; set; }
- /// <summary>
- /// 校区ID
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
- public Guid? CampusID { get; set; }
- /// <summary>
- /// 校区代码
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
- public string CampusNo { get; set; }
- /// <summary>
- /// 校区名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
- public string CampusName { get; set; }
- /// <summary>
- /// 院系所ID
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
- public Guid? CollegeID { get; set; }
- /// <summary>
- /// 院系所代码
- /// </summary>
- [Required]
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
- public string CollegeCode { get; set; }
- /// <summary>
- /// 院系所名称
- /// </summary>
- [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
- public string CollegeName { get; set; }
- /// <summary>
- /// 树结构ID
- /// </summary>
- [DisplayName("树结构ID")]
- public string HierarchyID { get; set; }
- /// <summary>
- /// 主任ID
- /// </summary>
- [DisplayName("主任ID")]
- public Guid? DirectorID { get; set; }
- /// <summary>
- /// 主任姓名
- /// </summary>
- [DisplayName("主任姓名")]
- public string DirectorName { get; set; }
- /// <summary>
- /// 副主任ID
- /// </summary>
- [DisplayName("副主任ID")]
- public Guid? DeputyDirectorID { get; set; }
- /// <summary>
- /// 副主任姓名
- /// </summary>
- [DisplayName("副主任姓名")]
- public string DeputyDirectorName { get; set; }
- /// <summary>
- /// 创建年月
- /// </summary>
- [DisplayName("创建年月")]
- public DateTime? FoundDate { get; set; }
- /// <summary>
- /// 创建年月
- /// </summary>
- [DisplayName("创建年月")]
- public string FoundDateStr { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- [DisplayName("备注")]
- public string Remark { get; set; }
- /// <summary>
- /// 错误信息(Excel导入)
- /// </summary>
- [DisplayName("未导入原因")]
- public string ErrorMessage { get; set; }
- /// <summary>
- /// 状态
- /// </summary>
- [DisplayName("状态")]
- public int? RecordStatus { get; set; }
- /// <summary>
- /// 创建人
- /// </summary>
- [DisplayName("创建人")]
- public Guid? CreateUserID { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- [DisplayName("创建时间")]
- public DateTime? CreateTime { get; set; }
- /// <summary>
- /// 修改人
- /// </summary>
- [DisplayName("修改人")]
- public Guid? ModifyUserID { get; set; }
- /// <summary>
- /// 修改时间
- /// </summary>
- [DisplayName("修改时间")]
- public DateTime? ModifyTime { get; set; }
- }
- }
|