CollegeView.cs 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.UniversityManage.AdministrativeOrgan
  9. {
  10. public class CollegeView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  16. public Guid CollegeID { get; set; }
  17. /// <summary>
  18. /// 院系所代码
  19. /// </summary>
  20. [Required]
  21. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  22. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
  23. public string No { get; set; }
  24. /// <summary>
  25. /// 院系所名称
  26. /// </summary>
  27. [Required]
  28. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  29. public string Name { get; set; }
  30. /// <summary>
  31. /// 简称
  32. /// </summary>
  33. [DisplayName("简称")]
  34. public string SimpleName { get; set; }
  35. /// <summary>
  36. /// 英文名称
  37. /// </summary>
  38. [DisplayName("英文名称")]
  39. public string EnglishName { get; set; }
  40. /// <summary>
  41. /// 校区ID
  42. /// </summary>
  43. [Required]
  44. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusID")]
  45. public Guid? CampusID { get; set; }
  46. /// <summary>
  47. /// 校区代码
  48. /// </summary>
  49. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  50. public string CampusNo { get; set; }
  51. /// <summary>
  52. /// 校区名称
  53. /// </summary>
  54. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  55. public string CampusName { get; set; }
  56. /// <summary>
  57. /// 党务负责人
  58. /// </summary>
  59. [DisplayName("党务负责人")]
  60. public Guid? PoliticalManager { get; set; }
  61. /// <summary>
  62. /// 党务负责人
  63. /// </summary>
  64. [DisplayName("党务负责人")]
  65. public string PoliticalManagerName { get; set; }
  66. /// <summary>
  67. /// 行政负责人
  68. /// </summary>
  69. [DisplayName("行政负责人")]
  70. public Guid? AdministrativeManager { get; set; }
  71. /// <summary>
  72. /// 行政负责人
  73. /// </summary>
  74. [DisplayName("行政负责人")]
  75. public string AdministrativeManagerName { get; set; }
  76. /// <summary>
  77. /// 单位类别
  78. /// </summary>
  79. [Required]
  80. [DisplayName("单位类别")]
  81. public int? UnitCategoryID { get; set; }
  82. /// <summary>
  83. /// 单位类别
  84. /// </summary>
  85. [DisplayName("单位类别")]
  86. public string UnitCategoryStr { get; set; }
  87. /// <summary>
  88. /// 单位类别
  89. /// </summary>
  90. [DisplayName("单位类别")]
  91. public string UnitCategoryName
  92. {
  93. get
  94. {
  95. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UnitCategory.ToString()).Where(x => x.Value == UnitCategoryID).Select(x => x.Name).FirstOrDefault();
  96. }
  97. }
  98. /// <summary>
  99. /// 院系类型
  100. /// </summary>
  101. [DisplayName("院系类型")]
  102. public int? CollegeTypeID { get; set; }
  103. /// <summary>
  104. /// 院系类型
  105. /// </summary>
  106. [DisplayName("院系类型")]
  107. public string CollegeTypeName
  108. {
  109. get
  110. {
  111. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CollegeType.ToString()).Where(x => x.Value == CollegeTypeID).Select(x => x.Name).FirstOrDefault();
  112. }
  113. }
  114. /// <summary>
  115. /// 院系类别
  116. /// </summary>
  117. [DisplayName("院系类别")]
  118. public int? CollegeCategoryID { get; set; }
  119. /// <summary>
  120. /// 院系类别
  121. /// </summary>
  122. [DisplayName("院系类别")]
  123. public string CollegeCategoryName
  124. {
  125. get
  126. {
  127. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CollegeCategory.ToString()).Where(x => x.Value == CollegeCategoryID).Select(x => x.Name).FirstOrDefault();
  128. }
  129. }
  130. /// <summary>
  131. /// 办学类别
  132. /// </summary>
  133. [DisplayName("办学类别")]
  134. public int? RunByCategoryID { get; set; }
  135. /// <summary>
  136. /// 办学类别
  137. /// </summary>
  138. [DisplayName("办学类别")]
  139. public string RunByCategoryName
  140. {
  141. get
  142. {
  143. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_RunByCategory.ToString()).Where(x => x.Value == RunByCategoryID).Select(x => x.Name).FirstOrDefault();
  144. }
  145. }
  146. /// <summary>
  147. /// 建立年月
  148. /// </summary>
  149. [DisplayName("建立年月")]
  150. public DateTime? FoundDate { get; set; }
  151. /// <summary>
  152. /// 建立年月
  153. /// </summary>
  154. [DisplayName("建立年月")]
  155. public string FoundDateStr { get; set; }
  156. /// <summary>
  157. /// 办公电话
  158. /// </summary>
  159. [DisplayName("办公电话")]
  160. public string Officephone { get; set; }
  161. /// <summary>
  162. /// 教研室数
  163. /// </summary>
  164. [DisplayName("教研室数")]
  165. public int? DepartmentCount { get; set; }
  166. /// <summary>
  167. /// 教师人数
  168. /// </summary>
  169. [DisplayName("教师人数")]
  170. public int? StaffCount { get; set; }
  171. /// <summary>
  172. /// 院系专业数
  173. /// </summary>
  174. [DisplayName("院系专业数")]
  175. public int? FacultymajorCount { get; set; }
  176. /// <summary>
  177. /// 备注
  178. /// </summary>
  179. [DisplayName("备注")]
  180. public string Remark { get; set; }
  181. /// <summary>
  182. /// 错误信息(Excel导入)
  183. /// </summary>
  184. [DisplayName("未导入原因")]
  185. public string ErrorMessage { get; set; }
  186. /// <summary>
  187. /// 状态
  188. /// </summary>
  189. [DisplayName("状态")]
  190. public int? RecordStatus { get; set; }
  191. /// <summary>
  192. /// 创建人
  193. /// </summary>
  194. [DisplayName("创建人")]
  195. public Guid? CreateUserID { get; set; }
  196. /// <summary>
  197. /// 创建时间
  198. /// </summary>
  199. [DisplayName("创建时间")]
  200. public DateTime? CreateTime { get; set; }
  201. /// <summary>
  202. /// 修改人
  203. /// </summary>
  204. [DisplayName("修改人")]
  205. public Guid? ModifyUserID { get; set; }
  206. /// <summary>
  207. /// 修改时间
  208. /// </summary>
  209. [DisplayName("修改时间")]
  210. public DateTime? ModifyTime { get; set; }
  211. }
  212. }