Kapitel 7 abgeschlossen.

This commit is contained in:
2026-08-16 00:29:01 +02:00
parent da8d2bb1da
commit f9e398b225
47 changed files with 2636 additions and 107 deletions
+15
View File
@@ -19,6 +19,8 @@ public class Contact
public Guid Id { get; set; } = Guid.NewGuid();
public string Name { get; set; } = "";
public string Relation { get; set; } = "";
/// <summary>Vollständige Anrede für Briefe, z.B. „Sehr geehrte Frau Mustermann,“.</summary>
public string? LetterSalutation { get; set; }
public string? Phone { get; set; }
public string? Email { get; set; }
public string? Street { get; set; }
@@ -40,3 +42,16 @@ public enum ContactInvalidReason
}
public enum Gender { M, W, D }
public sealed record StudentReferenceSummary(
int Memberships,
int ExamResults,
int Grades,
int ReportGrades,
int ParticipationEntries,
int DocumentationEntries)
{
public int Total => Memberships + ExamResults + Grades + ReportGrades
+ ParticipationEntries + DocumentationEntries;
public bool HasReferences => Total > 0;
}