using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MECF.Framework.UI.Client.TrayThickness
{
public class CoatingData : ICloneable
{
///
/// 存储Tray的ID
///
public string GUID { get; set; } = "0";
///
/// 界面上标签显示
///
public string Label { get; set; }
///
/// Tray环名称
///
public string Number { get; set; }
///
/// 归属PM模块
///
public string PM_Model { get; set; }
///
/// 厚度最大值
///
public string MAX { get; set; }
///
/// 当前厚度
///
public string Current { get; set; }
///
/// 创建时间
///
public string CreatTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
public string Index { get; set; } = "0";
public CoatingData() { }
public CoatingData(string _label, string iD)
{
Label = _label;
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;
}
}
}