diff --git a/Data/Entities/DbVariableData.cs b/Data/Entities/DbVariableData.cs index 3815bfd..33adeca 100644 --- a/Data/Entities/DbVariableData.cs +++ b/Data/Entities/DbVariableData.cs @@ -79,6 +79,12 @@ public class DbVariableData /// public bool IsAlarm { get; set; } + /// + /// 轮询级别,例如1秒、5秒等。 + /// + [SugarColumn(ColumnDataType = "varchar(20)", SqlParameterDbType = typeof(EnumToStringConvert))] + public PollLevelType PollLevelType { get; set; } + /// /// 指示变量是否已被逻辑删除。 /// diff --git a/Models/VariableData.cs b/Models/VariableData.cs index 81d6ed8..4799eea 100644 --- a/Models/VariableData.cs +++ b/Models/VariableData.cs @@ -78,6 +78,11 @@ public partial class VariableData : ObservableObject /// public bool IsAlarm { get; set; } + /// + /// 轮询级别,例如1秒、5秒等。 + /// + public PollLevelType PollLevelType { get; set; } = PollLevelType.ThirtySeconds; + /// /// 指示变量是否已被逻辑删除。 /// diff --git a/Views/Dialogs/VarDataDialog.xaml b/Views/Dialogs/VarDataDialog.xaml index a948a6b..6bb6eae 100644 --- a/Views/Dialogs/VarDataDialog.xaml +++ b/Views/Dialogs/VarDataDialog.xaml @@ -74,6 +74,18 @@ + + + + + + + + +