Sic.Framework/MECF.Framework.UI.Core/TrayCoating/CoatingData.cs

60 lines
1.5 KiB
C#
Raw Normal View History

using MECF.Framework.Common.CommonData;
using System;
using System.Windows.Forms;
namespace MECF.Framework.UI.Core.TrayCoating
{
[Serializable]
public class CoatingData : ICloneable
{
/// <summary>
/// 存储Tray的ID
/// </summary>
2023-05-22 09:54:40 +08:00
public string GUID { get; set; }
/// <summary>
/// 界面上标签显示
/// </summary>
public string Label { get; set; }
/// <summary>
/// Tray环名称
/// </summary>
public string Number { get; set; }
/// <summary>
/// 归属PM模块
/// </summary>
public string PM_Model { get; set; }
/// <summary>
/// 厚度最大值
/// </summary>
public string MAX { get; set; }
/// <summary>
/// 当前厚度
/// </summary>
public string Current { get; set; }
public CoatingData() { }
public CoatingData(string _label, string iD)
{
Label = _label;
2023-05-22 09:54:40 +08:00
GUID = iD;
}
public object Clone()
{
return new CoatingData()
{
Number = Number,
PM_Model = PM_Model,
MAX = MAX,
Current = Current
};
}
public void Update(CoatingData newData)
{
Number = newData.Number;
PM_Model = newData.PM_Model;
MAX = newData.MAX;
Current = newData.Current;
}
}
}