@if(Row is not null) { @if(Row.IsTitle) { @Row.Item.OrderId - @Row.Item.Label } else if(Row.Item is ItemVerification verification) {
@if (verification.Force == ItemVerification.VerificationForce.Optionnal) { } else if(verification.Force == ItemVerification.VerificationForce.Recommandation) { } else if(verification.Force == ItemVerification.VerificationForce.Mandatory) { }
@Row.Item.OrderId
@Row.Item.Label
@Row.Item.References

Out: @Row.Answer.CurrentState

} } else { }
@code { public Shared.InspectionRow? _row; [Parameter] public Shared.InspectionRow? Row { get { return _row; } set { if (_row != value) { _row = value; if (RowChanged.HasDelegate) RowChanged.InvokeAsync(_row); } } } [Parameter] public EventCallback RowChanged { get; set; } private Modal detailsModal = default!; protected override Task OnInitializedAsync() { return base.OnInitializedAsync(); } public string Class { get { if (Row is null) return ""; if (!Row.IsTitle) return "verification"; return "title order-" + Row.Order; } } private async Task ShowDetails() { if (Row is null) return; //TODO: add error message Action callback = (Shared.InspectionRow row) => { StateHasChanged(); }; var parameters = new Dictionary(); parameters.Add("Row", Row); parameters.Add("RowChanged", callback); await detailsModal.ShowAsync(title: "Détails", parameters: parameters); } }