Tätigkeiten überarbeitet.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user