DepartmentView.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. namespace EMIS.ViewModel.UniversityManage.AdministrativeOrgan
  8. {
  9. public class DepartmentView
  10. {
  11. /// <summary>
  12. /// 主键ID
  13. /// </summary>
  14. [DisplayName("主键ID")]
  15. public Guid DepartmentID { get; set; }
  16. /// <summary>
  17. /// 教研室代码
  18. /// </summary>
  19. [Required]
  20. [DisplayName("教研室代码")]
  21. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
  22. public string No { get; set; }
  23. /// <summary>
  24. /// 教研室名称
  25. /// </summary>
  26. [Required]
  27. [DisplayName("教研室名称")]
  28. public string Name { get; set; }
  29. /// <summary>
  30. /// 教研室简称
  31. /// </summary>
  32. [DisplayName("教研室简称")]
  33. public string SimpleName { get; set; }
  34. /// <summary>
  35. /// 英文名称
  36. /// </summary>
  37. [DisplayName("英文名称")]
  38. public string EnglishName { get; set; }
  39. /// <summary>
  40. /// 校区ID
  41. /// </summary>
  42. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  43. public Guid? CampusID { get; set; }
  44. /// <summary>
  45. /// 校区代码
  46. /// </summary>
  47. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  48. public string CampusNo { get; set; }
  49. /// <summary>
  50. /// 校区名称
  51. /// </summary>
  52. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  53. public string CampusName { get; set; }
  54. /// <summary>
  55. /// 院系所ID
  56. /// </summary>
  57. [Required]
  58. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  59. public Guid? CollegeID { get; set; }
  60. /// <summary>
  61. /// 院系所代码
  62. /// </summary>
  63. [Required]
  64. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  65. public string CollegeCode { get; set; }
  66. /// <summary>
  67. /// 院系所名称
  68. /// </summary>
  69. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  70. public string CollegeName { get; set; }
  71. /// <summary>
  72. /// 树结构ID
  73. /// </summary>
  74. [DisplayName("树结构ID")]
  75. public string HierarchyID { get; set; }
  76. /// <summary>
  77. /// 主任ID
  78. /// </summary>
  79. [DisplayName("主任ID")]
  80. public Guid? DirectorID { get; set; }
  81. /// <summary>
  82. /// 主任姓名
  83. /// </summary>
  84. [DisplayName("主任姓名")]
  85. public string DirectorName { get; set; }
  86. /// <summary>
  87. /// 副主任ID
  88. /// </summary>
  89. [DisplayName("副主任ID")]
  90. public Guid? DeputyDirectorID { get; set; }
  91. /// <summary>
  92. /// 副主任姓名
  93. /// </summary>
  94. [DisplayName("副主任姓名")]
  95. public string DeputyDirectorName { get; set; }
  96. /// <summary>
  97. /// 创建年月
  98. /// </summary>
  99. [DisplayName("创建年月")]
  100. public DateTime? FoundDate { get; set; }
  101. /// <summary>
  102. /// 创建年月
  103. /// </summary>
  104. [DisplayName("创建年月")]
  105. public string FoundDateStr { get; set; }
  106. /// <summary>
  107. /// 教师人数
  108. /// </summary>
  109. [DisplayName("教师人数")]
  110. public int? StaffCount { get; set; }
  111. /// <summary>
  112. /// 备注
  113. /// </summary>
  114. [DisplayName("备注")]
  115. public string Remark { get; set; }
  116. /// <summary>
  117. /// 错误信息(Excel导入)
  118. /// </summary>
  119. [DisplayName("未导入原因")]
  120. public string ErrorMessage { get; set; }
  121. /// <summary>
  122. /// 状态
  123. /// </summary>
  124. [DisplayName("状态")]
  125. public int? RecordStatus { get; set; }
  126. /// <summary>
  127. /// 创建人
  128. /// </summary>
  129. [DisplayName("创建人")]
  130. public Guid? CreateUserID { get; set; }
  131. /// <summary>
  132. /// 创建时间
  133. /// </summary>
  134. [DisplayName("创建时间")]
  135. public DateTime? CreateTime { get; set; }
  136. /// <summary>
  137. /// 修改人
  138. /// </summary>
  139. [DisplayName("修改人")]
  140. public Guid? ModifyUserID { get; set; }
  141. /// <summary>
  142. /// 修改时间
  143. /// </summary>
  144. [DisplayName("修改时间")]
  145. public DateTime? ModifyTime { get; set; }
  146. }
  147. }