Maßnahme und Ziele per Popup bearbeiten Maßnahme und Ziele Notiz optional einblenden Das selbe auch bei Hilfeplan -> Ziele (ohne Icf import) ReportTemplate hinzugefügt (Tabelle, Hibernate, Enity, Mapper, DC) Listbox Select hinzugefügt, dient dem generischen Auswählen eines object aus einer list<object> per control
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using System.ComponentModel;
|
|
|
|
using BS.Shared;
|
|
|
|
using BeWo.ViewModel;
|
|
using BS.Shared.DataContracts.ClientPartials;
|
|
using BS.Shared.Extensions;
|
|
|
|
namespace BeWo.Core
|
|
{
|
|
public class SupportConceptGoalTreeItem : SupportConceptGoalDC
|
|
{
|
|
private ValueListEntryVM _GoalEntryVM;
|
|
private BindingList<SupportConceptGoalTreeItem> _Children;
|
|
private bool _ShowNotice;
|
|
|
|
public ValueListEntryVM GoalEntryVM
|
|
{
|
|
get => _GoalEntryVM;
|
|
set => _GoalEntryVM = value;
|
|
}
|
|
|
|
public bool IsGoal => GoalEntryVM != null ?
|
|
GoalEntryVM.Type.Equals(ValueListEntryType.SupportConceptGoalType) || GoalEntryVM.Type.Equals(ValueListEntryType.SupportConceptIndividualGoalType) :
|
|
GoalEntryDC.Type.Equals(ValueListEntryType.SupportConceptGoalType) || GoalEntryDC.Type.Equals(ValueListEntryType.SupportConceptIndividualGoalType);
|
|
|
|
|
|
|
|
public bool ShowNotice
|
|
{
|
|
get => _ShowNotice;
|
|
set
|
|
{
|
|
_ShowNotice = value;
|
|
RaisePropertyChanged(nameof(ShowNotice));
|
|
}
|
|
}
|
|
|
|
public BindingList<SupportConceptGoalTreeItem> Items
|
|
{
|
|
get => _Children ?? (_Children = new BindingList<SupportConceptGoalTreeItem>());
|
|
set => _Children = value;
|
|
}
|
|
|
|
public ValueListEntryType GoalType => GoalEntryDC?.Type ?? GoalEntryVM.Type;
|
|
}
|
|
} |