using System;
using System.Collections.Generic;
using System.Text;

namespace Siger.Middlelayer.CncRepository.Response
{
    /// <summary>
    /// 生产计划管理回参
    /// </summary>
    public class ResponseGetProductPlanManage
    {
        /// <summary>
        /// plan表id
        /// </summary>
        public int id { get; set; }
        /// <summary>
        /// 产品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 string product_code { get; set; }

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

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

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

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

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

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

        /// <summary>
        /// 交付时间
        /// </summary>
        public string delivery_time_str { get; set; }

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

        /// <summary>
        /// 添加时间
        /// </summary>
        public string create_time_str { get; set; }

        /// <summary>
        /// 工单状态:1=未下发(生产计划使用);2=未排产；3=已派工；4=生产中；5=已完工；6=已终止
        /// </summary>
        public int status { get; set; }

        /// <summary>
        /// 计划开始时间
        /// </summary>
        public int plan_start { get; set; }

        /// <summary>
        /// 计划结束
        /// </summary>
        public int plan_end { get; set; }

        /// <summary>
        /// OK数量
        /// </summary>
        public int ok_number { get; set; }

        /// <summary>
        /// NOK数量
        /// </summary>
        public int nok_number { get; set; }
        /// <summary>
        /// 已生产数量
        /// </summary>
        public int producted_number { 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 batch { get; set; }

        public int finish_time { get; set; }

        /// <summary>
        /// 剩余天数
        /// </summary>
        public int leaveDays { get; set; }

        /// <summary>
        /// 已排产数量
        /// </summary>
        public int has_schedule { get; set; } = 0;

        /// <summary>
        /// 未排产数量
        /// </summary>
        public int un_schedule { get; set; } = 0;
        /// <summary>
        /// 原装机数量--改为工单数量
        /// </summary>
        public int install_count { get; set; } = 0;

        public string product_remark { get; set; }
    }
}
