using System;
namespace SKMC.Api.Core.Exceptions
{
///
/// 异常的UI层展示模型
///
public class ExceptionShow : ExceptionConfig, ICloneable
{
private string _uid;
public string Uid
{
get { return _uid; }
set { _uid = value; }
}
private DateTime _encounterTime;
///
/// 异常发生时间
///
public DateTime EncounterTime
{
get { return _encounterTime; }
set { _encounterTime = value; RaisePropertyChanged(); }
}
private string _stationName;
///
/// 异常发生工位
///
public string StationName
{
get { return _stationName; }
set { _stationName = value; }
}
private string _detail;
///
/// 异常详情
///
public string Detail
{
get { return _detail; }
set { _detail = value; RaisePropertyChanged(); }
}
public Func RetryAction { get; set; }
public Action IgnoreAction { get; set; }
public Action AbortAction { get; set; }
public object Clone()
{
return this.MemberwiseClone();
}
}
}