SelectCourseOpenControlSettingView.cs 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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.SelectCourse
  9. {
  10. public class SelectCourseOpenControlSettingView
  11. {
  12. public System.Guid SelectCourseOpenControlSettingID { get; set; }
  13. [Required]
  14. [DisplayName("学年学期")]
  15. public Guid? SchoolyearID { get; set; }
  16. /// <summary>
  17. /// 学年学期
  18. /// </summary>
  19. public string SchoolyearCode { get; set; }
  20. [Required]
  21. [DisplayName("年级专业")]
  22. public Nullable<System.Guid> GrademajorID { get; set; }
  23. /// <summary>
  24. /// 年级专业名称
  25. /// </summary>
  26. public string GrademajorName { get; set; }
  27. /// <summary>
  28. /// 年级专业代码
  29. /// </summary>
  30. public string GrademajorCode { get; set; }
  31. /// <summary>
  32. /// 年级
  33. /// </summary>
  34. public int? YearID { get; set; }
  35. /// <summary>
  36. /// 年级
  37. /// </summary>
  38. public string YearName { get; set; }
  39. /// <summary>
  40. /// 专业代码(国标码)
  41. /// </summary>
  42. public int? StandardID { get; set; }
  43. /// <summary>
  44. /// 专业代码
  45. /// </summary>
  46. [DisplayName("专业代码")]
  47. public string SpecialtyCode
  48. {
  49. get
  50. {
  51. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  52. .Where(x => x.Value == StandardID)
  53. .Select(x => x.Code).FirstOrDefault();
  54. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  55. }
  56. }
  57. /// <summary>
  58. /// 专业名称
  59. /// </summary>
  60. public string StandardDesc { get; set; }
  61. /// <summary>
  62. /// 学制
  63. /// </summary>
  64. [DisplayName("学制")]
  65. public decimal? LearnSystem { get; set; }
  66. /// <summary>
  67. /// 学习形式
  68. /// </summary>
  69. [Required]
  70. [DisplayName("学习形式")]
  71. public int? LearningformID { get; set; }
  72. /// <summary>
  73. /// 学习形式
  74. /// </summary>
  75. [DisplayName("学习形式")]
  76. public string LearningformName
  77. {
  78. get
  79. {
  80. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  81. .Where(x => x.Value == LearningformID)
  82. .Select(x => x.Name).FirstOrDefault();
  83. }
  84. }
  85. /// <summary>
  86. /// 培养层次
  87. /// </summary>
  88. [Required]
  89. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  90. public int? EducationID { get; set; }
  91. /// <summary>
  92. /// 培养层次
  93. /// </summary>
  94. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  95. public string EducationName
  96. {
  97. get
  98. {
  99. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  100. .Where(x => x.Value == EducationID)
  101. .Select(x => x.Name).FirstOrDefault();
  102. }
  103. }
  104. /// <summary>
  105. /// 院系所ID
  106. /// </summary>
  107. public Guid? CollegeID { get; set; }
  108. /// <summary>
  109. /// 院系所
  110. /// </summary>
  111. public string CollegeName { get; set; }
  112. /// <summary>
  113. /// 开始时间
  114. /// </summary>
  115. [Required]
  116. [DisplayName("开始时间")]
  117. public Nullable<System.DateTime> StartTime { get; set; }
  118. /// <summary>
  119. /// 结束时间
  120. /// </summary>
  121. [Required]
  122. [DisplayName("结束时间")]
  123. public Nullable<System.DateTime> EndTime { get; set; }
  124. /// <summary>
  125. /// 门数下限
  126. /// </summary>
  127. [Required]
  128. [DisplayName("门数下限")]
  129. public Nullable<int> MinSelectCount { get; set; }
  130. /// <summary>
  131. /// 门数上限
  132. /// </summary>
  133. [Required]
  134. [DisplayName("门数上限")]
  135. public Nullable<int> MaxSelectCount { get; set; }
  136. /// <summary>
  137. /// 学分下限
  138. /// </summary>
  139. [Required]
  140. [DisplayName("学分下限")]
  141. public Nullable<decimal> MinCredit { get; set; }
  142. /// <summary>
  143. /// 学分上限
  144. /// </summary>
  145. [Required]
  146. [DisplayName("学分上限")]
  147. public Nullable<decimal> MaxCredit { get; set; }
  148. /// <summary>
  149. /// 备注
  150. /// </summary>
  151. [DisplayName("备注")]
  152. public string Remark { get; set; }
  153. /// <summary>
  154. /// RecordStatus
  155. /// </summary>
  156. public Nullable<int> RecordStatus { get; set; }
  157. /// <summary>
  158. /// CreateTime
  159. /// </summary>
  160. public Nullable<System.DateTime> CreateTime { get; set; }
  161. /// <summary>
  162. /// CreateUserID
  163. /// </summary>
  164. public Nullable<System.Guid> CreateUserID { get; set; }
  165. /// <summary>
  166. /// ModifyUserID
  167. /// </summary>
  168. public Nullable<System.Guid> ModifyUserID { get; set; }
  169. /// <summary>
  170. /// ModifyTime
  171. /// </summary>
  172. public Nullable<System.DateTime> ModifyTime { get; set; }
  173. }
  174. }