ExamInfo.cs 6.9 KB

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