CerificateView.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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
  9. {
  10. public class CerificateView
  11. {
  12. public Guid? CertisfierDistributeID { get; set; }
  13. public Guid ProjectScoreID { get; set; }
  14. [DisplayName("用户ID")]
  15. public Guid? UserID { get; set; }
  16. public string ErrorMessage { get; set; }
  17. [Required]
  18. [DisplayName("学年学期")]
  19. public Guid? SchoolYearCode { get; set; }
  20. [DisplayName("项目名称")]
  21. public string ProjectName { get; set; }
  22. public Guid? ExaminationProjectID { get; set; }
  23. public string Schoolyear { get; set; }
  24. public string ClassName { get; set; }
  25. public string DistributeStateName {
  26. get
  27. {
  28. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_CertisfierDistributeStatus.ToString())
  29. .Where(x => x.Value == RecordStatus)
  30. .Select(x => x.Name).FirstOrDefault();
  31. }
  32. }
  33. /// <summary>
  34. /// 校区
  35. /// </summary>
  36. public int? SchoolAreaID { get; set; }
  37. public string SchoolAreaName
  38. {
  39. get
  40. {
  41. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_SchoolArea.ToString())
  42. .Where(x => x.Value == SchoolAreaID)
  43. .Select(x => x.Name).FirstOrDefault();
  44. }
  45. }
  46. /// <summary>
  47. /// 院系所名称
  48. /// </summary>
  49. [Display(ResourceType = typeof(EMIS.Resources.DataAnnotations.Label), Name = "College")]
  50. public string CollegeName { get; set; }
  51. /// <summary>
  52. /// 年级专业名称
  53. /// </summary>
  54. [DisplayName("年级专业名称")]
  55. public string GrademajorName { get; set; }
  56. public Guid? CollegeID { get; set; }
  57. public Guid? ClassmajorID { get; set; }
  58. /// <summary>
  59. /// 班级名称
  60. /// </summary>
  61. [DisplayName("班级名称")]
  62. public string ClassmajorName { get; set; }
  63. /// <summary>
  64. /// 专业名称
  65. /// </summary>
  66. [DisplayName("专业名称")]
  67. public string SpecialtyName { get; set; }
  68. /// <summary>
  69. /// 年级
  70. /// </summary>
  71. [DisplayName("年级")]
  72. public string Years { get; set; }
  73. /// <summary>
  74. /// 姓名
  75. /// </summary>
  76. [DisplayName("姓名")]
  77. public string UserName { get; set; }
  78. /// <summary>
  79. /// 性别
  80. /// </summary>
  81. [DisplayName("性别")]
  82. public int? Sex { get; set; }
  83. /// <summary>
  84. /// 性别
  85. /// </summary>
  86. [DisplayName("性别")]
  87. public string SexName
  88. {
  89. get
  90. {
  91. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Sex.ToString())
  92. .Where(x => x.Value == Sex)
  93. .Select(x => x.Name).FirstOrDefault();
  94. }
  95. }
  96. /// <summary>
  97. /// 身份证号
  98. /// </summary>
  99. [DisplayName("身份证号")]
  100. public string IDNumber { get; set; }
  101. /// <summary>
  102. /// 标准专业
  103. /// </summary>
  104. [DisplayName("标准专业")]
  105. public int? StandardID { get; set; }
  106. /// <summary>
  107. /// 标准专业名称
  108. /// </summary>
  109. [DisplayName("专业名称")]
  110. public string StandardName
  111. {
  112. get
  113. {
  114. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_Standard.ToString())
  115. .Where(x => x.Value == StandardID)
  116. .Select(x => x.Name).FirstOrDefault();
  117. }
  118. }
  119. /// <summary>
  120. /// 证件名称
  121. /// </summary>
  122. [DisplayName("证件名称")]
  123. public string CertificatesTypeName
  124. {
  125. get
  126. {
  127. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_CertificatesType.ToString())
  128. .Where(x => x.Value == CertificatesType)
  129. .Select(x => x.Name).FirstOrDefault();
  130. }
  131. }
  132. /// <summary>
  133. /// 证件类型
  134. /// </summary>
  135. [Required]
  136. [DisplayName("证件类型")]
  137. public int? CertificatesType { get; set; }
  138. [DisplayName("领取方式")]
  139. public int? DistributeTypeID { get; set; }
  140. [DisplayName("领取方式")]
  141. public string DistributeTypeName
  142. {
  143. get
  144. {
  145. return IdNameExt.GetDictionaryItem(DictionaryItem.ER_CertisfierDistributeType.ToString())
  146. .Where(x => x.Value == DistributeTypeID)
  147. .Select(x => x.Name).FirstOrDefault();
  148. }
  149. }
  150. [DisplayName("领取单号")]
  151. public string No { get; set; }
  152. [DisplayName("领取人")]
  153. public string Distributer { get; set; }
  154. [DisplayName("领取时间")]
  155. public Nullable<DateTime> DistributeTime { get; set; }
  156. [DisplayName("委托领取人")]
  157. public string EntrustDistributer { get; set; }
  158. //[Required]
  159. [DisplayName("联系人")]
  160. public string ContactPerson { get; set; }
  161. //[Required]
  162. //[RegularExpression(@"^[0-9]{11}$", ErrorMessage = "只能输入数字和英文字母")]
  163. [DisplayName("邮寄联系电话")]
  164. //[RegularExpression(@"^[1][0-9]{10}$", ErrorMessage = "联系电话必须是11位数字")]
  165. public string MailContactNo { get; set; }
  166. //[Required]
  167. //[RegularExpression(@"^[0-9]{11}$", ErrorMessage = "只能输入数字和英文字母")]
  168. [DisplayName("联系电话")]
  169. //[RegularExpression(@"^[1][0-9]{10}$", ErrorMessage = "联系电话必须是11位数字")]
  170. public string ContactNo { get; set; }
  171. //[Required]
  172. [DisplayName("联系人证件")]
  173. public string ContactIDNo { get; set; }
  174. //[Required]
  175. [DisplayName("邮寄地址")]
  176. public string Address { get; set; }
  177. [DisplayName("邮寄单号")]
  178. public string DeliveryNoteNo { get; set; }
  179. public int? RecordStatus { get; set; }
  180. public string SaveNo { get; set; }
  181. }
  182. }