All checks were successful
continuous-integration/drone/push Build is passing
- Add migration script to introduce rack_type field (0=ODF, 1=optical box) - Add RackType, LeftPortsCount, RightPortsCount properties to OdfRacks model and DTOs - Add rack type selector and port count inputs to OdfRackForm component - Display rack type labels in OdfRacks management table - Add rack type badges to uni-app rack list cards - Implement dual-column layout for optical box type in rack detail page with left/right port sections - Add optical box port naming format (A-1, A-2, etc.) with row-based labeling - Add visual distinction with background colors (left: #E3F2FD, right: #FFF3E0) and center divider - Update import/export DTOs to support rack type and optical box port naming - Mark all v1.0.2.1 tasks as completed
79 lines
2.2 KiB
C#
79 lines
2.2 KiB
C#
|
||
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; }
|
||
|
||
[ExcelColumn(Name = "机架类型")]
|
||
[ExcelColumnName("机架类型")]
|
||
public int RackType { 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; }
|
||
}
|
||
} |