@using Shared.DTOs
@context.ID
@context.CODID
@context.sstt
@context.mu
@context.am
@context.fee
@context.vra
@context.vam
@context.dis
@*
@context.adis
*@
@context.tsstam
@code {
[Inject] ModalService ModalService { get; set; } = default!;
[Parameter] public IEnumerable InvoiceItems { get; set; }
private async Task> DataProvider(GridDataProviderRequest request)
{
if (InvoiceItems is null) // pull employees only one time for client-side filtering, sorting, and paging
InvoiceItems = GetInvoiceItems(); // call a service or an API to pull the employees
return await Task.FromResult(request.ApplyTo(InvoiceItems));
}
private async Task OnRowClick(GridRowEventArgs args)
{
await ModalService.ShowAsync(new ModalOption { Type = ModalType.Primary, Title = "Event: Row Click", Message = $"Id: {args.Item.ID}, Name: {args.Item.sstt}" });
}
private IEnumerable GetInvoiceItems()
{
return new List();
}
}