using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.ActionLogs; using Tango.BL.Entities; namespace Tango.BL.DTO { public class IdsPackDTO : IdsPackDTOBase { [ObservableDTOProperty(MapsTo = nameof(IdsPack.CartridgeType) + "." + nameof(IdsPack.CartridgeType.Name))] public String CartridgeTypeName { get; set; } [ObservableDTOProperty(MapsTo = nameof(IdsPack.IdsPackFormula) + "." + nameof(IdsPack.IdsPackFormula.Name))] public String IdsPackFormulaName { get; set; } [ObservableDTOProperty(MapsTo = nameof(IdsPack.LiquidType) + "." + nameof(IdsPack.LiquidType.Name))] public String LiquidTypeName { get; set; } [ObservableDTOProperty(MapsTo = nameof(IdsPack.MidTankType) + "." + nameof(IdsPack.MidTankType.Name))] public String MidTankTypeName { get; set; } [ObservableDTOProperty(MapsTo = nameof(IdsPack.Dispenser) + "." + nameof(IdsPack.Dispenser.SerialNumber))] public String DispenserSerialNumber { get; set; } [ActionLogIgnore] public CartridgeTypeDTO CartridgeType { get; set; } [ActionLogIgnore] public DispenserDTO Dispenser { get; set; } [ActionLogIgnore] public IdsPackFormulaDTO IdsPackFormula { get; set; } [ActionLogIgnore] public LiquidTypeDTO LiquidType { get; set; } [ActionLogIgnore] public MidTankTypeDTO MidTankType { get; set; } protected override string OnGetActionLogName() { return $"IDS Pack '{PackIndex}'"; } } }