| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Windows;
- using Comal.Classes;
- using InABox.Core;
- namespace PRSDesktop;
- public class ReservationManagementHoldingsModel
- {
- public Visibility Visibility { get; set; }
- public string JobNumber { get; set; }
- public string JobName { get; set; }
- public List<StockMovement> StockOfCurrentStyle { get; set; } = new List<StockMovement>();
- public List<StockMovement> StockOfNoStyle { get; set; } = new List<StockMovement>();
- public List<StockMovement> StockOfOtherStyles { get; set; } = new List<StockMovement>();
- public double UnitsOfCurrentStyle { get; set; }
- public double UnitsOfNoStyle { get; set; }
- public double UnitsOfOtherStyles { get; set; }
- public bool CurrentStylePositive => !UnitsOfCurrentStyle.IsEffectivelyEqual(0.0);
- public bool NoStylePositive => !UnitsOfNoStyle.IsEffectivelyEqual(0.0);
- public bool OtherStylesPositive => !UnitsOfOtherStyles.IsEffectivelyEqual(0.0);
- public bool Empty => UnitsOfCurrentStyle.IsEffectivelyEqual(0.0) && UnitsOfNoStyle.IsEffectivelyEqual(0.0) && UnitsOfOtherStyles.IsEffectivelyEqual(0.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;
- }
- }
|