ExceptionConfig.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. using Prism.Mvvm;
  2. using System;
  3. namespace SKMC.Api.Core.Exceptions
  4. {
  5. /// <summary>
  6. /// 异常处理配置模型
  7. /// 读取配置库中的表SKMC_COMMON_EXCEPTION并转换而成
  8. /// </summary>
  9. public class ExceptionConfig : BindableBase
  10. {
  11. public ExceptionConfig() { }
  12. protected long _id;
  13. public long Id
  14. {
  15. get { return _id; }
  16. set { _id = value; }
  17. }
  18. protected string _code;
  19. public string Code
  20. {
  21. get { return _code; }
  22. set { _code = value; }
  23. }
  24. protected int _type;
  25. public int Type
  26. {
  27. get { return _type; }
  28. set { _type = value; }
  29. }
  30. protected string _group;
  31. public string Group
  32. {
  33. get { return _group; }
  34. set { _group = value; }
  35. }
  36. protected string _name;
  37. public string Name
  38. {
  39. get { return _name; }
  40. set { _name = value; }
  41. }
  42. protected string _note;
  43. public string Note
  44. {
  45. get { return _note; }
  46. set { _note = value; }
  47. }
  48. protected string _tips;
  49. public string Tips
  50. {
  51. get { return _tips; }
  52. set { _tips = value; }
  53. }
  54. protected short _level;
  55. public short Level
  56. {
  57. get { return _level; }
  58. set { _level = value; }
  59. }
  60. protected byte _canRetry;
  61. public byte CanRetry
  62. {
  63. get { return _canRetry; }
  64. set { _canRetry = value; }
  65. }
  66. protected byte _canIgnore;
  67. public byte CanIgnore
  68. {
  69. get { return _canIgnore; }
  70. set { _canIgnore = value; }
  71. }
  72. protected byte _canAbort;
  73. public byte CanAbort
  74. {
  75. get { return _canAbort; }
  76. set { _canAbort = value; }
  77. }
  78. protected string _operation;
  79. public string Operation
  80. {
  81. get { return _operation; }
  82. set { _operation = value; RaisePropertyChanged(); }
  83. }
  84. protected string _retryMsg;
  85. public string RetryMsg
  86. {
  87. get { return _retryMsg; }
  88. set { _retryMsg = value; RaisePropertyChanged(); }
  89. }
  90. protected string _retryMsgSuccess;
  91. public string RetryMsgSuccess
  92. {
  93. get { return _retryMsgSuccess; }
  94. set { _retryMsgSuccess = value; RaisePropertyChanged(); }
  95. }
  96. protected string _retryMsgFailed;
  97. public string RetryMsgFailed
  98. {
  99. get { return _retryMsgFailed; }
  100. set { _retryMsgFailed = value; RaisePropertyChanged(); }
  101. }
  102. }
  103. }