EducationSchedulingTeacherView.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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.EducationSchedule
  8. {
  9. public class EducationSchedulingTeacherView
  10. {
  11. [DisplayName("用户ID")]
  12. public Guid? UserID { get; set; }
  13. [DisplayName("用户名称")]
  14. public string Name { get; set; }
  15. [DisplayName("任务班ID")]
  16. public Guid? EducationMissionClassID { get; set; }
  17. [DisplayName("排课课表ID")]
  18. public Guid? EducationSchedulingID { get; set; }
  19. [DisplayName("任课方式")]
  20. public int? TeachingMethod { get; set; }
  21. ///<summary>
  22. ///上课周次
  23. /// </summary>
  24. public int? WeekNum { get; set; }
  25. ///<summary>
  26. ///星期
  27. /// </summary>
  28. public int? Weekday { get; set; }
  29. /// <summary>
  30. /// 星期
  31. /// </summary>
  32. public string WeekdayName
  33. {
  34. get
  35. {
  36. return IdNameExt.GetDictionaryItem(DictionaryItem.ES_WeekDay.ToString())
  37. .Where(x => x.Value == Weekday)
  38. .Select(x => x.Name).FirstOrDefault();
  39. }
  40. }
  41. ///<summary>
  42. ///上课时间
  43. /// </summary>
  44. public string TimesHoure { get; set; }
  45. /// <summary>
  46. /// 开始节次
  47. /// </summary>
  48. public int StarTimes { get; set; }
  49. ///<summary>
  50. ///上课节次
  51. /// </summary>
  52. public string Times { get; set; }
  53. }
  54. }