StudentConductView.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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.StudentManage.StudentProfile
  9. {
  10. public class StudentConductView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid StudentConductID { get; set; }
  17. /// <summary>
  18. /// 学生信息ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("学生信息ID")]
  22. public Guid? UserID { get; set; }
  23. /// <summary>
  24. /// 学号
  25. /// </summary>
  26. [DisplayName("学号")]
  27. public string StudentNo { get; set; }
  28. /// <summary>
  29. /// 姓名
  30. /// </summary>
  31. [DisplayName("姓名")]
  32. public string Name { get; set; }
  33. /// <summary>
  34. /// 性别
  35. /// </summary>
  36. [DisplayName("性别")]
  37. public int? SexID { get; set; }
  38. /// <summary>
  39. /// 性别
  40. /// </summary>
  41. [DisplayName("性别")]
  42. public string SexName
  43. {
  44. get
  45. {
  46. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString()).Where(x => x.Value == SexID).Select(x => x.Name).FirstOrDefault();
  47. }
  48. }
  49. /// <summary>
  50. /// 出生日期
  51. /// </summary>
  52. [DisplayName("出生日期")]
  53. [DataType(DataType.Date)]
  54. public DateTime? BirthDate { get; set; }
  55. /// <summary>
  56. /// 民族
  57. /// </summary>
  58. [DisplayName("民族")]
  59. public int? NationID { get; set; }
  60. /// <summary>
  61. /// 民族
  62. /// </summary>
  63. [DisplayName("民族")]
  64. public string NationName
  65. {
  66. get
  67. {
  68. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Nation.ToString()).Where(x => x.Value == NationID).Select(x => x.Name).FirstOrDefault();
  69. }
  70. }
  71. /// <summary>
  72. /// 政治面貌
  73. /// </summary>
  74. [DisplayName("政治面貌")]
  75. public int? PoliticsID { get; set; }
  76. /// <summary>
  77. /// 政治面貌
  78. /// </summary>
  79. [DisplayName("政治面貌")]
  80. public string PoliticsName
  81. {
  82. get
  83. {
  84. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Politics.ToString()).Where(x => x.Value == PoliticsID).Select(x => x.Name).FirstOrDefault();
  85. }
  86. }
  87. /// <summary>
  88. /// 在校状态
  89. /// </summary>
  90. [DisplayName("在校状态")]
  91. public int? InSchoolStatusID { get; set; }
  92. /// <summary>
  93. /// 在校状态
  94. /// </summary>
  95. [DisplayName("在校状态")]
  96. public string InSchoolStatusName
  97. {
  98. get
  99. {
  100. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_InschoolStatus.ToString()).Where(x => x.Value == InSchoolStatusID).Select(x => x.Name).FirstOrDefault();
  101. }
  102. }
  103. /// <summary>
  104. /// 学籍状态
  105. /// </summary>
  106. [DisplayName("学籍状态")]
  107. public int? StudentStatus { get; set; }
  108. /// <summary>
  109. /// 学籍状态
  110. /// </summary>
  111. [DisplayName("学籍状态")]
  112. public string StudentStatusName
  113. {
  114. get
  115. {
  116. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_StudentStatus.ToString()).Where(x => x.Value == StudentStatus).Select(x => x.Name).FirstOrDefault();
  117. }
  118. }
  119. /// <summary>
  120. /// 年级
  121. /// </summary>
  122. [DisplayName("年级")]
  123. public int? GradeID { get; set; }
  124. /// <summary>
  125. /// 年级
  126. /// </summary>
  127. [DisplayName("年级")]
  128. public string GradeName
  129. {
  130. get
  131. {
  132. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  133. }
  134. }
  135. /// <summary>
  136. /// 专业ID(Value)
  137. /// </summary>
  138. [DisplayName("专业ID(Value)")]
  139. public int? StandardID { get; set; }
  140. /// <summary>
  141. /// 专业代码
  142. /// </summary>
  143. [DisplayName("专业代码")]
  144. public string StandardCode
  145. {
  146. get
  147. {
  148. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  149. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  150. }
  151. }
  152. /// <summary>
  153. /// 专业名称
  154. /// </summary>
  155. [DisplayName("专业名称")]
  156. public string StandardName
  157. {
  158. get
  159. {
  160. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  161. }
  162. }
  163. /// <summary>
  164. /// 培养层次
  165. /// </summary>
  166. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  167. public int? EducationID { get; set; }
  168. /// <summary>
  169. /// 培养层次
  170. /// </summary>
  171. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  172. public string EducationName
  173. {
  174. get
  175. {
  176. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  177. }
  178. }
  179. /// <summary>
  180. /// 学习形式
  181. /// </summary>
  182. [DisplayName("学习形式")]
  183. public int? LearningformID { get; set; }
  184. /// <summary>
  185. /// 学习形式
  186. /// </summary>
  187. [DisplayName("学习形式")]
  188. public string LearningformName
  189. {
  190. get
  191. {
  192. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  193. }
  194. }
  195. /// <summary>
  196. /// 学制
  197. /// </summary>
  198. [DisplayName("学制")]
  199. public decimal? LearnSystem { get; set; }
  200. /// <summary>
  201. /// 班序
  202. /// </summary>
  203. [DisplayName("班序")]
  204. public int? ClassNum { get; set; }
  205. /// <summary>
  206. /// 班级信息ID
  207. /// </summary>
  208. [DisplayName("班级信息ID")]
  209. public Guid? ClassmajorID { get; set; }
  210. /// <summary>
  211. /// 班级编号
  212. /// </summary>
  213. [DisplayName("班级编号")]
  214. public string ClassmajorNo { get; set; }
  215. /// <summary>
  216. /// 班级名称
  217. /// </summary>
  218. [DisplayName("班级名称")]
  219. public string ClassmajorName { get; set; }
  220. /// <summary>
  221. /// 年级专业ID
  222. /// </summary>
  223. [DisplayName("年级专业ID")]
  224. public Guid? GrademajorID { get; set; }
  225. /// <summary>
  226. /// 年级专业编号
  227. /// </summary>
  228. [DisplayName("年级专业编号")]
  229. public string GrademajorCode { get; set; }
  230. /// <summary>
  231. /// 年级专业名称
  232. /// </summary>
  233. [DisplayName("年级专业名称")]
  234. public string GrademajorName { get; set; }
  235. /// <summary>
  236. /// 院系专业ID
  237. /// </summary>
  238. [DisplayName("院系专业ID")]
  239. public Guid? FacultymajorID { get; set; }
  240. /// <summary>
  241. /// 院系专业编号
  242. /// </summary>
  243. [DisplayName("院系专业编号")]
  244. public string FacultymajorCode { get; set; }
  245. /// <summary>
  246. /// 院系专业名称
  247. /// </summary>
  248. [DisplayName("院系专业名称")]
  249. public string FacultymajorName { get; set; }
  250. /// <summary>
  251. /// 院系所ID
  252. /// </summary>
  253. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  254. public Guid? CollegeID { get; set; }
  255. /// <summary>
  256. /// 院系所代码
  257. /// </summary>
  258. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  259. public string CollegeNo { get; set; }
  260. /// <summary>
  261. /// 院系所
  262. /// </summary>
  263. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  264. public string CollegeName { get; set; }
  265. /// <summary>
  266. /// 校区ID
  267. /// </summary>
  268. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  269. public Guid? CampusID { get; set; }
  270. /// <summary>
  271. /// 校区代码
  272. /// </summary>
  273. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  274. public string CampusCode { get; set; }
  275. /// <summary>
  276. /// 校区名称
  277. /// </summary>
  278. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  279. public string CampusName { get; set; }
  280. /// <summary>
  281. /// 学年
  282. /// </summary>
  283. [Required]
  284. [DisplayName("学年")]
  285. public int? SchoolyearNumID { get; set; }
  286. /// <summary>
  287. /// 学年
  288. /// </summary>
  289. [DisplayName("学年")]
  290. public string SchoolyearNumName
  291. {
  292. get
  293. {
  294. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolyearNum.ToString()).Where(x => x.Value == SchoolyearNumID).Select(x => x.Name).FirstOrDefault();
  295. }
  296. }
  297. /// <summary>
  298. /// 评语
  299. /// </summary>
  300. [DisplayName("评语")]
  301. public string Comment { get; set; }
  302. /// <summary>
  303. /// 备注
  304. /// </summary>
  305. [DisplayName("备注")]
  306. public string Remark { get; set; }
  307. /// <summary>
  308. /// 状态
  309. /// </summary>
  310. [DisplayName("状态")]
  311. public int? RecordStatus { get; set; }
  312. /// <summary>
  313. /// 创建人
  314. /// </summary>
  315. [DisplayName("创建人")]
  316. public Guid? CreateUserID { get; set; }
  317. /// <summary>
  318. /// 创建时间
  319. /// </summary>
  320. [DisplayName("创建时间")]
  321. public DateTime? CreateTime { get; set; }
  322. /// <summary>
  323. /// 修改人
  324. /// </summary>
  325. [DisplayName("修改人")]
  326. public Guid? ModifyUserID { get; set; }
  327. /// <summary>
  328. /// 修改时间
  329. /// </summary>
  330. [DisplayName("修改时间")]
  331. public DateTime? ModifyTime { get; set; }
  332. }
  333. }