init
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,85 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Classes.Groups
|
||||
{
|
||||
// ReSharper disable once InconsistentNaming
|
||||
/// <summary>
|
||||
/// this class encapsulates a single channel or row in a TDC GRP file
|
||||
/// </summary>
|
||||
public class GroupGRPImportChannel : BasePropertyChanged
|
||||
{
|
||||
public const uint SerialNumberField = 0;
|
||||
public const uint DisplayNameField = 1;
|
||||
public const uint ISOCodeField = 2;
|
||||
public const uint InvertField = 3;
|
||||
public const uint CapacityField = 4;
|
||||
public const uint InputModeField = 5;
|
||||
public const uint DefaultValueField = 6;
|
||||
public const uint ActiveValueField = 7;
|
||||
public const uint FireModeField = 8;
|
||||
public const uint DelayField = 9;
|
||||
public const uint LimitDurationField = 10;
|
||||
public const uint DurationField = 11;
|
||||
public const uint CurrentField = 12;
|
||||
|
||||
public string SensorSerialNumber { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string ISOCode { get; set; }
|
||||
public bool Invert { get; set; }
|
||||
public double FullScale { get; set; }
|
||||
|
||||
public enum InputModes
|
||||
{
|
||||
na, //Not applicable. Used to denote a non-Digital Input channel
|
||||
TLH, //TransitionLowToHigh (DigitalInput)
|
||||
THL, //TransitionHighToLow (DigitalInput)
|
||||
CCNO, //ContactClosureNormallyOpen(DigitalInput)
|
||||
CCNC //ContactClosureNormallyClosed(DigitalInput)
|
||||
}
|
||||
public const InputModes DefaultInputMode = InputModes.CCNO;
|
||||
public InputModes? InputMode { get; set; } = null;
|
||||
|
||||
public const double DefaultDefaultValue = 0.0;
|
||||
public double? DefaultValue { get; set; } = null;
|
||||
|
||||
public const double DefaultActiveValue = 1.0;
|
||||
public double? ActiveValue { get; set; } = null;
|
||||
|
||||
public enum FireModes
|
||||
{
|
||||
na, //Not applicable. Used to denote a non-Squib channel
|
||||
CD, //CapacitorDischarge (Squib)
|
||||
CC //ConstantCurrent (Squib)
|
||||
}
|
||||
public const FireModes DefaultFireMode = FireModes.CD;
|
||||
public FireModes? FireMode { get; set; } = null;
|
||||
|
||||
public const double DefaultDelay = 0.00;
|
||||
public double? Delay { get; set; } = null;
|
||||
|
||||
public const bool DefaultLimitDuration = true;
|
||||
public bool? LimitDuration { get; set; } = null;
|
||||
|
||||
public const double DefaultDuration = 10.0;
|
||||
public double? Duration { get; set; } = null;
|
||||
|
||||
public const double DefaultCurrent = 1.5;
|
||||
public double? Current { get; set; } = null;
|
||||
/// <summary>
|
||||
/// error for the group, or null if there are no errors
|
||||
/// an error at this level means the group can't be imported
|
||||
/// </summary>
|
||||
public GroupGRPImportError Error { get; set; } = null;
|
||||
public GroupGRPImportGroup ParentGroup { get; set; }
|
||||
|
||||
public string GroupName => null == ParentGroup ? "---" : ParentGroup.GroupName;
|
||||
|
||||
/// <summary>
|
||||
/// forces refresh for anything bound to GroupName
|
||||
/// </summary>
|
||||
public void GroupNameInvalidate()
|
||||
{
|
||||
OnPropertyChanged("GroupName");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events.TSRAIRGo
|
||||
{
|
||||
public class IpAddressToPingEvent : PubSubEvent<IpAddressToPingArg> { }
|
||||
|
||||
public class IpAddressToPingArg
|
||||
{
|
||||
public string IpAddress { get; set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 672 B |
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using DTS.Common.Converters;
|
||||
using DTS.Common.Utils;
|
||||
using Xceed.Wpf.Toolkit.PropertyGrid.Attributes;
|
||||
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum ChartUnitTypeEnum
|
||||
{
|
||||
[Description("EU")]
|
||||
EU = 0,
|
||||
[Description("mV")]
|
||||
mV = 1,
|
||||
[Description("ADC")]
|
||||
ADC = 2,
|
||||
//6402 Implement ability to switch to FFT live in the Review
|
||||
[Description("FFT")]
|
||||
FFT = 3,
|
||||
// 25554 implement Power Spectral Density type
|
||||
[Description("PSD")]
|
||||
PSD = 4
|
||||
}
|
||||
public class ChartUnitTypeItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<ChartUnitTypeEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using DTS.Common.Enums;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface IDigitalOutDbRecord
|
||||
{
|
||||
int DatabaseId { get; set; }
|
||||
string SerialNumber { get; set; }
|
||||
double DODelay { get; set; }
|
||||
double DODuration { get; set; }
|
||||
string ModifiedBy { get; set; }
|
||||
DateTime LastModified { get; set; }
|
||||
string ISOCode { get; set; }
|
||||
string ISOChannelName { get; set; }
|
||||
string UserCode { get; set; }
|
||||
string UserChannelName { get; set; }
|
||||
bool Broken { get; set; }
|
||||
bool DoNotUse { get; set; }
|
||||
DigitalOutputModes DOMode { get; set; }
|
||||
bool LimitDuration { get; set; }
|
||||
int Version { get; set; }
|
||||
byte[] TagsBlobBytes { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Event to inform app that it should mark itself busy or available
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
///
|
||||
/// </remarks>
|
||||
public class LogoutUserEvent : PubSubEvent<LogoutUserArg> { }
|
||||
|
||||
public class LogoutUserArg
|
||||
{
|
||||
public enum Reasons
|
||||
{
|
||||
DatabaseSwitch
|
||||
}
|
||||
public Reasons Reason { get; }
|
||||
|
||||
public LogoutUserArg(Reasons reason)
|
||||
{
|
||||
Reason = reason;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user