
using System;

namespace Siger.Middlelayer.QmsRepository.Entities
{
    /// <summary>
    /// trace扩展表
    /// </summary>   
    public class siger_check_sn_trace_inspection : QmsEntityBase
    {
        public string trace_id { get; set; }

        /// <summary>
        /// 检测室字典key
        /// </summary>
        public string testroom { get; set; }

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

        public int materialid { get; set; }

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

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

        /// <summary>
        /// 工序ID
        /// </summary>
        public int routeid { get; set; }

        /// <summary>
        /// 检验类型
        /// </summary>
        public int check_type { get; set; }

        /// <summary>
        /// 1->待接收2->检测完成3->待检验4->检验中
        /// </summary>
        public int check_status { get; set; }

        /// <summary>
        /// 结果
        /// </summary>
        public string result { get; set; }

        /// <summary>
        /// 送检人
        /// </summary>
        public int send_mid { get; set; }

        /// <summary>
        /// 送检时间
        /// </summary>
        public DateTime send_time { get; set; }

        /// <summary>
        /// 检验人
        /// </summary>
        public int check_mid { get; set; }

        /// <summary>
        /// 检验时间
        /// </summary>
        public DateTime? check_time { get; set; }        

        /// <summary>
        /// 扩展表类别 1->送检检验2->人工检验
        /// </summary>
        public int inspection_type { get; set; }

        public int number { get; set; }
        /// <summary>
        /// 送检原因
        /// </summary>
        public string reason { get; set; }

        public string workorder { get; set; }
        /// <summary>
        /// 偏差放行数量
        /// </summary>
        public int quantity { get; set; }
        /// <summary>
        /// 接收人
        /// </summary>
        public int recieve_mid { get; set; }
        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime? recieve_time { get; set; }
        /// <summary>
        /// 开始检验人
        /// </summary>
        public int checking_mid { get; set; }
        /// <summary>
        /// 开始检验时间
        /// </summary>
        public DateTime? checking_time { get; set; }
    }
}
