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

@@ -11,10 +11,12 @@ namespace KanSan.SampleData
string beschreibung;
string einheit;
string tag;
bool hatGüteschutzprotokoll;
public string Positionsnummer { get => positionnummer; set => throw new NotImplementedException(); }
public string Beschreibung { get => beschreibung; set => throw new NotImplementedException(); }
public string Einheit { get => einheit; set => throw new NotImplementedException(); }
public string Tag { get => tag; set => throw new NotImplementedException(); }
public bool HatGüteschutzProtokoll { get => hatGüteschutzprotokoll; set => throw new NotImplementedException(); }
public LeistungsverzeichnisPositionViewModelSampleData()
{
@@ -22,6 +24,7 @@ namespace KanSan.SampleData
beschreibung = "TV Inspektion DN200";
einheit = "M";
tag = "JMStandard";
hatGüteschutzprotokoll = true;
}
}
}

View File

@@ -1,6 +1,7 @@
using KanSan.Base.Enums;
using KanSan.Base.Interfaces.UI;
using KanSan.Base.Models;
using Syncfusion.Windows.Shared;
using System;
using System.Collections.Generic;
using System.Text;
@@ -20,11 +21,27 @@ namespace KanSan.SampleData
{
for (int i = 0; i < 10; i++)
{
DateTime timestamp;
if (i % 2 == 0)
{
timestamp = DateTime.Now;
}
else
{
timestamp = DateTime.MinValue;
}
taetigkeiten.Add(new Base.Models.Taetigkeiten()
{
GuidNr = Guid.NewGuid(),
Anzahl = 2m,
Bemerkung = "Test"
ZeitStempel = timestamp,
Bemerkung = "Test",
LeistungsverzeichnisPosition = new LeistungsverzeichnisPosition()
{
Beschreibung = "TV Inspektion"
}
}) ;
}