OPERATIONS
@if (IsLockBlocked)
{
@Lang.T("Bạn chưa giữ quyền điều khiển. Vào CONTROL ACCESS → ACQUIRE CONTROL.", "You don't hold control. Go to CONTROL ACCESS → ACQUIRE CONTROL.")
}
Cancel @(_opQueue.Count > 0 ? $"+{_opQueue.Count}" : "")
@if (_expanded)
{
Params
[@_selectedSteps.Count]
Steps
Home All
@OpCard(1, "Init")
@OpCard(2, "C2 AMR")
@OpCard(3, "→ Cap1")
@OpCard(4, "C:AMR→IMR")
@OpCard(5, "→ABB:PINKUP")
@OpCard(6, "C:IMR→AMR")
@OpCard(7, "→ Cap2")
@OpCard(8, "AMR C2")
}
@code {
[Inject] StateService State { get; set; } = default!;
[Inject] CommandService Cmd { get; set; } = default!;
[Inject] ISnackbar Snackbar { get; set; } = default!;
[Inject] HttpClient Http { get; set; } = default!;
[Inject] LangService Lang { get; set; } = default!;
[Inject] ScriptLogService Log { get; set; } = default!;
private bool _expanded = true;
private void ToggleExpand() => _expanded = !_expanded;
private int? _times, _ng;
private int _prevCycles = -1;
private string _myUserId = "";
// True when using real stack and lock state shows we don't hold workflow lock
private bool IsLockBlocked =>
!State.System.IsSimulation
&& State.LockState is not null
&& (State.LockState.Workflow is null || State.LockState.Workflow.UserId != _myUserId);
private readonly HashSet