zhuangpei-mesbackend/DOAN.Model/MES/dev/Dto/DeviceAccountDto.cs
2025-11-05 15:42:30 +08:00

175 lines
4.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.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.dev.Dto
{
/// <summary>
/// 设备台账查询对象
/// </summary>
public class DeviceAccountQueryDto : PagerInfo
{
/// <summary>
/// 设备类型
/// </summary>
public int FkDeviceType { get; set; }
public string DeviceName { get; set; }
public string DeviceSpecification { get; set; }
public int? Status { get; set; }
}
public class DeviceAccount_routeinspect_Dto
{
/// <summary>
/// 设备巡检id
/// </summary>
public string FkRouteInspectionPlanId { get; set; }
/// <summary>
/// 设备台账id
/// </summary>
public int[] FkDeviceAccountIdList { get; set; }
}
public class DeviceAccount_pointinspect_Dto
{
/// <summary>
/// 设备点检id
/// </summary>
public string FkPointInspectionPlanId { get; set; }
/// <summary>
/// 设备台账id
/// </summary>
public int[] FkDeviceAccountIdList { get; set; }
}
/// <summary>
/// 适配设备巡检项
/// </summary>
public class DeviceAccountQueryDto2 : PagerInfo
{
/// <summary>
/// 设备类型
/// </summary>
public int FkDeviceType { get; set; }
public string DeviceName { get; set; }
public string DeviceSpecification { get; set; }
/// <summary>
/// 巡检id
/// </summary>
public string fkRouteInspectionPlanId { get; set; }
/// <summary>
/// 是否绑定标志位1 绑定 0 未绑定
/// </summary>
public int Flag { get; set; }
}
/// <summary>
/// 适配设备点检项
/// </summary>
public class DeviceAccountQueryDto3 : PagerInfo
{
/// <summary>
/// 设备类型
/// </summary>
public int FkDeviceType { get; set; }
public string DeviceName { get; set; }
public string DeviceSpecification { get; set; }
/// <summary>
/// 点检id
/// </summary>
public string fkPointInspectionPlanId { get; set; }
/// <summary>
/// 是否绑定标志位1 绑定 0 未绑定
/// </summary>
public int Flag { get; set; }
}
/// <summary>
/// 设备台账输入输出对象
/// </summary>
public class DeviceAccountDto
{
public int Id { get; set; }
public int FkDeviceType { get; set; }
public string DeviceName { get; set; }
public string DeviceCode { get; set; }
public string Workshop { get; set; }
public string Workline { get; set; }
public int? Status { get; set; }
public string DeviceImage { get; set; }
public string DeviceFile { get; set; }
public string DeviceSpecification { get; set; }
public string ResponsiblePerson { get; set; }
public string Remark { get; set; }
public string CreatedBy { get; set; }
public DateTime? CreatedTime { get; set; }
public string UpdatedBy { get; set; }
public DateTime? UpdatedTime { get; set; }
}
/// <summary>
/// 最终返回的根模型(车间列表)
/// </summary>
public class WorkshopDto
{
/// <summary>
/// 车间名称(对应数据库 Workshop 字段)
/// </summary>
public string Workshop { get; set; }
/// <summary>
/// 该车间下的所有产线
/// </summary>
public List<WorklineDto> Worklines { get; set; } = new List<WorklineDto>();
}
/// <summary>
/// 产线模型
/// </summary>
public class WorklineDto
{
/// <summary>
/// 产线名称(对应数据库 Workline 字段)
/// </summary>
public string Workline { get; set; }
/// <summary>
/// 该产线下的所有设备
/// </summary>
public List<DeviceDto> Devices { get; set; } = new List<DeviceDto>();
}
/// <summary>
/// 设备模型(包含设备编号和名称)
/// </summary>
public class DeviceDto
{
/// <summary>
/// 设备编号
/// </summary>
public string DeviceCode { get; set; }
/// <summary>
/// 设备名称
/// </summary>
public string DeviceName { get; set; }
}
}