feat(uns): scripted-alarm CRUD in IUnsTreeService for the equipment Alarms tab

This commit is contained in:
Joseph Doherty
2026-06-11 14:25:59 -04:00
parent 7c22861598
commit 705ed6234f
5 changed files with 226 additions and 0 deletions
@@ -0,0 +1,9 @@
namespace ZB.MOM.WW.OtOpcUa.AdminUI.Uns;
/// <summary>A scripted-alarm row for the Alarms-tab table.</summary>
public sealed record EquipmentAlarmRow(string ScriptedAlarmId, string Name, string AlarmType, int Severity, string PredicateScriptId, bool Enabled);
/// <summary>A scripted alarm projected for editing, with the concurrency token the modal echoes back.</summary>
public sealed record ScriptedAlarmEditDto(
string ScriptedAlarmId, string EquipmentId, string Name, string AlarmType, int Severity, string MessageTemplate,
string PredicateScriptId, bool HistorizeToAveva, bool Retain, bool Enabled, byte[] RowVersion);