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 { /// /// 主键ID /// [DisplayName("主键ID")] public Guid DepartmentID { get; set; } /// /// 教研室代码 /// [Required] [DisplayName("教研室代码")] [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")] public string No { get; set; } /// /// 教研室名称 /// [Required] [DisplayName("教研室名称")] public string Name { get; set; } /// /// 教研室简称 /// [DisplayName("教研室简称")] public string SimpleName { get; set; } /// /// 英文名称 /// [DisplayName("英文名称")] public string EnglishName { get; set; } /// /// 校区ID /// [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")] 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] [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")] public Guid? CollegeID { get; set; } /// /// 院系所代码 /// [Required] [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 string HierarchyID { get; set; } /// /// 主任ID /// [DisplayName("主任ID")] public Guid? DirectorID { get; set; } /// /// 主任姓名 /// [DisplayName("主任姓名")] public string DirectorName { get; set; } /// /// 副主任ID /// [DisplayName("副主任ID")] public Guid? DeputyDirectorID { get; set; } /// /// 副主任姓名 /// [DisplayName("副主任姓名")] public string DeputyDirectorName { get; set; } /// /// 创建年月 /// [DisplayName("创建年月")] public DateTime? FoundDate { get; set; } /// /// 创建年月 /// [DisplayName("创建年月")] public string FoundDateStr { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } /// /// 错误信息(Excel导入) /// [DisplayName("未导入原因")] public string ErrorMessage { 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; } } }