aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineStatusViewVM.cs19
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()