This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
using DTS.Common.Enums;
using DTS.Common.Enums.Sensors;
using DTS.SensorDB;
namespace DTS.Common.Import
{
public interface ICalibrationImport
{
SensorCalibration AddLinearCalRecordIfNeeded(SensorCalibration sc, bool savedIsProportional, bool savedRemoveOffset);
SensorCalibration AddLinearZeroMethodIfNeeded(SensorCalibration sc, ZeroMethodType zeroMethodType, double zeroMethodStart, double zeroMethodEnd);
SensorCalibration CheckForExcitationCalibration(SensorCalibration sc, double sensitivity, ExcitationVoltageOptions.ExcitationVoltageOption excitation, string EU);
}
}

View File

@@ -0,0 +1,16 @@
using DataPROWin7.DataModel;
using DTS.Common.Classes.Sensors;
using DTS.Common.Interface.Groups.GroupList;
using DTS.SensorDB;
using System;
using System.Collections.Generic;
namespace DTS.Common.Import
{
public interface IGroupImport
{
ParseParameters ParseParameters { get; set; }
Tuple<TestTemplate, List<IGroup>> CreateGroups(List<SensorData> sensors, Dictionary<string, List<TsetSetupImportSensorInfo>> groupSensorLookup, TestTemplate testTemplate, bool createDynamicGroups, List<IGroup> staticGroups, Action<double> setProgress);
Dictionary<string, List<TsetSetupImportSensorInfo>> GetGroupSensorLookup(List<SensorData> sensors, Dictionary<string, string> sensorGroupNameLookup, Dictionary<string, List<string>> groupNameSensorListLookup);
}
}

View File

@@ -0,0 +1,19 @@
using System.Text;
namespace DTS.Common.Import.Interfaces
{
//FB 36740 Interface to support database locks
public interface ILockImport
{
//Return true if the collection of conteneded has any items
bool Contended { get; }
//Set the database lock for particular import object, empty message should be passed and in case of errors it will be populated. this error message is shared between all
//types and would contain all the errors regarding db locks
void SetLock(ref ImportObject importObject, ref StringBuilder message);
//Free the database lock
void FreeLock(ref ImportObject importObject);
//Steal the database lock
bool StealLock(bool proceed);
}
}

View File

@@ -0,0 +1,15 @@
using DTS.Common.Classes.Sensors;
using DTS.Common.Enums.Sensors;
using DTS.Common.Import.ImportOptions;
namespace DTS.Common.Import.Interfaces
{
public interface IParseCSVSensor
{
int Version { get; }
void Initialize(ICalibrationImport import, ZeroMethodOptions zmOptions,
IImportNotification importNotification, bool importCreateDynamicGroups,
bool useIsoCodeFilterMapping, bool useZeroForUnfiltered);
void ParseVersion(CSVImportTags.Tags field, string val, ParseParameters pp);
}
}

View File

@@ -0,0 +1,11 @@
using DTS.Common.Classes;
using CsvHelper;
namespace DTS.Common.Import.Interfaces
{
public interface IParseCSVTest
{
int Version { get; }
void ParseVersion(CsvReader csvReader, TestSetupImportData tsid);
}
}

View File

@@ -0,0 +1,9 @@
using System.Collections.Generic;
namespace DTS.Common.Import
{
public interface IParseImport
{
ImportObject Parse(IEnumerable<string> importFiles);
}
}

View File

@@ -0,0 +1,8 @@
namespace DTS.Common.Import.Interfaces
{
public interface IParseVariant
{
string FileName { get; set; }
void Parse(ref ImportObject importObject);
}
}

View File

@@ -0,0 +1,7 @@
namespace DTS.Common.Import
{
public interface IPersistImport
{
void Save();
}
}