odf_new/server/ZR.Model/Business/OdfRacks.cs
zpc 5b0de386f1
All checks were successful
continuous-integration/drone/push Build is passing
feat(odf-v1021): Add optical box rack type support with dual-column layout
- 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
2026-04-02 16:40:09 +08:00

57 lines
1.2 KiB
C#
Raw Permalink 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
{
/// <summary>
/// 机架列表
/// </summary>
[SugarTable("odf_racks")]
public class OdfRacks
{
/// <summary>
/// Id
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
/// <summary>
/// 机房
/// </summary>
public int RoomId { get; set; }
/// <summary>
/// 序号
/// </summary>
public int SequenceNumber { get; set; }
/// <summary>
/// ODF名称
/// </summary>
public string RackName { get; set; }
/// <summary>
/// 框数量固定9框
/// </summary>
public int? FrameCount { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreatedAt { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// 部门
/// </summary>
public long DeptId { get; set; }
/// <summary>
/// 机架类型0=ODF机架, 1=光交箱
/// </summary>
public int RackType { get; set; }
}
}