ServiceRecord-Fremdschlüssel zu NewSchedulerAppointment-Tabelle hinzugefügt. Funktionalität ist noch nicht implementiert. MoK: Ziele/Maßnahmen verbessert; Suche funktioniert jetzt richtig Mehrfachbuchung implementiert Kalender: Termine sind jetzt löschbar, wenn Recht zu bearbeiten vorhanden ist. Unterscheidung zwischen Mitarbeiter-, Klienten-, und Ressourcenauswahl bei Ansicht und Formular
53 lines
1.4 KiB
C#
53 lines
1.4 KiB
C#
using System.Windows.Media;
|
|
|
|
namespace BS.Shared.DataContracts
|
|
{
|
|
public partial class TextModuleDC : IFilterableDC
|
|
{
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj is TextModuleDC y)
|
|
{
|
|
if (TextModuleOid == null && y.TextModuleOid == null)
|
|
{
|
|
return GetHashCode() == y.GetHashCode();
|
|
}
|
|
|
|
if (TextModuleOid != null && y.TextModuleOid != null)
|
|
{
|
|
return TextModuleOid == y.TextModuleOid;
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return GetType().Name.GetHashCode() ^ TextModuleOid.GetHashCode();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
|
|
public string DetailDescription => Text;
|
|
public string FilterRelevants => Name + Text;
|
|
public string IconPath { get; private set; }
|
|
public string SimpleDescription => Name;
|
|
public bool SupportsActivationType { get; private set; }
|
|
|
|
public long Version
|
|
{
|
|
get => TextModuleVersion ?? 0;
|
|
set => TextModuleVersion = value;
|
|
}
|
|
|
|
public SolidColorBrush FilterableBrush => new SolidColorBrush(Colors.Transparent);
|
|
|
|
public long? KeyField => TextModuleOid;
|
|
|
|
public long? ParentField => Parent?.TextModuleOid;
|
|
}
|
|
} |