- Gruppenbuchung mit nur einem Hilfeplan, aber mehreren Mitarbeitern wird - wie im Fat-Client - als Gruppenbuchung gespeichert. Eine Gruppenbuchung mit einem Hilfeplan und nur einem Mitarbeiter wird weiterhin - wie auch im Fat-Client - als Einzelbuchung gespeichert. - Der Button "Textbausteine" wird nur angezeigt, wenn auch Textbausteine vorhanden sind.
36 lines
917 B
C#
36 lines
917 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace BeWoPlanerMobil.Util
|
|
{
|
|
public class TextbausteinDisplayItem
|
|
{
|
|
public string Name { get; set; }
|
|
|
|
public long Oid { get; set; }
|
|
|
|
public long? ParentOid { get; set; }
|
|
|
|
public bool IsParent => Children.Any();
|
|
|
|
public string Text { get; set; }
|
|
|
|
public List<TextbausteinDisplayItem> Children { get; set; } = new List<TextbausteinDisplayItem>();
|
|
|
|
public bool IsExpanded { get; set; }
|
|
|
|
public TextbausteinDisplayItem(string name, string text, long? parentOid, long oid, bool isExpanded)
|
|
{
|
|
Name = name;
|
|
Text = text;
|
|
Oid = oid;
|
|
IsExpanded = isExpanded;
|
|
ParentOid = parentOid;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Name}; Text: {Text}";
|
|
}
|
|
}
|
|
} |