fixes
This commit is contained in:
parent
422a1c0bab
commit
0b042063af
|
|
@ -5,7 +5,6 @@
|
|||
@using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
||||
@using AyCode.Services.Loggers
|
||||
@layout AdminLayout
|
||||
@inject IEnumerable<IAcLogWriterClientBase> LogWriters
|
||||
|
||||
@inject IStringLocalizer<TIAMResources> localizer
|
||||
<PageTitle>Transfers</PageTitle>
|
||||
|
|
|
|||
|
|
@ -3,10 +3,11 @@ using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
|||
using TIAMWebApp.Shared.Application.Interfaces;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using TIAMWebApp.Shared.Application.Utility;
|
||||
using AyCode.Services.Loggers;
|
||||
|
||||
namespace TIAMSharedUI.Pages.User.SysAdmins
|
||||
{
|
||||
public partial class TransferDestinations
|
||||
public partial class ManageTransferDestinations : ComponentBase
|
||||
{
|
||||
|
||||
IGrid Grid { get; set; }
|
||||
|
|
@ -22,6 +23,8 @@ namespace TIAMSharedUI.Pages.User.SysAdmins
|
|||
[Inject]
|
||||
public ITransferDataService TransferDataService { get; set; }
|
||||
|
||||
[Inject]
|
||||
public IEnumerable<IAcLogWriterClientBase> LogWriters { get; set; }
|
||||
|
||||
/*object? TransferData = new TransferDestinationWizardModel[]
|
||||
{
|
||||
|
|
@ -34,9 +37,9 @@ namespace TIAMSharedUI.Pages.User.SysAdmins
|
|||
new TransferDestinationWizardModel(Guid.NewGuid(), "Margaret Island", "Historical site in the heart of Budapest", "1138 Budapest, Margitsziget" ),
|
||||
};*/
|
||||
|
||||
private LoggerClient<TransferDestinations> _logger;
|
||||
private LoggerClient<ManageTransferDestinations> _logger;
|
||||
|
||||
private readonly List<TransferDestinationWizardModel> _transferDestinationWizardModels = [];
|
||||
public readonly List<TransferDestinationWizardModel> _transferDestinationWizardModels = [];
|
||||
|
||||
void CancelCreateClick()
|
||||
{
|
||||
|
|
@ -64,11 +67,12 @@ namespace TIAMSharedUI.Pages.User.SysAdmins
|
|||
}
|
||||
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
//if (firstRender)
|
||||
// await Grid.StartEditRowAsync(0);
|
||||
}
|
||||
//protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
//{
|
||||
// //if (firstRender)
|
||||
// // await Grid.StartEditRowAsync(0);
|
||||
// throw new NotImplementedException();
|
||||
//}
|
||||
|
||||
void Grid_CustomizeEditModel(GridCustomizeEditModelEventArgs e)
|
||||
{
|
||||
|
|
@ -158,7 +162,7 @@ namespace TIAMSharedUI.Pages.User.SysAdmins
|
|||
{
|
||||
base.OnInitialized();
|
||||
|
||||
_logger = new LoggerClient<TransferDestinations>(LogWriters.ToArray());
|
||||
_logger = new LoggerClient<ManageTransferDestinations>(LogWriters.ToArray());
|
||||
|
||||
await FillGridDataSource();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,8 +22,7 @@
|
|||
@inject AdminSignalRClient AdminSignalRClient;
|
||||
|
||||
|
||||
<ProductGrid @ref="_productGrid"
|
||||
ContextIds="new[] {ContextId}"
|
||||
<ProductGrid @ref="_productGrid"
|
||||
DataSource="ParentData?.Products ?? []"
|
||||
GetAllMessageTag="GetAllTag"
|
||||
Logger="_logger"
|
||||
|
|
@ -91,11 +90,11 @@
|
|||
[Parameter] public int GetAllTag { get; set; } = SignalRTags.GetProductsByContextId;
|
||||
[Parameter] public GridDetailExpandButtonDisplayMode DetailExpandButtonDisplayMode { get; set; } = GridDetailExpandButtonDisplayMode.Never;
|
||||
|
||||
private ProductDetailGrid _productGrid = null!;
|
||||
private LoggerClient<ProductDetailGridComponent> _logger = null!;
|
||||
private ProductGrid _productGrid = null!;
|
||||
private LoggerClient<ProductGridComponent> _logger = null!;
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
_logger = new LoggerClient<ProductDetailGridComponent>(LogWriters.ToArray());
|
||||
_logger = new LoggerClient<ProductGridComponent>(LogWriters.ToArray());
|
||||
//DataSource = new List<Address>();
|
||||
|
||||
}
|
||||
|
|
@ -170,7 +169,7 @@
|
|||
var newProduct = (Product)e.EditModel;
|
||||
newProduct.Id = Guid.NewGuid();
|
||||
newProduct.Name = "Type a name";
|
||||
newProduct.ServiceProviderId = (Guid)ContextId!;
|
||||
newProduct.ServiceProviderId = Guid.NewGuid();
|
||||
newProduct.Price = 0;
|
||||
newProduct.ProductType = TIAM.Core.Enums.ProductType.Hotel;
|
||||
newProduct.Description = "Type a description";
|
||||
|
|
|
|||
Loading…
Reference in New Issue