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

namespace MisDataSaveDate.MOM
{
    public class DispatchOrder
    {
        /// <summary>
        /// 派工单ID
        /// </summary>
        public string orderID { get; set; }

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

        /// <summary>
        /// 物料ID
        /// </summary>
        public string materialId { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string materialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string materialName { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string materialSpec { get; set; }

        /// <summary>
        /// 物料型号
        /// </summary>
        public string materialModel { get; set; }
        /// <summary>
        /// 工程号
        /// </summary>
        public string projectCode { get; set; }
        /// <summary>
        /// 工程名称
        /// </summary>
        public string projectName { get; set; }
        /// <summary>
        /// 断路器产线根据此判断是不是同一工艺路线
        /// </summary>
        public string routingId { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string qty { get; set; }
        /// <summary>
        /// 计划投产时间
        /// </summary>
        public string planStartTime { get; set; }

        /// <summary>
        /// 派工任务列表
        /// </summary>
        public List<DispatchTask> dispatchTask { get; set; }
    }

    public class DispatchTask
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        public string taskId { get; set; }

        /// <summary>
        /// 任务号
        /// </summary>
        public string taskNo { get; set; }

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

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

        /// <summary>
        /// 工作中心ID
        /// </summary>
        public string workCenterId { get; set; }

        /// <summary>
        /// 工作中心编号
        /// </summary>
        public string workCenterCode { get; set; }

        /// <summary>
        /// 工作中心名称
        /// </summary>
        public string workCenterName { 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>
        /// 物料ID
        /// </summary>
        public string materialId { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string materialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string materialName { get; set; }

        /// <summary>
        /// 物料型号
        /// </summary>
        public string materialModel { get; set; }

        /// <summary>
        /// 计划投产时间
        /// </summary>
        public string planStartTime { get; set; }

        /// <summary>
        /// 计划产出时间
        /// </summary>
        public string planEndTime { get; set; }

        /// <summary>
        /// 派工数量
        /// </summary>
        public string dispatchQty { get; set; }

        /// <summary>
        /// 任务状态
        /// </summary>
        public string taskStatus { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string createdAt { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public string modifiedAt { get; set; }

        /// <summary>
        /// 配送信息列表
        /// </summary>
        public List<DeliveryInfo> deliveryInfo { get; set; }
    }

    public class DeliveryInfo
    {
        /// <summary>
        /// 配送计划ID
        /// </summary>
        public string deliveryInfoid { get; set; }
        /// <summary>
        /// 工单备料ID
        /// </summary>
        public string momid { get; set; }
        /// <summary>
        /// 备料号
        /// </summary>
        public string preparationNo { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        public string materialId { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string materialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string materialName { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string materialSpec { get; set; }

        /// <summary>
        /// 物料型号
        /// </summary>
        public string materialModel { get; set; }

        /// <summary>
        /// 物料描述
        /// </summary>
        public string materialDesc { 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>
        /// 工作中心ID
        /// </summary>
        public string workCenterId { get; set; }

        /// <summary>
        /// 工作中心编号
        /// </summary>
        public string workCenterCode { get; set; }

        /// <summary>
        /// 工作中心名称
        /// </summary>
        public string workCenterName { get; set; }

        /// <summary>
        /// 所需数量
        /// </summary>
        public string requiredQty { get; set; }

        /// <summary>
        /// 计划时间
        /// </summary>
        public string planTime { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string batchNo { get; set; }

        /// <summary>
        /// 序列号
        /// </summary>
        public string serialNo { get; set; }

        /// <summary>
        /// 配送位置ID
        /// </summary>
        public string deliveryPosId { get; set; }

        /// <summary>
        /// 配送位置编号
        /// </summary>
        public string deliveryPosCode { get; set; }

        /// <summary>
        /// 配送位置名称
        /// </summary>
        public string deliveryPosName { get; set; }
    }
}
