Overflow/Overflow.Web.Client/Components/SpillsTable.razor
Andy Pack 4c5fa9e0e6
Some checks are pending
ci / build (8.0.x) (push) Waiting to run
ci / build-Docker (push) Blocked by required conditions
adding wasm client project, github actions, radzen
2024-06-09 18:43:32 +01:00

43 lines
1.8 KiB
Plaintext

@using Overflow.SouthernWater
@rendermode RenderMode.InteractiveAuto
@if (Job == null)
{
<p>
<em>Loading...</em>
</p>
}
else
{
<RadzenDataGrid Data="@Job.Spills" TItem="Spill"
AllowFiltering="true"
AllowColumnResize="true"
AllowSorting="true"
PageSize="25"
AllowPaging="true"
ShowPagingSummary="true"
>
<Columns>
@if (ShowIds)
{
<RadzenDataGridColumn TItem="Spill" Property="sw_id" Title="Id"/>
<RadzenDataGridColumn TItem="Spill" Property="eventId" Title="Event Id"/>
<RadzenDataGridColumn TItem="Spill" Property="siteUnitNumber" Title="Site Unit Number"/>
<RadzenDataGridColumn TItem="Spill" Property="associatedSiteId" Title="Associated Site Id"/>
<RadzenDataGridColumn TItem="Spill" Property="overFlowSiteId" Title="OverFlow Site Id"/>
}
<RadzenDataGridColumn TItem="Spill" Property="bathingSite" Title="Bathing Site"/>
<RadzenDataGridColumn TItem="Spill" Property="outfallName" Title="Outfall"/>
<RadzenDataGridColumn TItem="Spill" Property="eventStart" Title="Event Start"/>
<RadzenDataGridColumn TItem="Spill" Property="eventStop" Title="Event End"/>
<RadzenDataGridColumn TItem="Spill" Property="duration" Title="Duration"/>
<RadzenDataGridColumn TItem="Spill" Property="status" Title="Status"/>
<RadzenDataGridColumn TItem="Spill" Property="isImpacting" Title="Is Impacting"/>
</Columns>
</RadzenDataGrid>
}
@code {
[Parameter] public SouthernWaterApiJob? Job { get; set; }
[Parameter] public bool ShowIds { get; set; }
}