ExamInfo.cs 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. using DocumentFormat.OpenXml.Bibliography;
  2. using Newtonsoft.Json;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Text;
  7. using System.Text.Json.Serialization;
  8. using TEAMModelOS.SDK.Context.Attributes.Azure;
  9. namespace TEAMModelOS.SDK.Models
  10. {
  11. /// <summary>
  12. /// 考试基础信息
  13. /// </summary>
  14. public class ExamInfo :CosmosEntity
  15. {
  16. public ExamInfo() {
  17. pk = "Exam";
  18. period = new PeriodSimple();
  19. grades = new List<Grade>();
  20. subjects = new List<ExamSubject>();
  21. papers = new List<PaperSimple>();
  22. classes = new List<string>();
  23. }
  24. /// <summary>
  25. ///发布层级 类型 school teacher
  26. /// </summary>
  27. public string owner { get; set; }
  28. public string name { get; set; }
  29. public string school { get; set; }
  30. public string creatorId { get; set; }
  31. public int stuCount { get; set; }
  32. /* //实际考试人数
  33. public int realCount { get; set; }
  34. //平均分
  35. public double piont { get; set; }*/
  36. //指标
  37. //public double index { get; set; }
  38. public long createTime { get; set; }
  39. public long updateTime { get; set; }
  40. //public string examCode { get; set; }
  41. /// <summary>
  42. /// 施测起始时间
  43. /// </summary>
  44. public long startTime { get; set; }
  45. /// <summary>
  46. /// 施测结束时间
  47. /// </summary>
  48. public long endTime { get; set; }
  49. /// <summary>
  50. /// 施测对象
  51. /// </summary>
  52. // public List<string> target { get; set; }
  53. /// <summary>
  54. /// 发布
  55. /// </summary>
  56. public string publish { get; set; }
  57. public int year { get; set; }
  58. public string range { get; set; }
  59. /// <summary>
  60. /// 评测类型
  61. /// </summary>
  62. public string source { get; set; }
  63. /// <summary>
  64. ///class行政班/teach教学班
  65. /// </summary>
  66. public string classType { get; set; }
  67. public List<string> classes { get; set; }
  68. public List<PaperSimple> papers { get; set; }
  69. ///考试类型 段考 stage 联考 union 平常考 normal 其他 other
  70. /// </summary>
  71. public string type { get; set; }
  72. public PeriodSimple period { get; set; }
  73. public List<Grade> grades { get; set; }
  74. public List<ExamSubject> subjects { get; set; }
  75. //public Condition conditions { get; set; }
  76. //public List<string> blobUrl { get; set; }
  77. public string progress { get; set; }
  78. public string scope { get; set; }
  79. public Custom examType { get; set; }
  80. /// <summary>
  81. /// 所有试卷阅卷状态
  82. /// </summary>
  83. //public List<int> marks { get; set; }
  84. /// <summary>
  85. /// TTL删除改变状态使用
  86. /// </summary>
  87. public int? status { get; set; } = 0;
  88. public double average { get; set; } = -1;
  89. //得分率
  90. public double sRate { get; set; }
  91. //缺考人数
  92. public List<string> lostStu { get; set; } = new List<string>();
  93. public double standard { get; set; }
  94. //记录该评测内容下blob大小
  95. public long? size { get; set; } = 0;
  96. //容器名称 container name
  97. //public string cn { get; set; }
  98. }
  99. public class Custom {
  100. public string id { get; set; }
  101. public string name { get; set; }
  102. }
  103. public class ExamSubject
  104. {
  105. public string id { get; set; }
  106. public string name { get; set; }
  107. public int classCount { get; set; }
  108. }
  109. public class PaperSimple {
  110. public string id { get; set; }
  111. public string code { get; set; }
  112. public string name { get; set; }
  113. public string blob { get; set; }
  114. public string scope { get; set; }
  115. public int multipleRule { get; set; }
  116. //该试卷配分情况
  117. public List<double> point { get; set; } = new List<double>();
  118. public List<List<string>> answers { get; set; } = new List<List<string>>();
  119. public List<List<string>> knowledge { get; set; } = new List<List<string>>();
  120. //题目类型
  121. public List<string> type { get; set; } = new List<string>();
  122. public List<int> field { get; set; } = new List<int>();
  123. public string sheet { get; set; } //public long sequenceNumber { get; set; }
  124. //public List<Dictionary<string, int>> record { get; set; } = new List<Dictionary<string, int>>();
  125. }
  126. /*public class Condition
  127. {
  128. public string period { get; set; }
  129. public string grade { get; set; }
  130. public string semester { get; set; }
  131. /// <summary>
  132. /// 评测范围 class 班级测验,年级测验 grade , 区级测验 distric
  133. /// </summary>
  134. public string range { get; set; }
  135. /// <summary>
  136. /// feedBackType ==>>source 评测来源 考试阅卷 marking ,互动课堂 teach ,线上评测 exam ,手动录入import
  137. /// </summary>
  138. public string source { get; set; }
  139. /// <summary>
  140. /// 科目
  141. /// </summary>
  142. public List<string> subject { get; set; }
  143. }*/
  144. }