TeachTypeView.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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 TeachTypeView
  11. {
  12. /// <summary>
  13. /// 主键ID
  14. /// </summary>
  15. [DisplayName("主键ID")]
  16. public Guid ClassGroupingID { get; set; }
  17. /// <summary>
  18. /// 上课类型
  19. /// </summary>
  20. [Required]
  21. [DisplayName("上课类型")]
  22. public string ClassName { get; set; }
  23. /// <summary>
  24. /// 分班明细List
  25. /// </summary>
  26. [DisplayName("分班明细")]
  27. public List<int?> TeachingModeIDList { get; set; }
  28. /// <summary>
  29. /// 分班明细(可存在多个分班明细--用顿号隔开)
  30. /// </summary>
  31. [DisplayName("分班明细")]
  32. public string TeachingModeIDListName
  33. {
  34. get
  35. {
  36. if (TeachingModeIDList != null && TeachingModeIDList.Count() > 0)
  37. {
  38. return string.Join("、", TeachingModeIDList.Select(x => IdNameExt.GetDictionaryItem(DictionaryItem.CF_TeachingMode.ToString()).Where(w => w.Value == x).Select(w => w.Name).FirstOrDefault()));
  39. }
  40. else
  41. {
  42. return "无";
  43. }
  44. }
  45. }
  46. /// <summary>
  47. /// 备注
  48. /// </summary>
  49. [DisplayName("备注")]
  50. public string Remark { get; set; }
  51. /// <summary>
  52. /// 状态
  53. /// </summary>
  54. [DisplayName("状态")]
  55. public int? RecordStatus { get; set; }
  56. /// <summary>
  57. /// 创建人
  58. /// </summary>
  59. [DisplayName("创建人")]
  60. public Guid? CreateUserID { get; set; }
  61. /// <summary>
  62. /// 创建时间
  63. /// </summary>
  64. [DisplayName("创建时间")]
  65. public DateTime? CreateTime { get; set; }
  66. /// <summary>
  67. /// 修改人
  68. /// </summary>
  69. [DisplayName("修改人")]
  70. public Guid? ModifyUserID { get; set; }
  71. /// <summary>
  72. /// 修改时间
  73. /// </summary>
  74. [DisplayName("修改时间")]
  75. public DateTime? ModifyTime { get; set; }
  76. }
  77. }