using System;
using System.Collections.Generic;

namespace Siger.Middlelayer.QmsRepository.Response
{
    public class ResponseSendTestCollection
    {
        public int id { get; set; }
        public string traceid { get; set; }
        public int productid { get; set; }
        public string productcode { get; set; }
        public string productname { get; set; }
        public int materialid { get; set; }
        public string materialpn { get; set; }
        public string materialname { get; set; }
        public string materialspec { get; set; }
        public int sectionid { get; set; }
        public string sectionname { get; set; }
        public int routeid { get; set; }
        public string routename { get; set; }        
        public string testroom { get; set; }
        public string testroom_value { get; set; }
        public string sn { get; set; }
        public int checktype { get; set; }
        public int checkstatus { get; set; }
        public string result { get; set; }
        public int send_mid { get; set; }
        public string send_user { get; set; }
        public string send_time { get; set; }
        public DateTime send_datetime { get; set; }
        public int check_mid { get; set; }
        public string check_user { get; set; }
        public string check_time { get; set; }
        public DateTime check_datetime { get; set; }

        public List<UploadFileModel> images = new List<UploadFileModel>();

        public List<UploadFileModel> files = new List<UploadFileModel>();

        public int number { get; set; }

        public string reason { get; set; }

        public int quantity { get; set; }

        public int recieve_mid { get; set; }

        public string recieve_user { get; set; }

        public string recieve_time { get; set; }

        public int checking_mid { get; set; }

        public string checking_user { get; set; }

        public string checking_time { get; set; }
    }

    public class ResponseCheckTestRoom
    {
        public int id { get; set; }

        public string testroom { get; set; }

        public string testroom_value { get; set; }

        public int sectionid { get; set; }
    }

    public class ResponseGetUpdateSendTestDetails
    {
        public string testroom { get; set; }
        public string sn { get; set; }

        public int result { get; set; }

        public int number { get; set; }

        public int quantity { get; set; }

        public List<UploadFileModel> images = new List<UploadFileModel>();

        public List<UploadFileModel> files = new List<UploadFileModel>();

        public List<SendTestTraceDetails> details = new List<SendTestTraceDetails>();

        public List<SendTestParameterDetails> parameters = new List<SendTestParameterDetails>();
    }

    public class SendTestParameterDetails
    {
        public string name { get; set; }

        public string result { get; set; }
    }

    public class SendTestTraceDetails
    {
        public int index { get; set; }

        public long id { get; set; }

        public int itemid { get; set; }

        public string itmename { get; set; }

        public double max_value { get; set; }

        public double min_value { get; set; }

        public string standard { get; set; }

        public string result { get; set; }

        public double? value { get; set; }

        public string sn { get; set; }

        public int checktype { get; set; }

        public double? lowerlimit { get; set; }

        public double? upperlimit { get; set; }

        public string range { get; set; }

        public int valuecategory { get; set; }
    }
}
