using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MisDataSaveDate.MOM
{

    /// <summary>
    /// 工艺方案类
    /// </summary>
    public class ProcessScheme
    {
        /// <summary>
        /// 工艺方案ID，数据唯一标识
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 工艺方案编号
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 工艺方案编号
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 订单号（生产订单或生产工单的编号）
        /// </summary>
        public string orderNo { get; set; }

        /// <summary>
        /// 产品ID
        /// </summary>
        public string productId { get; set; }

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

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

        /// <summary>
        /// 产品规格（非必填）
        /// </summary>
        public string productSpec { get; set; }

        /// <summary>
        /// 产品型号（非必填）
        /// </summary>
        public string model { get; set; }

        /// <summary>
        /// 创建时间，格式为yyyy-MM-dd HH:mm:ss
        /// </summary>
        public string createdTime { get; set; }

        /// <summary>
        /// 最后修改时间，格式为yyyy-MM-dd HH:mm:ss
        /// </summary>
        public string lastModifiedTime { get; set; }

        /// <summary>
        /// 工序信息
        /// </summary>
        public List<ProcessInfo> processInfo { get; set; }

        public List<RoutingInfo> routingInfo { get; set; }
    }

    /// <summary>
    /// 工序信息类
    /// </summary>
    public class ProcessInfo
    {
        /// <summary>
        /// 顺序号
        /// </summary>
        public string sequenceNo { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public string processId { get; set; }

        /// <summary>
        /// 工序编号
        /// </summary>
        public string processCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string processName { get; set; }

        /// <summary>
        /// 文档信息（文档路径）
        /// </summary>
        public string docInfo { get; set; }
        /// <summary>
        /// 文档名称
        /// </summary>
        public string filename { get; set; }
        /// <summary>
        /// 工序信息id
        /// </summary>
        public string processInfoid { get; set; }
    }
    public class RoutingInfo
    {
        /// <summary>
        /// 工艺路线信息ID
        /// </summary>
        public string routingid { get; set; }

        /// <summary>
        /// 工艺路线编号
        /// </summary>
        public string routingcode { get; set; }

        /// <summary>
        /// 工序ID
        /// </summary>
        public string processId { get; set; }

        /// <summary>
        /// 工序号
        /// </summary>
        public string processCode { get; set; }

        /// <summary>
        /// 工序名称
        /// </summary>
        public string processName { get; set; }
    }
}
