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