diff --git a/Elwig/Models/Entities/Delivery.cs b/Elwig/Models/Entities/Delivery.cs index 9e16c96..0abe63e 100644 --- a/Elwig/Models/Entities/Delivery.cs +++ b/Elwig/Models/Entities/Delivery.cs @@ -63,6 +63,11 @@ namespace Elwig.Models.Entities { [Column("comment")] public string? Comment { get; set; } + [NotMapped] + public string[] Comments => [.. Parts.Select(p => p.Comment).Prepend(Comment).Where(c => c != null).Cast()]; + [NotMapped] + public string CommentsString => string.Join(" / ", Comments); + [Column("ctime"), DatabaseGenerated(DatabaseGeneratedOption.Computed)] public long CTime { get; set; } [NotMapped] diff --git a/Elwig/Windows/DeliveryAdminWindow.xaml b/Elwig/Windows/DeliveryAdminWindow.xaml index 9f1f7bb..37c8b32 100644 --- a/Elwig/Windows/DeliveryAdminWindow.xaml +++ b/Elwig/Windows/DeliveryAdminWindow.xaml @@ -295,6 +295,7 @@ +