AdultExaminationPlanExportView.cs 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.ExaminationManage
  8. {
  9. public class AdultExaminationPlanExportView
  10. {
  11. public string SchoolyearCode { get; set; }
  12. public Nullable<System.Guid> CoursematerialID { get; set; }
  13. public string CoursematerialName { get; set; }
  14. public string ClassName { get; set; }
  15. public int? MissionStudentCount { get; set; }
  16. public int? StudentCount { get; set; }
  17. public Nullable<int> ExamsCategoryID { get; set; }
  18. public string ExamsCategoryName
  19. {
  20. get
  21. {
  22. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExamsCategory.ToString())
  23. .Where(x => x.Value == ExamsCategoryID)
  24. .Select(x => x.Name).FirstOrDefault();
  25. }
  26. }
  27. public Nullable<int> ExaminationModeID { get; set; }
  28. public string ExaminationModeName
  29. {
  30. get
  31. {
  32. return IdNameExt.GetDictionaryItem(DictionaryItem.CF_ExaminationMode.ToString())
  33. .Where(x => x.Value == ExaminationModeID)
  34. .Select(x => x.Name).FirstOrDefault();
  35. }
  36. }
  37. public IEnumerable<int?> ExaminationWeekNumList { get; set; }
  38. public string ExaminationWeekNumString
  39. {
  40. get
  41. {
  42. return string.Join(@"\", ExaminationWeekNumList);
  43. }
  44. }
  45. /// <summary>
  46. /// 最大排考周次,主要用于排序,不能直接从WeekNum算出……
  47. /// </summary>
  48. public int? MaxExaminationWeekNum { get; set; }
  49. public Nullable<System.DateTime> ExaminationDate { get; set; }
  50. public Nullable<System.TimeSpan> StartTime { get; set; }
  51. public string StartTimeStr {
  52. get
  53. {
  54. if (StartTime.HasValue)
  55. {
  56. return StartTime.Value.Hours + ":" + StartTime.Value.Minutes;
  57. }
  58. else
  59. {
  60. return null;
  61. }
  62. }
  63. }
  64. public Nullable<System.TimeSpan> EndTime { get; set; }
  65. public string EndTimeStr
  66. {
  67. get
  68. {
  69. if (EndTime.HasValue)
  70. {
  71. return EndTime.Value.Hours + ":" + EndTime.Value.Minutes;
  72. }
  73. else
  74. {
  75. return null;
  76. }
  77. }
  78. }
  79. public Nullable<Guid> ClassroomID { get; set; }
  80. public string ClassroomName { get; set; }
  81. public IEnumerable<Sys_User> Sys_User { get; set; }
  82. public string TeacherNames
  83. {
  84. get
  85. {
  86. return string.Join(@"/", Sys_User.Select(x => x.Name));
  87. }
  88. }
  89. }
  90. }