ItemCond.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace TEAMModelOS.SDK.Models
  5. {
  6. /// <summary>
  7. /// 题目数量统计
  8. /// </summary>
  9. public class ItemCond : CosmosEntity
  10. {
  11. public ItemCond()
  12. {
  13. pk = "ItemCond";
  14. }
  15. public int count { get; set; }
  16. public List<GradeCount> grades { get; set; } = new List<GradeCount>();
  17. public List<SubjectCount> subjects { get; set; } = new List<SubjectCount>();
  18. //key 学段id-科目id
  19. // public Dictionary<string, List<CondCount>> subjects { get; set; } = new Dictionary<string, List<CondCount>>();
  20. }
  21. //public class CondCount {
  22. // public KeyValuePair<string, int> grade { get; set; } = new KeyValuePair<string, int>();
  23. // public Dictionary<string, int> type { get; set; } = new Dictionary<string, int>();
  24. // public Dictionary<int, int> level { get; set; } = new Dictionary<int, int>();
  25. // public Dictionary<int, int> field { get; set; } = new Dictionary<int, int>();
  26. //}
  27. public class SubjectCount
  28. {
  29. public string id { get; set; }
  30. public Dictionary<string, Dictionary<string, Dictionary<string, int>>> types { get; set; } = new Dictionary<string, Dictionary<string, Dictionary<string, int>>>()
  31. {
  32. {
  33. "compose",new Dictionary<string, Dictionary<string, int>>
  34. {
  35. {
  36. "level",new Dictionary<string, int>
  37. {
  38. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  39. }
  40. },
  41. {
  42. "field",new Dictionary<string, int>
  43. {
  44. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  45. }
  46. }
  47. }
  48. },
  49. {
  50. "single",new Dictionary<string, Dictionary<string, int>>
  51. {
  52. {
  53. "level",new Dictionary<string, int>
  54. {
  55. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  56. }
  57. },
  58. {
  59. "field",new Dictionary<string, int>
  60. {
  61. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  62. }
  63. }
  64. }
  65. },
  66. {
  67. "multiple",new Dictionary<string, Dictionary<string, int>>
  68. {
  69. {
  70. "level",new Dictionary<string, int>
  71. {
  72. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  73. }
  74. },
  75. {
  76. "field",new Dictionary<string, int>
  77. {
  78. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  79. }
  80. }
  81. }
  82. },
  83. {
  84. "sortmultiple",new Dictionary<string, Dictionary<string, int>>
  85. {
  86. {
  87. "level",new Dictionary<string, int>
  88. {
  89. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  90. }
  91. },
  92. {
  93. "field",new Dictionary<string, int>
  94. {
  95. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  96. }
  97. }
  98. }
  99. },
  100. {
  101. "judge",new Dictionary<string, Dictionary<string, int>>
  102. {
  103. {
  104. "level",new Dictionary<string, int>
  105. {
  106. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  107. }
  108. },
  109. {
  110. "field",new Dictionary<string, int>
  111. {
  112. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  113. }
  114. }
  115. }
  116. },
  117. {
  118. "complete",new Dictionary<string, Dictionary<string, int>>
  119. {
  120. {
  121. "level",new Dictionary<string, int>
  122. {
  123. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  124. }
  125. },
  126. {
  127. "field",new Dictionary<string, int>
  128. {
  129. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  130. }
  131. }
  132. }
  133. },
  134. {
  135. "subjective",new Dictionary<string, Dictionary<string, int>>
  136. {
  137. {
  138. "level",new Dictionary<string, int>
  139. {
  140. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  141. }
  142. },
  143. {
  144. "field",new Dictionary<string, int>
  145. {
  146. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  147. }
  148. }
  149. }
  150. },
  151. {
  152. "connector",new Dictionary<string, Dictionary<string, int>>
  153. {
  154. {
  155. "level",new Dictionary<string, int>
  156. {
  157. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  158. }
  159. },
  160. {
  161. "field",new Dictionary<string, int>
  162. {
  163. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  164. }
  165. }
  166. }
  167. },
  168. {
  169. "correct",new Dictionary<string, Dictionary<string, int>>
  170. {
  171. {
  172. "level",new Dictionary<string, int>
  173. {
  174. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  175. }
  176. },
  177. {
  178. "field",new Dictionary<string, int>
  179. {
  180. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  181. }
  182. }
  183. }
  184. }
  185. };
  186. }
  187. public class GradeCount
  188. {
  189. public string id { get; set; }
  190. public int count { get; set; }
  191. }
  192. }