ExaminationSubjectView.cs 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.Cache;
  7. namespace EMIS.ViewModel.Students
  8. {
  9. public class ExaminationApplyView
  10. {
  11. /// <summary>
  12. /// 考试项目
  13. /// </summary>
  14. public Guid? ExaminationProjectID { get; set; }
  15. public string ExaminationProjectName { get; set; }
  16. /// <summary>
  17. /// 学年学期
  18. /// </summary>
  19. public Guid? SchoolYearID { get; set; }
  20. public string SchoolYearCode { get; set; }
  21. /// <summary>
  22. /// 项目级别
  23. /// </summary>
  24. public int? ExaminationLevelID { get; set; }
  25. public string ExaminationLevelName {
  26. get {
  27. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationLevel.ToString())
  28. .Where(x => x.Value == ExaminationLevelID)
  29. .Select(x => x.Name).FirstOrDefault();
  30. }
  31. }
  32. /// <summary>
  33. /// 限定通过项目
  34. /// </summary>
  35. public Guid? PreposeProjectID { get; set; }
  36. public string PreposeProjectName { get; set; }
  37. /// <summary>
  38. /// 发证机关
  39. /// </summary>
  40. public int? IssuedByID { get; set; }
  41. public string IssuedByName
  42. {
  43. get
  44. {
  45. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_Issuer.ToString())
  46. .Where(x => x.Value == IssuedByID)
  47. .Select(x => x.Name).FirstOrDefault();
  48. }
  49. }
  50. /// <summary>
  51. /// 需交资料及注意事项(批次项目)
  52. /// </summary>
  53. public string Remark { get; set; }
  54. public string BatchRemark { get; set; }
  55. /// <summary>
  56. /// 考试批次
  57. /// </summary>
  58. public Guid? ExaminationBatchID { get; set; }
  59. public string ExaminationBatchName { get; set; }
  60. /// <summary>
  61. /// 考试类型ID
  62. /// </summary>
  63. [DisplayName("考试类型")]
  64. public Nullable<System.Guid> ExaminationTypeID { get; set; }
  65. /// <summary>
  66. /// 考试类型
  67. /// </summary>
  68. [DisplayName("考试类型")]
  69. public string ExaminationTypeName { get; set; }
  70. public Guid? ExaminationBatchProjectID { get; set; }
  71. public DateTime? StartDate { get; set; }
  72. public DateTime? EndDate { get; set; }
  73. public DateTime? ExaminationDate { get; set; }
  74. [DisplayName("培训情况")]
  75. public string Training { get; set; }
  76. [DisplayName("预开课时间")]
  77. public string TakeCourseTime { get; set; }
  78. /// <summary>
  79. /// 预考试时间
  80. /// </summary>
  81. public string SimulateTime { get; set; }
  82. /// <summary>
  83. /// 最大报名人数
  84. /// </summary>
  85. public int? MaxRegistCount { get; set; }
  86. public decimal? Cost { get; set; }
  87. public int RegisterNum { get; set; }
  88. public int BKCS { get; set; }
  89. [DisplayName("是否已报考")]
  90. public bool IsRister { get; set; }
  91. [DisplayName("是否已报考")]
  92. public string IsRisterName
  93. {
  94. get { return IsRister == true ? "是" : "否"; }
  95. }
  96. public int? SchoolYearNum { get; set; }
  97. [DisplayName("项目收费标准")]
  98. public Guid? ExaminationProjectFeeID { get; set; }
  99. [DisplayName("项目收费标准")]
  100. public string ExaminationProjectFeeName { get; set; }
  101. public string FeeTypeListStr { get; set; }
  102. }
  103. public class ExaminationRegisView
  104. {
  105. public Guid ExaminationRegistrationID { get; set; }
  106. /// <summary>
  107. /// 考试项目
  108. /// </summary>
  109. public Guid? ExaminationProjectID { get; set; }
  110. public string ExaminationProjectName { get; set; }
  111. /// <summary>
  112. /// 学年学期
  113. /// </summary>
  114. public Guid? SchoolYearID { get; set; }
  115. public string SchoolYearCode { get; set; }
  116. public DateTime? StartDate { get; set; }
  117. public DateTime? EndDate { get; set; }
  118. public DateTime? ExaminationDate { get; set; }
  119. /// <summary>
  120. /// 预考试时间
  121. /// </summary>
  122. public string SimulateTime { get; set; }
  123. [DisplayName("证件类型")]
  124. public int? CertificatesType { get; set; }
  125. [DisplayName("证件类型")]
  126. public string CertificatesTypeName
  127. {
  128. get
  129. {
  130. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  131. .Where(x => x.Value == CertificatesType)
  132. .Select(x => x.Name).FirstOrDefault();
  133. }
  134. }
  135. [DisplayName("证件号码")]
  136. public string IDNumber { get; set; }
  137. [DisplayName("项目收费标准对应收费项ID")]
  138. public Guid? ExaminationProjectFeeTypeID { get; set; }
  139. //[DisplayName("项目收费标准对应收费项")]
  140. //public string ExaminationProjectFeeTypeName { get; set; }
  141. [DisplayName("项目收费标准")]
  142. public Guid? ExaminationProjectFeeID { get; set; }
  143. [DisplayName("项目收费标准")]
  144. public string ExaminationProjectFeeName { get; set; }
  145. [DisplayName("收费项")]
  146. public int? FeeTypeID { get; set; }
  147. [DisplayName("收费项")]
  148. public string FeeTypeName
  149. {
  150. get
  151. {
  152. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationProjectFeeType.ToString())
  153. .Where(x => x.Value == FeeTypeID)
  154. .Select(x => x.Name).FirstOrDefault();
  155. }
  156. }
  157. [DisplayName("费用")]
  158. public decimal? Fee { get; set; }
  159. [DisplayName("报名项目(费用)")]
  160. public string FeeTypeAndFee
  161. {
  162. get
  163. {
  164. return FeeTypeName + "(" + Fee.ToString() + ")";
  165. }
  166. }
  167. /// <summary>
  168. /// 需交资料及注意事项(批次项目)
  169. /// </summary>
  170. public string Remark { get; set; }
  171. public string BatchRemark { get; set; }
  172. [DisplayName("缴费状态")]
  173. public int? RecordStatus { get; set; }
  174. [DisplayName("缴费状态")]
  175. public string RecordStatusStr
  176. {
  177. get
  178. {
  179. return IdNameExt.GetDictionaryItem(DictionaryItem.EX_ExaminationRegistrationStatus.ToString())
  180. .Where(x => x.Value == RecordStatus)
  181. .Select(x => x.Name).FirstOrDefault();
  182. }
  183. }
  184. public Dictionary<string, string> FeeTypeList { get; set; }
  185. public string FeeTypeListStr { get; set; }
  186. }
  187. }