ExamInfo.cs 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. public string source { get; set; }
  60. public List<string> classes { get; set; }
  61. public List<PaperSimple> papers { get; set; }
  62. ///考试类型 段考 stage 联考 union 平常考 normal 其他 other
  63. /// </summary>
  64. public string type { get; set; }
  65. public PeriodSimple period { get; set; }
  66. public List<Grade> grades { get; set; }
  67. public List<ExamSubject> subjects { get; set; }
  68. //public long sequenceNumber { get; set; }
  69. //public Condition conditions { get; set; }
  70. //public List<string> blobUrl { get; set; }
  71. public string progress { get; set; }
  72. public string scope { get; set; }
  73. public Custom examType { get; set; }
  74. /// <summary>
  75. /// 所有试卷阅卷状态
  76. /// </summary>
  77. //public List<int> marks { get; set; }
  78. /// <summary>
  79. /// TTL删除改变状态使用
  80. /// </summary>
  81. public int? status { get; set; } = 0;
  82. public double average { get; set; } = -1;
  83. //得分率
  84. public double sRate { get; set; }
  85. //缺考人数
  86. public List<string> lostStu { get; set; } = new List<string>();
  87. public double standard { get; set; }
  88. }
  89. public class Custom {
  90. public string id { get; set; }
  91. public string name { get; set; }
  92. }
  93. public class ExamSubject
  94. {
  95. public string id { get; set; }
  96. public string name { get; set; }
  97. public int classCount { get; set; }
  98. }
  99. public class PaperSimple {
  100. public string id { get; set; }
  101. public string code { get; set; }
  102. public string name { get; set; }
  103. public string blob { get; set; }
  104. public string scope { get; set; }
  105. public int multipleRule { get; set; }
  106. //该试卷配分情况
  107. public List<double> point { get; set; } = new List<double>();
  108. public List<List<string>> answers { get; set; } = new List<List<string>>();
  109. public List<List<string>> knowledge { get; set; } = new List<List<string>>();
  110. //题目类型
  111. public List<string> type { get; set; } = new List<string>();
  112. public List<int> field { get; set; } = new List<int>();
  113. //public List<Dictionary<string, int>> record { get; set; } = new List<Dictionary<string, int>>();
  114. }
  115. /*public class Condition
  116. {
  117. public string period { get; set; }
  118. public string grade { get; set; }
  119. public string semester { get; set; }
  120. /// <summary>
  121. /// 评测范围 class 班级测验,年级测验 grade , 区级测验 distric
  122. /// </summary>
  123. public string range { get; set; }
  124. /// <summary>
  125. /// feedBackType ==>>source 评测来源 考试阅卷 marking ,互动课堂 teach ,线上评测 exam ,手动录入import
  126. /// </summary>
  127. public string source { get; set; }
  128. /// <summary>
  129. /// 科目
  130. /// </summary>
  131. public List<string> subject { get; set; }
  132. }*/
  133. }