using System;

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

/// <summary>
/// 任务分配结果
/// </summary>
public class WorkOrderAssignmentResult
{
    /// <summary>
    /// 是否成功
    /// </summary>
    public bool IsSuccess { get; set; }

    /// <summary>
    /// 分配ID
    /// </summary>
    public long AssignmentId { get; set; }

    /// <summary>
    /// 任务ID
    /// </summary>
    public long WorkOrderId { get; set; }

    /// <summary>
    /// 人员ID
    /// </summary>
    public long PersonnelId { get; set; }

    /// <summary>
    /// 设备ID
    /// </summary>
    public long? EquipmentId { get; set; }

    /// <summary>
    /// 分配时间
    /// </summary>
    public DateTime AssignmentTime { get; set; }

    /// <summary>
    /// 分配类型
    /// </summary>
    public string AssignmentType { get; set; }

    /// <summary>
    /// 匹配度评分
    /// </summary>
    public double MatchScore { get; set; }

    /// <summary>
    /// 是否违反规则
    /// </summary>
    public bool IsRuleViolation { get; set; }

    /// <summary>
    /// 违反规则描述
    /// </summary>
    public string ViolationDescription { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public string ErrorMessage { get; set; }
} 