清理引用,将NavigatorServices更改为使用Message来实现导航的切换
This commit is contained in:
@@ -4,7 +4,7 @@ namespace PMSWPF.Models;
|
||||
|
||||
public class DataVariable
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string NodeId { get; set; }
|
||||
@@ -17,11 +17,11 @@ public class DataVariable
|
||||
public User UpdateUser { get; set; }
|
||||
public string Converstion { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public bool IsSave { get; set; }
|
||||
public Double SaveRange { get; set; }
|
||||
public double SaveRange { get; set; }
|
||||
public bool IsAlarm { get; set; }
|
||||
public Double AlarmMin { get; set; }
|
||||
public Double AlarmMax { get; set; }
|
||||
public double AlarmMin { get; set; }
|
||||
public double AlarmMax { get; set; }
|
||||
public SignalType SignalType { get; set; }
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using PMSWPF.Enums;
|
||||
using SqlSugar;
|
||||
@@ -6,24 +5,23 @@ using SqlSugar.DbConvert;
|
||||
|
||||
namespace PMSWPF.Models;
|
||||
|
||||
public partial class Device:ObservableObject
|
||||
public partial class Device : ObservableObject
|
||||
{
|
||||
[ObservableProperty]
|
||||
private int id;
|
||||
[ObservableProperty]
|
||||
private string name;
|
||||
[ObservableProperty]
|
||||
private string description ;
|
||||
[ObservableProperty]
|
||||
private string ip ;
|
||||
[ObservableProperty]
|
||||
private bool isActive =true;
|
||||
[ObservableProperty]
|
||||
private bool isRuning ;
|
||||
[SugarColumn(ColumnDataType="varchar(20)",SqlParameterDbType=typeof(EnumToStringConvert))]
|
||||
[ObservableProperty] private string description;
|
||||
|
||||
[ObservableProperty] private int id;
|
||||
|
||||
[ObservableProperty] private string ip;
|
||||
|
||||
[ObservableProperty] private bool isActive = true;
|
||||
|
||||
[ObservableProperty] private bool isRuning;
|
||||
|
||||
[ObservableProperty] private string name;
|
||||
|
||||
[SugarColumn(ColumnDataType = "varchar(20)", SqlParameterDbType = typeof(EnumToStringConvert))]
|
||||
public DeviceType DeviceType { get; set; }
|
||||
|
||||
public List<VariableTable>? VariableTables { get; set; }
|
||||
public List<VariableTable>? VariableTables { get; set; }
|
||||
public ProtocolType ProtocolType { get; set; }
|
||||
|
||||
}
|
||||
@@ -2,5 +2,4 @@
|
||||
|
||||
public class Mqtt
|
||||
{
|
||||
|
||||
}
|
||||
@@ -2,5 +2,4 @@
|
||||
|
||||
public class User
|
||||
{
|
||||
|
||||
}
|
||||
@@ -4,11 +4,9 @@ namespace PMSWPF.Models;
|
||||
|
||||
public class VariableTable
|
||||
{
|
||||
|
||||
public int Id { get; set; }
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public ProtocolType ProtocolType { get; set; }
|
||||
public List<DataVariable> DataVariables { get; set; }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user