RecipeParam.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. using Prism.Mvvm;
  2. namespace SKMC.Api.Recipe.Config
  3. {
  4. /// <summary>
  5. /// 流程参数配置模型
  6. /// 与设备运转流程相关的配置
  7. /// </summary>
  8. public class RecipeParam : BindableBase
  9. {
  10. private string _code;
  11. /// <summary>
  12. /// 参数编号
  13. /// </summary>
  14. public string Code
  15. {
  16. get { return _code; }
  17. set { _code = value; RaisePropertyChanged(); }
  18. }
  19. private string _group;
  20. /// <summary>
  21. /// 参数分组
  22. /// </summary>
  23. public string Group
  24. {
  25. get { return _group; }
  26. set { _group = value; RaisePropertyChanged(); }
  27. }
  28. private string _station;
  29. /// <summary>
  30. /// 所在工位
  31. /// </summary>
  32. public string Station
  33. {
  34. get { return _station; }
  35. set { _station = value; RaisePropertyChanged(); }
  36. }
  37. private string catalog;
  38. /// <summary>
  39. /// 所属(模块)分类
  40. /// </summary>
  41. public string Catalog
  42. {
  43. get { return catalog; }
  44. set { catalog = value; RaisePropertyChanged(); }
  45. }
  46. private string _name;
  47. /// <summary>
  48. /// 参数名称
  49. /// </summary>
  50. public string Name
  51. {
  52. get { return _name; }
  53. set { _name = value; RaisePropertyChanged(); }
  54. }
  55. private string _value;
  56. /// <summary>
  57. /// 参数数值
  58. /// </summary>
  59. public string Value
  60. {
  61. get { return _value; }
  62. set { _value = value; RaisePropertyChanged(); }
  63. }
  64. private string _lastValue;
  65. /// <summary>
  66. /// 原参数数值
  67. /// </summary>
  68. public string LastValue
  69. {
  70. get { return _lastValue; }
  71. set { _lastValue = value; RaisePropertyChanged(); }
  72. }
  73. private string _note;
  74. /// <summary>
  75. /// 描述说明
  76. /// </summary>
  77. public string Note
  78. {
  79. get { return _note; }
  80. set { _note = value; RaisePropertyChanged(); }
  81. }
  82. private short _isSwitch;
  83. /// <summary>
  84. /// 是否开关类参数
  85. /// </summary>
  86. public short IsSwitch
  87. {
  88. get { return _isSwitch; }
  89. set { _isSwitch = value; RaisePropertyChanged(); }
  90. }
  91. private short _isInner;
  92. /// <summary>
  93. /// 是否内部参数(内部参数客户不可更改)
  94. /// </summary>
  95. public short IsInner
  96. {
  97. get { return _isInner; }
  98. set { _isInner = value; RaisePropertyChanged(); }
  99. }
  100. private short _isInstant;
  101. /// <summary>
  102. /// 是否可立即生效
  103. /// </summary>
  104. public short IsInstant
  105. {
  106. get { return _isInstant; }
  107. set { _isInstant = value; RaisePropertyChanged(); }
  108. }
  109. }
  110. }