UniversityView.cs 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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 UniversityView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid UniversityID { get; set; }
  17. /// <summary>
  18. /// 学校代码
  19. /// </summary>
  20. [Required]
  21. [DisplayName("学校代码")]
  22. [RegularExpression(@"^[0-9a-zA-Z\s?]+$", ErrorMessage = "请输入数字或英文字母")]
  23. public string Code { get; set; }
  24. /// <summary>
  25. /// 学校名称
  26. /// </summary>
  27. [Required]
  28. [DisplayName("学校名称")]
  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. /// 所属省份
  42. /// </summary>
  43. [DisplayName("所属省份")]
  44. public int? ProvinceID { get; set; }
  45. /// <summary>
  46. /// 所属省份
  47. /// </summary>
  48. [DisplayName("所属省份")]
  49. public string ProvinceName
  50. {
  51. get
  52. {
  53. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Province.ToString()).Where(x => x.Value == ProvinceID).Select(x => x.Name).FirstOrDefault();
  54. }
  55. }
  56. /// <summary>
  57. /// 所属市
  58. /// </summary>
  59. [DisplayName("所属市")]
  60. public int? CityID { get; set; }
  61. /// <summary>
  62. /// 所属市
  63. /// </summary>
  64. [DisplayName("所属市")]
  65. public string CityName
  66. {
  67. get
  68. {
  69. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Region.ToString()).Where(x => x.Value == CityID).Select(x => x.Name).FirstOrDefault();
  70. }
  71. }
  72. /// <summary>
  73. /// 所属区
  74. /// </summary>
  75. [DisplayName("所属区")]
  76. public int? DistrictID { get; set; }
  77. /// <summary>
  78. /// 所属区
  79. /// </summary>
  80. [DisplayName("所属区")]
  81. public string DistrictName
  82. {
  83. get
  84. {
  85. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Region.ToString()).Where(x => x.Value == DistrictID).Select(x => x.Name).FirstOrDefault();
  86. }
  87. }
  88. /// <summary>
  89. /// 学校性质
  90. /// </summary>
  91. [DisplayName("学校性质")]
  92. public int? PropertyID { get; set; }
  93. /// <summary>
  94. /// 学校性质
  95. /// </summary>
  96. [DisplayName("学校性质")]
  97. public string PropertyName
  98. {
  99. get
  100. {
  101. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_UniversityProperty.ToString()).Where(x => x.Value == PropertyID).Select(x => x.Name).FirstOrDefault();
  102. }
  103. }
  104. /// <summary>
  105. /// 办学类型
  106. /// </summary>
  107. [Required]
  108. [DisplayName("办学类型")]
  109. public int? SchoolTypeID { get; set; }
  110. /// <summary>
  111. /// 办学类型
  112. /// </summary>
  113. [DisplayName("办学类型")]
  114. public string SchoolTypeName
  115. {
  116. get
  117. {
  118. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolType.ToString()) .Where(x => x.Value == SchoolTypeID).Select(x => x.Name).FirstOrDefault();
  119. }
  120. }
  121. /// <summary>
  122. /// 主管部门
  123. /// </summary>
  124. [DisplayName("主管部门")]
  125. public int? ManagerID { get; set; }
  126. /// <summary>
  127. /// 主管部门
  128. /// </summary>
  129. [DisplayName("主管部门")]
  130. public string ManagerName
  131. {
  132. get
  133. {
  134. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ManagerType.ToString()).Where(x => x.Value == SchoolTypeID).Select(x => x.Name).FirstOrDefault();
  135. }
  136. }
  137. /// <summary>
  138. /// 举办者
  139. /// </summary>
  140. [DisplayName("举办者")]
  141. public int? FounderTypeID { get; set; }
  142. /// <summary>
  143. /// 举办者
  144. /// </summary>
  145. [DisplayName("举办者")]
  146. public string FounderTypeName
  147. {
  148. get
  149. {
  150. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_FounderType.ToString()).Where(x => x.Value == FounderTypeID).Select(x => x.Name).FirstOrDefault();
  151. }
  152. }
  153. /// <summary>
  154. /// 学校级别
  155. /// </summary>
  156. [DisplayName("学校级别")]
  157. public int? SchoolLevelID { get; set; }
  158. /// <summary>
  159. /// 学校级别
  160. /// </summary>
  161. [DisplayName("学校级别")]
  162. public string SchoolLevelName
  163. {
  164. get
  165. {
  166. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolLevel.ToString()).Where(x => x.Value == SchoolLevelID).Select(x => x.Name).FirstOrDefault();
  167. }
  168. }
  169. /// <summary>
  170. /// 校长
  171. /// </summary>
  172. [DisplayName("校长")]
  173. public string HeadMasterName { get; set; }
  174. /// <summary>
  175. /// 党务负责人
  176. /// </summary>
  177. [DisplayName("党务负责人")]
  178. public Guid? PartyManageID { get; set; }
  179. /// <summary>
  180. /// 党务负责人
  181. /// </summary>
  182. [DisplayName("党务负责人")]
  183. public string PartyManageName { get; set; }
  184. /// <summary>
  185. /// 法人代表
  186. /// </summary>
  187. [DisplayName("法人代表")]
  188. public string LegalPersonName { get; set; }
  189. /// <summary>
  190. /// 创校日期
  191. /// </summary>
  192. [DisplayName("创校日期")]
  193. public DateTime? BuildDate { get; set; }
  194. /// <summary>
  195. /// 校庆日期
  196. /// </summary>
  197. [DisplayName("校庆日期")]
  198. public DateTime? AnniversaryDate { get; set; }
  199. /// <summary>
  200. /// 建校基础
  201. /// </summary>
  202. [DisplayName("建校基础")]
  203. public string SchoolBasis { get; set; }
  204. /// <summary>
  205. /// 校训
  206. /// </summary>
  207. [DisplayName("校训")]
  208. public string SchoolMotto { get; set; }
  209. /// <summary>
  210. /// 学科门数
  211. /// </summary>
  212. [DisplayName("学科门数")]
  213. [RegularExpression(@"^[0-9]*[1-9][0-9]*$", ErrorMessage = "请输入正整数")]
  214. public int? SubjectCount { get; set; }
  215. /// <summary>
  216. /// 是否211工程院校
  217. /// </summary>
  218. [DisplayName("是否211工程院校")]
  219. public bool Is211University { get; set; }
  220. /// <summary>
  221. /// 是否重点院校
  222. /// </summary>
  223. [DisplayName("是否重点院校")]
  224. public bool IsKeyUniversity { get; set; }
  225. /// <summary>
  226. /// 是否附设成教学院
  227. /// </summary>
  228. [DisplayName("是否附设成教学院")]
  229. public bool IsAdultCollege { get; set; }
  230. /// <summary>
  231. /// 是否设立研究生院
  232. /// </summary>
  233. [DisplayName("是否设立研究生院")]
  234. public bool IsPostCollege { get; set; }
  235. /// <summary>
  236. /// 是否附设网络学院
  237. /// </summary>
  238. [DisplayName("是否附设网络学院")]
  239. public bool IsNetCollege { get; set; }
  240. /// <summary>
  241. /// 联系电话
  242. /// </summary>
  243. [DisplayName("联系电话")]
  244. public string Telephone { get; set; }
  245. /// <summary>
  246. /// 邮政编码
  247. /// </summary>
  248. [DisplayName("邮政编码")]
  249. public string ZIPCode { get; set; }
  250. /// <summary>
  251. /// 电子邮件
  252. /// </summary>
  253. [DisplayName("电子邮件")]
  254. public string Email { get; set; }
  255. /// <summary>
  256. /// 传真
  257. /// </summary>
  258. [DisplayName("传真")]
  259. public string FAX { get; set; }
  260. /// <summary>
  261. /// 微信公众号
  262. /// </summary>
  263. [DisplayName("微信公众号")]
  264. public string PublicNum { get; set; }
  265. /// <summary>
  266. /// 主页地址
  267. /// </summary>
  268. [DisplayName("主页地址")]
  269. public string HomePage { get; set; }
  270. /// <summary>
  271. /// 学校地址
  272. /// </summary>
  273. [DisplayName("学校地址")]
  274. public string Address { get; set; }
  275. /// <summary>
  276. /// 学校英文地址
  277. /// </summary>
  278. [DisplayName("学校英文地址")]
  279. public string EnglishAddress { get; set; }
  280. /// <summary>
  281. /// 历史沿革
  282. /// </summary>
  283. [DisplayName("历史沿革")]
  284. public string HistoryEvolution { get; set; }
  285. /// <summary>
  286. /// 备注
  287. /// </summary>
  288. [DisplayName("备注")]
  289. public string Remark { get; set; }
  290. /// <summary>
  291. /// 状态
  292. /// </summary>
  293. [DisplayName("状态")]
  294. public int? RecordStatus { get; set; }
  295. /// <summary>
  296. /// 创建人
  297. /// </summary>
  298. [DisplayName("创建人")]
  299. public Guid? CreateUserID { get; set; }
  300. /// <summary>
  301. /// 创建时间
  302. /// </summary>
  303. [DisplayName("创建时间")]
  304. public DateTime? CreateTime { get; set; }
  305. /// <summary>
  306. /// 修改人
  307. /// </summary>
  308. [DisplayName("修改人")]
  309. public Guid? ModifyUserID { get; set; }
  310. /// <summary>
  311. /// 修改时间
  312. /// </summary>
  313. [DisplayName("修改时间")]
  314. public DateTime? ModifyTime { get; set; }
  315. }
  316. }