ExceptionShow.cs 1.5 KB

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