diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor index 71df3bdb..c5e29aa0 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor +++ b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Layout/MainLayout.razor @@ -21,7 +21,6 @@ - diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptedAlarmEdit.razor b/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptedAlarmEdit.razor deleted file mode 100644 index 17aeb627..00000000 --- a/src/Server/ZB.MOM.WW.OtOpcUa.AdminUI/Components/Pages/ScriptedAlarmEdit.razor +++ /dev/null @@ -1,236 +0,0 @@ -@page "/scripted-alarms/new" -@page "/scripted-alarms/{ScriptedAlarmId}" -@attribute [Microsoft.AspNetCore.Authorization.Authorize] -@rendermode RenderMode.InteractiveServer -@using Microsoft.AspNetCore.Components.Forms -@using Microsoft.EntityFrameworkCore -@using System.ComponentModel.DataAnnotations -@using ZB.MOM.WW.OtOpcUa.Configuration -@using ZB.MOM.WW.OtOpcUa.Configuration.Entities -@inject IDbContextFactory DbFactory -@inject NavigationManager Nav - - - @(IsNew ? "New scripted alarm" : "Edit scripted alarm") - Cancel - - -@if (!_loaded) -{ - Loading… -} -else if (!IsNew && _existing is null) -{ - @ScriptedAlarmId not found. -} -else -{ - - - - Identity - - - - ScriptedAlarmId - - - - Name - - - - - - Equipment - - — pick equipment — - @foreach (var e in _equipment) { @e.MachineCode — @e.Name } - - - - AlarmType - - LimitAlarm - DiscreteAlarm - OffNormalAlarm - AlarmCondition - - - - Severity (1-1000) - - - - - - Predicate script - - — pick script — - @foreach (var s in _scripts) { @s.Name } - - - - - Message template - - - - - HistorizeToAveva - - - Route to Wonderware sidecar - - - - Retain - - - Retain active alarms on restart - - - - Enabled - - - Spawn this alarm in deployments - - - - - - - @if (!string.IsNullOrWhiteSpace(_error)) { @_error } - - - @(IsNew ? "Create" : "Save changes") - Cancel - @if (!IsNew) { Delete } - - -} - -@code { - [Parameter] public string? ScriptedAlarmId { get; set; } - private bool IsNew => string.IsNullOrEmpty(ScriptedAlarmId); - - private FormModel _form = new(); - private ScriptedAlarm? _existing; - private List _equipment = new(); - private List
Loading…