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

110 lines
2.4 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 AvailableEquipmentOutput
{
/// <summary>
/// 任务ID
/// </summary>
public long WorkOrderId { get; set; }
/// <summary>
/// 任务代码
/// </summary>
public string WorkOrderCode { get; set; } = "";
/// <summary>
/// 可用设备列表
/// </summary>
public List<AvailableEquipmentInfo> AvailableEquipment { get; set; } = new List<AvailableEquipmentInfo>();
/// <summary>
/// 总可用设备数量
/// </summary>
public int TotalAvailableCount { get; set; }
/// <summary>
/// 查询结果摘要
/// </summary>
public string Summary { get; set; } = "";
}
/// <summary>
/// 可用设备信息
/// </summary>
public class AvailableEquipmentInfo
{
/// <summary>
/// 设备ID
/// </summary>
public long EquipmentId { get; set; }
/// <summary>
/// 设备名称
/// </summary>
public string EquipmentName { get; set; } = "";
/// <summary>
/// 内部编号
/// </summary>
public string InternalNumber { get; set; } = "";
/// <summary>
/// 设备型号
/// </summary>
public string Model { get; set; } = "";
/// <summary>
/// 设备类型
/// </summary>
public string EquipmentType { get; set; } = "";
/// <summary>
/// 房间号
/// </summary>
public string RoomNumber { get; set; } = "";
/// <summary>
/// 设备位置
/// </summary>
public string Location { get; set; } = "";
/// <summary>
/// 当前状态0-正常1-维护2-校验3-故障4-报废)
/// </summary>
public int Status { get; set; }
/// <summary>
/// 状态描述
/// </summary>
public string StatusDescription { get; set; } = "";
/// <summary>
/// 设备负责人
/// </summary>
public string ResponsiblePersonName { get; set; } = "";
/// <summary>
/// 可用度评分1-1010分最优
/// </summary>
public int AvailabilityScore { get; set; }
/// <summary>
/// 使用率(百分比)
/// </summary>
public double UsageRate { get; set; }
/// <summary>
/// 是否推荐使用
/// </summary>
public bool IsRecommended { get; set; }
/// <summary>
/// 备注信息
/// </summary>
public string Remarks { get; set; } = "";
}