using System.Collections.Generic;

namespace Siger.Middlelayer.CncRepository.Response
{
    public class ResponseGetProducePlan
    {
        public int id { get; set; }

        /// <summary>
        /// _product 表 id
        /// </summary>
        public int product_id { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string product_name { get; set; }

        /// <summary>
        /// 图纸号
        /// </summary>
        public string draw_number { get; set; }

        /// <summary>
        /// 节拍
        /// </summary>
        public int cycle_time { get; set; }

        /// <summary>
        /// 程序号
        /// </summary>
        public string program_number { get; set; }

        /// <summary>
        /// 工单号
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 订单数量
        /// </summary>
        public int quantity { get; set; }

        /// <summary>
        /// 交付时间
        /// </summary>
        public int delivery_time { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public int create_time { get; set; }

        /// <summary>
        /// 已生产数量
        /// </summary>
        public int producted_number { get; set; }

        /// <summary>
        /// NOK数量
        /// </summary>
        public int nok_number { get; set; }

        /// <summary>
        /// 计划完成时间
        /// </summary>
        public int finish_time { get; set; }

        public List<ProductInfo> products { get; set; }

        public ResponseGetProducePlan()
        {
            products = new List<ProductInfo>();
        }
    }

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

        public string name { get; set; }

        public string drawingcode { get; set; }

        public string product_code { get; set; }
    }
}
