RetakeStudentApproveView.cs 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EMIS.ViewModel.CacheManage;
  6. using EMIS.Entities;
  7. namespace EMIS.ViewModel.RetakeManage
  8. {
  9. public class RetakeStudentApproveView : RetakeStudentView
  10. {
  11. public Guid RetakePlanStudentID { get; set; }
  12. public string SchoolyearCode { get; set; }
  13. public Guid? EducationMissionID { get; set; }
  14. public string LoginID { get; set; }
  15. public string UserName { get; set; }
  16. public Guid? ClassmajorID { get; set; }
  17. public string ClassmajorName { get; set; }
  18. public Guid? CollegeID { get; set; }
  19. public string CollegeNo { get; set; }
  20. public string CollegeName { get; set; }
  21. public string ClassName { get; set; }
  22. public IEnumerable<Sys_User> RetakePlanStudentTeacherView { get; set; }
  23. public string TeacherName
  24. {
  25. get
  26. {
  27. string name = string.Empty;
  28. if (RetakePlanStudentTeacherView != null)
  29. name = string.Join(",", RetakePlanStudentTeacherView.Select(s => s.Name));
  30. if (string.IsNullOrEmpty(name))
  31. {
  32. return "";
  33. }
  34. else
  35. {
  36. return name;
  37. }
  38. }
  39. }
  40. public IEnumerable<DateTime?> ScheduleDate { get; set; }
  41. public string ScheduleDateString
  42. {
  43. get
  44. {
  45. return string.Join(",", (from d in ScheduleDate
  46. group d by d.Value.Month into g
  47. select g.Key.ToString() + "月" + string.Join("、", g.Select(x => x.Value.Day.ToString()))));
  48. }
  49. }
  50. public int? TimeID { get; set; }
  51. public string CourseTimeDesc
  52. {
  53. get
  54. {
  55. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_TimesSegment.ToString())
  56. .Where(x => x.Value == TimeID)
  57. .Select(x => x.Name).FirstOrDefault();
  58. }
  59. }
  60. public Guid? CourseTimeID { get; set; }
  61. public int? TotalHours { get; set; }
  62. public Guid? ClassroomID { get; set; }
  63. public string ClassroomName { get; set; }
  64. public int? RecordStatus { get; set; }
  65. public string RecordStatusDesc { get; set; }
  66. }
  67. }