ExaminationTypeView.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using EMIS.ViewModel.Cache;
  7. using System.ComponentModel;
  8. namespace EMIS.ViewModel.ExaminationApply
  9. {
  10. public class ExaminationTypeView
  11. {
  12. /// <summary>
  13. /// 考试类型ID
  14. /// </summary>
  15. public System.Guid ExaminationTypeID { get; set; }
  16. public System.Guid ExaminationBatchID { get; set; }
  17. /// <summary>
  18. /// 考试类型
  19. /// </summary>
  20. [Required]
  21. [DisplayName("考试类型")]
  22. public string Name { get; set; }
  23. /// <summary>
  24. /// 是否要求次数限定
  25. /// </summary>
  26. [DisplayName("是否要求次数限定")]
  27. public bool IsTimesLimit { get; set; }
  28. public string IsTimesLimitDesc
  29. {
  30. get
  31. {
  32. return IsTimesLimit ? "是" : "否";
  33. }
  34. }
  35. /// <summary>
  36. /// 状态
  37. /// </summary>
  38. public Nullable<int> RecordStatus { get; set; }
  39. public string RecordStatusDesc
  40. {
  41. get
  42. {
  43. return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_STATUS.ToString())
  44. .Where(x => x.Value == RecordStatus)
  45. .Select(x => x.Name).FirstOrDefault();
  46. }
  47. }
  48. /// <summary>
  49. /// 创建时间
  50. /// </summary>
  51. public Nullable<System.DateTime> CreateTime { get; set; }
  52. /// <summary>
  53. /// 创建人
  54. /// </summary>
  55. public Nullable<System.Guid> CreateUserID { get; set; }
  56. /// <summary>
  57. /// 修改人
  58. /// </summary>
  59. public Nullable<System.Guid> ModifyUserID { get; set; }
  60. /// <summary>
  61. /// 修改时间
  62. /// </summary>
  63. public Nullable<System.DateTime> ModifyTime { get; set; }
  64. }
  65. }