using System; using System.Collections.Generic; using System.Linq; using System.Windows; using Comal.Classes; namespace PRSDesktop; public class ReservationManagementHoldingsModel { public Visibility Visibility { get; set; } public string JobNumber { get; set; } public string JobName { get; set; } public List StockOfCurrentStyle { get; set; } = new List(); public List StockOfNoStyle { get; set; } = new List(); public List StockOfOtherStyles { get; set; } = new List(); public double UnitsOfCurrentStyle { get; set; } public double UnitsOfNoStyle { get; set; } public double UnitsOfOtherStyles { get; set; } public bool Empty => UnitsOfCurrentStyle <= 0 && UnitsOfNoStyle <= 0 && UnitsOfOtherStyles <= 0; public bool AlreadyAllocated { get; set; } public Guid JobID { get; set; } public ReservationManagementHoldingsModel() : this(Guid.Empty, "", "") { Visibility = Visibility.Collapsed; } public ReservationManagementHoldingsModel(Guid jobid, string jobnumber, string jobname) { JobNumber = jobnumber; JobID = jobid; JobName = jobname; Visibility = Visibility.Visible; } }