MinorGraduationStandardView.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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.MinorGraduation.MinorGraduationSetting
  9. {
  10. public class MinorGraduationStandardView
  11. {
  12. /// <summary>
  13. /// 毕业标准主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid MinorGraduationStandardID { get; set; }
  17. /// <summary>
  18. /// 院系所ID
  19. /// </summary>
  20. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  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. [DisplayName("年级")]
  36. public int? YearID { get; set; }
  37. /// <summary>
  38. /// 专业ID(Value)
  39. /// </summary>
  40. [DisplayName("专业ID(Value)")]
  41. public int? StandardID { get; set; }
  42. /// <summary>
  43. /// 专业代码
  44. /// </summary>
  45. [DisplayName("专业代码")]
  46. public string StandardCode
  47. {
  48. get
  49. {
  50. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  51. .Where(x => x.Value == StandardID)
  52. .Select(x => x.Code).FirstOrDefault();
  53. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  54. }
  55. }
  56. /// <summary>
  57. /// 专业名称
  58. /// </summary>
  59. [DisplayName("专业名称")]
  60. public string StandardName
  61. {
  62. get
  63. {
  64. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  65. .Where(x => x.Value == StandardID)
  66. .Select(x => x.Name).FirstOrDefault();
  67. }
  68. }
  69. /// <summary>
  70. /// 培养层次
  71. /// </summary>
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  73. public int? EducationID { get; set; }
  74. /// <summary>
  75. /// 培养层次
  76. /// </summary>
  77. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  78. public string EducationName
  79. {
  80. get
  81. {
  82. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  83. .Where(x => x.Value == EducationID)
  84. .Select(x => x.Name).FirstOrDefault();
  85. }
  86. }
  87. /// <summary>
  88. /// 学习形式
  89. /// </summary>
  90. [DisplayName("学习形式")]
  91. public int? LearningformID { get; set; }
  92. /// <summary>
  93. /// 学习形式
  94. /// </summary>
  95. [DisplayName("学习形式")]
  96. public string LearningformName
  97. {
  98. get
  99. {
  100. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  101. .Where(x => x.Value == LearningformID)
  102. .Select(x => x.Name).FirstOrDefault();
  103. }
  104. }
  105. /// <summary>
  106. /// 学制
  107. /// </summary>
  108. [DisplayName("学制")]
  109. public decimal? LearnSystem { get; set; }
  110. /// <summary>
  111. /// 计划门数
  112. /// </summary>
  113. [DisplayName("计划门数")]
  114. public int? PlanCourseCount { get; set; }
  115. /// <summary>
  116. /// 计划学分
  117. /// </summary>
  118. [DisplayName("计划学分")]
  119. public decimal? SpecialtyCreditTotal { get; set; }
  120. /// <summary>
  121. /// 必修学分
  122. /// </summary>
  123. [DisplayName("必修学分")]
  124. public decimal? SpecialtyRequireCreditTotal { get; set; }
  125. /// <summary>
  126. /// 限选学分
  127. /// </summary>
  128. [DisplayName("限选学分")]
  129. public decimal? OptionalCreditTotal { get; set; }
  130. /// <summary>
  131. /// 任选学分
  132. /// </summary>
  133. [DisplayName("任选学分")]
  134. public decimal? FreeSelectionCreditTotal { get; set; }
  135. /// <summary>
  136. /// 执行门数(已修门数)
  137. /// </summary>
  138. [DisplayName("执行门数")]
  139. public int? ExecCourseCount { get; set; }
  140. /// <summary>
  141. /// 执行学分
  142. /// </summary>
  143. [DisplayName("执行学分")]
  144. public decimal? ExecutableCreditTotal { get; set; }
  145. /// <summary>
  146. /// 毕业门数
  147. /// </summary>
  148. [Required]
  149. [DisplayName("毕业门数")]
  150. [RegularExpression(@"^\d+$", ErrorMessage = "请输入整数")]
  151. public int? RequireCourseCount { get; set; }
  152. /// <summary>
  153. /// 毕业学分
  154. /// </summary>
  155. [Required]
  156. [DisplayName("毕业学分")]
  157. [DisplayFormat(DataFormatString = "{0:N1}")]
  158. [RegularExpression(@"^\d+(\.\d{1,1})?$", ErrorMessage = "请输整数或保留1位小数")]
  159. public decimal? GraduationCredit { get; set; }
  160. /// <summary>
  161. /// 人数
  162. /// </summary>
  163. [DisplayName("人数")]
  164. public int? StudentCount { get; set; }
  165. /// <summary>
  166. /// 状态
  167. /// </summary>
  168. [DisplayName("状态")]
  169. public int? RecordStatus { get; set; }
  170. /// <summary>
  171. /// 创建人
  172. /// </summary>
  173. [DisplayName("创建人")]
  174. public Guid? CreateUserID { get; set; }
  175. /// <summary>
  176. /// 创建时间
  177. /// </summary>
  178. [DisplayName("创建时间")]
  179. public DateTime? CreateTime { get; set; }
  180. /// <summary>
  181. /// 修改人
  182. /// </summary>
  183. [DisplayName("修改人")]
  184. public Guid? ModifyUserID { get; set; }
  185. /// <summary>
  186. /// 修改时间
  187. /// </summary>
  188. [DisplayName("修改时间")]
  189. public DateTime? ModifyTime { get; set; }
  190. }
  191. }