ClassmajorView.cs 9.9 KB

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