diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-23 19:21:51 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-04-23 19:21:51 +0300 |
| commit | badb781019975dae252b6f48c757897c4f07b150 (patch) | |
| tree | 4592dd8e1169bbe4c91a1e4fa1cae0a1b92d5fb7 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels | |
| parent | f86efbca4aac00a1a4e6d290feca1a0236c2d828 (diff) | |
| download | Tango-badb781019975dae252b6f48c757897c4f07b150.tar.gz Tango-badb781019975dae252b6f48c757897c4f07b150.zip | |
InkLevel DataTemplate.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs index 95db08dfa..2a851e007 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs @@ -11,6 +11,7 @@ using Tango.PPC.Common; using Tango.PPC.Jobs; using Tango.PPC.Jobs.NavigationObjects; using Tango.PPC.Jobs.Views; +using Tango.PPC.Maintenance.Models; namespace Tango.PPC.UI.ViewModels { @@ -166,6 +167,13 @@ namespace Tango.PPC.UI.ViewModels // get { return GetVolumeLiquidType(LiquidTypes.Lubricant); } //} + private List<MidTankLevelModel> _midTankLevels; + public List<MidTankLevelModel> MidTankLevels + { + get { return _midTankLevels; } + set { _midTankLevels = value; RaisePropertyChangedAuto(); } + } + #endregion #region Commands @@ -205,6 +213,17 @@ namespace Tango.PPC.UI.ViewModels IsWeghtView = false; } + public override void OnApplicationReady() + { + base.OnApplicationReady(); + + MidTankLevels = MachineProvider.Machine.Configuration.NoneEmptyIdsPacks.Where(x => x.MidTankType.HasLevelMeasure).OrderBy(x => x.PackIndex).Select(x => new MidTankLevelModel() + { + Max = MachineOperator.MAX_MIDTANK_LITERS, + IDSPack = x, + }).OrderBy(y => y.IDSPack.LiquidType.Code).ToList(); + } + #region printing public override void OnApplicationStarted() |
