ExamInfo.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. using System.Collections.Generic;
  2. using System.Text.Json;
  3. namespace TEAMModelOS.SDK.Models
  4. {
  5. /// <summary>
  6. /// 考试基础信息
  7. /// </summary>
  8. public class ExamInfo :CosmosEntity
  9. {
  10. public ExamInfo() {
  11. pk = "Exam";
  12. period = new PeriodSimple();
  13. grades = new List<Grade>();
  14. subjects = new List<ExamSubject>();
  15. papers = new List<PaperSimple>();
  16. classes = new List<string>();
  17. stuLists = new List<string>();
  18. }
  19. /// <summary>
  20. ///发布层级 类型 school teacher
  21. /// </summary>
  22. public string owner { get; set; }
  23. public string name { get; set; }
  24. public string school { get; set; }
  25. public string creatorId { get; set; }
  26. public int stuCount { get; set; }
  27. public string lessonRecordId { get; set; }
  28. /* //实际考试人数
  29. public int realCount { get; set; }
  30. //平均分
  31. public double piont { get; set; }*/
  32. //指标
  33. //public double index { get; set; }
  34. public long createTime { get; set; }
  35. public long updateTime { get; set; }
  36. //public string examCode { get; set; }
  37. /// <summary>
  38. /// 施测起始时间
  39. /// </summary>
  40. public long startTime { get; set; }
  41. /// <summary>
  42. /// 施测结束时间
  43. /// </summary>
  44. public long endTime { get; set; }
  45. /// <summary>
  46. /// 施测对象
  47. /// </summary>
  48. // public List<string> target { get; set; }
  49. /// <summary>
  50. /// 发布
  51. /// </summary>
  52. //public string publish { get; set; }
  53. public int year { get; set; }
  54. //public string range { get; set; }
  55. /// <summary>
  56. /// 评测类型
  57. /// </summary>
  58. public string source { get; set; }
  59. /// <summary>
  60. /// 書面問答類型 0:書面問答 1:紙本測驗 2:艺术评测3:多分同步活动
  61. /// </summary>
  62. public int qamode { 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<string> stuLists { get; set; }
  69. //标记名单与名单分组关系
  70. public List<Dictionary<string, List<string>>> groupLists { get; set; } = new List<Dictionary<string, List<string>>>();
  71. /// <summary>
  72. /// 发布对象全部信息。由前端操作,用于前端回显发布对象的格式。
  73. /// </summary>
  74. public List<JsonElement> targets { get; set; } = new List<JsonElement>();
  75. public List<PaperSimple> papers { get; set; }
  76. ///考试类型 段考 stage 联考 union 平常考 normal 其他 other
  77. /// </summary>
  78. public string type { get; set; }
  79. public PeriodSimple period { get; set; }
  80. public List<Grade> grades { get; set; }
  81. public List<ExamSubject> subjects { get; set; }
  82. //public Condition conditions { get; set; }
  83. //public List<string> blobUrl { get; set; }
  84. public string progress { get; set; }
  85. public string scope { get; set; }
  86. public Custom examType { get; set; } = new Custom();
  87. /// <summary>
  88. /// 所有试卷阅卷状态
  89. /// </summary>
  90. //public List<int> marks { get; set; }
  91. /// <summary>
  92. /// TTL删除改变状态使用
  93. /// </summary>
  94. public int? status { get; set; } = 0;
  95. public double average { get; set; } = -1;
  96. //得分率
  97. public double sRate { get; set; }
  98. //缺考率
  99. public double qRate { get; set; }
  100. //缺考人数
  101. public List<string> lostStu { get; set; } = new List<string>();
  102. public double standard { get; set; }
  103. //记录该评测内容下blob大小
  104. public long? size { get; set; } = 0;
  105. //进线比列
  106. public int income { get; set; } = 0;
  107. //踩线比列
  108. public int touch { get; set; } = 0;
  109. public int? publish { get; set; } = 0;
  110. //评分状态,0未评分,1已评分
  111. public int sStatus { get; set; } = 0;
  112. public int isCompletion { get; set; }
  113. //容器名称 container name
  114. //public string cn { get; set; }
  115. //结束后账户统计
  116. public List<FMember> staffIds { get; set; } = new List<FMember>();
  117. //是否啟動cloudas計算 true:啟動
  118. public bool cloudas { get; set;}
  119. //統測ID
  120. public string jointExamId { get; set; }
  121. //統測決賽可見狀態 true:可見 false:不可見
  122. public bool jointVisiable { get; set; }
  123. public string moofenCode { get; set; }
  124. //不可重複作答
  125. public bool overwriteDisable { get; set; }
  126. }
  127. public class Custom {
  128. public string id { get; set; }
  129. public string name { get; set; }
  130. }
  131. public class ExamSubject
  132. {
  133. public string id { get; set; }
  134. public string name { get; set; }
  135. public int classCount { get; set; }
  136. }
  137. public class PaperSimple {
  138. public string id { get; set; }
  139. public string subjectId { get; set; }
  140. public string code { get; set; }
  141. //标记试卷来源学段
  142. public string periodId { get; set; }
  143. public string name { get; set; }
  144. public string blob { get; set; }
  145. public string scope { get; set; }
  146. public int multipleRule { get; set; }
  147. //该试卷配分情况
  148. public List<double> point { get; set; } = new List<double>();
  149. public List<List<string>> answers { get; set; } = new List<List<string>>();
  150. public List<List<string>> knowledge { get; set; } = new List<List<string>>();
  151. //题目类型
  152. public List<string> type { get; set; } = new List<string>();
  153. public List<int> field { get; set; } = new List<int>();
  154. public string sheet { get; set; } //public long sequenceNumber { get; set; }
  155. public string sheetNo { get; set; } //public long sequenceNumber { get; set; }
  156. public string mode { get; set; }
  157. //记录试卷作答时间
  158. public int time { get; set; } = 0;
  159. //public List<Dictionary<string, int>> record { get; set; } = new List<Dictionary<string, int>>();
  160. }
  161. /*public class Condition
  162. {
  163. public string period { get; set; }
  164. public string grade { get; set; }
  165. public string semester { get; set; }
  166. /// <summary>
  167. /// 评测范围 class 班级测验,年级测验 grade , 区级测验 distric
  168. /// </summary>
  169. public string range { get; set; }
  170. /// <summary>
  171. /// feedBackType ==>>source 评测来源 考试阅卷 marking ,互动课堂 teach ,线上评测 exam ,手动录入import
  172. /// </summary>
  173. public string source { get; set; }
  174. /// <summary>
  175. /// 科目
  176. /// </summary>
  177. public List<string> subject { get; set; }
  178. }*/
  179. }