LevelSettingView.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. namespace EMIS.ViewModel.ExamManage
  8. {
  9. public class LevelSettingView
  10. {
  11. [DisplayName("等级设置ID")]
  12. public Guid? LevelSettingID { get; set; }
  13. [Required]
  14. [DisplayName("考试项目ID")]
  15. public Guid? ExaminationProjectID { get; set; }
  16. [DisplayName("项目名称")]
  17. public string ExaminationProjectName { get; set; }
  18. [Required]
  19. [DisplayName("认定结果名称")]
  20. public string LevelName { get; set; }
  21. [DisplayName("是否通过")]
  22. public bool? IsPassed { get; set; }
  23. public string IsPassStr {
  24. get {
  25. return IsPassed != true ? "否" : "是";
  26. }
  27. }
  28. [DisplayName("是否及格线")]
  29. public bool IsPassedEdit { get; set; }
  30. [DisplayName("是否及格线")]
  31. public bool? IsPassLine { get; set; }
  32. public string IsPassLineStr
  33. {
  34. get
  35. {
  36. return IsPassLine != true ? "否" : "是";
  37. }
  38. }
  39. [DisplayName("是否及格线")]
  40. public bool IsPassLineEdit { get; set; }
  41. [DisplayName("状态")]
  42. public int? RecordStatus { get; set; }
  43. [Required]
  44. [DisplayName("考试类型")]
  45. public Guid? ExaminationTypeID { get; set; }
  46. [DisplayName("考试类型")]
  47. public string ExaminationTypeName { get; set; }
  48. //public ExaminationProjectView ExaminationProjectView { get; set; }
  49. }
  50. }