Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
94db0723c5 | |||
f54677d429 | |||
49e4b65c27 | |||
ada5085cae | |||
85931e62e8 | |||
39956cbcbd | |||
84d8d0cecb | |||
fe7f9d675b |
30
CHANGELOG.md
30
CHANGELOG.md
@ -3,6 +3,36 @@ Changelog
|
||||
=========
|
||||
|
||||
|
||||
[v0.10.4][v0.10.4] (2024-08-22) {#v0.10.4}
|
||||
------------------------------------------
|
||||
|
||||
### Sonstiges {#v0.10.4-misc}
|
||||
|
||||
* Im Anmeldungen-Fenster (`DeliveryAncmtAdminWindow`) wird der Wochentag auch beim Bearbeiten angezeigt. (85931e62e8)
|
||||
* Im Mitglieder-Fenster (`MemberAdminWindow`) werden Anzahl der Mitglieder und Geschäftsanteile nicht mehr von allen aktiven angezeigt, sonder von den momentan gefilterten. (49e4b65c27)
|
||||
* Statusleiste im Anmeldungen-Fenster (`DeliveryAncmtAdminWindow`). (f54677d429)
|
||||
|
||||
[v0.10.4]: https://git.necronda.net/winzer/elwig/releases/tag/v0.10.4
|
||||
|
||||
|
||||
|
||||
|
||||
[v0.10.3][v0.10.3] (2024-08-21) {#v0.10.3}
|
||||
------------------------------------------
|
||||
|
||||
### Behobene Fehler {#v0.10.3-bugfixes}
|
||||
|
||||
* Datum für _Anmeldungen bis_ im Leseplan-Fenster (`DeliveryScheduleAdminWindow`) ab jetzt änderbar. (84d8d0cecb)
|
||||
|
||||
### Sonstiges {#v0.10.3-misc}
|
||||
|
||||
* Wochentag bei Leseplan-Liste im Anmeldungen-Fenster (`DeliveryAncmtAdminWindow`) anzeigen. (fe7f9d675b)
|
||||
|
||||
[v0.10.3]: https://git.necronda.net/winzer/elwig/releases/tag/v0.10.3
|
||||
|
||||
|
||||
|
||||
|
||||
[v0.10.2][v0.10.2] (2024-08-16) {#v0.10.2}
|
||||
------------------------------------------
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<UseWPF>true</UseWPF>
|
||||
<PreserveCompilationContext>true</PreserveCompilationContext>
|
||||
<ApplicationIcon>Resources\Images\Elwig.ico</ApplicationIcon>
|
||||
<Version>0.10.2</Version>
|
||||
<Version>0.10.4</Version>
|
||||
<SatelliteResourceLanguages>de-AT</SatelliteResourceLanguages>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
|
@ -8,7 +8,7 @@ namespace Elwig.Helpers {
|
||||
public static class Validator {
|
||||
|
||||
private static readonly Dictionary<string, string[][]> PHONE_NRS = new() {
|
||||
{ "43", new string[][] {
|
||||
{ "43", [
|
||||
[],
|
||||
["57", "59"],
|
||||
[
|
||||
@ -17,17 +17,17 @@ namespace Elwig.Helpers {
|
||||
"650", "651", "652", "653", "655", "657", "659", "660", "661",
|
||||
"663", "664", "665", "666", "667", "668", "669", "67", "68", "69"
|
||||
]
|
||||
} },
|
||||
{ "49", Array.Empty<string[]>() },
|
||||
{ "48", Array.Empty<string[]>() },
|
||||
{ "420", Array.Empty<string[]>() },
|
||||
{ "421", Array.Empty<string[]>() },
|
||||
{ "36", Array.Empty<string[]>() },
|
||||
{ "386", Array.Empty<string[]>() },
|
||||
{ "39", Array.Empty<string[]>() },
|
||||
{ "33", Array.Empty<string[]>() },
|
||||
{ "41", Array.Empty<string[]>() },
|
||||
{ "423", Array.Empty<string[]>() },
|
||||
] },
|
||||
{ "49", [] },
|
||||
{ "48", [] },
|
||||
{ "420", [] },
|
||||
{ "421", [] },
|
||||
{ "36", [] },
|
||||
{ "386", [] },
|
||||
{ "39", [] },
|
||||
{ "33", [] },
|
||||
{ "41", [] },
|
||||
{ "423", [] },
|
||||
};
|
||||
|
||||
public static ValidationResult CheckInteger(TextBox input, bool required) {
|
||||
|
@ -9,7 +9,6 @@ using Elwig.Documents;
|
||||
using Elwig.Helpers.Export;
|
||||
using Elwig.Models.Dtos;
|
||||
using Microsoft.Win32;
|
||||
using System.Net.Http;
|
||||
using System.Windows.Input;
|
||||
using System.Windows;
|
||||
using System;
|
||||
@ -27,6 +26,8 @@ namespace Elwig.Services {
|
||||
}
|
||||
|
||||
public static void ClearInputs(this DeliveryAncmtAdminViewModel vm) {
|
||||
vm.StatusAncmtCreated = "-";
|
||||
vm.StatusAncmtModified = "-";
|
||||
}
|
||||
|
||||
public static async Task FillInputs(this DeliveryAncmtAdminViewModel vm, DeliveryAncmt a) {
|
||||
@ -34,6 +35,8 @@ namespace Elwig.Services {
|
||||
vm.DeliverySchedule = (DeliverySchedule?)ControlUtils.GetItemFromSourceWithPk(vm.DeliveryScheduleSource, a.Year, a.DsNr);
|
||||
vm.SortId = a.SortId;
|
||||
vm.Weight = a.Weight;
|
||||
vm.StatusAncmtCreated = $"{a.CreatedTimestamp:dd.MM.yyyy, HH:mm} ({a.Type})";
|
||||
vm.StatusAncmtModified = a.ModifiedTimestamp != a.CreatedTimestamp ? $"{a.ModifiedTimestamp:dd.MM.yyyy, HH:mm}" : "-";
|
||||
}
|
||||
|
||||
public static async Task<(List<string>, IQueryable<DeliveryAncmt>, List<string>)> GetFilters(this DeliveryAncmtAdminViewModel vm, AppDbContext ctx) {
|
||||
|
@ -62,6 +62,15 @@ namespace Elwig.ViewModels {
|
||||
set => WeightString = $"{value}";
|
||||
}
|
||||
|
||||
[ObservableProperty]
|
||||
private string _statusAncmts = "-";
|
||||
[ObservableProperty]
|
||||
private string _statusWeight = "-";
|
||||
[ObservableProperty]
|
||||
private string _statusAncmtCreated = "-";
|
||||
[ObservableProperty]
|
||||
private string _statusAncmtModified = "-";
|
||||
|
||||
[ObservableProperty]
|
||||
private Visibility _controlButtonsVisibility = Visibility.Visible;
|
||||
[ObservableProperty]
|
||||
|
@ -61,7 +61,7 @@
|
||||
<RowDefinition Height="24"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="1*" MinWidth="250"/>
|
||||
<ColumnDefinition Width="1.25*" MinWidth="250"/>
|
||||
<ColumnDefinition Width="5"/>
|
||||
<ColumnDefinition Width="1*" MinWidth="300"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
@ -123,6 +123,7 @@
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding Date, StringFormat='ddd.'}" Width="24"/>
|
||||
<TextBlock Text="{Binding Date, StringFormat='dd.MM.'}" Width="32"/>
|
||||
<TextBlock Text="{Binding ZwstId}" Width="25" TextAlignment="Center"/>
|
||||
<TextBlock Text="{Binding Description}" Width="200"/>
|
||||
@ -267,6 +268,7 @@
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<TextBlock Text="{Binding Date, StringFormat='ddd.'}" Width="28"/>
|
||||
<TextBlock Text="{Binding Date, StringFormat='dd.MM.'}" Width="35"/>
|
||||
<TextBlock Text="{Binding ZwstId}" Width="30" TextAlignment="Center"/>
|
||||
<TextBlock Text="{Binding Description}"/>
|
||||
@ -305,9 +307,11 @@
|
||||
<ItemsPanelTemplate>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="120"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="150"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
<ColumnDefinition Width="1.125*"/>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="1*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
@ -315,7 +319,27 @@
|
||||
</ItemsPanelTemplate>
|
||||
</StatusBar.ItemsPanel>
|
||||
<StatusBarItem>
|
||||
|
||||
<TextBlock>
|
||||
Anmeldungen: <Run Text="{Binding StatusAncmts}"/>
|
||||
</TextBlock>
|
||||
</StatusBarItem>
|
||||
<Separator Grid.Column="1"/>
|
||||
<StatusBarItem Grid.Column="2">
|
||||
<TextBlock>
|
||||
Gewicht: <Run Text="{Binding StatusWeight}"/>
|
||||
</TextBlock>
|
||||
</StatusBarItem>
|
||||
<Separator Grid.Column="3"/>
|
||||
<StatusBarItem Grid.Column="4">
|
||||
<TextBlock>
|
||||
Anmldg. erstellt: <Run Text="{Binding StatusAncmtCreated}"/>
|
||||
</TextBlock>
|
||||
</StatusBarItem>
|
||||
<Separator Grid.Column="5"/>
|
||||
<StatusBarItem Grid.Column="6">
|
||||
<TextBlock>
|
||||
Anmldg. geändert: <Run Text="{Binding StatusAncmtModified}"/>
|
||||
</TextBlock>
|
||||
</StatusBarItem>
|
||||
</StatusBar>
|
||||
</Grid>
|
||||
|
@ -127,6 +127,9 @@ namespace Elwig.Windows {
|
||||
DeliveryAncmtList_SelectionChanged, ViewModel.TextFilter.Count > 0 ? ControlUtils.RenewSourceDefault.IfOnly : ControlUtils.RenewSourceDefault.None, !updateSort);
|
||||
if (updateSort && DeliveryAncmtList.SelectedItem != null)
|
||||
DeliveryAncmtList.ScrollIntoView(DeliveryAncmtList.SelectedItem);
|
||||
|
||||
ViewModel.StatusAncmts = $"{deliveryAncmts.Count:N0}";
|
||||
ViewModel.StatusWeight = $"{deliveryAncmts.Sum(a => a.Weight):N0} kg";
|
||||
}
|
||||
|
||||
private async Task RefreshInputs(bool validate = false) {
|
||||
|
@ -200,7 +200,7 @@
|
||||
<Label Content="Datum/Zwst.:" Margin="10,10,0,10"/>
|
||||
<TextBox x:Name="DateInput" Text="{Binding DateString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
Margin="0,10,10,10" Width="77" Grid.Column="1" HorizontalAlignment="Left" TextAlignment="Right"
|
||||
TextChanged="DateInput_TextChanged" LostFocus="DateInput_LostFocus"/>
|
||||
TextChanged="ScheduleDateInput_TextChanged" LostFocus="DateInput_LostFocus"/>
|
||||
<ComboBox x:Name="BranchInput" SelectedItem="{Binding Branch, Mode=TwoWay}" ItemsSource="{Binding BranchSource, Mode=TwoWay}"
|
||||
DisplayMemberPath="Name" TextSearch.TextPath="Name"
|
||||
Margin="82,10,10,10" Width="150" Grid.Column="1" HorizontalAlignment="Left"/>
|
||||
|
@ -297,8 +297,8 @@ namespace Elwig.Windows {
|
||||
ViewModel.ControlButtonsVisibility = Visibility.Hidden;
|
||||
}
|
||||
|
||||
private new void DateInput_TextChanged(object sender, TextChangedEventArgs evt) {
|
||||
base.DateInput_TextChanged(sender, evt);
|
||||
private void ScheduleDateInput_TextChanged(object sender, TextChangedEventArgs evt) {
|
||||
DateInput_TextChanged(sender, evt);
|
||||
if (ViewModel.Date is DateOnly date) {
|
||||
ViewModel.AncmtToDate = date.AddDays(-2);
|
||||
}
|
||||
|
@ -150,6 +150,9 @@ namespace Elwig.Windows {
|
||||
MemberList_SelectionChanged, ViewModel.TextFilter.Count > 0 ? ControlUtils.RenewSourceDefault.IfOnly : ControlUtils.RenewSourceDefault.None, !updateSort);
|
||||
if (updateSort && MemberList.SelectedItem != null)
|
||||
MemberList.ScrollIntoView(MemberList.SelectedItem);
|
||||
|
||||
ViewModel.StatusMembers = $"{members.Count:N0} ({await ctx.Members.CountAsync():N0})";
|
||||
ViewModel.StatusBusinessShares = $"{members.Sum(m => m.BusinessShares):N0} ({await ctx.Members.SumAsync(m => m.BusinessShares):N0})";
|
||||
}
|
||||
|
||||
private async Task RefreshInputs(bool validate = false) {
|
||||
@ -237,7 +240,6 @@ namespace Elwig.Windows {
|
||||
var mM = Math.Max(mA.Length, Math.Max(mI.Length, mT.Length));
|
||||
var mS = mM > 3;
|
||||
if (mS) mM--;
|
||||
ViewModel.StatusMembers = $"{mA} ({mT})";
|
||||
ViewModel.StatusMembersToolTip =
|
||||
$"{new string(s1, Math.Max(0, mM - mA.Length))}{(mS && mA.Length < 4 ? s2 : "")}{mA} aktive Mitglieder\n" +
|
||||
$"{new string(s1, Math.Max(0, mM - mI.Length))}{(mS && mI.Length < 4 ? s2 : "")}{mI} nicht aktive Mitglieder\n" +
|
||||
@ -249,7 +251,6 @@ namespace Elwig.Windows {
|
||||
var bM = Math.Max(bA.Length, Math.Max(bI.Length, bT.Length));
|
||||
var bS = bM > 3;
|
||||
if (bS) bM--;
|
||||
ViewModel.StatusBusinessShares = $"{bA} ({bT})";
|
||||
ViewModel.StatusBusinessSharesToolTip =
|
||||
$"{new string(s1, Math.Max(0, bM - bA.Length))}{(bS && bA.Length < 4 ? s2 : "")}{bA} Geschäftsanteile von aktiven Mitgliedern\n" +
|
||||
$"{new string(s1, Math.Max(0, bM - bI.Length))}{(bS && bI.Length < 4 ? s2 : "")}{bI} Geschäftsanteile von nicht aktiven Mitgliedern\n" +
|
||||
|
Reference in New Issue
Block a user