Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/ClientBase/WaferInfo.cs

127 lines
3.3 KiB
C#
Raw Normal View History

2023-04-13 11:51:03 +08:00
using System.Windows;
using System.Windows.Controls;
using Caliburn.Micro.Core;
namespace MECF.Framework.UI.Client.ClientBase
{
public class WaferInfo : PropertyChangedBase
{
private int _waferStatus = 0; // WaferStatus.Empty;
2023-04-13 11:51:03 +08:00
public int WaferStatus
{
get => _waferStatus;
set { _waferStatus = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private int _waferTrayStatus = 0;
2023-04-13 11:51:03 +08:00
public int WaferTrayStatus
{
get => _waferTrayStatus;
set { _waferTrayStatus = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private int _trayProcessCount = 0;
2023-04-13 11:51:03 +08:00
public int TrayProcessCount
{
get => _trayProcessCount;
set { _trayProcessCount = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _recipeName;
2023-04-13 11:51:03 +08:00
public string RecipeName
{
get => _recipeName;
set { _recipeName = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private bool _isTrayExhausted;
public bool IsTrayExhausted
{
get => _isTrayExhausted;
set { _isTrayExhausted = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
/// <summary>
/// SlotID start from 0
/// </summary>
private int _slotID;
public int SlotID
{
get => _slotID;
set { _slotID = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
/// <summary>
/// SlotIndex start from 1
/// </summary>
private int _slotIndex;
public int SlotIndex
{
get => _slotIndex;
set { _slotIndex = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _moduleID;
public string ModuleID
{
get => _moduleID;
set { _moduleID = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _waferId;
2023-04-13 11:51:03 +08:00
public string WaferID
{
get => _waferId;
set { _waferId = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _sourceName;
public string SourceName
{
get => _sourceName;
set { _sourceName = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _lotID;
public string LotID
{
get => _lotID;
set { _lotID = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _sequenceName = string.Empty;
public string SequenceName
{
get => _sequenceName;
set { _sequenceName = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private string _originName = string.Empty;
public string OriginName
{
get => _originName;
set { _originName = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private ToolTip _toolTip;
public ToolTip ToolTip
{
get => _toolTip;
set { _toolTip = value; NotifyOfPropertyChange(); }
2023-04-13 11:51:03 +08:00
}
private bool _isChecked;
2023-04-13 11:51:03 +08:00
public bool IsChecked
{
get => _isChecked;
2023-04-13 11:51:03 +08:00
set
{
_isChecked = value;
NotifyOfPropertyChange();
2023-04-13 11:51:03 +08:00
}
}
public Visibility IsVisibility => _waferStatus > 0 ? Visibility.Visible : Visibility.Hidden;
2023-04-13 11:51:03 +08:00
}
}