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