diff --git a/TIAMResources/TIAMResources.Designer.cs b/TIAMResources/TIAMResources.Designer.cs index 1d32329c..a1080ab0 100644 --- a/TIAMResources/TIAMResources.Designer.cs +++ b/TIAMResources/TIAMResources.Designer.cs @@ -339,6 +339,24 @@ namespace TIAM.Resources { } } + /// + /// Looks up a localized string similar to Price 2. + /// + public static string Price2 { + get { + return ResourceManager.GetString("Price2", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Price 3. + /// + public static string Price3 { + get { + return ResourceManager.GetString("Price3", resourceCulture); + } + } + /// /// Looks up a localized string similar to Receiver Id. /// diff --git a/TIAMResources/TIAMResources.resx b/TIAMResources/TIAMResources.resx index 525a9471..7ecef8c6 100644 --- a/TIAMResources/TIAMResources.resx +++ b/TIAMResources/TIAMResources.resx @@ -210,6 +210,12 @@ Price + + Price 2 + + + Price 3 + Receiver Id diff --git a/TIAMSharedUI/Pages/AppLaunch.razor b/TIAMSharedUI/Pages/AppLaunch.razor index 8eb450d7..9bfd818d 100644 --- a/TIAMSharedUI/Pages/AppLaunch.razor +++ b/TIAMSharedUI/Pages/AppLaunch.razor @@ -14,13 +14,12 @@ @inject ISecureStorageHandler SecureStorageHandler @inject ISessionService sessionService; @inject HttpClient http; -

AppLaunch

@{ if (string.IsNullOrWhiteSpace(TrackingId)) { TrackingId = ""; -

Loading...

+ //

Loading...

} else { @@ -28,7 +27,6 @@ } } -Loading.... @code { @@ -57,7 +55,7 @@ Loading.... logToBrowserConsole = new LogToBrowserConsole(JSRuntime); //wait for 5 seconds - await Task.Delay(1000); + //await Task.Delay(1000); if (!string.IsNullOrWhiteSpace(userDetailsStr)) { diff --git a/TIAMSharedUI/Pages/Components/AuthComponent.razor.cs b/TIAMSharedUI/Pages/Components/AuthComponent.razor.cs index df029ad0..9b1452c3 100644 --- a/TIAMSharedUI/Pages/Components/AuthComponent.razor.cs +++ b/TIAMSharedUI/Pages/Components/AuthComponent.razor.cs @@ -20,13 +20,13 @@ namespace TIAMSharedUI.Pages.Components [CascadingParameter] private PopupMessageBox PopupMessageBox { get; set; } = default!; - public bool IsVisible = true; + public bool IsVisible = false; protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); IsLoggedIn = sessionService.IsAuthenticated; - await PopupMessageBox.ShowAsync("AuthComponent", "Initialized", null, null, null, PopupMessageBox.ButtonOk); + //await PopupMessageBox.ShowAsync("AuthComponent", "Initialized", null, null, null, PopupMessageBox.ButtonOk); //if (await PopupMessageBox.Show("Cancel", "Cancel this stuff", //PopupMessageBox.ButtonNo, PopupMessageBox.ButtonYes) == PopupMessageBox.ButtonNo) diff --git a/TIAMSharedUI/Pages/Index.razor b/TIAMSharedUI/Pages/Index.razor index ac23d498..66667f38 100644 --- a/TIAMSharedUI/Pages/Index.razor +++ b/TIAMSharedUI/Pages/Index.razor @@ -117,6 +117,8 @@ public async Task SubmitForm(object Result) { + + var transfer = await WizardProcessor.ProcessWizardAsync(Result.GetType(), Result); logToBrowserConsole.LogToBC($"Submitted nested form: {Result.GetType().FullName}"); navManager.NavigateTo("/transfer2/" + transfer.Id); diff --git a/TIAMSharedUI/Pages/User/Hotels/CreateAndManageTransfer.razor b/TIAMSharedUI/Pages/User/Hotels/CreateAndManageTransfer.razor new file mode 100644 index 00000000..399b7da6 --- /dev/null +++ b/TIAMSharedUI/Pages/User/Hotels/CreateAndManageTransfer.razor @@ -0,0 +1,45 @@ +@page "/user/createAndManageTransfer" +@using TIAMSharedUI.Shared +@using TIAMWebApp.Shared.Application.Models; +@using TIAMWebApp.Shared.Application.Interfaces; +@layout AdminLayout +@inject IPopulationStructureDataProvider DataProvider +@inject ISupplierService SupplierService +@inject IUserDataService UserDataService +Transfer + + + + +
+ + + + +
+ +
+
+ +
+ +
+ + + +
+ + +@code { + string Id = "2312-32132121-32123"; + bool isUserLoggedIn; + int userType = 0; + + protected override void OnInitialized() + { + base.OnInitialized(); + + } + +} + diff --git a/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor b/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor index 548d6d51..14df84f3 100644 --- a/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor +++ b/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor @@ -60,7 +60,9 @@ - + + + diff --git a/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor.cs b/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor.cs index de1cf910..641ed50e 100644 --- a/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor.cs +++ b/TIAMSharedUI/Pages/User/SysAdmins/TransferDestinations.razor.cs @@ -176,7 +176,7 @@ namespace TIAMSharedUI.Pages.User.SysAdmins { //add new transferwizardmodel to transferData array TransferDataFromDb = ((TransferDestinationWizardModel[])TransferDataFromDb).Append( - new TransferDestinationWizardModel(item.Id, item.Name, item.Description, item.AddressString, item.Price, item.Address)).ToArray(); + new TransferDestinationWizardModel(item.Id, item.Name, item.Description, item.AddressString, item.Price, item.Price2, item.Price3, item.Address)).ToArray(); logToBrowserConsole.LogToBC($"TransferDataFromDb: {item.Name}"); } diff --git a/TIAMSharedUI/Resources/MyResources.hu.resx b/TIAMSharedUI/Resources/MyResources.hu.resx index c2e98cb4..f6f9f667 100644 --- a/TIAMSharedUI/Resources/MyResources.hu.resx +++ b/TIAMSharedUI/Resources/MyResources.hu.resx @@ -174,6 +174,12 @@ Transzfer + + Ár 2 + + + Ár 3 + Regisztráció diff --git a/TIAMSharedUI/Shared/SliderItemSelector.razor b/TIAMSharedUI/Shared/SliderItemSelector.razor index 4863dd3d..1d432f77 100644 --- a/TIAMSharedUI/Shared/SliderItemSelector.razor +++ b/TIAMSharedUI/Shared/SliderItemSelector.razor @@ -55,8 +55,25 @@ + + @{ + + for (int i = 0; i < Destinations.Count; i++) + { + var destination = Destinations[i]; + var j = i + 1; +
+
+

@destination.Name

+

@destination.AddressString

+
+
+ } + + + } -
+ @*

Liszt Ferenc Airport

@@ -73,7 +90,7 @@

Chain Bridge

-
+
*@

Please type an address or swipe to select from preset destinations!

@@ -222,10 +239,10 @@ { if(firstRender) { - var dotNetObjRef = DotNetObjectReference.Create(this); - JSRuntime.InvokeVoidAsync("setOwlId", OwlId); - JSRuntime.InvokeVoidAsync("InitOwl", OwlId); - JSRuntime.InvokeVoidAsync("CStoJSCall", dotNetObjRef); + // var dotNetObjRef = DotNetObjectReference.Create(this); + // JSRuntime.InvokeVoidAsync("setOwlId", OwlId); + // JSRuntime.InvokeVoidAsync("InitOwl", OwlId); + // JSRuntime.InvokeVoidAsync("CStoJSCall", dotNetObjRef); } @@ -277,7 +294,15 @@ { Destinations = await TransferDataService.GetDestinationsAsync(); Content = TextValue; + InitOwl(); } + private void InitOwl() + { + var dotNetObjRef = DotNetObjectReference.Create(this); + JSRuntime.InvokeVoidAsync("setOwlId", OwlId); + JSRuntime.InvokeVoidAsync("InitOwl", OwlId); + JSRuntime.InvokeVoidAsync("CStoJSCall", dotNetObjRef); + } } diff --git a/TIAMSharedUI/Shared/Users/AdminNavMenu.razor b/TIAMSharedUI/Shared/Users/AdminNavMenu.razor index 2ea7d92c..0be24562 100644 --- a/TIAMSharedUI/Shared/Users/AdminNavMenu.razor +++ b/TIAMSharedUI/Shared/Users/AdminNavMenu.razor @@ -48,12 +48,6 @@ - - +