init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IViewerShellViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the Shell View.
|
||||
/// </summary>
|
||||
IViewerShellView View { get; }
|
||||
List<FrameworkElement> GetRegions();
|
||||
object ContextMainRegion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace DTS.Common.Enums.Hardware
|
||||
{
|
||||
public enum HardwareListTags
|
||||
{
|
||||
Included,
|
||||
SerialNumber,
|
||||
HardwareType,
|
||||
ChannelCount,
|
||||
Firmware,
|
||||
MaxSampleRate,
|
||||
TestSampleRate,
|
||||
CalDate,
|
||||
CalDueDate,
|
||||
IPAddress,
|
||||
FirstUseDate
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using DTS.Common.Classes.Sensors;
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors
|
||||
{
|
||||
public interface ISensorCalDbRecord
|
||||
{
|
||||
[Key]
|
||||
int? CalibrationId { get; set; }
|
||||
string SerialNumber { get; set; }
|
||||
[Column(TypeName = "datetime")]
|
||||
DateTime CalibrationDate { get; set; }
|
||||
[Required]
|
||||
[StringLength(50)]
|
||||
string Username { get; set; }
|
||||
bool LocalOnly { get; set; }
|
||||
bool NonLinear { get; set; }
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
ICalibrationRecords Records { get; set; }
|
||||
[Column(TypeName = "datetime")]
|
||||
DateTime ModifyDate { get; set; }
|
||||
bool IsProportional { get; set; }
|
||||
bool RemoveOffset { get; set; }
|
||||
[Required]
|
||||
[StringLength(255)]
|
||||
ZeroMethods ZeroMethods { get; set; }
|
||||
[Required]
|
||||
[StringLength(2048)]
|
||||
string [] CertificationDocuments { get; set; }
|
||||
InitialOffsets InitialOffsets { get; set; }
|
||||
bool LinearAdded { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
namespace DTS.Common.Interface.Realtime
|
||||
{
|
||||
public interface IRealtimeChannel
|
||||
{
|
||||
double Capacity { get; }
|
||||
|
||||
int DisplayOrder { get; }
|
||||
|
||||
string SensorName{ get; }
|
||||
|
||||
string ChannelName { get; }
|
||||
|
||||
string[] DasNames { get; }
|
||||
|
||||
string SensorSerial { get; }
|
||||
|
||||
string Units { get; }
|
||||
|
||||
string UserValue1{ get; }
|
||||
|
||||
string GroupName { get; }
|
||||
string DisplayUnit { get; }
|
||||
|
||||
string HardwareChannelString{ get; }
|
||||
string ISOCode{ get; }
|
||||
string SensorsString{ get; }
|
||||
|
||||
string DasName{ get; }
|
||||
string GetId();
|
||||
bool HasPassedLevelTrigger { get; }
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ITestModuleViewModel : IBaseViewModel
|
||||
{
|
||||
List<Assembly> AssemblyList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
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 LevelTriggerXMLClass
|
||||
{
|
||||
[XmlAttribute]
|
||||
public string GroupChannelId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string HardwareChannelId { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string SensorSerialNumber { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string GreaterThanEnabled { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string GreaterThanValue { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string LessThanEnabled { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string LessThanValue { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string TriggerInside { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string TriggerOutside { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string InsideLowerEU { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string InsideUpperEU { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string OutsideLowerEU { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public string OutsideUpperEU { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Collections.Generic;
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Utils;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ILevelTriggerViewModel : IBaseViewModel
|
||||
{
|
||||
ILevelTriggerView View { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
namespace DTS.Common.Interface.DASFactory.Config
|
||||
{
|
||||
public interface IConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// path on pc the IConfiguration device is storing test information to
|
||||
/// </summary>
|
||||
string TestDirectory { get; set; }
|
||||
/// <summary>
|
||||
/// returns true if the unit supports discovering channel type [bridge/IEPE]
|
||||
/// </summary>
|
||||
bool SupportsAutoDetect{ get; }
|
||||
/// <summary>
|
||||
/// directly query (if possible) if there are any devices connected to this unit
|
||||
/// </summary>
|
||||
void QueryConnectedDevices();
|
||||
/// <summary>
|
||||
/// ConfigData object containing the pre-test setup and configuration
|
||||
/// of all modules and channels in the hardware. The object is updated
|
||||
/// when <see cref="ConfigurationService">ConfigurationService.Configure(...)</see> is called, and the properties
|
||||
/// of the entire DAS unit can be inspected.
|
||||
/// </summary>
|
||||
IConfigurationData ConfigData { get; set; }
|
||||
/// <summary>
|
||||
/// DASClockSyncProfile object containing the profile for clock sync for the hardware
|
||||
/// The data is updated
|
||||
/// when <see cref="ConfigurationService">ConfigurationService.Configure(...)</see> is called, and is only
|
||||
/// applied to units that support the value
|
||||
/// </summary>
|
||||
ClockSyncProfile DASClockSyncProfile { get; set; }
|
||||
/// <summary>
|
||||
/// get the display order of this das
|
||||
/// allows a das to be display before or after other das
|
||||
/// default display order is -1
|
||||
/// </summary>
|
||||
/// <returns>display order (-1 default)</returns>
|
||||
int GetDASDisplayOrder();
|
||||
/// <summary>
|
||||
/// gets the display order of channels in this das
|
||||
/// allows channels to have a different order in display UIs
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
int[] GetChannelDisplayOrder();
|
||||
|
||||
/// <summary>
|
||||
/// sets the order of the das to be displayed in UIs
|
||||
/// should only be called really from FWTU
|
||||
/// </summary>
|
||||
/// <param name="order"></param>
|
||||
void SetDASDisplayOrder(int order);
|
||||
/// <summary>
|
||||
/// sets the order of channels to be displayed in UIs
|
||||
/// should only be called really from FWTU
|
||||
/// </summary>
|
||||
/// <param name="order"></param>
|
||||
void SetChannelDisplayOrder(int[] order);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace DTS.Common.Enums.Sensors.SensorsList
|
||||
{
|
||||
public enum DigitalInputFields
|
||||
{
|
||||
Included,
|
||||
SerialNumber,
|
||||
Description,
|
||||
Mode,
|
||||
ModifiedBy,
|
||||
LastModified
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user