using DocumentFormat.OpenXml.Bibliography; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; using TEAMModelOS.SDK.Context.Attributes.Azure; namespace TEAMModelOS.SDK.Models { /// /// 考试基础信息 /// public class ExamInfo :CosmosEntity { public ExamInfo() { pk = "Exam"; period = new PeriodSimple(); grades = new List(); subjects = new List(); papers = new List(); classes = new List(); stuLists = new List(); } /// ///发布层级 类型 school teacher /// public string owner { get; set; } public string name { get; set; } public string school { get; set; } public string creatorId { get; set; } public int stuCount { get; set; } /* //实际考试人数 public int realCount { get; set; } //平均分 public double piont { get; set; }*/ //指标 //public double index { get; set; } public long createTime { get; set; } public long updateTime { get; set; } //public string examCode { get; set; } /// /// 施测起始时间 /// public long startTime { get; set; } /// /// 施测结束时间 /// public long endTime { get; set; } /// /// 施测对象 /// // public List target { get; set; } /// /// 发布 /// //public string publish { get; set; } public int year { get; set; } //public string range { get; set; } /// /// 评测类型 /// public string source { get; set; } /// /// 書面問答類型 0:書面問答 1:紙本測驗 2:艺术评测 /// public int qamode { get; set; } /// ///class行政班/teach教学班 /// //public string classType { get; set; } public List classes { get; set; } public List stuLists { get; set; } //标记名单与名单分组关系 public List>> groupLists { get; set; } = new List>>(); /// /// 发布对象全部信息。由前端操作,用于前端回显发布对象的格式。 /// public List targets { get; set; } = new List(); public List papers { get; set; } ///考试类型 段考 stage 联考 union 平常考 normal 其他 other /// public string type { get; set; } public PeriodSimple period { get; set; } public List grades { get; set; } public List subjects { get; set; } //public Condition conditions { get; set; } //public List blobUrl { get; set; } public string progress { get; set; } public string scope { get; set; } public Custom examType { get; set; } = new Custom(); /// /// 所有试卷阅卷状态 /// //public List marks { get; set; } /// /// TTL删除改变状态使用 /// public int? status { get; set; } = 0; public double average { get; set; } = -1; //得分率 public double sRate { get; set; } //缺考率 public double qRate { get; set; } //缺考人数 public List lostStu { get; set; } = new List(); public double standard { get; set; } //记录该评测内容下blob大小 public long? size { get; set; } = 0; //进线比列 public int income { get; set; } = 0; //踩线比列 public int touch { get; set; } = 0; public int? publish { get; set; } = 0; //评分状态,0未评分,1已评分 public int sStatus { get; set; } = 0; public int isCompletion { get; set; } //容器名称 container name //public string cn { get; set; } //结束后账户统计 public List staffIds { get; set; } = new List(); //是否啟動cloudas計算 true:啟動 public bool cloudas { get; set;} } public class Custom { public string id { get; set; } public string name { get; set; } } public class ExamSubject { public string id { get; set; } public string name { get; set; } public int classCount { get; set; } } public class PaperSimple { public string id { get; set; } public string subjectId { get; set; } public string code { get; set; } //标记试卷来源学段 public string periodId { get; set; } public string name { get; set; } public string blob { get; set; } public string scope { get; set; } public int multipleRule { get; set; } //该试卷配分情况 public List point { get; set; } = new List(); public List> answers { get; set; } = new List>(); public List> knowledge { get; set; } = new List>(); //题目类型 public List type { get; set; } = new List(); public List field { get; set; } = new List(); public string sheet { get; set; } //public long sequenceNumber { get; set; } public string sheetNo { get; set; } //public long sequenceNumber { get; set; } public string mode { get; set; } //记录试卷作答时间 public int time { get; set; } = 0; //public List> record { get; set; } = new List>(); } /*public class Condition { public string period { get; set; } public string grade { get; set; } public string semester { get; set; } /// /// 评测范围 class 班级测验,年级测验 grade , 区级测验 distric /// public string range { get; set; } /// /// feedBackType ==>>source 评测来源 考试阅卷 marking ,互动课堂 teach ,线上评测 exam ,手动录入import /// public string source { get; set; } /// /// 科目 /// public List subject { get; set; } }*/ }