using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Siger.Middlelayer.Common.ModuleEnum;

namespace Siger.ApiChangLing.Result
{
    public class ProductPlanInfo
    {
        public int id { get; set; }

        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 int create_time { get; set; }

        /// <summary>
        /// 状态
        /// </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; }


        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 stock_quantity { get; set; } = 0;
        public int difference { get; set; }
    }
}
