ArtEvaluation.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. using DocumentFormat.OpenXml.Office2021.DocumentTasks;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Text.Json;
  7. using System.Text.Json.Serialization;
  8. using System.Threading.Tasks;
  9. namespace TEAMModelOS.SDK.Models.Cosmos.Common
  10. {
  11. public class ArtEvaluation : CosmosEntity
  12. {
  13. public ArtEvaluation()
  14. {
  15. pk = "Art";
  16. }
  17. public string name { get; set; }
  18. public string school { get; set; }
  19. //高级设置
  20. public List<Tasks> settings { get; set; } = new List<Tasks>();
  21. public string creatorId { get; set; }
  22. public long createTime { get; set; }
  23. public long updateTime { get; set; }
  24. //教研类型
  25. public int type { get; set; } = 0;
  26. /// <summary>
  27. /// 行政班
  28. /// </summary>
  29. public List<string> classes { get; set; } = new List<string>();
  30. /// <summary>
  31. /// 学生名单(包含自定义个人学生名单,学校教学班)
  32. /// </summary>
  33. public List<string> stuLists { get; set; } = new List<string>();
  34. public List<string> tchLists { get; set; } = new List<string>();
  35. public List<string> sIds { get; set; } = new List<string>();
  36. /// <summary>
  37. /// 发布对象全部信息。由前端操作,用于前端回显发布对象的格式。
  38. /// </summary>
  39. public List<JsonElement> targets { get; set; } = new List<JsonElement>();
  40. public string progress { get; set; }
  41. public string scope { get; set; }
  42. public int? status { get; set; } = 0;
  43. //记录该评测内容下blob大小
  44. public long? size { get; set; } = 0;
  45. /// <summary>
  46. ///发布层级 类型 school area
  47. /// </summary>
  48. public string owner { get; set; }
  49. public string areaId { get; set; }
  50. public string pId { get; set; }
  51. public string presenter { get; set; }
  52. public string topic { get; set; }
  53. public long startTime { get; set; }
  54. public long endTime { get; set; }
  55. public string address { get; set; }
  56. //培训内容
  57. public string desc { get; set; }
  58. public string img { get; set; }
  59. /* public string workId { get; set; }
  60. public string surveyId { get; set; }
  61. public string examId { get; set; }*/
  62. //发布层级 0校级,1区级
  63. public int? publish { get; set; } = 0;
  64. public List<ArtSubject> subjects { get; set; } = new List<ArtSubject>();
  65. public PeriodSimple period { get; set; }
  66. public string periodType { get; set; }
  67. public List<LostStudent> lost { get; set; } = new List<LostStudent>();
  68. //用来判定是否已经处理过缺考人数逻辑标识
  69. public int? pass { get; set; } = 0;
  70. public List<int> miss { get; set; } = new List<int>();
  71. public List<Zymusicstd> zymusicstds { get; set; } = new List<Zymusicstd>();
  72. }
  73. public class Zymusicstd
  74. {
  75. public string code { get; set; }
  76. public string label { get; set; }
  77. public double percent { get; set; }
  78. }
  79. public class LostStudent {
  80. public string code { get; set; }
  81. public string subject { get; set; }
  82. public double stu { get; set; }
  83. }
  84. public class Tasks {
  85. public string id { get; set; }
  86. public string quotaname { get; set; }
  87. public List<string> path { get; set; } = new List<string>();
  88. public List<Acs> task { get; set; } = new List<Acs>();
  89. }
  90. public class ArtSubject {
  91. public string id { get; set; }
  92. public string name { get; set; }
  93. }
  94. public class Acs {
  95. [JsonPropertyName("infoId")]
  96. public string infoId { get; set; }
  97. public string acId { get; set; }
  98. public string name { get; set; }
  99. public string subject { get; set; }
  100. public int? isOrder { get; set; } = 0;
  101. public int? type { get; set; } = 0;
  102. public string workDesc { get; set; }
  103. public long workEnd { get; set; }
  104. }
  105. }