init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IRunTestView:IBaseView
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.XMLUtils
|
||||
{
|
||||
public class SettingsXMLClass
|
||||
{
|
||||
public string FilterClass { get; set; }
|
||||
public string Polarity { get; set; }
|
||||
public string Range { get; set; }
|
||||
public string ZeroMethod { get; set; }
|
||||
public string ZeroMethodStart { get; set; }
|
||||
public string ZeroMethodEnd { get; set; }
|
||||
public string InitialOffset { get; set; }
|
||||
public string UserValue1 { get; set; }
|
||||
public string UserValue2 { get; set; }
|
||||
public string UserValue3 { get; set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.RibbonControl;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface ICheckChannelsMenuView : IRibbonView { }
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
using DTS.Common.Interface.Groups;
|
||||
using DTS.Common.Interface.Groups.GroupList;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Data;
|
||||
|
||||
namespace DTS.Common.Classes.Groups
|
||||
{
|
||||
/// <summary>
|
||||
/// represents a record of a channel in the db
|
||||
/// <inheritdoc cref="IChannelDbRecord"/>
|
||||
/// </summary>
|
||||
public class GroupDbRecord : Base.BasePropertyChanged, IGroupDbRecord
|
||||
{
|
||||
protected int _id = -1;
|
||||
/// <summary>
|
||||
/// The database id of the Channel
|
||||
/// </summary>
|
||||
[Key]
|
||||
public int Id
|
||||
{
|
||||
get => _id;
|
||||
set => SetProperty(ref _id, value, "Id");
|
||||
}
|
||||
public string SerialNumber { get; set; }
|
||||
public string Picture { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string Description { get; set; }
|
||||
public bool Embedded { get; set; }
|
||||
public DateTime LastModified { get; set; }
|
||||
public string LastModifiedBy { get; set; }
|
||||
public int? StaticGroupId { get; set; }
|
||||
public string ExtraProperties { get; set; }
|
||||
|
||||
public GroupDbRecord() { }
|
||||
public GroupDbRecord(IGroupDbRecord copy)
|
||||
{
|
||||
Id = copy.Id;
|
||||
SerialNumber = copy.SerialNumber;
|
||||
Picture = copy.Picture;
|
||||
DisplayName = copy.DisplayName;
|
||||
Description = copy.Description;
|
||||
Embedded = copy.Embedded;
|
||||
LastModified = copy.LastModified;
|
||||
LastModifiedBy = copy.LastModifiedBy;
|
||||
StaticGroupId = copy.StaticGroupId;
|
||||
ExtraProperties = copy.ExtraProperties;
|
||||
}
|
||||
public GroupDbRecord(IGroup copy, List<KeyValuePair<string,string>> extraProperties)
|
||||
{
|
||||
Id = copy.Id;
|
||||
SerialNumber = copy.Name;
|
||||
Picture = "";
|
||||
DisplayName = copy.DisplayName;
|
||||
Description = copy.Description;
|
||||
Embedded = copy.Embedded;
|
||||
LastModified = copy.LastModified;
|
||||
LastModifiedBy = copy.LastModifiedBy;
|
||||
StaticGroupId = copy.StaticGroupId;
|
||||
|
||||
ExtraProperties = JsonConvert.SerializeObject(extraProperties);
|
||||
}
|
||||
public GroupDbRecord(IDataReader reader)
|
||||
{
|
||||
Id = Utility.GetInt(reader, "Id", -1);
|
||||
SerialNumber = Utility.GetString(reader, "SerialNumber");
|
||||
Picture = Utility.GetString(reader, "Picture");
|
||||
DisplayName = Utility.GetString(reader, "DisplayName");
|
||||
Description = Utility.GetString(reader, "Description");
|
||||
Embedded = Utility.GetBool(reader, "Embedded");
|
||||
LastModified = Utility.GetDateTime(reader, "LastModified", DateTime.MinValue);
|
||||
LastModifiedBy = Utility.GetString(reader, "LastModifiedBy");
|
||||
StaticGroupId = Utility.GetNullableInt(reader, "StaticGroupId");
|
||||
ExtraProperties = Utility.GetString(reader, "ExtraProperties");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile;
|
||||
|
||||
namespace DTS.Common.Interface.TestSetups.Imports.TTS.LevelTrigger
|
||||
{
|
||||
public interface ILevelTrigger
|
||||
{
|
||||
string Code { get; }
|
||||
string JCode { get; }
|
||||
double ValuePercent { get; set; }
|
||||
double ValueEU { get; set; }
|
||||
string EULabel { get; }
|
||||
string HWSerialNumber { get; }
|
||||
int ChannelNumber { get; }
|
||||
ITTSChannelRecord Channel { get; set; }
|
||||
ITTSSetup TestSetup { get; }
|
||||
ITTSChannelRecord [] AvailableChannels { get; }
|
||||
bool IsActive { get; }
|
||||
/// <summary>
|
||||
/// updates available channels and Channel
|
||||
/// </summary>
|
||||
void Refresh();
|
||||
/// <summary>
|
||||
/// adds the channel as a possible channel for level trigger
|
||||
/// </summary>
|
||||
/// <param name="channel"></param>
|
||||
void Add(ITTSChannelRecord channel);
|
||||
/// <summary>
|
||||
/// removes the channel as a possible channel for level trigger,
|
||||
/// unassigns channel if currently assigned
|
||||
/// </summary>
|
||||
/// <param name="channel"></param>
|
||||
void Remove(ITTSChannelRecord channel);
|
||||
bool IsModified { get; set; }
|
||||
/// <summary>
|
||||
/// returns a sequence of bytes representing this level trigger suitable to base a hash on
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
byte[] GetBytes();
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
@@ -0,0 +1,65 @@
|
||||
using DTS.Common.Enums;
|
||||
using DTS.Common.Interface.TestSetups.Imports.TTS.LevelTrigger;
|
||||
using System;
|
||||
|
||||
namespace DTS.Common.Interface.TestSetups.Imports.TTS.ReadFile
|
||||
{
|
||||
public interface ITTSSetup
|
||||
{
|
||||
string Filename { get; set; }
|
||||
string TestId { get; set; }
|
||||
/// <summary>
|
||||
/// The first 4 lines of the .csv file which may be needed to create a new .csv file in Edit File
|
||||
/// </summary>
|
||||
string Line1 { get; set; }
|
||||
string Line2 { get; set; }
|
||||
string Line3 { get; set; }
|
||||
string Line4 { get; set; }
|
||||
string[] DummyList {get;set;}
|
||||
double SampleRate { get; set; }
|
||||
RecordingModes Mode { get; set; }
|
||||
double TestLength { get ; }
|
||||
double PreTrigger { get; set; }
|
||||
double PostTrigger { get; set; }
|
||||
double ROIStart { get; set; }
|
||||
double ROIEnd { get; set; }
|
||||
ITTSChannelRecord[] Channels { get; set; }
|
||||
ILevelTrigger [] LevelTriggers { get; set; }
|
||||
string OriginalImportFile { get; set; }
|
||||
/// <summary>
|
||||
/// The global default setting for Test Setups.
|
||||
/// If True, HybridRecorder is added to CircularBuffer and Recorder.
|
||||
/// </summary>
|
||||
bool AllowAdvancedRecordingModes { get; set; }
|
||||
/// <summary>
|
||||
/// the global default setting for Test Setups
|
||||
/// if true Active Ram and Active Ram Multiple Events recording modes
|
||||
/// are allowed
|
||||
/// http://manuscript.dts.local/f/cases/31841/Add-support-for-Active-RAM-mode
|
||||
/// </summary>
|
||||
bool AllowActiveRecordingModes { get; set; }
|
||||
bool AllowTSRAIRRecordingModes { get; set; }
|
||||
/// <summary>
|
||||
/// allows consumers to specify whether EIDs must be found for sensors to be used
|
||||
/// </summary>
|
||||
bool RequireEIDFound { get; set; }
|
||||
/// <summary>
|
||||
/// The value from DataPRO.config.exe
|
||||
/// </summary>
|
||||
string DefaultDigitalInputMode { get; set; }
|
||||
/// <summary>
|
||||
/// The value from DataPRO.config.exe
|
||||
/// </summary>
|
||||
double DefaultSquibFireDurationMs { get; set; }
|
||||
string GetHashCode();
|
||||
/// <summary>
|
||||
/// Holds sensors that should be assigned to hardware channels
|
||||
/// this can only happen through the XML import, where hardware and sensors are already assigned
|
||||
/// these persist until the assignment is made
|
||||
/// once the assignment has been made it's no longer necessary to remember the assignment since it has already been made
|
||||
/// this is necessary because readfile for the xml import happens before hardware is scanned
|
||||
/// and the hardware scan might not find all hardware
|
||||
/// </summary>
|
||||
Tuple<string,string> [] PreAssignedSensorIdAndHwId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user