ClassroomScheduleSettingView.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.UniversityManage.ClassroomManage;
  6. namespace EMIS.ViewModel.SchedulingManage.SchedulingSettings
  7. {
  8. public class ClassroomScheduleSettingView
  9. {
  10. public Guid? ClassroomScheduleSettingID { get; set; }
  11. /// <summary>
  12. /// 教室
  13. /// </summary>
  14. public Guid? ClassroomID { get; set; }
  15. /// <summary>
  16. /// 教室代码
  17. /// </summary>
  18. public string ClassroomCode { get; set; }
  19. /// <summary>
  20. /// 教室名称
  21. /// </summary>
  22. public string ClassroomName { get; set; }
  23. /// <summary>
  24. /// 院系所
  25. /// </summary>
  26. public string CollegeName { get; set; }
  27. /// <summary>
  28. /// 教室状态
  29. /// </summary>
  30. public string ClassroomstateName { get; set; }
  31. /// <summary>
  32. /// 是否多媒体
  33. /// </summary>
  34. public string IsMediaName { get; set; }
  35. /// <summary>
  36. /// 总座位数
  37. /// </summary>
  38. public decimal? Totalseating { get; set; }
  39. /// <summary>
  40. /// 有效座位数
  41. /// </summary>
  42. public decimal? Effectiveseating { get; set; }
  43. /// <summary>
  44. /// 教室类型
  45. /// </summary>
  46. public HashSet<ClassroomTypeView> ClassroomTypes { get; set; }
  47. /// <summary>
  48. /// 教室类型
  49. /// </summary>
  50. public string ClassroomTypeNames
  51. {
  52. get
  53. {
  54. string name = string.Join(",", ClassroomTypes.Select(x => x.ClassroomTypeName).ToList());
  55. if (string.IsNullOrEmpty(name))
  56. {
  57. return "";
  58. }
  59. else
  60. {
  61. return name;
  62. }
  63. }
  64. }
  65. public Guid? CreateUserID { get; set; }
  66. public DateTime? CreateTime { get; set; }
  67. }
  68. }