using System;

namespace CncModels.Entity
{
    /// <summary>
    /// cnc_production_segment 产量分段记录表
    /// </summary>
    public class ProductionSegment
    {
        /// <summary>主键ID</summary>
        public long Id { get; set; }

        /// <summary>机床ID</summary>
        public int MachineId { get; set; }

        /// <summary>程序名</summary>
        public string ProgramName { get; set; }

        /// <summary>生产日期</summary>
        public DateTime ProductionDate { get; set; }

        /// <summary>开始时间</summary>
        public DateTime StartTime { get; set; }

        /// <summary>结束时间</summary>
        public DateTime? EndTime { get; set; }

        /// <summary>起始零件数</summary>
        public decimal StartPartCount { get; set; }

        /// <summary>结束零件数</summary>
        public decimal? EndPartCount { get; set; }

        /// <summary>产量</summary>
        public decimal? Quantity { get; set; }

        /// <summary>是否已结算</summary>
        public int IsSettled { get; set; }

        /// <summary>结束原因</summary>
        public string CloseReason { get; set; }

        /// <summary>创建时间</summary>
        public DateTime CreatedAt { get; set; }

        /// <summary>修改时间</summary>
        public DateTime UpdatedAt { get; set; }
    }
}
