Kaynağa Gözat

评测相关实体结构

zhouj1203@hotmail.com 6 yıl önce
ebeveyn
işleme
5c9e63d356
23 değiştirilmiş dosya ile 485 ekleme ve 0 silme
  1. 19 0
      TEAMModelOS.Model/Evaluation/Dtos/ExerciseInfo.cs
  2. 23 0
      TEAMModelOS.Model/Evaluation/Dtos/Item.cs
  3. 11 0
      TEAMModelOS.Model/Evaluation/Dtos/ItemOption.cs
  4. 18 0
      TEAMModelOS.Model/Evaluation/Dtos/MemberAnswer.cs
  5. 11 0
      TEAMModelOS.Model/Evaluation/Dtos/MemberInfo.cs
  6. 13 0
      TEAMModelOS.Model/Evaluation/Dtos/TestPaperInfo.cs
  7. 37 0
      TEAMModelOS.Model/Evaluation/Models/AnswerInfo.cs
  8. 21 0
      TEAMModelOS.Model/Evaluation/Models/ExamInfo.cs
  9. 77 0
      TEAMModelOS.Model/Evaluation/Models/ItemBank.cs
  10. 22 0
      TEAMModelOS.Model/Evaluation/Models/Option.cs
  11. 19 0
      TEAMModelOS.Model/Evaluation/Models/Paper.cs
  12. 13 0
      TEAMModelOS.Model/Evaluation/Models/QuestionBank.cs
  13. 30 0
      TEAMModelOS.Model/Evaluation/Models/TestPaper.cs
  14. 20 0
      TEAMModelOS.Service/Evaluation/Implements/AnswerInfoService.cs
  15. 20 0
      TEAMModelOS.Service/Evaluation/Implements/ExamInfoService.cs
  16. 20 0
      TEAMModelOS.Service/Evaluation/Implements/ItemBankService.cs
  17. 20 0
      TEAMModelOS.Service/Evaluation/Implements/OptionService.cs
  18. 20 0
      TEAMModelOS.Service/Evaluation/Implements/PaperService.cs
  19. 14 0
      TEAMModelOS.Service/Evaluation/Interfaces/IAnswerInfoService.cs
  20. 14 0
      TEAMModelOS.Service/Evaluation/Interfaces/IExamInfoService.cs
  21. 15 0
      TEAMModelOS.Service/Evaluation/Interfaces/IItemBankService.cs
  22. 14 0
      TEAMModelOS.Service/Evaluation/Interfaces/IOptionService.cs
  23. 14 0
      TEAMModelOS.Service/Evaluation/Interfaces/IPaperService.cs

+ 19 - 0
TEAMModelOS.Model/Evaluation/Dtos/ExerciseInfo.cs

@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Dtos
+{
+    public class ExerciseInfo
+    {
+        public string Ex_name { get; set; }
+        public string Ex_time { get; set; }
+        public string Ex_type { get; set; }
+        public string Ex_mode { get; set; }
+        public string Course_no { get; set; }
+        public string Course_name { get; set; }
+        public string Serialnumber { get; set; }
+        public string Stucount { get; set; }
+        public string Cover { get; set; }
+    }
+}

+ 23 - 0
TEAMModelOS.Model/Evaluation/Dtos/Item.cs

@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Dtos
+{
+    public class Item
+    {
+        public string Itemindex { get; set; }
+        public string Type { get; set; }
+        public string Objective { get; set; }
+        public string Point { get; set; }
+        public string Answer { get; set; }
+        public string Spend_time { get; set; }
+        public string Edu_goal { get; set; }
+        public string Idx { get; set; }
+        public string Concept_subject { get; set; }
+        public string Concept_area { get; set; }
+        public string Concept { get; set; }
+        public string Url { get; set; }
+        public string Question { get; set; }
+    }
+}

+ 11 - 0
TEAMModelOS.Model/Evaluation/Dtos/ItemOption.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Dtos
+{
+    public class ItemOption
+    {
+        public string Data { get; set; }
+    }
+}

+ 18 - 0
TEAMModelOS.Model/Evaluation/Dtos/MemberAnswer.cs

@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Dtos
+{
+    public class MemberAnswer
+    {
+        public string Itemindex { get; set; }
+        public string Selection { get; set; }
+        public string Spend_time { get; set; }
+        public string Point { get; set; }
+        public string Mininote_image { get; set; }
+        public string Mininote_xml { get; set; }
+        public string Mininote_text { get; set; }
+        public string Mininote_link { get; set; }
+    }
+}

+ 11 - 0
TEAMModelOS.Model/Evaluation/Dtos/MemberInfo.cs

@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Dtos
+{
+    public class MemberInfo
+    {
+        public string Student_id { get; set; }
+    }
+}

+ 13 - 0
TEAMModelOS.Model/Evaluation/Dtos/TestPaperInfo.cs

@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Dtos
+{
+    public class TestPaperInfo
+    {
+        public string Name { get; set; }
+        public string Itemcount { get; set; }
+        public string Subject { get; set; }
+    }
+}

+ 37 - 0
TEAMModelOS.Model/Evaluation/Models/AnswerInfo.cs

@@ -0,0 +1,37 @@
+using MessagePack;
+using Microsoft.WindowsAzure.Storage.Table;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using TEAMModelOS.SDK.Context.Attributes.Azure;
+
+namespace TEAMModelOS.Model.EvaluaTion.Models
+{
+    [TableSpace(Name = "Core")]
+    [MessagePackObject(keyAsPropertyName: true)]
+    public class AnswerInfo : TableEntity
+    {
+        public string Id { get; set; }
+        /// <summary>
+        /// 题序
+        /// </summary>
+        public string Index { get; set; }
+        /// <summary>
+        /// 作答选项
+        /// </summary>
+        public string Selection { get; set; }
+        /// <summary>
+        /// 得分
+        /// </summary>
+        public string Point { get; set; }
+        /// <summary>
+        /// 学号
+        /// </summary>
+        public string StudentId { get; set; }
+        /// <summary>
+        /// 考试ID
+        /// </summary>
+        public string ExId { get; set; }
+
+    }
+}

+ 21 - 0
TEAMModelOS.Model/Evaluation/Models/ExamInfo.cs

@@ -0,0 +1,21 @@
+using MessagePack;
+using Microsoft.WindowsAzure.Storage.Table;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using TEAMModelOS.SDK.Context.Attributes.Azure;
+
+namespace TEAMModelOS.Model.EvaluaTion.Models
+{
+    [TableSpace(Name = "Core")]
+    [MessagePackObject(keyAsPropertyName: true)]
+    public class ExamInfo : TableEntity
+    {
+        public string Id { get; set; }
+        public string ExName { get; set; }
+        public string ExTime { get; set; }
+        public string  CouseName { get; set; }
+        public string StuCount { get; set; }
+
+    }
+}

+ 77 - 0
TEAMModelOS.Model/Evaluation/Models/ItemBank.cs

@@ -0,0 +1,77 @@
+using MessagePack;
+using Microsoft.WindowsAzure.Storage.Table;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using TEAMModelOS.SDK.Context.Attributes.Azure;
+
+namespace TEAMModelOS.Model.EvaluaTion.Models
+{
+    [TableSpace(Name = "Core")]
+    [MessagePackObject(keyAsPropertyName: true)]
+    public class ItemBank : TableEntity
+    {
+        public string Id { get; set; }
+        /// <summary>
+        /// 题目
+        /// </summary>
+        public string Question { get; set; }
+        /// <summary>
+        /// 题目顺序 可移植到试卷库
+        /// </summary>
+        public string Index { get; set; }
+        /// <summary>
+        /// 题目类型
+        /// </summary>
+        public string Type { get; set; }
+        /// <summary>
+        /// 主客观类型
+        /// </summary>
+        public string Objective { get; set; }
+        /// <summary>
+        /// 分值 可移植到试卷库
+        /// </summary>
+        public string Point { get; set; }
+        /// <summary>
+        /// 标准答案
+        /// </summary>
+        public string Answer { get; set; }
+        /// <summary>
+        /// 对应科目
+        /// </summary>
+        public string ConceptSubject { get; set; }
+        /// <summary>
+        /// 知识块
+        /// </summary>
+        public string ConceptArea { get; set; }
+        /// <summary>
+        /// 知识点
+        /// </summary>
+        /// 
+        public string Concept { get; set; }
+        /// <summary>
+        /// 详解
+        /// </summary>
+        public string Explain { get; set; }
+        /// <summary>
+        /// 难度
+        /// </summary>
+        public string Difficulty { get; set; }
+        /// <summary>
+        /// 创建时间
+        /// </summary>
+        public DateTime Date { get; set; }
+        /// <summary>
+        /// 重要性
+        /// </summary>
+        public string Importance { get; set; }
+        /// <summary>
+        /// 预计作答时间
+        /// </summary>
+        public string Time { get; set; }
+        /// <summary>
+        /// 使用计数
+        /// </summary>
+        public string UsageCount { get; set; }
+    }
+}

+ 22 - 0
TEAMModelOS.Model/Evaluation/Models/Option.cs

@@ -0,0 +1,22 @@
+using MessagePack;
+using Microsoft.WindowsAzure.Storage.Table;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using TEAMModelOS.SDK.Context.Attributes.Azure;
+
+namespace TEAMModelOS.Model.EvaluaTion.Models
+{
+
+    [TableSpace(Name = "Core")]
+    [MessagePackObject(keyAsPropertyName: true)]
+    /// <summary>
+    /// 选项信息
+    /// </summary>
+    public class Option : TableEntity
+    {
+        public string Id { get; set; }
+        public string Data { get; set; }
+        public string ItemId { get; set; }
+    }
+}

+ 19 - 0
TEAMModelOS.Model/Evaluation/Models/Paper.cs

@@ -0,0 +1,19 @@
+using MessagePack;
+using Microsoft.WindowsAzure.Storage.Table;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using TEAMModelOS.SDK.Context.Attributes.Azure;
+
+namespace TEAMModelOS.Model.EvaluaTion.Models
+{
+    [TableSpace(Name = "Core")]
+    [MessagePackObject(keyAsPropertyName: true)]
+    public class Paper: TableEntity
+    {
+        public string Id { get; set; }
+        public string Name { get; set; }
+        public string Count { get; set; }
+        public string Subject { get; set; }
+    }
+}

+ 13 - 0
TEAMModelOS.Model/Evaluation/Models/QuestionBank.cs

@@ -0,0 +1,13 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.EvaluaTion.Models
+{
+    public class QuestionBank
+    {
+        public string Source { set; get; }
+
+
+    }
+}

+ 30 - 0
TEAMModelOS.Model/Evaluation/Models/TestPaper.cs

@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace TEAMModelOS.Model.Evaluation.Models
+{
+    public class TestPaper
+    {
+        public string id { get; set; }
+        public string Name { get; set; }
+        /// <summary>
+        /// 题目ID集合
+        /// </summary>
+        public string[] ItemIds { get; set; }
+        /// <summary>
+        /// 题序(试卷排版顺序)
+        /// </summary>
+        public string Index { get; set; }
+        /// <summary>
+        /// 动态字段部分
+        /// </summary>
+        public object Extend { get; set; }
+        /// <summary>
+        /// 分值或者配分
+        /// </summary>
+        public string Point { get; set; }
+        public DateTimeOffset Stime { get; set; }
+        public DateTimeOffset Etime { get; set; }
+    }
+}

+ 20 - 0
TEAMModelOS.Service/Evaluation/Implements/AnswerInfoService.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Implements;
+using TEAMModelOS.Service.EvaluaTion.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Implements
+{
+    public class AnswerInfoService : BaseService, IAnswerInfoService
+    {
+        public async Task<List<AnswerInfo>> SaveOrUpdateAsync(List<AnswerInfo> items)
+        {
+            await SaveOrUpdateAll<AnswerInfo>(items);
+            return items;
+            //throw new NotImplementedException();
+        }
+    }
+}

+ 20 - 0
TEAMModelOS.Service/Evaluation/Implements/ExamInfoService.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Implements;
+using TEAMModelOS.Service.EvaluaTion.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Implements
+{
+    public class ExamInfoService : BaseService, IExamInfoService
+    {
+        public async Task<List<ExamInfo>> SaveOrUpdateAsync(List<ExamInfo> items)
+        {
+            await SaveOrUpdateAll<ExamInfo>(items);
+            return items;
+            //throw new NotImplementedException();
+        }
+    }
+}

+ 20 - 0
TEAMModelOS.Service/Evaluation/Implements/ItemBankService.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Implements;
+using TEAMModelOS.Service.EvaluaTion.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Implements
+{
+    public class ItemBankService : BaseService, IItemBankService
+    {
+        public  async Task<List<ItemBank>> SaveOrUpdateAsync(List<ItemBank> items)
+        {
+            await SaveOrUpdateAll<ItemBank>(items);
+            return items;
+            //throw new NotImplementedException();
+        }
+    }
+}

+ 20 - 0
TEAMModelOS.Service/Evaluation/Implements/OptionService.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Implements;
+using TEAMModelOS.Service.EvaluaTion.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Implements
+{
+    public class OptionService : BaseService, IOptionService
+    {
+        public async Task<List<Option>> SaveOrUpdateAsync(List<Option> items)
+        {
+            await SaveOrUpdateAll<Option>(items);
+            return items;
+            //throw new NotImplementedException();
+        }
+    }
+}

+ 20 - 0
TEAMModelOS.Service/Evaluation/Implements/PaperService.cs

@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Implements;
+using TEAMModelOS.Service.EvaluaTion.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Implements
+{
+    public class PaperService : BaseService, IPaperService
+    {
+        public async Task<List<Paper>> SaveOrUpdate(List<Paper> papers)
+        {
+            await SaveOrUpdateAll<Paper>(papers);
+            return papers;
+            //throw new NotImplementedException();
+        }
+    }
+}

+ 14 - 0
TEAMModelOS.Service/Evaluation/Interfaces/IAnswerInfoService.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Interfaces
+{
+    public interface IAnswerInfoService : IBusinessService, IBaseService
+    {
+        Task<List<AnswerInfo>> SaveOrUpdateAsync(List<AnswerInfo> items);
+    }
+}

+ 14 - 0
TEAMModelOS.Service/Evaluation/Interfaces/IExamInfoService.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Interfaces
+{
+    public interface IExamInfoService : IBusinessService, IBaseService
+    {
+        Task<List<ExamInfo>> SaveOrUpdateAsync(List<ExamInfo> items);
+    }
+}

+ 15 - 0
TEAMModelOS.Service/Evaluation/Interfaces/IItemBankService.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Interfaces
+{
+    public interface IItemBankService : IBusinessService, IBaseService
+    {
+
+        Task<List<ItemBank>> SaveOrUpdateAsync(List<ItemBank> items);
+    }
+}

+ 14 - 0
TEAMModelOS.Service/Evaluation/Interfaces/IOptionService.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Interfaces
+{
+    public interface IOptionService : IBusinessService, IBaseService
+    {
+        Task<List<Option>> SaveOrUpdateAsync(List<Option> items);
+    }
+}

+ 14 - 0
TEAMModelOS.Service/Evaluation/Interfaces/IPaperService.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Threading.Tasks;
+using TEAMModelOS.Model.EvaluaTion.Models;
+using TEAMModelOS.Service.Core.Interfaces;
+
+namespace TEAMModelOS.Service.EvaluaTion.Interfaces
+{
+    public interface IPaperService : IBusinessService, IBaseService
+    {
+        Task<List<Paper>> SaveOrUpdate(List<Paper> papers);
+    }
+}