using System.Collections.Generic;

namespace Siger.Middlelayer.QmsRepository.Request
{
    public class RequestAddInspectStandard
    {
        public int productid { get; set; }

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

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

        /// <summary>
        /// 项目
        /// </summary>
        public string item { get; set; }

        /// <summary>
        /// 标准
        /// </summary>
        public string standard { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string unit { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        public string max_value { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        public string min_value { get; set; }

        /// <summary>
        /// 不良代码
        /// </summary>
        public string unhealthy_code { get; set; }

        /// <summary>
        /// 不良描述
        /// </summary>
        public string unhealthy_desc { get; set; }

        /// <summary>
        /// 数据类型 1 打钩 2填值
        /// </summary>
        public int value_type { get; set; }

        /// <summary>
        /// 不良ID
        /// </summary>
        public int unhealthy_id { get; set; }

        public string range { get; set; }

        public string value_category { get; set; }

        public string seq { get; set; }

        public string standard_type { get; set; }

        public List<int> checktype { get; set; } = new List<int>();

        public double? ucl { get; set; }

        public double? lcl { get; set; }

        public string trigger_andon { get; set; }

        public int optionValue { get; set; }
        public List<RequestOption> data { get; set; }
      
    }
    public class RequestOption
    {
        public string option { get; set; }
        public int option_type { get; set; }
    }
    public class RequestEditInspectStandard : RequestAddInspectStandard
    {
        public int id { get; set; }
    }

    public class RequestAddInspectStandardMaterial
    {
        public int materialid { get; set; }

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

        /// <summary>
        /// 项目
        /// </summary>
        public string item { get; set; }

        /// <summary>
        /// 标准
        /// </summary>
        public string standard { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string unit { get; set; }

        /// <summary>
        /// 最大值
        /// </summary>
        public string max_value { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        public string min_value { get; set; }

        /// <summary>
        /// 不良代码
        /// </summary>
        public string unhealthy_code { get; set; }

        /// <summary>
        /// 不良描述
        /// </summary>
        public string unhealthy_desc { get; set; }

        /// <summary>
        /// 数据类型 1 打钩 2填值
        /// </summary>
        public int value_type { get; set; }

        /// <summary>
        /// 不良ID
        /// </summary>
        public int unhealthy_id { get; set; }

        public int categoryid { get; set; }

        public string range { get; set; } 

        public string value_category { get; set; }

        public string seq { get; set; }
    }

    public class RequestEditInspectStandardMaterial : RequestAddInspectStandardMaterial
    {
        public int id { get; set; }
    }
}
