ExamInfo.cs 6.6 KB

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