ExaminationSubjectView.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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.Cache;
  8. namespace EMIS.ViewModel.ExaminationApply
  9. {
  10. public class ExaminationSubjectView
  11. {
  12. /// <summary>
  13. /// 考试科目ID
  14. /// </summary>
  15. [DisplayName("考试科目ID")]
  16. public System.Guid ExaminationSubjectID { get; set; }
  17. /// <summary>
  18. /// 考试科目
  19. /// </summary>
  20. [Required]
  21. [DisplayName("考试科目")]
  22. public string Name { get; set; }
  23. /// <summary>
  24. /// 学年学期ID
  25. /// </summary>
  26. [Required]
  27. [DisplayName("学年学期")]
  28. public Nullable<System.Guid> SchoolyearID { get; set; }
  29. /// <summary>
  30. /// 学年学期
  31. /// </summary>
  32. [DisplayName("学年学期")]
  33. public string SchoolyearCode { get; set; }
  34. /// <summary>
  35. /// 考试类型ID
  36. /// </summary>
  37. [Required]
  38. [DisplayName("考试类型")]
  39. public Nullable<System.Guid> ExaminationTypeID { get; set; }
  40. /// <summary>
  41. /// 考试类型
  42. /// </summary>
  43. [DisplayName("考试类型")]
  44. public string ExaminationTypeName { get; set; }
  45. /// <summary>
  46. /// 考试类别ID
  47. /// </summary>
  48. [Required]
  49. [DisplayName("考试类别")]
  50. public Nullable<int> ExaminationFormID { get; set; }
  51. /// <summary>
  52. /// 考试类别
  53. /// </summary>
  54. [DisplayName("考试类别")]
  55. public string ExaminationFormName
  56. {
  57. get
  58. {
  59. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString())
  60. .Where(x => x.Value == ExaminationFormID)
  61. .Select(x => x.Name).FirstOrDefault();
  62. }
  63. }
  64. /// <summary>
  65. /// 考试性质ID
  66. /// </summary>
  67. [Required]
  68. [DisplayName("考试性质ID")]
  69. public Nullable<int> ExaminationFormsID { get; set; }
  70. /// <summary>
  71. /// 考试性质
  72. /// </summary>
  73. [DisplayName("考试性质")]
  74. public string ExaminationFormNames
  75. {
  76. get
  77. {
  78. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationForm.ToString())
  79. .Where(x => x.Value == ExaminationFormsID)
  80. .Select(x => x.Name).FirstOrDefault();
  81. }
  82. }
  83. /// <summary>
  84. /// 要求通过科目ID
  85. /// </summary>
  86. [DisplayName("要求通过科目")]
  87. public Nullable<System.Guid> PreposeSubjectID { get; set; }
  88. /// <summary>
  89. /// 要求通过科目
  90. /// </summary>
  91. [DisplayName("要求通过科目")]
  92. public string PreposeSubjectName { get; set; }
  93. /// <summary>
  94. /// 通过科目最低成绩
  95. /// </summary>
  96. [DisplayName("通过科目最低成绩")]
  97. public Nullable<decimal> PreposeScoreLimit { get; set; }
  98. /// <summary>
  99. /// 考试日期
  100. /// </summary>
  101. [Required]
  102. [DisplayName("考试日期")]
  103. public Nullable<System.DateTime> ExaminationDate { get; set; }
  104. /// <summary>
  105. /// 最大报名人数
  106. /// </summary>
  107. [Required]
  108. [DisplayName("最大报名人数")]
  109. [RegularExpression(@"^[1-9]\d*$", ErrorMessage = "必须填写正整数")]
  110. public Nullable<int> PeopleNumLimit { get; set; }
  111. /// <summary>
  112. /// 报名费
  113. /// </summary>
  114. [DisplayName("报名费")]
  115. public Nullable<decimal> Cost { get; set; }
  116. /// <summary>
  117. /// 考试说明
  118. /// </summary>
  119. [Required]
  120. [DisplayName("考试说明")]
  121. public string Remark { get; set; }
  122. /// <summary>
  123. /// RecordStatus
  124. /// </summary>
  125. public Nullable<int> RecordStatus { get; set; }
  126. /// <summary>
  127. /// CreateTime
  128. /// </summary>
  129. public Nullable<System.DateTime> CreateTime { get; set; }
  130. /// <summary>
  131. /// CreateUserID
  132. /// </summary>
  133. public Nullable<System.Guid> CreateUserID { get; set; }
  134. /// <summary>
  135. /// ModifyUserID
  136. /// </summary>
  137. public Nullable<System.Guid> ModifyUserID { get; set; }
  138. /// <summary>
  139. /// ModifyTime
  140. /// </summary>
  141. public Nullable<System.DateTime> ModifyTime { get; set; }
  142. }
  143. }