namespace Siger.Middlelayer.CncRepository.Entities
{
    /// <summary>
    /// siger_project_product_plan Entity Model
    /// </summary>   
    public class siger_project_product_plan : CncEntityBase
    {
        /// <summary>
        /// 
        /// </summary>
        public int projectid { 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>
        /// 已生产数量 (ok +ng)
        /// </summary>
        public int producted_number { get; set; } = 0;
   
        /// <summary>
        /// NOK数量
        /// </summary>
        public int nok_number { get; set; } = 0;

        /// <summary>
        /// 实际完成时间
        /// </summary>
        public int finish_time { get; set; } = 0;

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

        /// <summary>
        /// 料号
        /// </summary>
        public string partnumber { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string ordernumber { get; set; }

        /// <summary>
        /// 工单类型
        /// </summary>
        public int workordertype { get; set; }

        /// <summary>
        /// 是否自动生成序号
        /// </summary>
        public int autogenerate { get; set; }

        /// <summary>
        /// 1: 手动添加 2：Excel导入 3：ERP对接
        /// </summary>
        public int source { get; set; }

        /// <summary>
        /// 装机数量
        /// </summary>
        public int install_count { get; set; } = 0;
        /// <summary>
        /// 计划开始
        /// </summary>
        public int plan_starttime { get; set; }
        /// <summary>
        /// 计划结束
        /// </summary>
        public int plan_endtime { get; set; }
    }
}
