@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
@foreach (var e in _equipment) { }
@foreach (var s in _scripts) { }
@if (!string.IsNullOrWhiteSpace(_error)) {
@_error
}
Cancel @if (!IsNew) { }
} @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