unique stichproben werden gespeichert

This commit is contained in:
Stoyan Zlatev
2025-02-05 11:54:25 +01:00
parent 09a3b252f8
commit 96a55ac0c4
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@
{
var stichproben = new Stichproben(typeof(Program).Assembly.Location);
stichproben.ShouldBePressureTested(123);
var result = stichproben.ShouldBePressureTested(20250205);
}
@@ -141,6 +141,7 @@ namespace CordonelAssemblyLine.Data
}
InternalPropertyChanged(nameof(TestPoints));
}
public PressureResultData ToBase()
{
var baseData = new PressureResultData();
+4 -1
View File
@@ -55,7 +55,10 @@
currentStichprobe.Nummer = 1;
}
this.stichprobenDb.AddNew(currentStichprobe);
if (previousStichprobe.PcbId != currentStichprobe.PcbId)
{
this.stichprobenDb.AddNew(currentStichprobe);
}
return new StichprobeResult(currentStichprobe.IstStichprobe, currentStichprobe.Nummer, stichprobenRule.Percent, stichprobenRule.Count);
}