using System;
using System.Collections.Generic;

namespace Siger.Middlelayer.QmsRepository.Response
{
    public class ResponseDataCollection
    {
        public string id { get; set; }

        public int productid { get; set; }

        public string productcode { get; set; }

        public string productname { get; set; }

        public int sectionid { get; set; }

        public string sectionname { get; set; }

        public string workorder { get; set; }
        /// <summary>
        /// 二维码
        /// </summary>
        public string sn { get; set; }

        public string result { get; set; }

        public int check_mid { get; set; }

        public string check_user { get; set; }

        public string check_time { get; set; }

        public int routeid { get; set; }

        public string routename { get; set; }

        public int materialid { get; set; }

        public string materialname { get; set; }

        public string materialpn { get; set; }

        public int checktype { get; set; }

        public DateTime createtime { get; set; }

        public int quantity { get; set; }

        public string reason { get; set; }

        public int itemid { get; set; }
    }

    public class ResponseDataCollectionDetail
    {
        public long id { get; set; }

        public int itemid { get; set; }

        public int checktype { get; set; }

        public string item { get; set; }

        public string standard { get; set; }

        public double min_value { get; set; }

        public double max_value { get; set; }

        public string result { get; set; }

        public double? value { get; set; }

        public string description { get; set; }

        public int valuecategory { get; set; }

        public double range { get; set; }        

        public double? upperlimit { get;set; }

        public double? lowerlimit { get; set; }

        public double item_range { get; set; }
    }

    public class ResponseDataCollectionDetails : ResponseDataCollectionDetail
    {
        public int samplequantity { get; set; }

        public int index { get; set; }
    }

    public class ResponseDataCollectionDetailList
    {
        public int quantity { get; set; }
        public int number { get; set; }
        public List<ResponseDataCollectionDetails> details { get; set; } = new List<ResponseDataCollectionDetails>();

        public List<ResponseDataCollectionDetails> itemdetails { get; set; } = new List<ResponseDataCollectionDetails>();
    }

    public class BIChartResult
    {
        public string Activated { get; set; }

        public string data { get; set; }
    }

    public class ResponseSensorDataCollectionDetail
    {
        public long id { get; set; }

        public int itemid { get; set; }

        public int checktype { get; set; }

        public string item { get; set; }

        public string standard { get; set; }

        public double min_value { get; set; }

        public double max_value { get; set; }

        public string result { get; set; }

        public double? value { get; set; }

        public string portName { get; set; }

        public int parity { get; set; }

        public int bautRate { get; set; }

        public int dataBits { get; set; }

        public int stopBits { get; set; }
    }



    public class SnTrace
    {
        public string ID { get; set; }

        public int ProductID { get; set; }

        public int MaterialID { get; set; }

        public int SectionID { get; set; }

        public int MachineID { get; set; }

        public string WorkOrder { get; set; }

        public string SN { get; set; }

        public string Result { get; set; }

        public int UserID { get; set; }

        public int RouteID { get; set; }

        public DateTime CreateTime { get; set; }

        public int CheckType { get; set; }

        public string ItemName { get; set; } = string.Empty;
    }

    public class SnTraceDetail
    {
        public long ID { get; set; }

        public string TraceID { get; set; }

        public int ItemID { get; set; }

        public string ItemName { get; set; } = string.Empty;

        public string Result { get; set; }

        public double? Value { get; set; }

        public string SN { get; set; }
    }

    public class SnTraceDetailList : SnTraceDetail
    {
        public int NumberIndex { get; set; }

        public double? LowerLimit { get; set; }

        public double? UpperLimit { get; set; }
    }
}
