ItemInfo.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Text;
  5. namespace HTEXLib.DOCX.Models
  6. {
  7. public class ItemInfo
  8. {
  9. public string code { get; set; }
  10. //[PartitionKey(name = "ExamItem")]
  11. public string pk { get; set; }
  12. public int? ttl { get; set; }
  13. public ItemInfo()
  14. {
  15. children = new List<ItemInfo>();
  16. option = new List<CodeValue>();
  17. answer = new List<string>();
  18. points = new List<string>();
  19. gradeIds = new List<string>();
  20. repairResource = new List<Repair>();
  21. }
  22. public string shaCode { get; set; }
  23. //题干
  24. [Required(ErrorMessage = "{0} 必须填写")]
  25. public string question { get; set; }
  26. // 选项 单选 多选 判断
  27. public List<CodeValue> option { get; set; }
  28. public List<string> answer { get; set; }
  29. //解析
  30. public string explain { get; set; }
  31. /// <summary>
  32. /// 题型 Single单选,Multiple多选,Judge判断,Complete填空,Subjective问答,Compose综合
  33. /// </summary>
  34. public string type { get; set; }
  35. /// <summary>
  36. /// 上级shaCode
  37. /// </summary>
  38. public string pShaCode { get; set; }
  39. //管理知识点
  40. public List<string> points { get; set; }
  41. //认知层次 应用 综合 理解 评鉴 知识
  42. public int? field { get; set; }
  43. public List<ItemInfo> children { get; set; }
  44. // 配分
  45. public double score { get; set; }
  46. /// <summary>
  47. /// 题号
  48. /// </summary>
  49. public int order { get; set; }
  50. //补救
  51. //public string repair { get; set; }
  52. /// <summary>
  53. /// 补救资源
  54. /// </summary>
  55. public List<Repair> repairResource { get; set; }
  56. public string subjectId { get; set; }
  57. public string periodId { get; set; }
  58. public List<string> gradeIds { get; set; }
  59. /// <summary>
  60. /// 难度
  61. /// </summary>
  62. public int level { get; set; }
  63. public string id { get; set; }
  64. /// <summary>
  65. /// 是否综合题的小题
  66. /// </summary>
  67. public bool lite { get; set; } = false;
  68. //创建时间
  69. public long createTime { get; set; }
  70. //创建者
  71. public string creator { get; set; }
  72. //使用次数
  73. public int useCount { get; set; }
  74. public string examCode { get; set; }
  75. public string blob { get; set; }
  76. public string scope { get; set; }
  77. public string pId { get; set; }
  78. }
  79. }