TeachTypeSettingView.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.CultureplanManage.CourseMaterial
  9. {
  10. public class TeachTypeSettingView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid ClassGroupingSettingsID { get; set; }
  17. /// <summary>
  18. /// 上课类型ID
  19. /// </summary>
  20. [Required]
  21. [DisplayName("上课类型ID")]
  22. public Guid? ClassGroupingID { get; set; }
  23. /// <summary>
  24. /// 上课类型
  25. /// </summary>
  26. [DisplayName("上课类型")]
  27. public string ClassName { get; set; }
  28. /// <summary>
  29. /// 授课方式
  30. /// </summary>
  31. [DisplayName("授课方式")]
  32. public int? TeachingModeID { get; set; }
  33. /// <summary>
  34. /// 授课方式
  35. /// </summary>
  36. [DisplayName("授课方式")]
  37. public string TeachingModeName
  38. {
  39. get
  40. {
  41. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString())
  42. .Where(x => x.Value == TeachingModeID)
  43. .Select(x => x.Name).FirstOrDefault();
  44. }
  45. }
  46. /// <summary>
  47. /// 是否分班
  48. /// </summary>
  49. [DisplayName("是否分班")]
  50. public bool IsDivide { get; set; }
  51. /// <summary>
  52. /// 是否分班
  53. /// </summary>
  54. [DisplayName("是否分班")]
  55. public string IsDivideName
  56. {
  57. get
  58. {
  59. return IsDivide == true ? "是" : "否";
  60. }
  61. }
  62. /// <summary>
  63. /// 是否显示
  64. /// </summary>
  65. [DisplayName("是否显示")]
  66. public bool IsDisplay { get; set; }
  67. /// <summary>
  68. /// 是否显示
  69. /// </summary>
  70. [DisplayName("是否显示")]
  71. public string IsDisplayName
  72. {
  73. get
  74. {
  75. return IsDisplay == true ? "是" : "否";
  76. }
  77. }
  78. /// <summary>
  79. /// 状态
  80. /// </summary>
  81. [DisplayName("状态")]
  82. public int? RecordStatus { get; set; }
  83. /// <summary>
  84. /// 创建人
  85. /// </summary>
  86. [DisplayName("创建人")]
  87. public Guid? CreateUserID { get; set; }
  88. /// <summary>
  89. /// 创建时间
  90. /// </summary>
  91. [DisplayName("创建时间")]
  92. public DateTime? CreateTime { get; set; }
  93. /// <summary>
  94. /// 修改人
  95. /// </summary>
  96. [DisplayName("修改人")]
  97. public Guid? ModifyUserID { get; set; }
  98. /// <summary>
  99. /// 修改时间
  100. /// </summary>
  101. [DisplayName("修改时间")]
  102. public DateTime? ModifyTime { get; set; }
  103. }
  104. }