ItemCond.cs 7.1 KB

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