ExamClassResult.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using TEAMModelOS.SDK.Context.Attributes.Azure;
  6. using TEAMModelOS.SDK.DI;
  7. namespace TEAMModelOS.SDK.Models
  8. {
  9. public class ExamClassResult : CosmosEntity
  10. {
  11. public ExamClassResult() {
  12. pk = "ExamClassResult";
  13. studentAnswers = new List<List<string>>();
  14. studentScores = new List<List<double>>();
  15. info = new ClassInfo();
  16. studentIds = new List<string>();
  17. sum = new List<double>();
  18. mark = new List<List<List<Details>>>();
  19. ans = new List<List<List<string>>>();
  20. }
  21. public string school { get; set; }
  22. public string examId { get; set; }
  23. public string subjectId { get; set; }
  24. public string gradeId { get; set; }
  25. public int year { get; set; }
  26. public ClassInfo info { get; set; }
  27. public bool progress { get; set; } = false;
  28. //public PaperSimple paper { get; set; }
  29. //public List<double> point { get; set; }
  30. public List<string> studentIds { get; set; }
  31. public List<List<string>> studentAnswers { get; set; }
  32. //记录学生客观题选项内容,便于学情分析
  33. public List<List<List<string>>> ans { get; set; }
  34. public List<List<double>> studentScores { get; set; }
  35. //记录学生原始学校ID
  36. //public List<string> scIds { get; set; } = new List<string>();
  37. //记录学生作答状态
  38. //0 已作答 1缺考 2补考 3补考完成
  39. public List<int> status { get; set; } = new List<int>();
  40. //批注
  41. public List<List<List<Details>>> mark { get; set; }
  42. public string scope { get; set; }
  43. public List<double> sum { get; set; }
  44. public double average { get; set; }
  45. //单科单班得分率
  46. public double srate { get; set; }
  47. //单科单班标准差
  48. public double standard { get; set; }
  49. //知识点结算内容
  50. public List<double> krate { get; set; } = new List<double>();
  51. public List<int> phc { get; set; } = new List<int>();
  52. public List<int> plc { get; set; } = new List<int>();
  53. public List<int> pc { get; set; } = new List<int>();
  54. //认知层次结算内容
  55. public List<double> frate { get; set; } = new List<double>();
  56. public List<int> fphc { get; set; } = new List<int>();
  57. public List<int> fplc { get; set; } = new List<int>();
  58. public List<int> fpc { get; set; } = new List<int>();
  59. public List<string> paper { get; set; }= new List<string>();
  60. }
  61. //ExamClassResult 學生作答紀錄
  62. public class ExamClassResultStudentAnswerArray : ExamClassResult
  63. {
  64. public List<List<string>> studentAnswersArray { get; set; }= new List<List<string>>();
  65. }
  66. public class ExamLessonStudentAnswerArray : ExamClassResult
  67. {
  68. public List<List<List<string>>> studentAnswersArray { get; set; } = new List<List<List<string>>>();
  69. }
  70. /* public class PaperSimple {
  71. public string id { get; set; }
  72. public string name { get; set; }
  73. public string code { get; set; }
  74. public string blob { get; set; }
  75. public string scope { get; set; }
  76. }*/
  77. public class ClassInfo {
  78. public string id { get; set; }
  79. public string name { get; set; }
  80. public string periodId { get; set; }
  81. public int year { get; set; }
  82. public string no { get; set; }
  83. //public string from { get; set; }
  84. //public string code { get; set; }
  85. }
  86. public class Details {
  87. public double sc { get; set; }
  88. public string tmdId { get; set; }
  89. //记录老师批注信息
  90. public string mark { get; set; }
  91. //记录老师身份信息
  92. public string identity { get; set; }
  93. public int index { get; set; }
  94. }
  95. //班級評量結果批改結果 ※目前先只有統測評量修改時才生成此紀錄
  96. public class ExamClassResultMark : CosmosEntity
  97. {
  98. public ExamClassResultMark()
  99. {
  100. pk = "ExamClassResultMark";
  101. }
  102. public string markerId { get; set; }
  103. public string markerName { get; set; }
  104. public List<string> studentIds { get; set; } = new(); //學生ID列表
  105. public List<List<double>> points { get; set; } = new(); //批改過的學生分數列表
  106. }
  107. }