DeliveryAdminWindow: Add attribute list to DeliveryPartList
This commit is contained in:
@ -99,6 +99,9 @@ namespace Elwig.Models {
|
|||||||
[NotMapped]
|
[NotMapped]
|
||||||
public IEnumerable<WineAttr> Attributes => PartAttributes.Select(a => a.Attr);
|
public IEnumerable<WineAttr> Attributes => PartAttributes.Select(a => a.Attr);
|
||||||
|
|
||||||
|
[NotMapped]
|
||||||
|
public string AttributesString => string.Join("/", Attributes);
|
||||||
|
|
||||||
[InverseProperty("Part")]
|
[InverseProperty("Part")]
|
||||||
public virtual ISet<DeliveryPartModifier> PartModifiers { get; private set; }
|
public virtual ISet<DeliveryPartModifier> PartModifiers { get; private set; }
|
||||||
|
|
||||||
|
@ -401,7 +401,8 @@
|
|||||||
<TextBlock Text="{Binding SortId}" Width="30"/>
|
<TextBlock Text="{Binding SortId}" Width="30"/>
|
||||||
<TextBlock Text="{Binding Kmw, StringFormat='{}{0:0.0}°'}" Width="40" TextAlignment="Right" Padding="0,0,10,0"/>
|
<TextBlock Text="{Binding Kmw, StringFormat='{}{0:0.0}°'}" Width="40" TextAlignment="Right" Padding="0,0,10,0"/>
|
||||||
<TextBlock Text="{Binding QualId}" Width="30"/>
|
<TextBlock Text="{Binding QualId}" Width="30"/>
|
||||||
<TextBlock Text="{Binding Weight, StringFormat='{}{0:N0} kg'}" Width="60" TextAlignment="Right"/>
|
<TextBlock Text="{Binding Weight, StringFormat='{}{0:N0} kg'}" Width="60" TextAlignment="Right" Padding="0,0,10,0"/>
|
||||||
|
<TextBlock Text="{Binding AttributesString}" Width="100"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
|
Reference in New Issue
Block a user