BaseDataWindow: Fix data renewal

This commit is contained in:
2024-03-30 08:49:11 +01:00
parent 1419c834ac
commit 1047bc6e8f
5 changed files with 33 additions and 9 deletions

View File

@ -31,7 +31,11 @@ namespace Elwig.Windows {
}
private async Task AreaCommitmentTypesFinishEditing(AppDbContext ctx) {
ControlUtils.RenewItemsSource(AreaCommitmentTypeList, await ctx.AreaCommitmentTypes.OrderBy(v => v.SortId).ToListAsync());
ControlUtils.RenewItemsSource(AreaCommitmentTypeList, await ctx.AreaCommitmentTypes
.OrderBy(v => v.VtrgId)
.Include(t => t.WineVar)
.Include(t => t.WineAttr)
.ToListAsync());
_actList = null;
_acts = null;
_actIds = null;