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,17 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.GroupTemplate
{
public interface ITemplateChannelListViewModel : IBaseViewModel
{
ITemplateChannelListView View { get; set; }
void Unset();
void Sort(object o, bool columnClick);
void Filter(string term);
void SetAllChannels(IGroupTemplateChannel[] channels);
IGroupTemplateChannel[] GetAllChannels();
void MoveDown(IGroupTemplateChannel channel);
void MoveUp(IGroupTemplateChannel channel);
void SetParent(object o);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.Sensors.SensorsList
{
public interface ISensorTemplatesImportView : IBaseView { }
}

View File

@@ -0,0 +1,7 @@
using Prism.Events;
// ReSharper disable CheckNamespace
namespace DTS.Common.Events
{
public class ExportCalibrationBehaviorSettingChangedEvent : PubSubEvent<DTS.Common.Enums.Sensors.CalibrationBehaviors> { }
}

View File

@@ -0,0 +1,24 @@
using System.ComponentModel;
using DTS.Common.Converters;
namespace DTS.Common.Enums.DASFactory
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum UseCasesTSRAIR : byte
{
[Description("Aerospace")]
AEROSPACE,
[Description("Aerospace with motion")]
AEROSPACE_with_motion,
[Description("Vibration")]
VIBRATION,
[Description("Scheduled")]
SCHEDULED,
[Description("Interval")]
INTERVAL,
[Description("Streaming")]
STREAMING,
[Description("Pretrigger test")]
PRETRIGGER_TEST,
}
}

View File

@@ -0,0 +1,51 @@
using System.ComponentModel;
using DTS.Common.Converters;
namespace DTS.Common.Enums.Sensors
{
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
public enum ZeroMethodType
{
// Lots of legacy compatibility (e.g. importing GM ISF) depends on the order/value of this enum.
// also 14906 Can the parameter names in the test match the sensors tile names?
/// <summary>
/// calculate electrical zero using an average over time
/// </summary>
[Description("ZeroMethod_AverageOverTime")]
AverageOverTime = 0,
/// <summary>
/// calculate zero using time in pre-event
/// </summary>
//[Description("Use Diagnostics Zero")]
[Description("ZeroMethod_DiagnosticLevel")]
UsePreEventDiagnosticsZero = 1,
/// <summary>
/// calculate zero using injected value
/// </summary>
//[Description("Absolute Zero")]
[Description("ZeroMethod_None")]
None = 2
}
/// <summary>
/// Original version of all available zero method types.
/// </summary>
public enum OriginalZeroMethodType
{
/// <summary>
/// calculate electrical zero using an average over time
/// </summary>
//[Description("Average Over Time")]
AverageOverTime,
/// <summary>
/// calculate zero using time in pre-event
/// </summary>
//[Description("Use Diagnostics Zero")]
UsePreCalZero,
/// <summary>
/// calculate zero using injected value
/// </summary>
//[Description("Absolute Zero")]
None
}
}

View File

@@ -0,0 +1,13 @@
using Prism.Events;
namespace DTS.Common.Events.Sensors.SensorsList
{
/// <summary>
/// The TTSImportSummaryImportEvent event.
/// </summary>
///
/// <remarks>This event is used by the Summary step to indicate that the Import button was clicked.</remarks>
///
public class SensorsListSensorSelectedEvent : PubSubEvent<string[]> { }
}

View File

@@ -0,0 +1,20 @@
using System.ComponentModel;
namespace DTS.Common.Base.Classes
{
/// <summary>
/// this class overloads the description attribute to allow us to use an enum
/// to set the description and to lookup the description in the string resources
/// to be translated the property should have a string resource in the form of PropertyName_Description
/// otherwise ##DescriptionNotFound## will be returned as the translated string
/// </summary>
public class DescriptionResourceAttribute : DescriptionAttribute
{
private string _resourceId;
public DescriptionResourceAttribute(string resourceId)
{
_resourceId = resourceId;
}
public override string Description => Strings.Strings.ResourceManager.GetString(_resourceId) ?? @"##DescriptionNotFound##" + _resourceId;
}
}

View File

@@ -0,0 +1,35 @@
using DTS.Common.Enums;
namespace DTS.Common.Constant.DASSpecific
{
public class SLICE1_5
{
public const uint MaxAAFilterRateHz = 40000;
public const byte MIN_PROTOCOL_VER = 1;
public const int QUERY_ARM_AND_TRIGGER_STATUS_TIME_LEFT_IN_ARM = 2;
public const int IGNORE_SHORTED_START_EVENT = 4;
public const int START_REC_DELAY_IN_SECOND = 5;
public const int MEASURE_INTERNAL_OFFSET = 6;
public const int START_REALTIME_STREAM = 7;
public const int BASE_PLUS_MIN_MULTIEVENT_HYBRID_PROTOCOL = 8;
public static bool IsRecordingModeSupported(RecordingModes mode, int protocolVersion)
{
switch (mode)
{
case RecordingModes.CircularBuffer:
case RecordingModes.Recorder:
case RecordingModes.MultipleEventCircularBuffer:
case RecordingModes.MultipleEventRecorder:
case RecordingModes.HybridRecorder:
case RecordingModes.ContinuousRecorder:
return true;
case RecordingModes.MultipleEventHybridRecorder:
return protocolVersion >= BASE_PLUS_MIN_MULTIEVENT_HYBRID_PROTOCOL;
default:
return false;
}
}
}
}

View File

@@ -0,0 +1,23 @@
namespace DTS.Common.Enums.DBExport
{
/// <summary>
/// different tags for an ISODll.MMETransducerMainLocation
/// </summary>
public enum MainLocationFields
{
Date,
Expired,
History,
Last_Change,
Last_Change_Text,
Picture_ShortName,
Remarks,
S_GUID,
SortKey,
Text_L1,
Text_L2,
Trans_Main_Loc,
Type,
Version
}
}

View File

@@ -0,0 +1,30 @@
using System;
using System.Data;
namespace DTS.Common.Classes.Locking
{
public class LockRecord
{
public string LockingUserName { get; }
public string LockingMachineName { get; }
public DateTime CreationTime { get; }
public DateTime LastUpdated { get; }
public string ItemKey { get; }
/// <summary>
/// this is the item category (as a value in the db - LockCategories)
/// </summary>
public int ItemCategory { get; }
public int ItemId { get; }
public LockRecord(string user, string machine, DateTime createTime, DateTime lastUpdate, string itemKey, int itemCategory, int itemId)
{
LockingUserName = user;
LockingMachineName = machine;
CreationTime = createTime;
LastUpdated = lastUpdate;
ItemKey = itemKey;
ItemCategory = itemCategory;
ItemId = itemId;
}
}
}

View File

@@ -0,0 +1,11 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.Groups
{
/// <summary>
/// the importview is responsible for presenting feedback of progress while creating and commiting groups
/// </summary>
public interface IGroupImportImportView : IBaseView
{
}
}