ExceptionShow.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System;
  2. namespace SKMC.Api.Common.Exceptions
  3. {
  4. /// <summary>
  5. /// 异常的UI层展示模型
  6. /// </summary>
  7. public class ExceptionShow : ExceptionConfig, ICloneable
  8. {
  9. private string _uid;
  10. public string Uid
  11. {
  12. get { return _uid; }
  13. set { _uid = value; }
  14. }
  15. private DateTime _encounterTime;
  16. /// <summary>
  17. /// 异常发生时间
  18. /// </summary>
  19. public DateTime EncounterTime
  20. {
  21. get { return _encounterTime; }
  22. set { _encounterTime = value; RaisePropertyChanged(); }
  23. }
  24. private string _stationName;
  25. /// <summary>
  26. /// 异常发生工位
  27. /// </summary>
  28. public string StationName
  29. {
  30. get { return _stationName; }
  31. set { _stationName = value; }
  32. }
  33. private string _detail;
  34. /// <summary>
  35. /// 异常详情
  36. /// </summary>
  37. public string Detail
  38. {
  39. get { return _detail; }
  40. set { _detail = value; RaisePropertyChanged(); }
  41. }
  42. public Func<bool> RetryAction { get; set; }
  43. public Action IgnoreAction { get; set; }
  44. public Action AbortAction { get; set; }
  45. public object Clone()
  46. {
  47. return this.MemberwiseClone();
  48. }
  49. }
  50. }