using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model
{
    /// <summary>
    /// 质检分类
    /// </summary>
    public class QC_CheckList : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 通话记录id
        /// </summary>
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string recordid { get; set; }

        /// <summary>
        /// 结果
        /// </summary>
        public List<result> result { get; set; }
        /// <summary>
        /// 分值
        /// </summary>
        public int totalscore { get; set; }
        /// <summary>
        /// 质检分数
        /// </summary>
        public int qctotalscore { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime createtime { get; set; }
        /// <summary>
        /// 创建人工号
        /// </summary>
        public string createuser { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string createusername { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int isdelete { get; set; }
        /// <summary>
        /// 删除用户
        /// </summary>
        public string deleteuser { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? deletetime { get; set; }
    }


    /// <summary>
    /// 质检结果类
    /// </summary>
    public class result {
        public string name { get; set; }
        public int score { get; set; }
        public int qcscore { get; set; }
        public int sort { get; set; }
        public List<result> item { get; set; } = new List<result>();
    }
}
