Add Price2, Price3 to TransferDestination; fixes, improvements, etc...
This commit is contained in:
parent
20d47800a9
commit
8dcb641ccf
|
|
@ -10,7 +10,6 @@ using TIAM.Entities.Addresses;
|
||||||
using TIAM.Entities.Drivers;
|
using TIAM.Entities.Drivers;
|
||||||
using TIAM.Entities.Emails;
|
using TIAM.Entities.Emails;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
using TIAM.Models.Dtos.Users;
|
using TIAM.Models.Dtos.Users;
|
||||||
using TIAM.Entities.Transfers;
|
using TIAM.Entities.Transfers;
|
||||||
|
|
@ -407,6 +406,8 @@ namespace TIAM.Database.Test
|
||||||
Name = name,
|
Name = name,
|
||||||
Description = name + "description",
|
Description = name + "description",
|
||||||
Price = 15000,
|
Price = 15000,
|
||||||
|
Price2 = 21000,
|
||||||
|
Price3 = 23000,
|
||||||
PriceType = PriceType.Fix,
|
PriceType = PriceType.Fix,
|
||||||
Address = new Address
|
Address = new Address
|
||||||
{
|
{
|
||||||
|
|
@ -486,6 +487,7 @@ namespace TIAM.Database.Test
|
||||||
var contextId = Guid.Parse(emailIdSenderIdContextIdSenderEmailRecipientIdStrings[2]);
|
var contextId = Guid.Parse(emailIdSenderIdContextIdSenderEmailRecipientIdStrings[2]);
|
||||||
var senderEmail = emailIdSenderIdContextIdSenderEmailRecipientIdStrings[3];
|
var senderEmail = emailIdSenderIdContextIdSenderEmailRecipientIdStrings[3];
|
||||||
var recipientId = Guid.Parse(emailIdSenderIdContextIdSenderEmailRecipientIdStrings[4]);
|
var recipientId = Guid.Parse(emailIdSenderIdContextIdSenderEmailRecipientIdStrings[4]);
|
||||||
|
var recipientEmail = "info@touriam.com";
|
||||||
|
|
||||||
var subject = "Transfer - Budapest, Liszt Ferenc tér";
|
var subject = "Transfer - Budapest, Liszt Ferenc tér";
|
||||||
var text = "1211 Budapest, Kossuth Lajos utca 145";
|
var text = "1211 Budapest, Kossuth Lajos utca 145";
|
||||||
|
|
@ -493,7 +495,7 @@ namespace TIAM.Database.Test
|
||||||
await Dal.RemoveEmailMessageAsync(emailMessageId); //kitöröljük a szemetet, ha korábbról bentmaradt - J.
|
await Dal.RemoveEmailMessageAsync(emailMessageId); //kitöröljük a szemetet, ha korábbról bentmaradt - J.
|
||||||
|
|
||||||
var emailMessage = new EmailMessage(emailMessageId, senderId, contextId, subject, text, senderEmail);
|
var emailMessage = new EmailMessage(emailMessageId, senderId, contextId, subject, text, senderEmail);
|
||||||
emailMessage.Recipients.Add(new EmailRecipient(id: Guid.NewGuid(), recipientId, emailMessageId));
|
emailMessage.Recipients.Add(new EmailRecipient(id: Guid.NewGuid(), recipientId, emailMessageId, recipientEmail));
|
||||||
|
|
||||||
|
|
||||||
Assert.IsTrue(await Dal.AddEmailMessageAsync(emailMessage));
|
Assert.IsTrue(await Dal.AddEmailMessageAsync(emailMessage));
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ using TIAM.Entities.Emails;
|
||||||
using TIAM.Entities.Permissions;
|
using TIAM.Entities.Permissions;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.ServiceProviders;
|
using TIAM.Entities.ServiceProviders;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Transfers;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
using TIAM.Models.Dtos.Products;
|
using TIAM.Models.Dtos.Products;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ using TIAM.Database.DbSets.Users;
|
||||||
using AyCode.Database.DataLayers;
|
using AyCode.Database.DataLayers;
|
||||||
using AyCode.Database.DbSets.Users;
|
using AyCode.Database.DbSets.Users;
|
||||||
using TIAM.Database.DbSets.Products;
|
using TIAM.Database.DbSets.Products;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Models.Dtos.Users;
|
using TIAM.Models.Dtos.Users;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ using AyCode.Utils.Extensions;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Identity.Client;
|
using Microsoft.Identity.Client;
|
||||||
using TIAM.Database.DbContexts.Transfers;
|
using TIAM.Database.DbContexts.Transfers;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
|
|
||||||
namespace TIAM.Database.DataLayers.TransferDestinations;
|
namespace TIAM.Database.DataLayers.TransferDestinations;
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,6 @@ using TIAM.Entities.Permissions;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.Profiles;
|
using TIAM.Entities.Profiles;
|
||||||
using TIAM.Entities.ServiceProviders;
|
using TIAM.Entities.ServiceProviders;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Transfers;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ using System.Threading.Tasks;
|
||||||
using AyCode.Database.DbContexts;
|
using AyCode.Database.DbContexts;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TIAM.Entities.Auctions;
|
using TIAM.Entities.Auctions;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
|
|
||||||
namespace TIAM.Database.DbContexts.Auctions
|
namespace TIAM.Database.DbContexts.Auctions
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ using TIAM.Entities.Addresses;
|
||||||
using TIAM.Entities.Permissions;
|
using TIAM.Entities.Permissions;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.ServiceProviders;
|
using TIAM.Entities.ServiceProviders;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
|
|
||||||
namespace TIAM.Database.DbContexts.ServiceProviders
|
namespace TIAM.Database.DbContexts.ServiceProviders
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
|
|
||||||
namespace TIAM.Database.DbContexts.Transfers
|
namespace TIAM.Database.DbContexts.Transfers
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ using TIAM.Entities.Emails;
|
||||||
using TIAM.Entities.Permissions;
|
using TIAM.Entities.Permissions;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.Profiles;
|
using TIAM.Entities.Profiles;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Transfers;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ public static class EmailMessageDbSetExtension
|
||||||
=> ctx.EmailMessages.Where(x => x.SenderId == senderId);
|
=> ctx.EmailMessages.Where(x => x.SenderId == senderId);
|
||||||
|
|
||||||
public static IQueryable<EmailMessage> GetEmailMessagesBySenderEmailAddress(this IEmailMessageDbSet ctx, string senderEmailAddress)
|
public static IQueryable<EmailMessage> GetEmailMessagesBySenderEmailAddress(this IEmailMessageDbSet ctx, string senderEmailAddress)
|
||||||
=> ctx.EmailMessages.Where(x => x.SenderEmailAddress == senderEmailAddress);
|
=> ctx.EmailMessages.Where(x => x.EmailAddress == senderEmailAddress);
|
||||||
|
|
||||||
private static IQueryable<EmailMessage> GetEmailMessages(this IQueryable<EmailMessage> queryableEmails, Guid userId, Guid userProductMappingId)
|
private static IQueryable<EmailMessage> GetEmailMessages(this IQueryable<EmailMessage> queryableEmails, Guid userId, Guid userProductMappingId)
|
||||||
=> queryableEmails.Where(x => x.SenderId == userId || x.SenderId == userProductMappingId || x.Recipients.Any(recipient => recipient.RecipientId == userId || recipient.RecipientId == userProductMappingId));
|
=> queryableEmails.Where(x => x.SenderId == userId || x.SenderId == userProductMappingId || x.Recipients.Any(recipient => recipient.RecipientId == userId || recipient.RecipientId == userProductMappingId));
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Transfers;
|
using TIAM.Entities.Transfers;
|
||||||
|
|
||||||
namespace TIAM.Database.DbSets.Transfers;
|
namespace TIAM.Database.DbSets.Transfers;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TIAM.Entities.Addresses;
|
using TIAM.Entities.Addresses;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
|
|
||||||
namespace TIAM.Database.DbSets.Transfers;
|
namespace TIAM.Database.DbSets.Transfers;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Transfers;
|
using TIAM.Entities.Transfers;
|
||||||
|
|
||||||
namespace TIAM.Database.DbSets.Transfers;
|
namespace TIAM.Database.DbSets.Transfers;
|
||||||
|
|
|
||||||
|
|
@ -3,24 +3,25 @@ using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using AyCode.Interfaces.Entities;
|
using AyCode.Interfaces.Entities;
|
||||||
using AyCode.Interfaces.TimeStampInfo;
|
using AyCode.Interfaces.TimeStampInfo;
|
||||||
|
using AyCode.Interfaces.Users;
|
||||||
|
|
||||||
namespace TIAM.Entities.Emails;
|
namespace TIAM.Entities.Emails;
|
||||||
|
|
||||||
[Table(nameof(EmailMessage))]
|
[Table(nameof(EmailMessage))]
|
||||||
public class EmailMessage : IEntityGuid, ITimeStampInfo, IEmailRecipientsRelation
|
public class EmailMessage : IEntityGuid, ITimeStampInfo, IEmailRecipientsRelation, IEmailAddress
|
||||||
{
|
{
|
||||||
public EmailMessage()
|
public EmailMessage()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public EmailMessage(Guid id, Guid? senderId, Guid contextId, string subject, string? text, string senderEmailAddress) : this()
|
public EmailMessage(Guid id, Guid? senderId, Guid contextId, string subject, string? text, string emailAddress) : this()
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
SenderId = senderId;
|
SenderId = senderId;
|
||||||
ContextId = contextId;
|
ContextId = contextId;
|
||||||
Subject = subject;
|
Subject = subject;
|
||||||
Text = text;
|
Text = text;
|
||||||
SenderEmailAddress = senderEmailAddress;
|
EmailAddress = emailAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
|
@ -32,7 +33,7 @@ public class EmailMessage : IEntityGuid, ITimeStampInfo, IEmailRecipientsRelatio
|
||||||
public virtual List<EmailRecipient> Recipients { get; set; } = [];
|
public virtual List<EmailRecipient> Recipients { get; set; } = [];
|
||||||
|
|
||||||
[MaxLength(150)]
|
[MaxLength(150)]
|
||||||
public string SenderEmailAddress { get; set; }
|
public string EmailAddress { get; set; }
|
||||||
[MaxLength(100)]
|
[MaxLength(100)]
|
||||||
public string Subject { get; set; }
|
public string Subject { get; set; }
|
||||||
public string? Text { get; set; }
|
public string? Text { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -2,21 +2,23 @@
|
||||||
using AyCode.Interfaces.TimeStampInfo;
|
using AyCode.Interfaces.TimeStampInfo;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using AyCode.Interfaces.Users;
|
||||||
|
|
||||||
namespace TIAM.Entities.Emails;
|
namespace TIAM.Entities.Emails;
|
||||||
|
|
||||||
//Update efcore, aspnetcore to 8.0.1; Implement EmailMessage, EmailRecipient; refactoring, improvments, fixes, etc...
|
//Update efcore, aspnetcore to 8.0.1; Implement EmailMessage, EmailRecipient; refactoring, improvments, fixes, etc...
|
||||||
public class EmailRecipient : IEntityGuid, ITimeStampInfo, IEmailMessageRelation
|
public class EmailRecipient : IEntityGuid, ITimeStampInfo, IEmailMessageRelation, IEmailAddress
|
||||||
{
|
{
|
||||||
public EmailRecipient()
|
public EmailRecipient()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public EmailRecipient(Guid id, Guid recipientId, Guid emailMessageId) : this()
|
public EmailRecipient(Guid id, Guid recipientId, Guid emailMessageId, string emailAddress) : this()
|
||||||
{
|
{
|
||||||
Id = id;
|
Id = id;
|
||||||
RecipientId = recipientId;
|
RecipientId = recipientId;
|
||||||
EmailMessageId = emailMessageId;
|
EmailMessageId = emailMessageId;
|
||||||
|
EmailAddress = emailAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||||
|
|
@ -24,6 +26,9 @@ public class EmailRecipient : IEntityGuid, ITimeStampInfo, IEmailMessageRelation
|
||||||
|
|
||||||
public Guid RecipientId { get; set; }
|
public Guid RecipientId { get; set; }
|
||||||
public Guid EmailMessageId { get; set; }
|
public Guid EmailMessageId { get; set; }
|
||||||
|
public string EmailAddress { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public virtual EmailMessage EmailMessage { get; set; }
|
public virtual EmailMessage EmailMessage { get; set; }
|
||||||
|
|
||||||
public DateTime Created { get; set; }
|
public DateTime Created { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
using AyCode.Interfaces.Entities;
|
using AyCode.Interfaces.Entities;
|
||||||
using AyCode.Entities.Locations;
|
|
||||||
using AyCode.Interfaces.TimeStampInfo;
|
using AyCode.Interfaces.TimeStampInfo;
|
||||||
using System.ComponentModel.DataAnnotations;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using TIAM.Core.Enums;
|
using TIAM.Core.Enums;
|
||||||
using TIAM.Entities.Addresses;
|
using TIAM.Entities.Addresses;
|
||||||
|
|
||||||
namespace TIAM.Entities.TransferDestinations
|
namespace TIAM.Entities.Transfers
|
||||||
{
|
{
|
||||||
[Table("TransferDestination")]
|
[Table("TransferDestination")]
|
||||||
public class TransferDestination : IEntityGuid, ITimeStampInfo //LocationBase
|
public class TransferDestination : IEntityGuid, ITimeStampInfo //LocationBase
|
||||||
|
|
@ -23,8 +21,10 @@ namespace TIAM.Entities.TransferDestinations
|
||||||
|
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
|
|
||||||
public double Price { get; set; }
|
|
||||||
public PriceType PriceType { get; set; }
|
public PriceType PriceType { get; set; }
|
||||||
|
public double Price { get; set; }
|
||||||
|
public double Price2 { get; set; }
|
||||||
|
public double Price3 { get; set; }
|
||||||
|
|
||||||
//TEMPORARY!!!
|
//TEMPORARY!!!
|
||||||
public string? AddressString { get; set; }
|
public string? AddressString { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Components.Forms;
|
||||||
using Microsoft.AspNetCore.Components.Web;
|
using Microsoft.AspNetCore.Components.Web;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAMWebApp.Shared.Application.Utility;
|
using TIAMWebApp.Shared.Application.Utility;
|
||||||
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
||||||
using TIAMWebApp.Shared.Application.Models.PageModels;
|
using TIAMWebApp.Shared.Application.Models.PageModels;
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
@using System.IdentityModel.Tokens.Jwt;
|
@using System.IdentityModel.Tokens.Jwt;
|
||||||
@using TIAMSharedUI.Pages.Components;
|
@using TIAMSharedUI.Pages.Components;
|
||||||
@using TIAMSharedUI.Shared
|
@using TIAMSharedUI.Shared
|
||||||
@using TIAM.Entities.TransferDestinations
|
|
||||||
@using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
@using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
||||||
@inject NavigationManager NavManager
|
@inject NavigationManager NavManager
|
||||||
@inject IUserDataService UserDataService;
|
@inject IUserDataService UserDataService;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
@using TIAMWebApp.Shared.Application.Interfaces
|
@using TIAMWebApp.Shared.Application.Interfaces
|
||||||
@using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
@using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
||||||
@using TIAMWebApp.Shared.Application.Utility
|
@using TIAMWebApp.Shared.Application.Utility
|
||||||
@using TIAM.Entities.TransferDestinations
|
@using TIAM.Entities.Transfers
|
||||||
@inject LogToBrowserConsole logToBrowserConsole
|
@inject LogToBrowserConsole logToBrowserConsole
|
||||||
@inject IWizardProcessor WizardProcessor
|
@inject IWizardProcessor WizardProcessor
|
||||||
<h3>TestPage</h3>
|
<h3>TestPage</h3>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
@page "/transfer"
|
@page "/transfer"
|
||||||
@using TIAM.Entities.TransferDestinations
|
|
||||||
@using TIAMSharedUI.Pages.Components
|
@using TIAMSharedUI.Pages.Components
|
||||||
@using TIAMSharedUI.Shared
|
@using TIAMSharedUI.Shared
|
||||||
@using TIAMWebApp.Shared.Application.Interfaces
|
@using TIAMWebApp.Shared.Application.Interfaces
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
|
|
||||||
namespace TIAMSharedUI.Pages.User.SysAdmins
|
namespace TIAMSharedUI.Pages.User.SysAdmins
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
@using System.Linq.Expressions
|
@using System.Linq.Expressions
|
||||||
|
@using TIAM.Entities.Transfers
|
||||||
@using TIAMWebApp.Shared.Application.Interfaces
|
@using TIAMWebApp.Shared.Application.Interfaces
|
||||||
@using TIAMWebApp.Shared.Application.Utility
|
@using TIAMWebApp.Shared.Application.Utility
|
||||||
@using TIAM.Entities.TransferDestinations
|
|
||||||
@inject LogToBrowserConsole logToBrowserConsole
|
@inject LogToBrowserConsole logToBrowserConsole
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ using System.Net.Http.Json;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using TIAM.Entities.Permissions;
|
using TIAM.Entities.Permissions;
|
||||||
using TIAM.Entities.Products;
|
using TIAM.Entities.Products;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Models.Dtos.Products;
|
using TIAM.Models.Dtos.Products;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ using Microsoft.JSInterop;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Net.Http.Json;
|
using System.Net.Http.Json;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using TIAM.Entities.TransferDestinations;
|
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ using TIAM.Database.DataLayers.Admins;
|
||||||
using TIAM.Database.DataLayers.TransferDestinations;
|
using TIAM.Database.DataLayers.TransferDestinations;
|
||||||
using TIAM.Database.DataLayers.Users;
|
using TIAM.Database.DataLayers.Users;
|
||||||
using TIAM.Database.DbContexts;
|
using TIAM.Database.DbContexts;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Entities.Users;
|
using TIAM.Entities.Users;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
||||||
|
|
@ -102,6 +102,8 @@ namespace TIAMWebApp.Server.Controllers
|
||||||
Console.WriteLine($"TransferDestination to be created: {transferDestination.AddressId}");
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.AddressId}");
|
||||||
Console.WriteLine($"TransferDestination to be created: {transferDestination.Name}");
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.Name}");
|
||||||
Console.WriteLine($"TransferDestination to be created: {transferDestination.Price}");
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.Price}");
|
||||||
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.Price2}");
|
||||||
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.Price3}");
|
||||||
Console.WriteLine($"TransferDestination to be created: {transferDestination.PriceType}");
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.PriceType}");
|
||||||
Console.WriteLine($"TransferDestination to be created: {transferDestination.AddressString}");
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.AddressString}");
|
||||||
Console.WriteLine($"TransferDestination to be created: {transferDestination.Description}");
|
Console.WriteLine($"TransferDestination to be created: {transferDestination.Description}");
|
||||||
|
|
@ -158,6 +160,8 @@ namespace TIAMWebApp.Server.Controllers
|
||||||
Console.WriteLine($"TransferDestination to be updated: {transferDestination.Id}");
|
Console.WriteLine($"TransferDestination to be updated: {transferDestination.Id}");
|
||||||
Console.WriteLine($"TransferDestination to be updated new name: {transferDestination.Name}");
|
Console.WriteLine($"TransferDestination to be updated new name: {transferDestination.Name}");
|
||||||
Console.WriteLine($"TransferDestination to be updated new price: {transferDestination.Price}");
|
Console.WriteLine($"TransferDestination to be updated new price: {transferDestination.Price}");
|
||||||
|
Console.WriteLine($"TransferDestination to be updated new price: {transferDestination.Price2}");
|
||||||
|
Console.WriteLine($"TransferDestination to be updated new price: {transferDestination.Price3}");
|
||||||
Console.WriteLine($"TransferDestination to be updated new priceType: {transferDestination.PriceType}");
|
Console.WriteLine($"TransferDestination to be updated new priceType: {transferDestination.PriceType}");
|
||||||
Console.WriteLine($"TransferDestination to be updated new address: {transferDestination.AddressString}");
|
Console.WriteLine($"TransferDestination to be updated new address: {transferDestination.AddressString}");
|
||||||
Console.WriteLine($"TransferDestination to be updated new description: {transferDestination.Description}");
|
Console.WriteLine($"TransferDestination to be updated new description: {transferDestination.Description}");
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
using TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ using System.Text.RegularExpressions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using TIAM.Core.Enums;
|
using TIAM.Core.Enums;
|
||||||
using TIAM.Entities.Addresses;
|
using TIAM.Entities.Addresses;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAM.Resources;
|
using TIAM.Resources;
|
||||||
|
|
||||||
namespace TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
namespace TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
||||||
|
|
@ -81,6 +81,8 @@ namespace TIAMWebApp.Shared.Application.Models.ClientSide.UI.WizardModels
|
||||||
destination.Description = model.Description;
|
destination.Description = model.Description;
|
||||||
destination.AddressString = model.AddressString;
|
destination.AddressString = model.AddressString;
|
||||||
destination.Price = model.Price;
|
destination.Price = model.Price;
|
||||||
|
destination.Price2 = model.Price;
|
||||||
|
destination.Price3 = model.Price;
|
||||||
destination.PriceType = model.PriceType;
|
destination.PriceType = model.PriceType;
|
||||||
destination.Address = model.Address;
|
destination.Address = model.Address;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
using System.Net.Http.Json;
|
using System.Net.Http.Json;
|
||||||
using TIAM.Entities.TransferDestinations;
|
using TIAM.Entities.Transfers;
|
||||||
using TIAMWebApp.Shared.Application.Interfaces;
|
using TIAMWebApp.Shared.Application.Interfaces;
|
||||||
using TIAMWebApp.Shared.Application.Models;
|
using TIAMWebApp.Shared.Application.Models;
|
||||||
using TIAMWebApp.Shared.Application.Models.ClientSide;
|
using TIAMWebApp.Shared.Application.Models.ClientSide;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue