init
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.Channels
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface describing a Channel in the Db
|
||||
/// </summary>
|
||||
public interface IChannelDbRecord
|
||||
{
|
||||
[Key]
|
||||
[Column("Id")]
|
||||
/// <summary>
|
||||
/// The id/key of the Channel record in the db
|
||||
/// </summary>
|
||||
long Id { get; set; }
|
||||
|
||||
[Column("GroupId")]
|
||||
int GroupId { get; set; }
|
||||
|
||||
[Column("IsoCode")]
|
||||
string IsoCode { get; set; }
|
||||
|
||||
[Column("IsoChannelName")]
|
||||
string IsoChannelName { get; set; }
|
||||
|
||||
[Column("UserCode")]
|
||||
string UserCode { get; set; }
|
||||
|
||||
[Column("UserChannelName")]
|
||||
string UserChannelName { get; set; }
|
||||
|
||||
[Column("DASId")]
|
||||
int DASId { get; set; }
|
||||
|
||||
[Column("DASChannelIndex")]
|
||||
/// <summary>
|
||||
/// The physical channel index of the channel among channels on the DAS
|
||||
/// </summary>
|
||||
int DASChannelIndex { get; set; }
|
||||
|
||||
[Column("GroupChannelOrder")]
|
||||
int GroupChannelOrder { get; set; }
|
||||
|
||||
[Column("TestSetupOrder")]
|
||||
int TestSetupOrder { get; set; }
|
||||
|
||||
int SensorId { get; set; }
|
||||
|
||||
[Column("Disabled")]
|
||||
bool Disabled { get; set; }
|
||||
|
||||
[Column("LastModified")]
|
||||
DateTime LastModified { get; set; }
|
||||
|
||||
[Column("LastModifiedBy")]
|
||||
string LastModifiedBy { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Enums.Sensors;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Interface.TestDefinition
|
||||
{
|
||||
public interface ITestSummary : IBaseClass
|
||||
{
|
||||
string Id { get; set; }
|
||||
string SetupName { get; set; }
|
||||
string Description { get; set; }
|
||||
int ChannelCount { get; set; }
|
||||
DateTime FileDate { get; set; }
|
||||
DateTime TimeStamp { get; set; }
|
||||
string DataType { get; set; }
|
||||
bool IsSelected { get; set; }
|
||||
List<ITestGraphs> Graphs { get; set; }
|
||||
List<ITestChannel> Channels { get; set; }
|
||||
List<ITestChannel> CalculatedChannels { get; set; }
|
||||
IBaseViewModel Parent { get; set; }
|
||||
ITestMetadata TestMetadata { get; set; }
|
||||
CalibrationBehaviors CalibrationBehavior { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.Channels;
|
||||
using System.Data;
|
||||
|
||||
namespace DTS.Common.Classes.Groups.ChannelSettings
|
||||
{
|
||||
public class GroupChannelSettingRecord : BasePropertyChanged, IGroupChannelSettingRecord
|
||||
{
|
||||
private long _channelId;
|
||||
public long ChannelId
|
||||
{
|
||||
get => _channelId;
|
||||
set => SetProperty(ref _channelId, value, "ChannelId");
|
||||
}
|
||||
private int _settingId;
|
||||
public int SettingId
|
||||
{
|
||||
get => _settingId;
|
||||
set => SetProperty(ref _settingId, value, "SettingId");
|
||||
}
|
||||
private string _settingValue;
|
||||
public string SettingValue
|
||||
{
|
||||
get => _settingValue;
|
||||
set => SetProperty(ref _settingValue, value, "SettingValue");
|
||||
}
|
||||
public GroupChannelSettingRecord() { }
|
||||
public GroupChannelSettingRecord(IDataReader reader, int storedProcedureVersionUsed)
|
||||
{
|
||||
if (storedProcedureVersionUsed >= Constants.BULK_GROUPCHANNELSETTINGS_GET_DB_VERSION)
|
||||
{
|
||||
ChannelId = Utility.GetLong(reader, "ChannelId");
|
||||
}
|
||||
SettingId = Utility.GetInt(reader, "SettingId");
|
||||
SettingValue = Utility.GetString(reader, "SettingValue");
|
||||
}
|
||||
public GroupChannelSettingRecord(long channelId, int settingId, string settingValue)
|
||||
{
|
||||
ChannelId = channelId;
|
||||
SettingId = settingId;
|
||||
SettingValue = settingValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using DTS.Common.Converters;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Enums
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum VelocityUnit
|
||||
{
|
||||
/// <summary>
|
||||
/// kilometer per hour
|
||||
/// </summary>
|
||||
[Description("EditTestSetupObjectMeta_VelocityUnit_KilometerPerHour")]
|
||||
KilometerPerHour = 0,
|
||||
/// <summary>
|
||||
/// meter per second
|
||||
/// </summary>
|
||||
[Description("EditTestSetupObjectMeta_VelocityUnit_MeterPerSecond")]
|
||||
MeterPerSecond = 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IShellViewModel : IBaseWindowModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Shell View.
|
||||
/// </summary>
|
||||
IShellView View { get; }
|
||||
List<FrameworkElement> GetRegions();
|
||||
object ContextMainRegion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using DTS.Common.Enums.DASFactory;
|
||||
|
||||
namespace DTS.Common.Interface.Hardware
|
||||
{
|
||||
|
||||
public interface IDASMonitorInfo
|
||||
{
|
||||
string SerialNumber { get; }
|
||||
double[] TiltSensorCals { get; }
|
||||
short[] TiltSensorDataPre { get; }
|
||||
DFConstantsAndEnums.TiltAxes TiltAxes { get; }
|
||||
int AxisIgnored { get; }
|
||||
double MountOffsetAxisOne { get; }
|
||||
double MountOffsetAxisTwo { get; }
|
||||
string GetChannelName(int index);
|
||||
double GetOffsetTolerancemVLow(int index);
|
||||
double GetOffsetTolerancemVHigh(int index);
|
||||
void ReadFromFile(string path);
|
||||
void WriteToFile(string path);
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,18 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform app that Automatic Mode status has changed
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class AutomaticModeStatusEvent : PubSubEvent<AutomaticModeStatusEventArgs> { }
|
||||
|
||||
public class AutomaticModeStatusEventArgs
|
||||
{
|
||||
public bool TextSet { get; set; } = false;
|
||||
public string Text { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user