stichproben nach linie

This commit is contained in:
Stoyan Zlatev
2025-02-12 14:58:27 +01:00
parent 7cb8a1cbbc
commit 9afffb28e0
9 changed files with 147 additions and 192 deletions
@@ -6,6 +6,10 @@
public class ExeConfig
{
public static readonly string DllFilePath
= typeof(ExeConfig).Assembly.Location;
public static readonly ExeConfig Current = new ExeConfig();
public int PickingSlot
{
get
@@ -74,9 +78,8 @@
{
return default(string);
}
var dll = typeof(ExeConfig).Assembly.Location;
var configuration = ConfigurationManager.OpenExeConfiguration(dll);
var configuration = ConfigurationManager.OpenExeConfiguration(DllFilePath);
var settings = configuration?.AppSettings?.Settings ?? new KeyValueConfigurationCollection();
if (!settings.AllKeys.Contains(key))
@@ -95,7 +98,7 @@
}
var dll = typeof(ExeConfig).Assembly.Location;
var configuration = ConfigurationManager.OpenExeConfiguration(dll);
var configuration = ConfigurationManager.OpenExeConfiguration(DllFilePath);
var settings = configuration?.AppSettings?.Settings ?? new KeyValueConfigurationCollection();
if (!settings.AllKeys.Contains(key))
@@ -144,7 +144,6 @@ namespace CordonelAssemblyLine.Model
private Timer tmrAutoDetect;
private readonly Stichproben.Cordonel.Stichproben stichproben;
public LeakViewModel(Int32 slotNR, Int32? stationID = null)
{
@@ -161,8 +160,6 @@ namespace CordonelAssemblyLine.Model
$"2x10-7 { System.Environment.NewLine} " +
$"2*10^-7 { System.Environment.NewLine} " +
"0,0000002";
this.stichproben = new Stichproben.Cordonel.Stichproben(typeof(LeakViewModel).Assembly.Location);
}
public Boolean isHydraulicStaion()
@@ -392,7 +389,9 @@ namespace CordonelAssemblyLine.Model
if (int.TryParse($"{this.CurrentPcbID}", out var pcbId))
{
CurrentMeter.Login();
var result = this.stichproben.ShouldBePressureTested(pcbId);
// jedes mal neu wegen die ExeConfig.Current.LeakStationId
var result = new StichprobenManager(ExeConfig.Current.LeakStationId).ShouldBePressureTested(pcbId);
if (result.ShouldBePressureTested)
{