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,41 @@
using DTS.Common.Classes.Sensors;
using DTS.Common.Enums.Sensors;
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace DTS.Common.Interface.Sensors
{
public interface ISensorCalDbRecord
{
[Key]
int? CalibrationId { get; set; }
string SerialNumber { get; set; }
[Column(TypeName = "datetime")]
DateTime CalibrationDate { get; set; }
[Required]
[StringLength(50)]
string Username { get; set; }
bool LocalOnly { get; set; }
bool NonLinear { get; set; }
[Required]
[StringLength(255)]
ICalibrationRecords Records { get; set; }
[Column(TypeName = "datetime")]
DateTime ModifyDate { get; set; }
bool IsProportional { get; set; }
bool RemoveOffset { get; set; }
[Required]
[StringLength(255)]
ZeroMethods ZeroMethods { get; set; }
[Required]
[StringLength(2048)]
string[] CertificationDocuments { get; set; }
InitialOffsets InitialOffsets { get; set; }
bool LinearAdded { get; }
SensitivityInspectionType SensitivityInspection { get; set; }
[StringLength(2048)]
string CalibrationNote { get; set; }
int UsageCount { get; set; }
}
}

View File

@@ -0,0 +1,7 @@
namespace DTS.Common.Interactivity
{
public interface IConfirmation : INotification
{
bool Confirmed { get; set; }
}
}

View File

@@ -0,0 +1,8 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface ICustomerDetailsViewModel : IBaseViewModel
{
}
}

View File

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

View File

@@ -0,0 +1,80 @@
using DTS.Common.Interface.DASFactory.Diagnostics;
using System;
namespace DTS.Common.Classes.DASFactory
{
public class CanDiagnostics : Base.BasePropertyChanged, ICanDiagnosticResult
{
private bool _Active = false;
public bool Active
{
get => _Active;
set => SetProperty(ref _Active, value);
}
private int _ChannelIndex = -1;
public int ChannelIndex
{
get => _ChannelIndex;
set => SetProperty(ref _ChannelIndex, value);
}
private int _Data = 0;
public int Data
{
get => _Data;
set => SetProperty(ref _Data, value);
}
private int _ErrorFrame = 0;
public int ErrorFrame
{
get => _ErrorFrame;
set
{
SetProperty(ref _ErrorFrame, value);
OnPropertyChanged("Errors");
}
}
private double _Load;
public double Load
{
get => _Load;
set => SetProperty(ref _Load, value);
}
private int _Overruns = 0;
public int Overruns
{
get => _Overruns;
set
{
SetProperty(ref _Overruns, value);
OnPropertyChanged("Errors");
}
}
private DateTime _LastUpdate = DateTime.MinValue;
public DateTime LastUpdate
{
get => _LastUpdate;
set => SetProperty(ref _LastUpdate, value);
}
public int Errors
{
get => _ErrorFrame != 0 ? 1 + Overruns : Overruns;
}
private string _ChannelName = string.Empty;
public string ChannelName
{
get => _ChannelName;
set => SetProperty(ref _ChannelName, value);
}
public void Copy(ICanDiagnosticResult source)
{
Active = source.Active;
ChannelIndex = source.ChannelIndex;
Data = source.Data;
ErrorFrame = source.ErrorFrame;
Load = source.Load;
Overruns = source.Overruns;
LastUpdate = source.LastUpdate;
ChannelName = source.ChannelName;
}
}
}

View File

@@ -0,0 +1,13 @@
using DTS.Common.Enums.TSRAIRGo;
namespace DTS.Common.Interface.TSRAIRGo
{
public interface INavigationButtonInfo
{
NavigationButtonId Id { get; }
string Text { get; set; }
string Tooltip { get; set; }
bool Enabled { get; set; }
bool ShowBorder { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
using Prism.Events;
namespace DTS.Common.Events
{
/// <summary>
/// The TTSImportReadFileStatusEvent event.
/// </summary>
///
/// <remarks>
/// This event is used to determine the success/failure of reading a file.
/// If Status is True, the read was successful and TTSSetup contains the Test Setup that was read.
/// If Status is False, the read was not successful, and ErrorMessage contains the reason.
/// </remarks>
///
public class TTSImportReadFileStatusEvent : PubSubEvent<ReadFileStatusArg> { }
public class ReadFileStatusArg
{
public bool Status { get; set; }
public ITTSSetup TTSSetup { get; set; }
public string ErrorMessage { get; set; }
}
}

View File

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