Textbausteine wird IsActive zugewiesen beim Insert

Mitarbeiteranzahl ist jetzt korrekt bei Gruppenbuchungen im Mobilklienten
Textbausteine-Button in der Mobilversion wird nicht angezeigt, wenn es keine Textbausteine gibt
Der Klienten-Kommentar wird in der Mobilversion angezeigt
This commit is contained in:
Lyndon Jetten
2020-11-11 14:21:29 +01:00
parent dd47935428
commit e92a8daba1
10 changed files with 122 additions and 42 deletions

View File

@@ -28,9 +28,10 @@ namespace BeWo.ViewModel
private bool _IsExpanded;
private TextModuleVM _Parent;
public TextModuleVM(TextModuleDC pDataContract) : base(pDataContract, pDataContract.TextModuleOid == null) {}
private ActivationTypeId _ActivationType;
public TextModuleVM(TextModuleDC pDataContract) : base(pDataContract, pDataContract.TextModuleOid == null) {}
public bool IsExpanded
@@ -78,6 +79,22 @@ namespace BeWo.ViewModel
}
}
public ActivationTypeId ActivationType
{
get => _ActivationType;
set
{
if(AreDifferent(_ActivationType, value))
{
_ActivationType = value;
StoreDirtyInformation(AreDifferent(DataContract.ActivationType, value), nameof(ActivationType));
FirePropertyChanged(nameof(ActivationType));
}
}
}
public int Position
{
get => _Position;
@@ -207,6 +224,7 @@ namespace BeWo.ViewModel
pDataContract.Name = _Name;
pDataContract.IsParent = _IsParent;
pDataContract.IsExpanded = _IsExpanded;
pDataContract.ActivationType = _ActivationType;
pDataContract.IsOnlyForEmployee = _IsOnlyForEmployee;