using System;
using System.Collections.Generic;
using NPP.SmartSchedue.Api.Contracts.Core.Enums;
using NPP.SmartSchedue.Api.Contracts.Services.Work.Input;

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

/// <summary>
/// 工作任务分页输出
/// </summary>
public class WorkOrderGetPageOutput
{
    /// <summary>
    /// 任务ID
    /// </summary>
    public long Id { get; set; }
    
    /// <summary>
    /// 批号
    /// </summary>
    public string BatchNumber { get; set; }

    /// <summary>
    /// 项目号
    /// </summary>
    public string ProjectNumber { get; set; }

    /// <summary>
    /// 项目类别
    /// </summary>
    public string ProjectCategory { get; set; }

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

    /// <summary>
    /// 任务名称
    /// </summary>
    public string WorkOrderName { get; set; }

    /// <summary>
    /// 任务日期
    /// </summary>
    public DateTime WorkOrderDate { get; set; }

    /// <summary>
    /// 实际开始时间
    /// </summary>
    public DateTime? ActualStartTime { get; set; }

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

    /// <summary>
    /// 任务状态
    /// </summary>
    public WorkOrderStatusEnum Status { get; set; }

    /// <summary>
    /// 任务优先级
    /// </summary>
    public int Priority { get; set; }

    /// <summary>
    /// 实际完成工时
    /// </summary>
    public decimal? ActualWorkHours { get; set; }

    /// <summary>
    /// 班次ID
    /// </summary>
    public long ShiftId { get; set; }

    /// <summary>
    /// 班次名称
    /// </summary>
    public string ShiftName { get; set; }

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

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

    /// <summary>
    /// 工序分类
    /// </summary>
    public ProcessCategoryEnum ProcessCategory { get; set; }

    /// <summary>
    /// 分配人员ID
    /// </summary>
    public long? AssignedPersonnelId { get; set; }

    /// <summary>
    /// 分配人员名称
    /// </summary>
    public string AssignedPersonnelName { get; set; }

    /// <summary>
    /// 设备ID
    /// </summary>
    public long? AssignedEquipmentId { get; set; }
    
    /// <summary>
    /// 设备
    /// </summary>
    public string? AssignedEquipmentName { get; set; }

    /// <summary>
    /// 预计工时
    /// </summary>
    public decimal? EstimatedHours { get; set; }

    /// <summary>
    /// FL人员列表
    /// </summary>
    public List<FLPersonnelInfo> FLPersonnels { get; set; } = new List<FLPersonnelInfo>();
} 