ExaminationTypeView.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.CacheManage;
  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. /// <summary>
  17. /// 考试类型
  18. /// </summary>
  19. [Required]
  20. [DisplayName("考试类型")]
  21. public string Name { get; set; }
  22. /// <summary>
  23. /// 是否要求次数限定
  24. /// </summary>
  25. [DisplayName("是否要求次数限定")]
  26. public bool IsTimesLimit { get; set; }
  27. public string IsTimesLimitDesc
  28. {
  29. get
  30. {
  31. return IsTimesLimit ? "是" : "否";
  32. }
  33. }
  34. /// <summary>
  35. /// 状态
  36. /// </summary>
  37. public Nullable<int> RecordStatus { get; set; }
  38. public string RecordStatusDesc
  39. {
  40. get
  41. {
  42. return IdNameExt.GetDictionaryItem(DictionaryItem.SYS_STATUS.ToString())
  43. .Where(x => x.Value == RecordStatus)
  44. .Select(x => x.Name).FirstOrDefault();
  45. }
  46. }
  47. /// <summary>
  48. /// 创建时间
  49. /// </summary>
  50. public Nullable<System.DateTime> CreateTime { get; set; }
  51. /// <summary>
  52. /// 创建人
  53. /// </summary>
  54. public Nullable<System.Guid> CreateUserID { get; set; }
  55. /// <summary>
  56. /// 修改人
  57. /// </summary>
  58. public Nullable<System.Guid> ModifyUserID { get; set; }
  59. /// <summary>
  60. /// 修改时间
  61. /// </summary>
  62. public Nullable<System.DateTime> ModifyTime { get; set; }
  63. }
  64. }