|
|
@ -24,8 +24,6 @@ namespace BlazorApp.Components
|
|
|
|
|
|
|
|
|
|
|
|
public List<Item> InventoryItems { get; set; }
|
|
|
|
public List<Item> InventoryItems { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<InventoryItem> InvItems { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int totalItem;
|
|
|
|
private int totalItem;
|
|
|
|
|
|
|
|
|
|
|
|
public InventoryComp()
|
|
|
|
public InventoryComp()
|
|
|
@ -37,7 +35,7 @@ namespace BlazorApp.Components
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private async Task OnReadData(DataGridReadDataEventArgs<InventoryItem> e)
|
|
|
|
private async Task OnReadData(DataGridReadDataEventArgs<Item> e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (e.CancellationToken.IsCancellationRequested)
|
|
|
|
if (e.CancellationToken.IsCancellationRequested)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -48,11 +46,6 @@ namespace BlazorApp.Components
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Items = await DataService.List(e.Page, e.PageSize);
|
|
|
|
Items = await DataService.List(e.Page, e.PageSize);
|
|
|
|
totalItem = await DataService.Count();
|
|
|
|
totalItem = await DataService.Count();
|
|
|
|
foreach (Item i in Items){
|
|
|
|
|
|
|
|
InventoryItem newI = new InventoryItem();
|
|
|
|
|
|
|
|
newI.Item = i;
|
|
|
|
|
|
|
|
InvItems.Append(newI);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|