MinorApplyView.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.MinorManage.MinorApply
  9. {
  10. public class MinorApplyView
  11. {
  12. /// <summary>
  13. /// 辅修专业学生报名ID
  14. /// </summary>
  15. [DisplayName("辅修专业学生报名ID")]
  16. public Guid StudentMinorRegistID { get; set; }
  17. /// <summary>
  18. /// 学生ID
  19. /// </summary>
  20. [DisplayName("学生ID")]
  21. public Guid? UserID { get; set; }
  22. /// <summary>
  23. /// 学号
  24. /// </summary>
  25. [DisplayName("学号")]
  26. public string LoginID { get; set; }
  27. /// <summary>
  28. /// 学生姓名
  29. /// </summary>
  30. [DisplayName("学生姓名")]
  31. public string UserName { get; set; }
  32. /// <summary>
  33. /// 学年学期ID
  34. /// </summary>
  35. [DisplayName("学年学期ID")]
  36. public Guid? SchoolyearID { get; set; }
  37. /// <summary>
  38. /// 学年学期
  39. /// </summary>
  40. [DisplayName("学年学期")]
  41. public string SchoolyearCode { get; set; }
  42. /// <summary>
  43. /// 年级
  44. /// </summary>
  45. [DisplayName("年级")]
  46. public int? GradeYearID { get; set; }
  47. /// <summary>
  48. /// 年级
  49. /// </summary>
  50. [DisplayName("年级")]
  51. public string Grade
  52. {
  53. get
  54. {
  55. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeYearID).Select(x => x.Name).FirstOrDefault();
  56. }
  57. }
  58. /// <summary>
  59. /// 年级专业ID
  60. /// </summary>
  61. [DisplayName("年级专业ID")]
  62. public Guid? GrademajorID { get; set; }
  63. /// <summary>
  64. /// 年级专业代码
  65. /// </summary>
  66. [DisplayName("年级专业代码")]
  67. public string GrademajorCode { get; set; }
  68. /// <summary>
  69. /// 年级专业名称
  70. /// </summary>
  71. [DisplayName("年级专业名称")]
  72. public string GrademajorName { get; set; }
  73. /// <summary>
  74. /// 班级名称
  75. /// </summary>
  76. [Required]
  77. [DisplayName("班级名称")]
  78. public Guid? ClassmajorID { get; set; }
  79. /// <summary>
  80. /// 班级编号
  81. /// </summary>
  82. [DisplayName("班级编号")]
  83. public string ClassmajorCode { get; set; }
  84. /// <summary>
  85. /// 班级名称
  86. /// </summary>
  87. [DisplayName("班级名称")]
  88. public string ClassmajorName { get; set; }
  89. /// <summary>
  90. /// 辅修专业ID
  91. /// </summary>
  92. [DisplayName("辅修专业ID")]
  93. public Guid? GrademinorID { get; set; }
  94. /// <summary>
  95. /// 辅修专业代码
  96. /// </summary>
  97. [DisplayName("辅修专业代码")]
  98. public string GrademinorCode { get; set; }
  99. /// <summary>
  100. /// 辅修专业名称
  101. /// </summary>
  102. [DisplayName("辅修专业名称")]
  103. public string GrademinorName { get; set; }
  104. /// <summary>
  105. /// 学院ID
  106. /// </summary>
  107. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  108. public Guid? CollegeID { get; set; }
  109. /// <summary>
  110. /// 学院代码
  111. /// </summary>
  112. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  113. public string CollegeCode { get; set; }
  114. /// <summary>
  115. /// 学院名称
  116. /// </summary>
  117. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  118. public string CollegeName { get; set; }
  119. /// <summary>
  120. /// 开放状态
  121. /// </summary>
  122. [DisplayName("开放状态")]
  123. public int? OpenStatus { get; set; }
  124. /// <summary>
  125. /// 开放状态
  126. /// </summary>
  127. [DisplayName("开放状态")]
  128. public string OpenStatusStr
  129. {
  130. get
  131. {
  132. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_GrademinorStatus.ToString())
  133. .Where(x => x.Value == OpenStatus)
  134. .Select(x => x.Name).FirstOrDefault();
  135. }
  136. }
  137. /// <summary>
  138. /// 状态
  139. /// </summary>
  140. [DisplayName("状态")]
  141. public int? RecordStatus { get; set; }
  142. /// <summary>
  143. /// 状态
  144. /// </summary>
  145. [DisplayName("状态")]
  146. public string RecordStatusStr { get; set; }
  147. /// <summary>
  148. /// 处理动作
  149. /// </summary>
  150. [Required]
  151. [DisplayName("处理动作")]
  152. public string Action { get; set; }
  153. /// <summary>
  154. /// 处理意见
  155. /// </summary>
  156. [DisplayName("处理意见")]
  157. public string Comment { get; set; }
  158. }
  159. }