ItemCond.cs 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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 int count { get; set; }
  31. public Dictionary<string, Dictionary<string, Dictionary<string, int>>> types { get; set; } = new Dictionary<string, Dictionary<string, Dictionary<string, int>>>()
  32. {
  33. {
  34. "compose",new Dictionary<string, Dictionary<string, int>>
  35. {
  36. {
  37. "level",new Dictionary<string, int>
  38. {
  39. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  40. }
  41. },
  42. {
  43. "field",new Dictionary<string, int>
  44. {
  45. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  46. }
  47. }
  48. }
  49. },
  50. {
  51. "single",new Dictionary<string, Dictionary<string, int>>
  52. {
  53. {
  54. "level",new Dictionary<string, int>
  55. {
  56. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  57. }
  58. },
  59. {
  60. "field",new Dictionary<string, int>
  61. {
  62. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  63. }
  64. }
  65. }
  66. },
  67. {
  68. "multiple",new Dictionary<string, Dictionary<string, int>>
  69. {
  70. {
  71. "level",new Dictionary<string, int>
  72. {
  73. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  74. }
  75. },
  76. {
  77. "field",new Dictionary<string, int>
  78. {
  79. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  80. }
  81. }
  82. }
  83. },
  84. {
  85. "sortmultiple",new Dictionary<string, Dictionary<string, int>>
  86. {
  87. {
  88. "level",new Dictionary<string, int>
  89. {
  90. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  91. }
  92. },
  93. {
  94. "field",new Dictionary<string, int>
  95. {
  96. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  97. }
  98. }
  99. }
  100. },
  101. {
  102. "judge",new Dictionary<string, Dictionary<string, int>>
  103. {
  104. {
  105. "level",new Dictionary<string, int>
  106. {
  107. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  108. }
  109. },
  110. {
  111. "field",new Dictionary<string, int>
  112. {
  113. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  114. }
  115. }
  116. }
  117. },
  118. {
  119. "complete",new Dictionary<string, Dictionary<string, int>>
  120. {
  121. {
  122. "level",new Dictionary<string, int>
  123. {
  124. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  125. }
  126. },
  127. {
  128. "field",new Dictionary<string, int>
  129. {
  130. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  131. }
  132. }
  133. }
  134. },
  135. {
  136. "subjective",new Dictionary<string, Dictionary<string, int>>
  137. {
  138. {
  139. "level",new Dictionary<string, int>
  140. {
  141. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  142. }
  143. },
  144. {
  145. "field",new Dictionary<string, int>
  146. {
  147. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  148. }
  149. }
  150. }
  151. },
  152. {
  153. "connector",new Dictionary<string, Dictionary<string, int>>
  154. {
  155. {
  156. "level",new Dictionary<string, int>
  157. {
  158. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  159. }
  160. },
  161. {
  162. "field",new Dictionary<string, int>
  163. {
  164. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  165. }
  166. }
  167. }
  168. },
  169. {
  170. "correct",new Dictionary<string, Dictionary<string, int>>
  171. {
  172. {
  173. "level",new Dictionary<string, int>
  174. {
  175. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }
  176. }
  177. },
  178. {
  179. "field",new Dictionary<string, int>
  180. {
  181. { "1",0},{ "2",0}, { "3", 0 }, { "4", 0 }, { "5", 0 }, { "6", 0 }
  182. }
  183. }
  184. }
  185. }
  186. };
  187. }
  188. public class GradeCount
  189. {
  190. public string id { get; set; }
  191. public int count { get; set; }
  192. }
  193. }