init
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<Style x:Key="WindowRegionStyle" TargetType="Window">
|
||||
<Setter Property="Background" Value="#FFDFE9F5" />
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="SizeToContent" Value="WidthAndHeight" />
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface INetworkAdapterView : IBaseView { }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Classes.Connection
|
||||
{
|
||||
public class NotConnectedException: ApplicationException
|
||||
{
|
||||
public NotConnectedException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
using DTS.Common.Base;
|
||||
// ReSharper disable CheckNamespace
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IChartOptionsView : IBaseView { }
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
namespace DTS.Common.Interface.DASFactory.ARM
|
||||
{
|
||||
/// <summary>
|
||||
/// Arm interface for a DAS unit.
|
||||
/// </summary>
|
||||
public interface IArmStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// marks the unit as being in arm
|
||||
/// <paramref name="WriteToDb">whether to write to db or not</paramref>
|
||||
/// </summary>
|
||||
void SetInArm(bool WriteToDb);
|
||||
/// <summary>
|
||||
/// marks the unit as being in realtime
|
||||
/// <paramref name="WriteToDb">whether to write to db or not</paramref>
|
||||
/// </summary>
|
||||
void SetInRealtime(bool WriteToDb, bool ExitRealtimeIfPossible);
|
||||
/// <summary>
|
||||
/// returns true if the unit is in known to be in Arm
|
||||
/// does not query the hardware, just returns a flag if it has been set
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool GetIsInArm();
|
||||
/// <summary>
|
||||
/// returns true if unit is known to be in realtime
|
||||
/// does not query the hardware, just returns a flag if it has been set
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool GetIsInRealtime();
|
||||
/// <summary>
|
||||
/// returns true if the unit is known to be streaming
|
||||
/// does not query the hardware, just returns a flag if it has been set
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool GetIsStreaming();
|
||||
IArmStatusData DASArmStatus { get; set; }
|
||||
/// <summary>
|
||||
/// sets DASArmStatus and optionally stores in the db
|
||||
/// </summary>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="bSetInDb"></param>
|
||||
void SetDASArmStatus(IArmStatusData status, bool bSetInDb);
|
||||
/// <summary>
|
||||
/// sets to the db (if connected) the current DASArmStatus
|
||||
/// </summary>
|
||||
void SetDASArmStatus();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<UserControl x:Class="DTS.Common.Controls.TestIDView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="703">
|
||||
<UserControl.Resources>
|
||||
<Style TargetType="TextBox" BasedOn="{StaticResource PageContentTextBoxStyle}" />
|
||||
<Style TargetType="TextBlock" BasedOn="{StaticResource PageContentTextStyle}" />
|
||||
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
|
||||
<Style TargetType="PasswordBox" BasedOn="{StaticResource PageContentPasswordBoxStyle}" />
|
||||
<Style TargetType="Button" BasedOn="{StaticResource PageContentButton}" />
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<ComboBox Grid.Column="0" ItemsSource="{Binding AllTestIdPrefixSuffixValues}" Width="200" SelectedItem="{Binding SelectedTestIdPrefixValueItem}"
|
||||
AutomationProperties.AutomationId="TestIdPrefixComboBox"/>
|
||||
<TextBlock Grid.Column="1" Text="{Binding TestSetupLabel, FallbackValue='Awesome Sauce'}" MinWidth="100" MaxWidth="150" Padding="0,0,5,0" TextTrimming="CharacterEllipsis" Visibility="Collapsed" AutomationProperties.AutomationId="TestIdTextBox"/>
|
||||
<TextBox Grid.Column="2" Text="{Binding TestIdEditableText}" Width="150" Style="{StaticResource PageContentTextBoxStyleId}"
|
||||
AutomationProperties.AutomationId="TestIdTextBox"/>
|
||||
<ComboBox Grid.Column="3" ItemsSource="{Binding AllTestIdPrefixSuffixValues}" Width="200" SelectedItem="{Binding SelectedTestIdSuffixValueItem}"
|
||||
AutomationProperties.AutomationId="TestIdSuffixComboBox"/>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace DTS.Common.XMLUtils
|
||||
{
|
||||
public class MetaDataXMLClass
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string TestObject { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string SetupName { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string PropName { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string PropValue { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string Optional { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string Version { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
|
||||
using DTS.Common.Enums.Hardware;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.DataRecorders
|
||||
{
|
||||
/// <summary>
|
||||
/// represents hardware in TTS import
|
||||
/// </summary>
|
||||
public interface IDASHardware
|
||||
{
|
||||
/// <summary>
|
||||
/// returns true if the hardware is standin for a real das, but not a physical das in itself
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool IsStandIn();
|
||||
/// <summary>
|
||||
/// whether hardware supports and is using first use date
|
||||
/// 15524 DAS "First Use Date"
|
||||
/// </summary>
|
||||
bool IsFirstUseValid { get; }
|
||||
/// <summary>
|
||||
/// first date of use after calibration
|
||||
/// only valid if IsFirstUseValid is true
|
||||
/// null value indicates hardware has not been used since calibration
|
||||
/// (once again, only if IsFirstUseValid is true)
|
||||
/// 15524 DAS "First Use Date"
|
||||
/// </summary>
|
||||
DateTime? FirstUseDate { get; }
|
||||
bool IsPseudoRack();
|
||||
int DASId { get; }
|
||||
string SerialNumber { get; set; }
|
||||
string SerialNumberFamily { get; set; }
|
||||
string EIDFound { get; set; }
|
||||
string BatteryVoltageStatus { get; set; }
|
||||
System.Windows.Media.SolidColorBrush BatteryVoltageColor { get; set; }
|
||||
string InputVoltageStatus { get; set; }
|
||||
System.Windows.Media.SolidColorBrush InputVoltageColor { get; set; }
|
||||
/// <summary>
|
||||
/// Used to display DAS connectivity in Hardware Scan
|
||||
/// </summary>
|
||||
string ParentDAS { get; set; }
|
||||
/// <summary>
|
||||
/// Used to determine DAS connectivity for Hardware Scan
|
||||
/// </summary>
|
||||
string Connection { get; set; }
|
||||
IHardwareChannel[] GetIHardwareChannels();
|
||||
/// <summary>
|
||||
/// returns whether DAS is a SLICE Ethernet Controller or not
|
||||
/// </summary>
|
||||
bool IsSLICEEthernetController { get; }
|
||||
/// <summary>
|
||||
/// returns true if the the DAS is a TDAS rack
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool IsTDASRack();
|
||||
|
||||
bool IsG5();
|
||||
bool IsTSRAIR();
|
||||
bool IsTSRAIRModule();
|
||||
/// <summary>
|
||||
/// returns the minimum sample rate allowed on this DAS
|
||||
/// </summary>
|
||||
double GetMinSampleRateDouble();
|
||||
|
||||
/// <summary>
|
||||
/// returns the maximum sample rate allowed on this DAS
|
||||
/// </summary>
|
||||
double GetMaxSampleRateDouble();
|
||||
|
||||
/// <summary>
|
||||
/// TTS import sets to True for modules which should not be displayed in Hardware Scan (Slice bridges)
|
||||
/// and to False for modules which should be displayed (those in TDAS racks)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool IsModule();
|
||||
|
||||
string LastModifiedBy { get; set; }
|
||||
|
||||
DateTime LastModified { get; set; }
|
||||
HardwareTypes DASTypeEnum { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Constant.DASSpecific
|
||||
{
|
||||
public class TDAS
|
||||
{
|
||||
public const uint MaxAAFilterRateHz = 4300;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user