namespace NPP.SmartSchedue.Api.Contracts.Services.Work.Output;

/// <summary>
/// 工序信息
/// </summary>
public class ProcessInfo
{
    /// <summary>
    /// 工序组ID
    /// </summary>
    public long ProcessGroupId { get; set; }

    /// <summary>
    /// 工序ID
    /// </summary>
    public long ProcessId { get; set; }

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

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

    /// <summary>
    /// 工序分类
    /// </summary>
    public string ProcessCategory { get; set; }
    
    /// <summary>
    /// 设备类型
    /// </summary>
    public string? EquipmentType { get; set; }

    /// <summary>
    /// 理论任务时长（小时）
    /// </summary>
    public decimal TheoreticalDuration { get; set; }

    /// <summary>
    /// 关联类型
    /// </summary>
    public string RelationType { get; set; }
    

    /// <summary>
    /// 前置工序ID
    /// </summary>
    public long? PredecessorProcessId { get; set; }

    /// <summary>
    /// 后置工序ID
    /// </summary>
    public long? SuccessorProcessId { get; set; }

    /// <summary>
    /// 关联顺序
    /// </summary>
    public int RelationOrder { get; set; } = 1;
} 