| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using Newtonsoft.Json;
- using System.Collections.Generic;
- namespace DaJiaoYan.Models
- {
- /// <summary>
- /// 先阅后扫打分模版
- /// </summary>
- public class ScoreRect
- {
- public class PaintScorePartRect
- {
- public int X { get; set; }
- public int Y { get; set; }
- public int Width { get; set; }
- public int Height { get; set; }
- //public OpenCvSharp.CPlusPlus.Rect Rect { get; set; }
- /// <summary>
- /// 该空分值
- /// </summary>
- public double Score { get; set; }
- //public PaintScorePartRect(OpenCvSharp.CPlusPlus.Rect Rect)
- //{
- // X = Rect.X;
- // Y = Rect.Y;
- // Width = Rect.Width;
- // Height = Rect.Height;
- // Score = 0;
- //}
- /// <summary>
- /// 该空填涂的百分比
- /// </summary>
- public int PaintPointCount { get; set; }
- }
- public class ScorePartRect
- {
- [JsonProperty(PropertyName = "id")]
- public string Id { get; set; }
- [JsonProperty(PropertyName = "isEdit")]
- public bool IsEdit { get; set; }
- [JsonProperty(PropertyName = "key")]
- public string Key { get; set; }
- [JsonProperty(PropertyName = "max_score")]
- public double MaxScore { get; set; }
- [JsonProperty(PropertyName = "min_score")]
- public double MinScore { get; set; }
- [JsonProperty(PropertyName = "score_type")]
- public int ScoreType { get; set; }
- [JsonProperty(PropertyName = "step")]
- public double Step { get; set; }
- [JsonProperty(PropertyName = "width")]
- public int Width { get; set; }
- [JsonProperty(PropertyName = "height")]
- public int Height { get; set; }
- [JsonProperty(PropertyName = "x")]
- public int X { get; set; }
- [JsonProperty(PropertyName = "y")]
- public int Y { get; set; }
- [JsonProperty(PropertyName = "PaintScorePartRects")]
- public List<PaintScorePartRect> PaintScorePartRects { get; set; }
- }
- public class EmptyScoreRect
- {
- [JsonProperty(PropertyName = "key")]
- public string Key { get; set; }
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
- [JsonProperty(PropertyName = "value")]
- public string Value { get; set; }
- [JsonProperty(PropertyName = "score_part_rects")]
- public List<ScorePartRect> ScorePartRects = new List<ScorePartRect>();
- }
- [JsonProperty(PropertyName = "name")]
- public string Name { get; set; }
- [JsonProperty(PropertyName = "empty_score_rects")]
- public List<EmptyScoreRect> EmptyScoreRects { get; set; }
- }
- }
|