MemberAdminWindow: Add filters for active and non-active members
All checks were successful
Test / Run tests (push) Successful in 2m20s
All checks were successful
Test / Run tests (push) Successful in 2m20s
This commit is contained in:
@ -224,7 +224,15 @@ namespace Elwig.Services {
|
||||
for (int i = 0; i < filter.Count; i++) {
|
||||
var e = filter[i];
|
||||
|
||||
if (e.Length >= 5 && e.Length <= 10 && "funktionär".StartsWith(e, StringComparison.CurrentCultureIgnoreCase)) {
|
||||
if (e.Equals("aktiv", StringComparison.CurrentCultureIgnoreCase)) {
|
||||
memberQuery = memberQuery.Where(m => m.IsActive);
|
||||
filter.RemoveAt(i--);
|
||||
filterNames.Add("aktive Mitglieder");
|
||||
} else if (e.Equals("!aktiv", StringComparison.CurrentCultureIgnoreCase)) {
|
||||
memberQuery = memberQuery.Where(m => !m.IsActive);
|
||||
filter.RemoveAt(i--);
|
||||
filterNames.Add("inaktive Mitglieder");
|
||||
} else if (e.Length >= 5 && e.Length <= 10 && "funktionär".StartsWith(e, StringComparison.CurrentCultureIgnoreCase)) {
|
||||
memberQuery = memberQuery.Where(m => m.IsFunktionär);
|
||||
filter.RemoveAt(i--);
|
||||
filterNames.Add("Funktionäre");
|
||||
|
@ -194,6 +194,7 @@
|
||||
<Bold>Stammgemeinde</Bold>: z.B. matzen, Wolkersdorf, ...<LineBreak/>
|
||||
<Bold>UID</Bold>: z.B. ATU12345678, ...<LineBreak/>
|
||||
<Bold>Betriebs-Nr.</Bold>: z.B. 0123456, ...<LineBreak/>
|
||||
<Bold>Aktiv</Bold>: aktiv, !Aktiv (nicht-aktiv)<LineBreak/>
|
||||
<Bold>Bio-Betrieb</Bold>: BIO, !bio (ausgenommen Bio)<LineBreak/>
|
||||
<Bold>Buchführend</Bold>: buchf[ührend], Pauschal[iert], !buchf[ührend]<LineBreak/>
|
||||
<Bold>Volllieferant</Bold>: voll[lieferant], !Voll[lieferant] (nicht-Volllieferant)<LineBreak/>
|
||||
|
Reference in New Issue
Block a user