FacultymajorView.cs 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  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.SpecialtyClassManage
  9. {
  10. public class FacultymajorView
  11. {
  12. /// <summary>
  13. /// 院系专业ID
  14. /// </summary>
  15. [DisplayName("院系专业ID")]
  16. public Guid FacultymajorID { 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 Abbreviation { get; set; }
  35. /// <summary>
  36. /// 英文名称
  37. /// </summary>
  38. [DisplayName("英文名称")]
  39. public string EnglishName { get; set; }
  40. /// <summary>
  41. /// 院系专业名称+代码
  42. /// </summary>
  43. [DisplayName("院系专业")]
  44. public string NameCode { get; set; }
  45. /// <summary>
  46. /// 校区ID
  47. /// </summary>
  48. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  49. public Guid? CampusID { get; set; }
  50. /// <summary>
  51. /// 校区代码
  52. /// </summary>
  53. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  54. public string CampusNo { get; set; }
  55. /// <summary>
  56. /// 校区名称
  57. /// </summary>
  58. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  59. public string CampusName { get; set; }
  60. /// <summary>
  61. /// 院系所ID
  62. /// </summary>
  63. [Required]
  64. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  65. public Guid? CollegeID { get; set; }
  66. /// <summary>
  67. /// 院系所代码
  68. /// </summary>
  69. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  70. public string CollegeCode { get; set; }
  71. /// <summary>
  72. /// 院系所名称
  73. /// </summary>
  74. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  75. public string CollegeName { get; set; }
  76. /// <summary>
  77. /// 专业ID(Value)
  78. /// </summary>
  79. [Required]
  80. [DisplayName("专业ID(Value)")]
  81. public int? StandardID { get; set; }
  82. /// <summary>
  83. /// 专业代码(Excel导入)
  84. /// </summary>
  85. [DisplayName("专业代码")]
  86. public string StandardCodeStr { get; set; }
  87. /// <summary>
  88. /// 专业名称(Excel导入)
  89. /// </summary>
  90. [DisplayName("专业名称")]
  91. public string StandardNameStr { get; set; }
  92. /// <summary>
  93. /// 专业代码
  94. /// </summary>
  95. [DisplayName("专业代码")]
  96. public string StandardCode
  97. {
  98. get
  99. {
  100. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  101. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  102. }
  103. }
  104. /// <summary>
  105. /// 专业名称
  106. /// </summary>
  107. [DisplayName("专业名称")]
  108. public string StandardName { get; set; }
  109. /// <summary>
  110. /// 培养层次
  111. /// </summary>
  112. [Required]
  113. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  114. public int? EducationID { get; set; }
  115. /// <summary>
  116. /// 培养层次(Excel导入)
  117. /// </summary>
  118. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  119. public string EducationStr { get; set; }
  120. /// <summary>
  121. /// 培养层次
  122. /// </summary>
  123. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  124. public string EducationName
  125. {
  126. get
  127. {
  128. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  129. }
  130. }
  131. /// <summary>
  132. /// 学习形式
  133. /// </summary>
  134. [Required]
  135. [DisplayName("学习形式")]
  136. public int? LearningformID { get; set; }
  137. /// <summary>
  138. /// 学习形式(Excel导入)
  139. /// </summary>
  140. [DisplayName("学习形式")]
  141. public string LearningformStr { get; set; }
  142. /// <summary>
  143. /// 学习形式
  144. /// </summary>
  145. [DisplayName("学习形式")]
  146. public string LearningformName
  147. {
  148. get
  149. {
  150. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  151. }
  152. }
  153. /// <summary>
  154. /// 学制
  155. /// </summary>
  156. [Required]
  157. [DisplayName("学制")]
  158. [RegularExpression(@"^[0-9]+([.]{1}[0-9]+){0,1}$", ErrorMessage = "请输入数字")]
  159. public decimal? LearnSystem { get; set; }
  160. /// <summary>
  161. /// 学制(Excel导入)
  162. /// </summary>
  163. [DisplayName("学制")]
  164. public string LearnSystemStr { get; set; }
  165. /// <summary>
  166. /// 专业科类
  167. /// </summary>
  168. [DisplayName("专业科类")]
  169. public int? ScienceclassID { get; set; }
  170. /// <summary>
  171. /// 专业科类(Excel导入)
  172. /// </summary>
  173. [DisplayName("专业科类")]
  174. public string ScienceclassStr { get; set; }
  175. /// <summary>
  176. /// 专业科类
  177. /// </summary>
  178. [DisplayName("专业科类")]
  179. public string ScienceclassName
  180. {
  181. get
  182. {
  183. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Scienceclass.ToString()).Where(x => x.Value == ScienceclassID).Select(x => x.Name).FirstOrDefault();
  184. }
  185. }
  186. /// <summary>
  187. /// 学习方式
  188. /// </summary>
  189. [DisplayName("学习方式")]
  190. public int? LearningstyleID { get; set; }
  191. /// <summary>
  192. /// 学习方式(Excel导入)
  193. /// </summary>
  194. [DisplayName("学习方式")]
  195. public string LearningstyleStr { get; set; }
  196. /// <summary>
  197. /// 学习方式
  198. /// </summary>
  199. [DisplayName("学习方式")]
  200. public string LearningstyleName
  201. {
  202. get
  203. {
  204. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningstyle.ToString()).Where(x => x.Value == LearningstyleID).Select(x => x.Name).FirstOrDefault();
  205. }
  206. }
  207. /// <summary>
  208. /// 授予学位
  209. /// </summary>
  210. [DisplayName("授予学位")]
  211. public int? LearnPositionID { get; set; }
  212. /// <summary>
  213. /// 授予学位(Excel导入)
  214. /// </summary>
  215. [DisplayName("授予学位")]
  216. public string LearnPositionStr { get; set; }
  217. /// <summary>
  218. /// 授予学位
  219. /// </summary>
  220. [DisplayName("授予学位")]
  221. public string LearnPositionName
  222. {
  223. get
  224. {
  225. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_LearnPosition.ToString()).Where(x => x.Value == LearnPositionID).Select(x => x.Name).FirstOrDefault();
  226. }
  227. }
  228. /// <summary>
  229. /// 师范标识
  230. /// </summary>
  231. [DisplayName("师范标识")]
  232. public string TeacherIdentification { get; set; }
  233. /// <summary>
  234. /// 设置时间
  235. /// </summary>
  236. [DisplayName("设置时间")]
  237. public DateTime? SetTime { get; set; }
  238. /// <summary>
  239. /// 设置时间(Excel导入)
  240. /// </summary>
  241. [DisplayName("设置时间")]
  242. public string SetTimeStr { get; set; }
  243. /// <summary>
  244. /// 年级专业数
  245. /// </summary>
  246. [DisplayName("年级专业数")]
  247. public int? GrademajorCount { get; set; }
  248. /// <summary>
  249. /// 学生人数
  250. /// </summary>
  251. [DisplayName("学生人数")]
  252. public int? StudentCount { get; set; }
  253. /// <summary>
  254. /// 备注
  255. /// </summary>
  256. [DisplayName("备注")]
  257. public string Remark { get; set; }
  258. /// <summary>
  259. /// 错误信息(Excel导入)
  260. /// </summary>
  261. [DisplayName("未导入原因")]
  262. public string ErrorMessage { get; set; }
  263. /// <summary>
  264. /// 状态
  265. /// </summary>
  266. [DisplayName("状态")]
  267. public int? RecordStatus { get; set; }
  268. /// <summary>
  269. /// 创建人
  270. /// </summary>
  271. [DisplayName("创建人")]
  272. public Guid? CreateUserID { get; set; }
  273. /// <summary>
  274. /// 创建时间
  275. /// </summary>
  276. [DisplayName("创建时间")]
  277. public DateTime? CreateTime { get; set; }
  278. /// <summary>
  279. /// 修改人
  280. /// </summary>
  281. [DisplayName("修改人")]
  282. public Guid? ModifyUserID { get; set; }
  283. /// <summary>
  284. /// 修改时间
  285. /// </summary>
  286. [DisplayName("修改时间")]
  287. public DateTime? ModifyTime { get; set; }
  288. }
  289. }