blob: 59b66cc504ba1174e64a3e0dd46b44943ea9cfcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
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}'";
}
}
}
|