MOSourceDataItem.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.Windows.Input;
  7. using System.Windows;
  8. namespace Aitex.Core.UI.ControlDataContext
  9. {
  10. public class MOSourceDataItem : INotifyPropertyChanged
  11. {
  12. public event PropertyChangedEventHandler PropertyChanged;
  13. public void InvokePropertyChanged(string propertyName)
  14. {
  15. if (PropertyChanged != null)
  16. {
  17. PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  18. }
  19. }
  20. AnalogDeviceDataItem _mfcSourceData;
  21. public AnalogDeviceDataItem MfcSourceData
  22. {
  23. get
  24. {
  25. return _mfcSourceData;
  26. }
  27. set
  28. {
  29. _mfcSourceData = value;
  30. InvokePropertyChanged("MfcSourceData");
  31. }
  32. }
  33. public AnalogDeviceDataItem _mfcPushData;
  34. public AnalogDeviceDataItem MfcPushData
  35. {
  36. get
  37. {
  38. return _mfcPushData;
  39. }
  40. set
  41. {
  42. _mfcPushData = value;
  43. InvokePropertyChanged("MfcPushData");
  44. }
  45. }
  46. public AnalogDeviceDataItem _mfcDiluteData;
  47. public AnalogDeviceDataItem MfcDiluteData
  48. {
  49. get
  50. {
  51. return _mfcDiluteData;
  52. }
  53. set
  54. {
  55. _mfcDiluteData = value;
  56. InvokePropertyChanged("MfcDiluteData");
  57. }
  58. }
  59. public AnalogDeviceDataItem _mfcInjectData;
  60. public AnalogDeviceDataItem MfcInjectData
  61. {
  62. get
  63. {
  64. return _mfcInjectData;
  65. }
  66. set
  67. {
  68. _mfcInjectData = value;
  69. InvokePropertyChanged("MfcInjectData");
  70. }
  71. }
  72. AnalogDeviceDataItem _pcData = new AnalogDeviceDataItem();
  73. public AnalogDeviceDataItem PcData
  74. {
  75. get
  76. {
  77. return _pcData;
  78. }
  79. set
  80. {
  81. _pcData = value;
  82. InvokePropertyChanged("PcData");
  83. }
  84. }
  85. public GasValveDataItem _valveLineData;
  86. public GasValveDataItem ValveLineData
  87. {
  88. get
  89. {
  90. return _valveLineData;
  91. }
  92. set
  93. {
  94. _valveLineData = value;
  95. InvokePropertyChanged("ValveLineData");
  96. }
  97. }
  98. public GasValveDataItem _valveBypassData;
  99. public GasValveDataItem ValveBypassData
  100. {
  101. get
  102. {
  103. return _valveBypassData;
  104. }
  105. set
  106. {
  107. _valveBypassData = value;
  108. InvokePropertyChanged("ValveBypassData");
  109. }
  110. }
  111. public GasValveDataItem _vavleVacData;
  112. public GasValveDataItem VavleVacData
  113. {
  114. get
  115. {
  116. return _vavleVacData;
  117. }
  118. set
  119. {
  120. _vavleVacData = value;
  121. InvokePropertyChanged("VavleVacData");
  122. }
  123. }
  124. GasValveDataItem _vavleRunData;
  125. public GasValveDataItem VavleRunData
  126. {
  127. get
  128. {
  129. return _vavleRunData;
  130. }
  131. set
  132. {
  133. _vavleRunData = value;
  134. InvokePropertyChanged("VavleRunData");
  135. }
  136. }
  137. MOLineDataItem _lineData;
  138. public MOLineDataItem LineData
  139. {
  140. get
  141. {
  142. return _lineData;
  143. }
  144. set
  145. {
  146. _lineData = value;
  147. InvokePropertyChanged("LineData");
  148. }
  149. }
  150. BathDataItem _bathData;
  151. public BathDataItem BathData
  152. {
  153. get
  154. {
  155. return _bathData;
  156. }
  157. set
  158. {
  159. _bathData = value;
  160. InvokePropertyChanged("BathData");
  161. }
  162. }
  163. bool _isServiceMode;
  164. public bool IsServiceMode
  165. {
  166. get
  167. {
  168. return _isServiceMode;
  169. }
  170. set
  171. {
  172. _isServiceMode = value;
  173. InvokePropertyChanged("IsServiceMode");
  174. }
  175. }
  176. public ICommand DeviceOperationCommand { get; set; }
  177. }
  178. }