ExamInfo.cs 5.3 KB

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