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

namespace BPA.MES.Base.Application.Services.OrderService.Dtos
{
    public class OrderBaseDto
    {
        public string Id { get; set; }


        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 分配进度
        /// </summary>
        public decimal AllocationRate { get; set; }

        /// <summary>
        /// 生产进度
        /// </summary>
        public decimal ProduceRate { get; set; }

        public decimal ProduceSum { get; set; }

        public DateTime CreateTime { get; set; }

        public List<OrderInfoBaseDto> OrderInfos { get; set; }
    }

    public class OrderInfoBaseDto
    {
        public string Id { get; set; }

        public string OrderId { get; set; }

        /// <summary>
        /// 成品
        /// </summary>
        public string FinalslId { get; set; }

        public string FinalslName { get; set; }

        /// <summary>
        /// 产线
        /// </summary>
        public string ProductionLineId { get; set; }

        public string ProductionLineName { get; set; }

        public string CreateTime { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Number { get; set; }
        public WorkOrderStatusEnum? Status { get; set; }
    }

    /// <summary>
    /// 成品数量限制
    /// </summary>
    public class OrderWorkLimit
    {
        /// <summary>
        /// 成品
        /// </summary>
        public string FinalslId { get; set; }

        public decimal Limit { get; set; }

    }
}
