102 lines
3.6 KiB
C#
102 lines
3.6 KiB
C#
using DevExpress.Blazor;
|
|
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;
|
|
using TIAM.Entities.Addresses;
|
|
using TIAMSharedUI.Shared.Components.BaseComponents;
|
|
|
|
|
|
namespace TIAMSharedUI.Pages.User.SysAdmins
|
|
{
|
|
public partial class ManageTransferDestinations : UserBasePageComponent
|
|
{
|
|
|
|
IGrid Grid { get; set; }
|
|
//object? TransferData { get; set; }
|
|
|
|
//public TransferDestinationWizardModel TransferDestinationWizardModel = new();
|
|
|
|
bool PopupVisible { get; set; }
|
|
public List<string> IgnoreList = ["ReceiverId"];
|
|
|
|
public MessageWizardModel MessageWizardModel = new();
|
|
|
|
[Inject]
|
|
public ITransferDataService TransferDataService { get; set; }
|
|
|
|
/*object? TransferData = new TransferDestinationWizardModel[]
|
|
{
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Liszt Ferenc Airport", "International airport of Budapest", "1185, Budapest, Liszt Ferenc Repülőtér" ),
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Buda Castle", "Historical site in the heart of Budapest", "1014 Budapest, Szent György tér 2" ),
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Hungarian National Museum", "Historical site in the heart of Budapest", "1088 Budapest, Múzeum krt. 14-16" ),
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Parliament of Hungary", "Historical site in the heart of Budapest", "1055 Budapest, Kossuth Lajos tér 1-3" ),
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Heroes square", "Historical site in the heart of Budapest", "1146 Budapest, Hősök tere" ),
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Gellert Hill", "Historical site in the heart of Budapest", "1118 Budapest, Gellérthegy" ),
|
|
new TransferDestinationWizardModel(Guid.NewGuid(), "Margaret Island", "Historical site in the heart of Budapest", "1138 Budapest, Margitsziget" ),
|
|
};*/
|
|
|
|
private LoggerClient<ManageTransferDestinations> _logger;
|
|
|
|
public readonly List<TransferDestinationWizardModel> _transferDestinationWizardModels = [];
|
|
|
|
void CancelCreateClick()
|
|
{
|
|
PopupVisible = false;
|
|
}
|
|
|
|
void EulaPopupClosed()
|
|
{
|
|
//cancel clicked
|
|
}
|
|
|
|
void EulaPopupClosing(PopupClosingEventArgs args)
|
|
{
|
|
//myModel = new TransferWizardModel();
|
|
MessageWizardModel = new MessageWizardModel();
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------------
|
|
|
|
|
|
public async Task SubmitForm(object Result)
|
|
{
|
|
//await WizardProcessor.ProcessWizardAsync(Result.GetType(), Result);
|
|
_logger.Info($"Submitted nested form: {Result.GetType().FullName}");
|
|
}
|
|
|
|
|
|
//protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
//{
|
|
// //if (firstRender)
|
|
// // await Grid.StartEditRowAsync(0);
|
|
// throw new NotImplementedException();
|
|
//}
|
|
|
|
async void Grid_CustomizeEditModel(GridCustomizeEditModelEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
void Grid_CustomizeElement(GridCustomizeElementEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
base.OnInitialized();
|
|
|
|
_logger = new LoggerClient<ManageTransferDestinations>(_logWriters.ToArray());
|
|
|
|
//await FillGridDataSource();
|
|
}
|
|
|
|
|
|
}
|
|
}
|