|
|
@@ -0,0 +1,97 @@
|
|
|
+using Prism.Mvvm;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace SKMC.Api.Machine.Model
|
|
|
+{
|
|
|
+ public class ConfigSlaveSDO : BindableBase
|
|
|
+ {
|
|
|
+ private short _slaveNo;
|
|
|
+ private string _paramName;
|
|
|
+ private int _recordedValue;
|
|
|
+ private int _usageValue;
|
|
|
+ private string _range;
|
|
|
+ private string _unit;
|
|
|
+ private string _defaultValue;
|
|
|
+ private int _saveMode;
|
|
|
+ private int _isImmediately;
|
|
|
+ private string _remark;
|
|
|
+ private string _stateMsg;
|
|
|
+ private string _textColor = "Green";
|
|
|
+
|
|
|
+ public short SlaveNo
|
|
|
+ {
|
|
|
+ get { return _slaveNo; }
|
|
|
+ set { _slaveNo = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string ParamName
|
|
|
+ {
|
|
|
+ get { return _paramName; }
|
|
|
+ set { _paramName = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public int RecordedValue
|
|
|
+ {
|
|
|
+ get { return _recordedValue; }
|
|
|
+ set { _recordedValue = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public int UsageValue
|
|
|
+ {
|
|
|
+ get { return _usageValue; }
|
|
|
+ set { _usageValue = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string Range
|
|
|
+ {
|
|
|
+ get { return _range; }
|
|
|
+ set { _range = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string Unit
|
|
|
+ {
|
|
|
+ get { return _unit; }
|
|
|
+ set { _unit = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string DefaultValue
|
|
|
+ {
|
|
|
+ get { return _defaultValue; }
|
|
|
+ set { _defaultValue = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public int SaveMode
|
|
|
+ {
|
|
|
+ get { return _saveMode; }
|
|
|
+ set { _saveMode = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public int IsImmediately
|
|
|
+ {
|
|
|
+ get { return _isImmediately; }
|
|
|
+ set { _isImmediately = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string Remark
|
|
|
+ {
|
|
|
+ get { return _remark; }
|
|
|
+ set { _remark = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string StateMsg
|
|
|
+ {
|
|
|
+ get { return _stateMsg; }
|
|
|
+ set { _stateMsg = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string TextColor
|
|
|
+ {
|
|
|
+ get => _textColor;
|
|
|
+ set { _textColor = value; RaisePropertyChanged(); }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|