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

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

View File

@@ -0,0 +1,98 @@
using DTS.Common.Enums;
using DTS.Common.Interface.Sensors;
using DTS.Common.Interface.Tags;
using DTS.Common.Utilities.Logging;
using System;
using System.Data;
namespace DTS.Common.Classes.Sensors
{
public class StreamInputRecord : TagAwareBase, IStreamInputRecord
{
public override TagTypes TagType => TagTypes.Sensors;
private int _id;
public int Id
{
get => _id;
set => SetProperty(ref _id, value, "Id");
}
private string _serialNumber;
public string SerialNumber
{
get => _serialNumber;
set => SetProperty(ref _serialNumber, value, "SerialNumber");
}
private DateTime _lastModified;
public DateTime LastModified
{
get => _lastModified;
set => SetProperty(ref _lastModified, value, "LastModified");
}
private string _lastUpdatedBy;
public string LastUpdatedBy
{
get => _lastUpdatedBy;
set => SetProperty(ref _lastUpdatedBy, value, "LastUpdatedBy");
}
private bool _doNotUse;
public bool DoNotUse
{
get => _doNotUse;
set => SetProperty(ref _doNotUse, value, "DoNotUse");
}
private bool _broken;
public bool Broken
{
get => _broken;
set => SetProperty(ref _broken, value, "Broken");
}
public const string DEFAULT_UDP_ADDRESS = "UDP://239.1.2.10:8400";
protected string _udpAddress = DEFAULT_UDP_ADDRESS;
public string StreamInUDPAddress
{
get => _udpAddress;
set => SetProperty(ref _udpAddress, value, "StreamInUDPAddress");
}
public StreamInputRecord(ISensorData sd)
{
try
{
Id = sd.DatabaseId;
SerialNumber = sd.SerialNumber;
StreamInUDPAddress = sd.StreamInUDPAddress;
Broken = sd.Broken;
DoNotUse = sd.DoNotUse;
LastModified = sd.LastModified;
LastUpdatedBy = sd.LastUpdatedBy;
}
catch (Exception ex)
{
APILogger.Log("Failed to process: ", ex);
}
}
public StreamInputRecord(IDataReader reader)
{
try
{
Id = Utility.GetInt(reader, "Id");
SerialNumber = Utility.GetString(reader, "SerialNumber");
StreamInUDPAddress = Utility.GetString(reader, "UDPAddress");
Broken = Utility.GetBool(reader, "Broken");
DoNotUse = Utility.GetBool(reader, "DoNotUse");
LastModified = Utility.GetDateTime(reader, "LastModified", DateTime.MinValue);
LastUpdatedBy = Utility.GetString(reader, "LastModifiedBy");
}
catch (Exception ex)
{
APILogger.Log("Failed to process: ", ex);
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

View File

@@ -0,0 +1,20 @@
using System.ComponentModel;
namespace DTS.Common.RibbonControl
{
public class RadioButtonData : ControlData
{
public bool IsChecked
{
get => _isChecked;
set
{
if (_isChecked == value) return;
_isChecked = value;
OnPropertyChanged(new PropertyChangedEventArgs("IsChecked"));
}
}
private bool _isChecked;
}
}

View File

@@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace DTS.Common.Interface.Sensors
{
public interface ISensorDbRecord
{
[Key]
int id { get; set; }
short SensorType { get; set; }
[Required]
[StringLength(50)]
string SerialNumber { get; set; }
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,55 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System;
namespace DTS.Common.Interface.TestMetaData
{
/// <summary>
/// Interface describing a record in the LabratoryDetails table in the Db
/// </summary>
public interface ILabratoryDetailsDbRecord
{
[Key]
[Column("LabratoryId")]
/// <summary>
/// The id/key of the LabratoryDetails record in the db
/// </summary>
int LabratoryId { get; set; }
[Column("Name")]
string Name { get; set; }
[Column("LabratoryName")]
string LabratoryName { get; set; }
[Column("LabratoryContactName")]
string LabratoryContactName { get; set; }
[Column("LabratoryContactPhone")]
string LabratoryContactPhone { get; set; }
[Column("LabratoryContactFax")]
string LabratoryContactFax { get; set; }
[Column("LabratoryContactEmail")]
string LabratoryContactEmail { get; set; }
[Column("LabratoryTestRefNumber")]
string LabratoryTestRefNumber { get; set; }
[Column("LabratoryProjectRefNumber")]
string LabratoryProjectRefNumber { get; set; }
[Column("LastModified")]
DateTime LastModified { get; set; }
[Column("LastModifiedBy")]
string LastModifiedBy { get; set; }
[Column("LocalOnly")]
bool LocalOnly { get; set; }
[Column("Version")]
int Version { get; set; }
}
}