RecruitSpecialtyClassView.cs 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.EnrollManage.SpecialtyManage
  9. {
  10. public class RecruitSpecialtyClassView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid RecruitSpecialtyID { get; set; }
  17. /// <summary>
  18. /// 院系所ID
  19. /// </summary>
  20. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  21. public Guid? CollegeID { get; set; }
  22. /// <summary>
  23. /// 院系所代码
  24. /// </summary>
  25. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  26. public string CollegeNo { get; set; }
  27. /// <summary>
  28. /// 院系所
  29. /// </summary>
  30. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  31. public string CollegeName { get; set; }
  32. /// <summary>
  33. /// 校区
  34. /// </summary>
  35. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  36. public Guid? CampusID { get; set; }
  37. /// <summary>
  38. /// 校区代码
  39. /// </summary>
  40. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  41. public string CampusCode { get; set; }
  42. /// <summary>
  43. /// 校区名称
  44. /// </summary>
  45. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  46. public string CampusName { get; set; }
  47. /// <summary>
  48. /// 年级
  49. /// </summary>
  50. [DisplayName("年级")]
  51. public int? GradeID { get; set; }
  52. /// <summary>
  53. /// 年级
  54. /// </summary>
  55. [DisplayName("年级")]
  56. public string GradeName
  57. {
  58. get
  59. {
  60. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == GradeID).Select(x => x.Name).FirstOrDefault();
  61. }
  62. }
  63. /// <summary>
  64. /// 专业信息ID
  65. /// </summary>
  66. [DisplayName("专业信息ID")]
  67. public Guid? SpecialtyID { get; set; }
  68. /// <summary>
  69. /// 专业ID(Value)
  70. /// </summary>
  71. [DisplayName("专业ID(Value)")]
  72. public int? StandardID { get; set; }
  73. /// <summary>
  74. /// 专业代码(6位专业代码)
  75. /// </summary>
  76. [DisplayName("专业代码")]
  77. public string Code
  78. {
  79. get
  80. {
  81. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Code).FirstOrDefault();
  82. if (inistStandardCode.Length > 6)
  83. {
  84. inistStandardCode = inistStandardCode.Substring(0, 6);
  85. }
  86. else
  87. {
  88. inistStandardCode = (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  89. }
  90. return inistStandardCode;
  91. }
  92. }
  93. /// <summary>
  94. /// 专业名称
  95. /// </summary>
  96. [DisplayName("专业名称")]
  97. public string Name
  98. {
  99. get
  100. {
  101. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString()).Where(x => x.Value == StandardID).Select(x => x.Name).FirstOrDefault();
  102. }
  103. }
  104. /// <summary>
  105. /// 培养层次
  106. /// </summary>
  107. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  108. public int? EducationID { get; set; }
  109. /// <summary>
  110. /// 培养层次
  111. /// </summary>
  112. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  113. public string EducationName
  114. {
  115. get
  116. {
  117. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString()).Where(x => x.Value == EducationID).Select(x => x.Name).FirstOrDefault();
  118. }
  119. }
  120. /// <summary>
  121. /// 学习形式
  122. /// </summary>
  123. [DisplayName("学习形式")]
  124. public int? LearningformID { get; set; }
  125. /// <summary>
  126. /// 学习形式
  127. /// </summary>
  128. [DisplayName("学习形式")]
  129. public string LearningformName
  130. {
  131. get
  132. {
  133. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString()).Where(x => x.Value == LearningformID).Select(x => x.Name).FirstOrDefault();
  134. }
  135. }
  136. /// <summary>
  137. /// 学制
  138. /// </summary>
  139. [DisplayName("学制")]
  140. public decimal? LearnSystem { get; set; }
  141. /// <summary>
  142. /// 院系专业ID
  143. /// </summary>
  144. [DisplayName("院系专业ID")]
  145. public Guid? FacultymajorID { get; set; }
  146. /// <summary>
  147. /// 院系专业编号
  148. /// </summary>
  149. [DisplayName("院系专业编号")]
  150. public string FacultymajorCode { get; set; }
  151. /// <summary>
  152. /// 院系专业名称
  153. /// </summary>
  154. [DisplayName("院系专业名称")]
  155. public string FacultymajorName { get; set; }
  156. /// <summary>
  157. /// 年级专业ID
  158. /// </summary>
  159. [DisplayName("年级专业ID")]
  160. public Guid? GrademajorID { get; set; }
  161. /// <summary>
  162. /// 年级专业编号
  163. /// </summary>
  164. [DisplayName("年级专业编号")]
  165. public string GrademajorCode { get; set; }
  166. /// <summary>
  167. /// 年级专业名称
  168. /// </summary>
  169. [DisplayName("年级专业名称")]
  170. public string GrademajorName { get; set; }
  171. /// <summary>
  172. /// 学期
  173. /// </summary>
  174. [DisplayName("学期")]
  175. public int? SemesterID { get; set; }
  176. /// <summary>
  177. /// 学期
  178. /// </summary>
  179. [DisplayName("学期")]
  180. public string SemesterName
  181. {
  182. get
  183. {
  184. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Grade.ToString()).Where(x => x.Value == SemesterID).Select(x => x.Name).FirstOrDefault();
  185. }
  186. }
  187. /// <summary>
  188. /// 班级信息ID
  189. /// </summary>
  190. [DisplayName("班级信息ID")]
  191. public Guid? ClassmajorID { get; set; }
  192. /// <summary>
  193. /// 班级编号
  194. /// </summary>
  195. [DisplayName("班级编号")]
  196. public string ClassmajorNo { get; set; }
  197. /// <summary>
  198. /// 班级名称
  199. /// </summary>
  200. [DisplayName("班级名称")]
  201. public string ClassmajorName { get; set; }
  202. /// <summary>
  203. /// 生成状态(专业班级)
  204. /// </summary>
  205. [DisplayName("生成状态")]
  206. public bool isGenerated { get; set; }
  207. /// <summary>
  208. /// 生成状态
  209. /// </summary>
  210. [DisplayName("生成状态")]
  211. public string isGeneratedName
  212. {
  213. get
  214. {
  215. return isGenerated == true ? "是" : "否";
  216. }
  217. }
  218. }
  219. }