.NETAdmin/ZR.Model/Business/Dto/OdfRacksDto.cs
2025-08-06 09:46:50 +08:00

76 lines
2.0 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.

namespace ZR.Model.Business.Dto
{
/// <summary>
/// 机架列表查询对象
/// </summary>
public class OdfRacksQueryDto : PagerInfo
{
public int? RoomId { get; set; }
public string RackName { get; set; }
}
/// <summary>
/// 机架列表输入输出对象
/// </summary>
public class OdfRacksDto
{
[Required(ErrorMessage = "Id不能为空")]
[ExcelColumn(Name = "Id")]
[ExcelColumnName("Id")]
public int Id { get; set; }
[Required(ErrorMessage = "机房不能为空")]
[ExcelColumn(Name = "机房")]
[ExcelColumnName("机房")]
public int RoomId { get; set; }
[Required(ErrorMessage = "序号不能为空")]
[ExcelColumn(Name = "序号")]
[ExcelColumnName("序号")]
public int SequenceNumber { get; set; }
[Required(ErrorMessage = "ODF名称不能为空")]
[ExcelColumn(Name = "ODF名称")]
[ExcelColumnName("ODF名称")]
public string RackName { get; set; }
[ExcelColumn(Name = "框数量固定9框")]
[ExcelColumnName("框数量固定9框")]
public int? FrameCount { get; set; }
[ExcelColumn(Name = "CreatedAt", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
[ExcelColumnName("CreatedAt")]
public DateTime? CreatedAt { get; set; }
[ExcelColumn(Name = "UpdatedAt", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
[ExcelColumnName("UpdatedAt")]
public DateTime? UpdatedAt { get; set; }
}
public class OdfRacksExpertDto : OdfRacksDto
{
/// <summary>
/// 机框数量
/// </summary>
public int FramesCount { get; set; }
/// <summary>
/// 行数
/// </summary>
public int RowCount { get; set; }
/// <summary>
/// 端口数量
/// </summary>
public int PortsCount { get; set; }
/// <summary>
///
/// </summary>
public int DefaultStatus { get; set; }
}
}