GrademajorView.cs 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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 GrademajorView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid GrademajorID { 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. [Required]
  39. [DisplayName("院系专业")]
  40. public Guid? FacultymajorID { get; set; }
  41. /// <summary>
  42. /// 院系专业编号
  43. /// </summary>
  44. [DisplayName("院系专业编号")]
  45. public string FacultymajorCode { get; set; }
  46. /// <summary>
  47. /// 院系专业名称
  48. /// </summary>
  49. [DisplayName("院系专业名称")]
  50. public string FacultymajorName { get; set; }
  51. /// <summary>
  52. /// 校区ID
  53. /// </summary>
  54. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  55. public Guid? CampusID { get; set; }
  56. /// <summary>
  57. /// 校区代码
  58. /// </summary>
  59. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  60. public string CampusNo { get; set; }
  61. /// <summary>
  62. /// 校区名称
  63. /// </summary>
  64. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  65. public string CampusName { get; set; }
  66. /// <summary>
  67. /// 院系所
  68. /// </summary>
  69. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  70. public Guid? CollegeID { get; set; }
  71. /// <summary>
  72. /// 院系所代码
  73. /// </summary>
  74. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  75. public string CollegeCode { get; set; }
  76. /// <summary>
  77. /// 院系所名称
  78. /// </summary>
  79. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeName")]
  80. public string CollegeName { get; set; }
  81. /// <summary>
  82. /// 年级
  83. /// </summary>
  84. [Required]
  85. [DisplayName("年级")]
  86. public int? GradeID { get; set; }
  87. /// <summary>
  88. /// 年级(Excel导入用)
  89. /// </summary>
  90. [DisplayName("年级")]
  91. public string GradeStr { get; set; }
  92. /// <summary>
  93. /// 年级
  94. /// </summary>
  95. [DisplayName("年级")]
  96. public string GradeName
  97. {
  98. get
  99. {
  100. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  101. }
  102. }
  103. /// <summary>
  104. /// 目标年级
  105. /// </summary>
  106. [Required]
  107. [DisplayName("目标年级")]
  108. public int? BatchGradeID { get; set; }
  109. /// <summary>
  110. /// 是否覆盖
  111. /// </summary>
  112. [DisplayName("是否覆盖")]
  113. public bool IsOverwrite { get; set; }
  114. /// <summary>
  115. /// 入学学期
  116. /// </summary>
  117. [Required]
  118. [DisplayName("入学学期")]
  119. public int? SemesterID { get; set; }
  120. /// <summary>
  121. /// 入学学期(Excel导入)
  122. /// </summary>
  123. [DisplayName("入学学期")]
  124. public string SemesterStr { get; set; }
  125. /// <summary>
  126. /// 入学学期
  127. /// </summary>
  128. [DisplayName("入学学期")]
  129. public string SemesterName
  130. {
  131. get
  132. {
  133. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
  134. }
  135. }
  136. /// <summary>
  137. /// 专业信息ID
  138. /// </summary>
  139. [Required]
  140. [DisplayName("专业信息ID")]
  141. public Guid? SpecialtyID { get; set; }
  142. /// <summary>
  143. /// 专业ID(Value)
  144. /// </summary>
  145. [DisplayName("专业ID(Value)")]
  146. public int? StandardID { get; set; }
  147. /// <summary>
  148. /// 专业代码
  149. /// </summary>
  150. [DisplayName("专业代码")]
  151. public string StandardCode
  152. {
  153. get
  154. {
  155. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  156. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  157. }
  158. }
  159. /// <summary>
  160. /// 专业名称
  161. /// </summary>
  162. [DisplayName("专业名称")]
  163. public string StandardName
  164. {
  165. get
  166. {
  167. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  168. }
  169. }
  170. /// <summary>
  171. /// 专业名称
  172. /// </summary>
  173. [DisplayName("专业名称")]
  174. public string StandardNameStr { get; set; }
  175. /// <summary>
  176. /// 培养层次
  177. /// </summary>
  178. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  179. public int? EducationID { get; set; }
  180. /// <summary>
  181. /// 培养层次
  182. /// </summary>
  183. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  184. public string EducationName
  185. {
  186. get
  187. {
  188. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  189. }
  190. }
  191. /// <summary>
  192. /// 学习形式
  193. /// </summary>
  194. [DisplayName("学习形式")]
  195. public int? LearningformID { get; set; }
  196. /// <summary>
  197. /// 学习形式
  198. /// </summary>
  199. [DisplayName("学习形式")]
  200. public string LearningformName
  201. {
  202. get
  203. {
  204. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  205. }
  206. }
  207. /// <summary>
  208. /// 学制
  209. /// </summary>
  210. [DisplayName("学制")]
  211. public decimal? LearnSystem { get; set; }
  212. /// <summary>
  213. /// 入学学年学期ID
  214. /// </summary>
  215. [DisplayName("入学学年学期ID")]
  216. public Guid? StartSchoolyearID { get; set; }
  217. /// <summary>
  218. /// 入学学年学期对应的Value值
  219. /// </summary>
  220. [DisplayName("StartValue")]
  221. public int? StartValue { get; set; }
  222. /// <summary>
  223. /// 入学学年学期
  224. /// </summary>
  225. [DisplayName("入学学年学期")]
  226. public string StartSchoolyearCode { get; set; }
  227. /// <summary>
  228. /// 毕业学期
  229. /// </summary>
  230. [Required]
  231. [DisplayName("毕业学期")]
  232. public Guid? GraduateSchoolyearID { get; set; }
  233. /// <summary>
  234. /// 毕业学期对应的Value值
  235. /// </summary>
  236. [DisplayName("GraduateValue")]
  237. public int? GraduateValue { get; set; }
  238. /// <summary>
  239. /// 毕业学期
  240. /// </summary>
  241. [DisplayName("毕业学期")]
  242. public string GraduateSchoolyearCode { get; set; }
  243. /// <summary>
  244. /// 专业方向
  245. /// </summary>
  246. [DisplayName("专业方向")]
  247. public string Professional { get; set; }
  248. /// <summary>
  249. /// 班级个数
  250. /// </summary>
  251. [DisplayName("班级个数")]
  252. public int? ClassmajorCount { get; set; }
  253. /// <summary>
  254. /// 学生人数
  255. /// </summary>
  256. [DisplayName("学生人数")]
  257. public int? StudentCount { get; set; }
  258. /// <summary>
  259. /// 备注
  260. /// </summary>
  261. [DisplayName("备注")]
  262. public string Remark { get; set; }
  263. /// <summary>
  264. /// 错误信息(Excel导入)
  265. /// </summary>
  266. [DisplayName("未导入原因")]
  267. public string ErrorMessage { get; set; }
  268. /// <summary>
  269. /// 状态
  270. /// </summary>
  271. [DisplayName("状态")]
  272. public int? RecordStatus { get; set; }
  273. /// <summary>
  274. /// 创建人
  275. /// </summary>
  276. [DisplayName("创建人")]
  277. public Guid? CreateUserID { get; set; }
  278. /// <summary>
  279. /// 创建时间
  280. /// </summary>
  281. [DisplayName("创建时间")]
  282. public DateTime? CreateTime { get; set; }
  283. /// <summary>
  284. /// 修改人
  285. /// </summary>
  286. [DisplayName("修改人")]
  287. public Guid? ModifyUserID { get; set; }
  288. /// <summary>
  289. /// 修改时间
  290. /// </summary>
  291. [DisplayName("修改时间")]
  292. public DateTime? ModifyTime { get; set; }
  293. }
  294. }