RetakeExamsCategoryView.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.CacheManage;
  7. namespace EMIS.ViewModel.RetakeManage
  8. {
  9. public class RetakeExamsCategoryView
  10. {
  11. /// <summary>
  12. /// 重修预查考试性质ID
  13. /// </summary>
  14. [DisplayName("重修预查考试性质ID")]
  15. public Guid? RetakeExamsCatagoryID { get; set; }
  16. /// <summary>
  17. /// 考试性质
  18. /// </summary>
  19. [DisplayName("考试性质")]
  20. public int? ExamsCategoryID { get; set; }
  21. /// <summary>
  22. /// 考试性质
  23. /// </summary>
  24. [DisplayName("考试性质")]
  25. public string ExamsCategoryDesc
  26. {
  27. get
  28. {
  29. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
  30. .Where(x => x.Value == ExamsCategoryID)
  31. .Select(x => x.Name).FirstOrDefault();
  32. }
  33. }
  34. /// <summary>
  35. /// 是否选中
  36. /// </summary>
  37. [DisplayName("是否选中")]
  38. public bool IsSelected { get; set; }
  39. }
  40. }