using System.Collections.Generic;

namespace Siger.Middlelayer.QmsRepository.Request
{
    public class RequestInspectData
    {
        public int id { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string productcode { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int line { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int station { get; set; }


        /// <summary>
        /// 投入数
        /// </summary>
        public string input_num { get; set; }

        /// <summary>
        /// 不良数
        /// </summary>
        public string unhealthy_num { get; set; }

        /// <summary>
        /// 生产人
        /// </summary>
        public string production_mid { get; set; }

        /// <summary>
        /// 检验人
        /// </summary>
        public string inspection_mid { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string start_time { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string end_time { get; set; }

        /// <summary>
        /// 数据类型 1 计数 2计值
        /// </summary>
        public int data_type { get; set; }

        public string data_one { get; set; }

        public string data_two { get; set; }

        public string data_three { get; set; }

        public List<InspectionDataDetail> detaillist { get; set; } = new List<InspectionDataDetail>();
    }

    public class InspectionDataDetail
    {
        /// <summary>
        /// 检验标准id
        /// </summary>
        public int standard_id { get; set; }

        /// <summary>
        /// 计数类型-不良数
        /// </summary>
        public string unhealthy_num { get; set; }

        /// <summary>
        /// 计值类型-数值
        /// </summary>
        public string data_value { get; set; }
    }
}
