init
This commit is contained in:
@@ -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,28 @@
|
||||
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 FilterOptionEnum
|
||||
{
|
||||
[Description("Unfiltered")]
|
||||
Unfiltered = 0,
|
||||
[Description("Test Setup Default")]
|
||||
TestSetupDefault = 1,
|
||||
[Description("Custom")]
|
||||
Custom = 2
|
||||
}
|
||||
public class FilterOptionEnumItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<FilterOptionEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
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 TimeUnitTypeEnum
|
||||
{
|
||||
[Description("ms")]
|
||||
MS = 0,
|
||||
[Description("Seconds")]
|
||||
Seconds = 1,
|
||||
}
|
||||
public class TimeUnitTypeItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<TimeUnitTypeEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
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 WakeMethodTypeEnum
|
||||
{
|
||||
[Description("None")]
|
||||
None = 0,
|
||||
[Description("Motion detect")]
|
||||
MotionDetect = 1,
|
||||
[Description("Time session")]
|
||||
TimeSession = 2,
|
||||
[Description("Magnet")]
|
||||
Magnet = 3,
|
||||
}
|
||||
public class WakeMethodTypeItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<WakeMethodTypeEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
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 YRangeScaleEnum
|
||||
{
|
||||
[Description("Auto Range")]
|
||||
AutoRange = 0,
|
||||
[Description("% Full Scale")]
|
||||
FullScale = 1,
|
||||
[Description("Fixed")]
|
||||
Fixed = 2,
|
||||
[Description("Manual")]
|
||||
Manual = 3
|
||||
}
|
||||
public class YRangeScaleItemSource : IItemsSource
|
||||
{
|
||||
public ItemCollection GetValues()
|
||||
{
|
||||
return EnumUtil.GetValuesList<YRangeScaleEnum>();
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Common/DTS.Common/Enums/DTS.Viewer/Filter/SearchEnum.cs
Normal file
9
Common/DTS.Common/Enums/DTS.Viewer/Filter/SearchEnum.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum FilterEnum
|
||||
{
|
||||
Test,
|
||||
Graph
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using DTS.Common.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.Enums.Viewer.Reports
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum PassFilterType
|
||||
{
|
||||
[Description("Bessel")]
|
||||
Bessel,
|
||||
[Description("Butterworth")]
|
||||
Butterworth,
|
||||
[Description("Chebyshev")]
|
||||
Chebyshev,
|
||||
//[Description("Critical Damping")] // REMOVE THIS HACK / uncomment when implemented in exocortex
|
||||
//CriticalDamping,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using DTS.Common.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.Enums.Viewer.Reports
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum WindowAveragingType
|
||||
{
|
||||
[Description("Averaging")]
|
||||
Averaging,
|
||||
[Description("Peak Hold MAX")]
|
||||
PeakHoldMax,
|
||||
[Description("Peak Hold MIN")]
|
||||
PeakHoldMin,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using DTS.Common.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.Enums.Viewer.Reports
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum WindowType
|
||||
{
|
||||
[Description("Rectangle")]
|
||||
Rectangle,
|
||||
[Description("Hamming")]
|
||||
Hamming,
|
||||
[Description("Hanning")]
|
||||
Hanning,
|
||||
[Description("Blackman")]
|
||||
Blackman,
|
||||
[Description("Blackman-Harris")]
|
||||
BlackmanHarris,
|
||||
[Description("Flat Top")]
|
||||
FlatTop
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using DTS.Common.Converters;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace DTS.Common.Enums.Viewer.Reports
|
||||
{
|
||||
[TypeConverter(typeof(EnumDescriptionTypeConverter))]
|
||||
public enum WindowWidth
|
||||
{
|
||||
[Description("512")]
|
||||
FiveTwelve = 512,
|
||||
[Description("1024")]
|
||||
TenTwentyFour = 1024,
|
||||
[Description("2048")]
|
||||
TwentyFortyEight = 2048,
|
||||
[Description("4096")]
|
||||
FortyNinetySix = 4096,
|
||||
[Description("8192")]
|
||||
EightyOneNinetyTwo = 8192,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum ChannelGroups
|
||||
{
|
||||
Channel,
|
||||
Graph,
|
||||
CalculatedChannel,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum TestChannelFields
|
||||
{
|
||||
SerialNumber,
|
||||
ChannelId,
|
||||
Description,
|
||||
ChannelGroupName,
|
||||
ChannelType,
|
||||
Number,
|
||||
DigitalMultiplier,
|
||||
DigitalMode,
|
||||
Start,
|
||||
Bridge,
|
||||
BridgeResistanceOhms,
|
||||
ZeroPoint,
|
||||
ChannelDescriptionString,
|
||||
ChannelName2,
|
||||
HardwareChannelName,
|
||||
DesiredRange,
|
||||
Sensitivity,
|
||||
SoftwareFilter,
|
||||
ProportionalToExcitation,
|
||||
IsInverted,
|
||||
LinearizationFormula,
|
||||
IsSubsampled,
|
||||
AbsoluteDisplayOrder,
|
||||
LastCalibrationDate,
|
||||
SensorId,
|
||||
OffsetToleranceLowMv,
|
||||
OffsetToleranceHighMv,
|
||||
DataFlag,
|
||||
ExcitationVoltage,
|
||||
Eu,
|
||||
CalSignalEnabled,
|
||||
ShuntEnabled,
|
||||
VoltageInsertionCheckEnabled,
|
||||
RemoveOffset,
|
||||
ZeroMethod,
|
||||
ZeroAverageWindowBegin,
|
||||
ZeroAverageWindowEnd,
|
||||
InitialEu,
|
||||
InitialOffset,
|
||||
UnsubsampledSampleRateHz,
|
||||
MeasuredShuntDeflectionMv,
|
||||
TargetShuntDeflectionMv,
|
||||
MeasuredExcitationVoltage,
|
||||
FactoryExcitationVoltage,
|
||||
TimeOfFirstSample,
|
||||
Multiplier,
|
||||
UserOffsetEU,
|
||||
UnitConversion,
|
||||
AtCapacity,
|
||||
CapacityOutputIsBasedOn,
|
||||
SensitivityUnits,
|
||||
SensorCapacity,
|
||||
SourceChannelNumber,
|
||||
SourceModuleNumber,
|
||||
SourceModuleSerialNumber,
|
||||
Calculation,
|
||||
SampleRateHz,
|
||||
IsoCode,
|
||||
IsoChannelName,
|
||||
UserCode,
|
||||
UserChannelName,
|
||||
SensorPolarity,
|
||||
HIC,
|
||||
UseEUScaler,
|
||||
ScaleFactorEU,
|
||||
T1,
|
||||
T2
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum TestGraphsFields
|
||||
{
|
||||
Name,
|
||||
HardwareChannelName,
|
||||
Channels,
|
||||
Channel,
|
||||
ChannelId
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum TestModuleFields
|
||||
{
|
||||
SerialNumber,
|
||||
BaseSerialNumber,
|
||||
AaFilterRateHz,
|
||||
Number,
|
||||
NumberOfSamples,
|
||||
UnsubsampledNumberOfSamples,
|
||||
RequestedPostTriggerSeconds,
|
||||
RequestedPreTriggerSeconds,
|
||||
PostTriggerSeconds,
|
||||
PreTriggerSeconds,
|
||||
RecordingMode,
|
||||
SampleRateHz,
|
||||
StartRecordSampleNumber,
|
||||
NumberOfChannels,
|
||||
InlineSerializedData,
|
||||
StartRecordTimestampSec,
|
||||
StartRecordTimestampNanoSec,
|
||||
TriggerTimestampSec,
|
||||
TriggerTimestampNanoSec,
|
||||
TriggerSampleNumbers,
|
||||
PTPMasterSync,
|
||||
TiltSensorAxisXDegreesPre,
|
||||
TiltSensorAxisYDegreesPre,
|
||||
TiltSensorAxisZDegreesPre,
|
||||
TiltSensorAxisXDegreesPost,
|
||||
TiltSensorAxisYDegreesPost,
|
||||
TiltSensorAxisZDegreesPost,
|
||||
TemperatureLocation1Pre,
|
||||
TemperatureLocation2Pre,
|
||||
TemperatureLocation3Pre,
|
||||
TemperatureLocation4Pre,
|
||||
TemperatureLocation1Post,
|
||||
TemperatureLocation2Post,
|
||||
TemperatureLocation3Post,
|
||||
TemperatureLocation4Post
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum TestRunMetadataFields
|
||||
{
|
||||
Id,
|
||||
Description,
|
||||
InlineSerializedData,
|
||||
Guid,
|
||||
FaultFlags,
|
||||
Software,
|
||||
SoftwareVersion,
|
||||
DataType,
|
||||
FileDate,
|
||||
FilePath,
|
||||
Modules,
|
||||
Module,
|
||||
Channels,
|
||||
CalculatedChannels,
|
||||
CalculatedChannel
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// ReSharper disable once CheckNamespace
|
||||
namespace DTS.Common.Enums.Viewer
|
||||
{
|
||||
public enum TestSetupMetadataFields
|
||||
{
|
||||
Name,
|
||||
DateOfTheTest,
|
||||
Graphs,
|
||||
Timestamp,
|
||||
CalibrationBehavior
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user