using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace QMSDAL.DTO { public class MatrixPreviewDTO { public int SetsOnSO { get; set; } // SetTo - SetFrom + 1 public int AlreadyGenerated { get; set; } // from GetMatrixOutputCountsAsync public int Remaining { get; set; } // SetsOnSO - AlreadyGenerated public int TotalSerials { get; set; } // sum of ThisRun across all FG items public string SetRange { get; set; } = string.Empty; // "Sets 1-10" public string Summary { get; set; } = string.Empty; // "Sets 1-10 · 60 serials" public List FGItems { get; set; } = []; } public class FGItemPreviewDTO { public int RowNumber { get; set; } // 01, 02, 03 public string FGItemName { get; set; } = string.Empty; // "Spinner Hub" public string FGItemCode { get; set; } = string.Empty; // "FG-001" public int QtyPerSet { get; set; } // 1, 3, 2 public int ThisRun { get; set; } // 10, 30, 20 public string NextSerialFrom { get; set; } = string.Empty; // "HUB-0001" public string SerialsThisRun { get; set; } = string.Empty; // "HUB-0001 → HUB-0010" } }