RetakeStudentApplyView.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using EMIS.ViewModel.EducationManagement;
  7. using EMIS.ViewModel.CacheManage;
  8. namespace EMIS.ViewModel.RetakeManage
  9. {
  10. public class RetakeStudentApplyView : RetakeStudentView
  11. {
  12. public Guid RetakePlanStudentID { get; set; }
  13. public Guid? EducationMissionID { get; set; }
  14. public IEnumerable<RetakePlanStudentTeacherView> RetakePlanStudentTeacherView { get; set; }
  15. public string TeacherName
  16. {
  17. get
  18. {
  19. string name = string.Empty;
  20. if (RetakePlanStudentTeacherView != null)
  21. name = string.Join(",", RetakePlanStudentTeacherView.Select(s => s.Name));
  22. if (string.IsNullOrEmpty(name))
  23. {
  24. return "";
  25. }
  26. else
  27. {
  28. return name;
  29. }
  30. }
  31. }
  32. public int? TimeID { get; set; }
  33. public string CourseTimeDesc
  34. {
  35. get
  36. {
  37. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
  38. .Where(x => x.Value == TimeID)
  39. .Select(x => x.Name).FirstOrDefault();
  40. }
  41. }
  42. public Guid? CourseTimeID { get; set; }
  43. public int? ScheduledTimes { get; set; }
  44. public Guid? ClassroomID { get; set; }
  45. public string ClassroomName { get; set; }
  46. public int? RecordStatus { get; set; }
  47. public string RecordStatusDesc { get; set; }
  48. public bool IsCanApply { get; set; }
  49. }
  50. }