ExamPersonControlView.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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.Cache;
  8. namespace EMIS.ViewModel
  9. {
  10. public class ExamPersonControlView
  11. {
  12. public Guid ExaminationBatchProjectPersonControlID { get; set; }
  13. [Required]
  14. [DisplayName("考试批次项目设置")]
  15. public Guid? ExaminationBatchProjectID { get; set; }
  16. [DisplayName("考试批次")]
  17. public Guid? ExaminationBatchID { get; set; }
  18. [Required]
  19. [DisplayName("项目收费标准")]
  20. public Guid? ExaminationProjectFeeID { get; set; }
  21. [DisplayName("用户ID")]
  22. public Guid? UserID { get; set; }
  23. [DisplayName("是否线上缴费")]
  24. public bool? IsOnlinePay { get; set; }
  25. [Required]
  26. [DisplayName("考试批次项目设置")]
  27. public string ExaminationBatchProject { get; set; }
  28. [DisplayName("项目收费标准")]
  29. public string ExaminationProjectFee { get; set; }
  30. public Guid? ExaminationProjectID { get; set; }
  31. [Required]
  32. [DisplayName("报名起始时间")]
  33. public Nullable<System.DateTime> StartDate { get; set; }
  34. [Required]
  35. [DisplayName("报名截止时间")]
  36. public DateTime? EndDate { get; set; }
  37. [Required]
  38. [DisplayName("学年学期")]
  39. public Guid? SchoolYearCode { get; set; }
  40. [DisplayName("项目类型")]
  41. public string ExaminationType { get; set; }
  42. [DisplayName("项目名称")]
  43. public string ProjectName { get; set; }
  44. public string IsOnlinePayName { get; set; }
  45. [DisplayName("项目类型")]
  46. public Guid? ExaminationTypeID { get; set; }
  47. public string Schoolyear { get; set; }
  48. /// <summary>
  49. /// 院系专业名称
  50. /// </summary>
  51. [DisplayName("院系专业名称")]
  52. public string FacultymajorName { get; set; }
  53. /// <summary>
  54. /// 院系所名称
  55. /// </summary>
  56. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  57. public string CollegeName { get; set; }
  58. /// <summary>
  59. /// 年级专业名称
  60. /// </summary>
  61. [DisplayName("年级专业名称")]
  62. public string GrademajorName { get; set; }
  63. public Guid? CollegeID { get; set; }
  64. public Guid? ClassmajorID { get; set; }
  65. /// <summary>
  66. /// 班级名称
  67. /// </summary>
  68. [DisplayName("班级名称")]
  69. public string ClassmajorName { get; set; }
  70. /// <summary>
  71. /// 专业名称
  72. /// </summary>
  73. [DisplayName("专业名称")]
  74. public string SpecialtyName { get; set; }
  75. /// <summary>
  76. /// 年级
  77. /// </summary>
  78. [DisplayName("年级")]
  79. public string Years { get; set; }
  80. /// <summary>
  81. /// 姓名
  82. /// </summary>
  83. [DisplayName("姓名")]
  84. public string UserName { get; set; }
  85. /// <summary>
  86. /// 性别
  87. /// </summary>
  88. [DisplayName("性别")]
  89. public int? Sex { get; set; }
  90. /// <summary>
  91. /// 性别
  92. /// </summary>
  93. [DisplayName("性别")]
  94. public string SexName
  95. {
  96. get
  97. {
  98. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  99. .Where(x => x.Value == Sex)
  100. .Select(x => x.Name).FirstOrDefault();
  101. }
  102. }
  103. /// <summary>
  104. /// 身份证号
  105. /// </summary>
  106. [DisplayName("身份证号")]
  107. public string IDNumber { get; set; }
  108. /// <summary>
  109. /// 标准专业
  110. /// </summary>
  111. [DisplayName("标准专业")]
  112. public int? StandardID { get; set; }
  113. /// <summary>
  114. /// 标准专业名称
  115. /// </summary>
  116. [DisplayName("专业名称")]
  117. public string StandardName
  118. {
  119. get
  120. {
  121. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  122. .Where(x => x.Value == StandardID)
  123. .Select(x => x.Name).FirstOrDefault();
  124. }
  125. }
  126. }
  127. }