GraduationStandardView.cs 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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.GraduationManage.GraduationSetting
  9. {
  10. public class GraduationStandardView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid GraduationStandardID { get; set; }
  17. /// <summary>
  18. /// 年级专业ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("年级专业ID")]
  22. public Guid? GrademajorID { get; set; }
  23. /// <summary>
  24. /// 年级专业编号
  25. /// </summary>
  26. [DisplayName("年级专业编号")]
  27. public string GrademajorCode { get; set; }
  28. /// <summary>
  29. /// 年级专业名称
  30. /// </summary>
  31. [DisplayName("年级专业名称")]
  32. public string GrademajorName { get; set; }
  33. /// <summary>
  34. /// 院系专业ID
  35. /// </summary>
  36. [DisplayName("院系专业ID")]
  37. public Guid FacultymajorID { get; set; }
  38. /// <summary>
  39. /// 院系专业编号
  40. /// </summary>
  41. [DisplayName("院系专业编号")]
  42. public string FacultymajorNo { get; set; }
  43. /// <summary>
  44. /// 院系专业名称
  45. /// </summary>
  46. [DisplayName("院系专业名称")]
  47. public string FacultymajorName { get; set; }
  48. /// <summary>
  49. /// 院系所ID
  50. /// </summary>
  51. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeID")]
  52. public Guid? CollegeID { get; set; }
  53. /// <summary>
  54. /// 院系所代码
  55. /// </summary>
  56. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CollegeCode")]
  57. public string CollegeNo { get; set; }
  58. /// <summary>
  59. /// 院系所名称
  60. /// </summary>
  61. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  62. public string CollegeName { get; set; }
  63. /// <summary>
  64. /// 校区ID
  65. /// </summary>
  66. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "Campus")]
  67. public Guid? CampusID { get; set; }
  68. /// <summary>
  69. /// 校区代码
  70. /// </summary>
  71. [Required]
  72. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusCode")]
  73. public string CampusNo { get; set; }
  74. /// <summary>
  75. /// 校区名称
  76. /// </summary>
  77. [Required]
  78. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "CampusName")]
  79. public string CampusName { get; set; }
  80. /// <summary>
  81. /// 年级
  82. /// </summary>
  83. [DisplayName("年级")]
  84. public int? SchoolyearID { get; set; }
  85. /// <summary>
  86. /// 学期
  87. /// </summary>
  88. [DisplayName("学期")]
  89. public int? SchoolcodeID { get; set; }
  90. /// <summary>
  91. /// 学期
  92. /// </summary>
  93. [DisplayName("学期")]
  94. public string SchoolcodeName
  95. {
  96. get
  97. {
  98. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Semester.ToString()).Where(x => x.Value == SchoolcodeID).Select(x => x.Name).FirstOrDefault();
  99. }
  100. }
  101. /// <summary>
  102. /// 入学学年学期ID
  103. /// </summary>
  104. [DisplayName("入学学年学期ID")]
  105. public Guid? EnteringSchoolYearID { get; set; }
  106. /// <summary>
  107. /// 入学学年学期
  108. /// </summary>
  109. [DisplayName("入学学年学期")]
  110. public string EnteringSchoolYearCode { get; set; }
  111. /// <summary>
  112. /// 毕业学期ID
  113. /// </summary>
  114. [DisplayName("毕业学期ID")]
  115. public Guid? GraduatingSemesterID { get; set; }
  116. /// <summary>
  117. /// 毕业学期
  118. /// </summary>
  119. [DisplayName("毕业学期")]
  120. public string GraduatingSemesterCode { get; set; }
  121. /// <summary>
  122. /// 专业ID(Value)
  123. /// </summary>
  124. [DisplayName("专业ID(Value)")]
  125. public int? StandardID { get; set; }
  126. /// <summary>
  127. /// 专业代码
  128. /// </summary>
  129. [DisplayName("专业代码")]
  130. public string StandardCode
  131. {
  132. get
  133. {
  134. var inistStandardCode = IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  135. .Where(x => x.Value == StandardID)
  136. .Select(x => x.Code).FirstOrDefault();
  137. return (inistStandardCode != null ? inistStandardCode.PadLeft(6, '0') : "");
  138. }
  139. }
  140. /// <summary>
  141. /// 专业名称
  142. /// </summary>
  143. [DisplayName("专业名称")]
  144. public string StandardName
  145. {
  146. get
  147. {
  148. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  149. .Where(x => x.Value == StandardID)
  150. .Select(x => x.Name).FirstOrDefault();
  151. }
  152. }
  153. /// <summary>
  154. /// 培养层次
  155. /// </summary>
  156. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationID")]
  157. public int? EducationID { get; set; }
  158. /// <summary>
  159. /// 培养层次
  160. /// </summary>
  161. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "EducationName")]
  162. public string EducationName
  163. {
  164. get
  165. {
  166. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Education.ToString())
  167. .Where(x => x.Value == EducationID)
  168. .Select(x => x.Name).FirstOrDefault();
  169. }
  170. }
  171. /// <summary>
  172. /// 学习形式
  173. /// </summary>
  174. [DisplayName("学习形式")]
  175. public int? LearningformID { get; set; }
  176. /// <summary>
  177. /// 学习形式
  178. /// </summary>
  179. [DisplayName("学习形式")]
  180. public string LearningformName
  181. {
  182. get
  183. {
  184. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Learningform.ToString())
  185. .Where(x => x.Value == LearningformID)
  186. .Select(x => x.Name).FirstOrDefault();
  187. }
  188. }
  189. /// <summary>
  190. /// 学制
  191. /// </summary>
  192. [DisplayName("学制")]
  193. public decimal? LearnSystem { get; set; }
  194. /// <summary>
  195. /// 计划门数
  196. /// </summary>
  197. [DisplayName("计划门数")]
  198. public int? PlanCourseCount { get; set; }
  199. /// <summary>
  200. /// 必修学分
  201. /// </summary>
  202. [DisplayName("必修学分")]
  203. public decimal? SpecialtyRequireCreditTotal { get; set; }
  204. /// <summary>
  205. /// 限选学分
  206. /// </summary>
  207. [DisplayName("限选学分")]
  208. public decimal? OptionalCreditTotal { get; set; }
  209. /// <summary>
  210. /// 任选学分
  211. /// </summary>
  212. [DisplayName("任选学分")]
  213. public decimal? FreeSelectionCreditTotal { get; set; }
  214. /// <summary>
  215. /// 计划学分
  216. /// </summary>
  217. [DisplayName("计划学分")]
  218. public decimal? SpecialtyCreditTotal { get; set; }
  219. /// <summary>
  220. /// 执行门数
  221. /// </summary>
  222. [DisplayName("执行门数")]
  223. public int? ExecCourseCount { get; set; }
  224. /// <summary>
  225. /// 执行学分
  226. /// </summary>
  227. [DisplayName("执行学分")]
  228. public decimal? ExecutableCreditTotal { get; set; }
  229. /// <summary>
  230. /// 毕业门数
  231. /// </summary>
  232. [Required]
  233. [DisplayName("毕业门数")]
  234. [RegularExpression(@"^\d+$", ErrorMessage = "请输入整数")]
  235. public int? RequireCourseCount { get; set; }
  236. /// <summary>
  237. /// 毕业学分
  238. /// </summary>
  239. [Required]
  240. [DisplayName("毕业学分")]
  241. [DisplayFormat(DataFormatString = "{0:N1}")]
  242. [RegularExpression(@"^\d+(\.\d{1,1})?$", ErrorMessage = "请输整数或保留1位小数")]
  243. public decimal? GraduationCredit { get; set; }
  244. /// <summary>
  245. /// 人数
  246. /// </summary>
  247. [DisplayName("人数")]
  248. public int? StudentCount { get; set; }
  249. /// <summary>
  250. /// 状态
  251. /// </summary>
  252. [DisplayName("状态")]
  253. public int? RecordStatus { get; set; }
  254. /// <summary>
  255. /// 创建人
  256. /// </summary>
  257. [DisplayName("创建人")]
  258. public Guid? CreateUserID { get; set; }
  259. /// <summary>
  260. /// 创建时间
  261. /// </summary>
  262. [DisplayName("创建时间")]
  263. public DateTime? CreateTime { get; set; }
  264. /// <summary>
  265. /// 修改人
  266. /// </summary>
  267. [DisplayName("修改人")]
  268. public Guid? ModifyUserID { get; set; }
  269. /// <summary>
  270. /// 修改时间
  271. /// </summary>
  272. [DisplayName("修改时间")]
  273. public DateTime? ModifyTime { get; set; }
  274. }
  275. }