Tätigkeiten überarbeitet.

This commit is contained in:
Husky
2020-06-06 18:46:44 +02:00
parent 4d5d5082a7
commit 06fc472965
20 changed files with 257 additions and 19 deletions

View File

@@ -18,6 +18,7 @@ namespace KanSan.ViewModel
string beschreibung;
string einheit;
string tag;
bool hatGüteschutzProtokoll;
public string Positionsnummer
{
@@ -60,6 +61,17 @@ namespace KanSan.ViewModel
}
}
public bool HatGüteschutzProtokoll
{
get => hatGüteschutzProtokoll;
set
{
if (hatGüteschutzProtokoll == value) return;
hatGüteschutzProtokoll = value;
OnPropertyChanged();
}
}
public LeistungsverzeichnisPositionViewModel(LeistungsverzeichnisPosition position)
{
this.model = position;
@@ -67,6 +79,7 @@ namespace KanSan.ViewModel
beschreibung = model.Beschreibung;
einheit = model.Einheit;
tag = model.Tag;
hatGüteschutzProtokoll = model.HatGueteschutzProtokol;
}
public void Speichern()
@@ -75,6 +88,7 @@ namespace KanSan.ViewModel
model.Beschreibung = beschreibung;
model.Einheit = einheit;
model.Tag = tag;
model.HatGueteschutzProtokol = hatGüteschutzProtokoll;
unitOfWork.LeistungsverzeichnisRepository.Update(model);
unitOfWork.Commit();