mirror of
https://gitee.com/ThingsGateway/ThingsGateway.git
synced 2025-10-20 10:50:48 +08:00
10.10.11
This commit is contained in:
@@ -189,8 +189,8 @@ namespace ThingsGateway.SqlSugar
|
||||
"multipart/form-data; boundary=" + boundary);
|
||||
|
||||
// 发送请求并处理响应
|
||||
using var httpResponseMessage =
|
||||
await Post(client, tableName, httpContent).ConfigureAwait(false);
|
||||
using var httpResponseMessage =
|
||||
await Post(client, tableName, httpContent).ConfigureAwait(false);
|
||||
var readAsStringAsync = await httpResponseMessage.Content.ReadAsStringAsync().ConfigureAwait(false);
|
||||
var splitByLine = QuestDbRestAPHelper.SplitByLine(readAsStringAsync);
|
||||
|
||||
|
@@ -49,8 +49,8 @@ public class Variable : BaseDataEntity, IValidatableObject
|
||||
private double lLAlarmCode = 0;
|
||||
private long deviceId;
|
||||
private int? arrayLength;
|
||||
private int alarmDelay;
|
||||
private int alarmLevel;
|
||||
private int alarmDelay;
|
||||
private int alarmLevel;
|
||||
private ProtectTypeEnum protectType = ProtectTypeEnum.ReadWrite;
|
||||
private DataTypeEnum dataType = DataTypeEnum.Int16;
|
||||
|
||||
@@ -59,7 +59,7 @@ public class Variable : BaseDataEntity, IValidatableObject
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
internal bool IsUp;
|
||||
internal bool IsUp;
|
||||
private bool enable = true;
|
||||
public bool DynamicVariable;
|
||||
private bool rpcWriteEnable = true;
|
||||
|
@@ -67,7 +67,7 @@ public class AlarmVariable : PrimaryIdEntity, IDBHistoryAlarm
|
||||
[SugarColumn(ColumnDescription = "报警等级", IsNullable = false)]
|
||||
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
|
||||
public int AlarmLevel { get; set; }
|
||||
|
||||
|
||||
/// <inheritdoc cref="VariableRuntime.AlarmCode"/>
|
||||
[SugarColumn(ColumnDescription = "报警值", IsNullable = false)]
|
||||
[AutoGenerateColumn(Visible = true, Filterable = true, Sortable = true)]
|
||||
|
@@ -46,7 +46,7 @@ public partial class VariableRuntime : Variable, IVariable, IDisposable
|
||||
private object _value;
|
||||
private object lastSetValue;
|
||||
private object rawValue;
|
||||
internal object AlarmLockObject=new();
|
||||
internal object AlarmLockObject = new();
|
||||
internal bool AlarmConfirm;
|
||||
private DeviceRuntime? deviceRuntime;
|
||||
private IVariableSource? variableSource;
|
||||
|
@@ -233,7 +233,7 @@ internal sealed class AlarmTask : IDisposable
|
||||
if (result)
|
||||
{
|
||||
// 如果表达式结果为true,则触发报警事件
|
||||
AlarmChange(item, limit, text,false, alarmEnum, delay);
|
||||
AlarmChange(item, limit, text, false, alarmEnum, delay);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -433,7 +433,7 @@ internal sealed class AlarmTask : IDisposable
|
||||
{
|
||||
|
||||
// 如果是需恢复报警事件,则从实时报警列表中移除该变量
|
||||
if(item.AlarmConfirm)
|
||||
if (item.AlarmConfirm)
|
||||
{
|
||||
GlobalData.RealAlarmIdVariables.TryRemove(item.Id, out _);
|
||||
item.EventType = EventTypeEnum.ConfirmAndFinish;
|
||||
|
@@ -1,7 +1,9 @@
|
||||
|
||||
using ThingsGateway.Blazor.Diagrams.Core.Geometry;
|
||||
|
||||
#if !Management
|
||||
using ThingsGateway.Gateway.Application.Extensions;
|
||||
|
||||
#endif
|
||||
using TouchSocket.Core;
|
||||
|
||||
|
@@ -118,7 +118,7 @@ public class AlarmChangedTriggerNode : VariableNode, ITriggerNode, IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -102,7 +102,7 @@ public class DeviceChangedTriggerNode : TextNode, ITriggerNode, IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@@ -8,10 +8,6 @@
|
||||
// QQ群:605534569
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
using ThingsGateway.SqlSugar;
|
||||
|
||||
namespace ThingsGateway.Plugin.DB;
|
||||
@@ -22,7 +18,7 @@ public class QuestDBProducerProperty : RealDBProducerProperty
|
||||
|
||||
public QuestDBProducerProperty()
|
||||
{
|
||||
BigTextConnectStr="host=localhost;port=8812;username=admin;password=quest;database=qdb;ServerCompatibilityMode=NoTypeLoading;";
|
||||
BigTextConnectStr = "host=localhost;port=8812;username=admin;password=quest;database=qdb;ServerCompatibilityMode=NoTypeLoading;";
|
||||
}
|
||||
[DynamicProperty]
|
||||
public bool RestApi { get; set; } = true;
|
||||
|
@@ -8,10 +8,6 @@
|
||||
// QQ群:605534569
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using BootstrapBlazor.Components;
|
||||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
using ThingsGateway.SqlSugar;
|
||||
|
||||
namespace ThingsGateway.Plugin.DB;
|
||||
|
Reference in New Issue
Block a user