临时提交

This commit is contained in:
2025-07-28 11:08:56 +08:00
parent e3c2253f7b
commit 26bd0aa03b
14 changed files with 82 additions and 245 deletions

View File

@@ -89,34 +89,5 @@ public partial class VariableItemViewModel : ObservableObject
[ObservableProperty]
private OpcUaUpdateType _opcUaUpdateType;
public VariableItemViewModel(VariableDto dto)
{
Id = dto.Id;
_name = dto.Name;
_s7Address = dto.S7Address;
_dataValue = dto.DataValue;
_displayValue = dto.DisplayValue;
_variableTable = dto.VariableTable;
_mqttAliases = dto.MqttAliases;
_signalType = dto.SignalType;
_pollLevel = dto.PollLevel;
_isActive = dto.IsActive;
_variableTableId = dto.VariableTableId;
_opcUaNodeId = dto.OpcUaNodeId;
_isHistoryEnabled = dto.IsHistoryEnabled;
_historyDeadband = dto.HistoryDeadband;
_isAlarmEnabled = dto.IsAlarmEnabled;
_alarmMinValue = dto.AlarmMinValue;
_alarmMaxValue = dto.AlarmMaxValue;
_alarmDeadband = dto.AlarmDeadband;
_protocol = dto.Protocol;
_cSharpDataType = dto.CSharpDataType;
_conversionFormula = dto.ConversionFormula;
_createdAt = dto.CreatedAt;
_updatedAt = dto.UpdatedAt;
_updatedBy = dto.UpdatedBy;
_isModified = dto.IsModified;
_description = dto.Description;
_opcUaUpdateType = dto.OpcUaUpdateType;
}
}