|
@@ -1,5 +1,6 @@
|
|
|
using Aitex.Core.Common;
|
|
|
using Aitex.Core.UI.MVVM;
|
|
|
+using CyberX8_MainPages.Model;
|
|
|
using ExcelLibrary.BinaryFileFormat;
|
|
|
using MECF.Framework.Common.CommonData.Metal;
|
|
|
using MECF.Framework.Common.CommonData.PowerSupplier;
|
|
@@ -151,6 +152,10 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
/// 是否存在WaferHolder
|
|
|
/// </summary>
|
|
|
private bool _isWaferHolder;
|
|
|
+ /// <summary>
|
|
|
+ /// 所在reservoir的name
|
|
|
+ /// </summary>
|
|
|
+ private string _reservoirName;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 是否为调速泵
|
|
@@ -424,7 +429,16 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
/// </summary>
|
|
|
public void LoadData(string systemName)
|
|
|
{
|
|
|
- Module = systemName;
|
|
|
+ Module = systemName;
|
|
|
+ _rtDataKeys.Clear();
|
|
|
+ _rtDataKeys.Add($"{Module}.SubordinateReservoirName");
|
|
|
+ Dictionary<string, object> reservoirName = QueryDataClient.Instance.Service.PollData(_rtDataKeys);
|
|
|
+ if (reservoirName != null)
|
|
|
+ {
|
|
|
+ _reservoirName = CommonFunction.GetValue<string>(reservoirName, $"{Module}.SubordinateReservoirName");
|
|
|
+ }
|
|
|
+ _rtDataKeys.Clear();
|
|
|
+
|
|
|
RecipeModuleName = "DEP Recipe";
|
|
|
RecipeType = "dep";
|
|
|
_rtDataKeys.Clear();
|
|
@@ -440,7 +454,7 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
_rtDataKeys.Add($"{Module}.TotalTime");
|
|
|
_rtDataKeys.Add($"{Module}.TimeRemain");
|
|
|
_rtDataKeys.Add($"{Module}.IsSingalPump");
|
|
|
- _rtDataKeys.Add($"{Module}.SubordinateReservoirPump");
|
|
|
+ _rtDataKeys.Add($"{_reservoirName}.SubordinateReservoirPump");
|
|
|
if (_timer == null)
|
|
|
{
|
|
|
_timer = new DispatcherTimer();
|
|
@@ -461,7 +475,7 @@ namespace CyberX8_MainPages.ViewModels
|
|
|
_rtDataValueDic = QueryDataClient.Instance.Service.PollData(_rtDataKeys);
|
|
|
if (_rtDataValueDic != null)
|
|
|
{
|
|
|
- _subordinateReservoirPumpOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"{Module}.SubordinateReservoirPump");
|
|
|
+ _subordinateReservoirPumpOn = CommonFunction.GetValue<bool>(_rtDataValueDic, $"{_reservoirName}.SubordinateReservoirPump");
|
|
|
IsSingalPump = CommonFunction.GetValue<bool>(_rtDataValueDic, $"{Module}.IsSingalPump");
|
|
|
MetalData = CommonFunction.GetValue<StandardHotMetalDeviceData>(_rtDataValueDic, $"{Module}.{METALDATA}");
|
|
|
MetalData.CellPump ^= _subordinateReservoirPumpOn;
|