94 lines
3.3 KiB
Plaintext
94 lines
3.3 KiB
Plaintext
@using RobotNet.VDA5050.State
|
|
|
|
<MudPaper Class="pa-4" Elevation="2">
|
|
<MudText Typo="Typo.h6" Class="mb-3">Order Information</MudText>
|
|
@if (State != null)
|
|
{
|
|
<MudSimpleTable Elevation="0">
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>Order ID:</strong></td>
|
|
<td>@State.OrderId</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Order Update ID:</strong></td>
|
|
<td>@State.OrderUpdateId</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Zone Set ID:</strong></td>
|
|
<td>@(State.ZoneSetId ?? "N/A")</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Last Node ID:</strong></td>
|
|
<td>@State.LastNodeId</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Last Node Sequence ID:</strong></td>
|
|
<td>@State.LastNodeSequenceId</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Driving:</strong></td>
|
|
<td>
|
|
@if (State.Driving)
|
|
{
|
|
<MudChip T="string" Size="Size.Small" Color="Color.Success">Yes</MudChip>
|
|
}
|
|
else
|
|
{
|
|
<MudChip T="string" Size="Size.Small" Color="Color.Default">No</MudChip>
|
|
}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Paused:</strong></td>
|
|
<td>
|
|
@if (State.Paused)
|
|
{
|
|
<MudChip T="string" Size="Size.Small" Color="Color.Warning">Yes</MudChip>
|
|
}
|
|
else
|
|
{
|
|
<MudChip T="string" Size="Size.Small" Color="Color.Default">No</MudChip>
|
|
}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Operating Mode:</strong></td>
|
|
<td>@State.OperatingMode</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Distance Since Last Node:</strong></td>
|
|
<td>@State.DistanceSinceLastNode?.ToString("F3") m</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>New Base Request:</strong></td>
|
|
<td>
|
|
@if (State.NewBaseRequest)
|
|
{
|
|
<MudChip T="string" Size="Size.Small" Color="Color.Warning">Yes</MudChip>
|
|
}
|
|
else
|
|
{
|
|
<MudChip T="string" Size="Size.Small" Color="Color.Default">No</MudChip>
|
|
}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</MudSimpleTable>
|
|
}
|
|
else
|
|
{
|
|
<MudText Typo="Typo.body2" Align="Align.Center">No order data available</MudText>
|
|
}
|
|
</MudPaper>
|
|
|
|
@code {
|
|
public StateMsg? State { get; set; }
|
|
|
|
public void Update(StateMsg? state)
|
|
{
|
|
State = state;
|
|
StateHasChanged();
|
|
}
|
|
}
|