Developer 058d8edffa 添加通知系统和工作任务分配功能
- 新增通知系统完整架构,包含通知设置、历史记录、任务管理等核心功能
- 实现工作任务分配服务,支持人员和设备的智能分配
- 添加人员分组管理功能,支持灵活的通知目标配置
- 完善相关枚举定义和数据传输对象

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 08:34:01 +08:00

116 lines
2.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections.Generic;
namespace NPP.SmartSchedue.Api.Contracts.Services.Work.Output;
/// <summary>
/// 可用人员输出
/// </summary>
public class AvailablePersonnelOutput
{
/// <summary>
/// 任务ID
/// </summary>
public long WorkOrderId { get; set; }
/// <summary>
/// 任务代码
/// </summary>
public string WorkOrderCode { get; set; } = "";
/// <summary>
/// 可用的实施人员列表
/// </summary>
public List<AvailablePersonnelInfo> AvailablePersonnel { get; set; } = new List<AvailablePersonnelInfo>();
/// <summary>
/// 可用的FL人员列表
/// </summary>
public List<AvailablePersonnelInfo> AvailableFLPersonnel { get; set; } = new List<AvailablePersonnelInfo>();
/// <summary>
/// 总可用人员数量
/// </summary>
public int TotalAvailableCount { get; set; }
/// <summary>
/// 查询结果摘要
/// </summary>
public string Summary { get; set; } = "";
}
/// <summary>
/// 可用人员信息
/// </summary>
public class AvailablePersonnelInfo
{
/// <summary>
/// 人员ID
/// </summary>
public long PersonnelId { get; set; }
/// <summary>
/// 人员姓名
/// </summary>
public string PersonnelName { get; set; } = "";
/// <summary>
/// 部门名称
/// </summary>
public string DepartmentName { get; set; } = "";
/// <summary>
/// 岗位名称
/// </summary>
public string PositionName { get; set; } = "";
/// <summary>
/// 具备的资质列表
/// </summary>
public List<PersonnelQualificationInfo> Qualifications { get; set; } = new List<PersonnelQualificationInfo>();
/// <summary>
/// 当前工作负荷(百分比)
/// </summary>
public double WorkloadPercentage { get; set; }
/// <summary>
/// 可用度评分1-1010分最优
/// </summary>
public int AvailabilityScore { get; set; }
/// <summary>
/// 备注信息
/// </summary>
public string Remarks { get; set; } = "";
}
/// <summary>
/// 人员资质信息
/// </summary>
public class PersonnelQualificationInfo
{
/// <summary>
/// 资质ID
/// </summary>
public long QualificationId { get; set; }
/// <summary>
/// 资质名称
/// </summary>
public string QualificationName { get; set; } = "";
/// <summary>
/// 资质等级
/// </summary>
public int Level { get; set; }
/// <summary>
/// 有效期至
/// </summary>
public DateTime? ValidUntil { get; set; }
/// <summary>
/// 是否满足任务要求
/// </summary>
public bool MeetsRequirement { get; set; }
}