init
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
R-1\COM:--------------------- Subchannel_{CHANNEL_NUMBER} Description ---------------------;
|
||||
R-1\AMCE-2-{CHANNEL_NUMBER}:T;
|
||||
R-1\AMCN-2-{CHANNEL_NUMBER}:{CHANNEL_NUMBER};
|
||||
R-1\AMN-2-{CHANNEL_NUMBER}:{CHANNEL_NAME};
|
||||
R-1\ADL-2-{CHANNEL_NUMBER}:16;
|
||||
R-1\AMSK-2-{CHANNEL_NUMBER}:FW;
|
||||
R-1\AMTO-2-{CHANNEL_NUMBER}:M;
|
||||
R-1\ASF-2-{CHANNEL_NUMBER}:0;
|
||||
R-1\ASBW-2-{CHANNEL_NUMBER}:200;
|
||||
R-1\ACP-2-{CHANNEL_NUMBER}:D;
|
||||
R-1\AII-2-{CHANNEL_NUMBER}:50;
|
||||
R-1\AGI-2-{CHANNEL_NUMBER}:100;
|
||||
R-1\AFSI-2-{CHANNEL_NUMBER}:5000;
|
||||
R-1\AOVI-2-{CHANNEL_NUMBER}:2500;
|
||||
R-1\ALSV-2-{CHANNEL_NUMBER}:19;
|
||||
R-1\AECU-2-{CHANNEL_NUMBER}:1;
|
||||
R-1\AF-2-{CHANNEL_NUMBER}:U;
|
||||
R-1\AIT-2-{CHANNEL_NUMBER}:S;
|
||||
R-1\AV-2-{CHANNEL_NUMBER}:N;
|
||||
R-1\AECO-2-{CHANNEL_NUMBER}:{CHANNEL_OFFSETEU};
|
||||
R-1\AECS-2-{CHANNEL_NUMBER}:{CHANNEL_SCALEFACTOREU};
|
||||
C-{CHANNEL_NUMBER}\DCN:{CHANNEL_NAME};
|
||||
C-{CHANNEL_NUMBER}\MN1:{CHANNEL_NAME};
|
||||
C-{CHANNEL_NUMBER}\BFM:UNS;
|
||||
C-{CHANNEL_NUMBER}\DCT:COE;
|
||||
C-{CHANNEL_NUMBER}\CO\N:1;
|
||||
C-{CHANNEL_NUMBER}\MN3:{CHANNEL_EU};
|
||||
C-{CHANNEL_NUMBER}\MOT1:{CHANNEL_MAXRANGEEU};
|
||||
C-{CHANNEL_NUMBER}\MOT3:{CHANNEL_MAXRANGEEU};
|
||||
C-{CHANNEL_NUMBER}\MOT5:{CHANNEL_MAXRANGEEU};
|
||||
C-{CHANNEL_NUMBER}\MOT2:{CHANNEL_MINRANGEEU};
|
||||
C-{CHANNEL_NUMBER}\MOT4:{CHANNEL_MINRANGEEU};
|
||||
C-{CHANNEL_NUMBER}\MOT6:{CHANNEL_MINRANGEEU};
|
||||
C-{CHANNEL_NUMBER}\CO:{CHANNEL_OFFSETEU};
|
||||
C-{CHANNEL_NUMBER}\CO-1:{CHANNEL_SCALEFACTOREU};
|
||||
R-1\COM:--------------------- Subchannel_{CHANNEL_NUMBER} End ---------------------;
|
||||
@@ -0,0 +1,51 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface.Sensors.SensorSettingsModule
|
||||
{
|
||||
public interface ISensorSettingsViewModel : IBaseViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// used when saving/reading defaults from db
|
||||
/// </summary>
|
||||
string User{ get; set; }
|
||||
/// <summary>
|
||||
/// used when saving/reading defaults from db
|
||||
/// </summary>
|
||||
int UserID { get; set; }
|
||||
/// <summary>
|
||||
/// restores settings to their original values
|
||||
/// </summary>
|
||||
void RestoreOriginalSettings();
|
||||
/// <summary>
|
||||
/// the view for the vm
|
||||
/// </summary>
|
||||
ISensorSettingsView View { get; set; }
|
||||
/// <summary>
|
||||
/// the defaults for squib
|
||||
/// </summary>
|
||||
ISquibSettingDefaults SquibSettings{ get; set; }
|
||||
/// <summary>
|
||||
/// the defaults for digital outputs
|
||||
/// </summary>
|
||||
IDigitalOutDefaults DigitalOutSettings { get; set; }
|
||||
IDigitalInputDefaults DigitalInputDefaults { get; set; }
|
||||
IIEPESensorDefaults IEPESensorDefaults { get; set; }
|
||||
ICalibrationPolicy SensorCalibrationDefaults { get; set; }
|
||||
//Fb 13120 default filter class setting
|
||||
IAnalogDefaults AnalogDefaults { get; set; }
|
||||
/// <summary>
|
||||
/// un initializes display and frees memory
|
||||
/// </summary>
|
||||
void Unset();
|
||||
/// <summary>
|
||||
/// initializes display
|
||||
/// </summary>
|
||||
void OnSetActive();
|
||||
/// <summary>
|
||||
/// returns whether settings are valid, saves if they are
|
||||
/// does not save if they are invalid
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool ValidateAndSave();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Enums.Viewer.Reports;
|
||||
using Microsoft.Practices.Prism.Commands;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IPSDReportSettingsModel : IBaseModel
|
||||
{
|
||||
IPSDReportSettingsViewModel Parent { get; set; }
|
||||
bool LowPassFilterEnabled { get; set; }
|
||||
double LowPassFilterFrequency { get; set; }
|
||||
PassFilterType LowPassFilterType { get; set; }
|
||||
int LowPassFilterOrder { get; set; }
|
||||
bool HighPassFilterEnabled { get; set; }
|
||||
double HighPassFilterFrequency { get; set; }
|
||||
PassFilterType HighPassFilterType { get; set; }
|
||||
int HighPassFilterOrder { get; set; }
|
||||
WindowWidth WindowWidth { get; set; }
|
||||
WindowType WindowType { get; set; }
|
||||
WindowAveragingType WindowAveragingType { get; set; }
|
||||
double WindowOverlappingPercent { get; set; }
|
||||
bool ShowEnvelope { get; set; }
|
||||
bool CanPublishChanges { get; set; }
|
||||
bool ReadData { get; set; }
|
||||
double DataStart { get; set; }
|
||||
double DataEnd { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using DTS.Common.Base;
|
||||
using DTS.Common.Interface.Channels;
|
||||
using System.Data;
|
||||
|
||||
namespace DTS.Common.Classes.Groups.ChannelSettings
|
||||
{
|
||||
public class GroupChannelSettingRecord: BasePropertyChanged, IGroupChannelSettingRecord
|
||||
{
|
||||
private long _channelId;
|
||||
public long ChannelId
|
||||
{
|
||||
get => _channelId;
|
||||
set => SetProperty(ref _channelId, value, "ChannelId");
|
||||
}
|
||||
private int _settingId;
|
||||
public int SettingId
|
||||
{
|
||||
get => _settingId;
|
||||
set => SetProperty(ref _settingId, value, "SettingId");
|
||||
}
|
||||
private string _settingValue;
|
||||
public string SettingValue
|
||||
{
|
||||
get => _settingValue;
|
||||
set => SetProperty(ref _settingValue, value, "SettingValue");
|
||||
}
|
||||
public GroupChannelSettingRecord() { }
|
||||
public GroupChannelSettingRecord(IDataReader reader, int storedProcedureVersionUsed)
|
||||
{
|
||||
if (storedProcedureVersionUsed >= Constants.BULK_GROUPCHANNELSETTINGS_GET_DB_VERSION)
|
||||
{
|
||||
ChannelId = Utility.GetLong(reader, "ChannelId");
|
||||
}
|
||||
else
|
||||
{
|
||||
ChannelId = 0;
|
||||
}
|
||||
SettingId = Utility.GetInt(reader, "SettingId");
|
||||
SettingValue = Utility.GetString(reader, "SettingValue");
|
||||
}
|
||||
public GroupChannelSettingRecord(long channelId, int settingId, string settingValue)
|
||||
{
|
||||
ChannelId = channelId;
|
||||
SettingId = settingId;
|
||||
SettingValue = settingValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Input;
|
||||
using DTS.Common.Enums;
|
||||
using DTS.Common.Interface.ISO.ExtraProperties;
|
||||
|
||||
namespace DTS.Common.Classes.TestSetups
|
||||
{
|
||||
[Serializable]
|
||||
public class ExtraProperty : IExtraProperty
|
||||
{
|
||||
public ExtraProperty(IExtraProperty iep)
|
||||
: this()
|
||||
{
|
||||
_key = iep.Key;
|
||||
_value = iep.Value;
|
||||
}
|
||||
public ExtraProperty(string key, string value)
|
||||
: this()
|
||||
{
|
||||
_key = key;
|
||||
_value = value;
|
||||
}
|
||||
public ExtraProperty()
|
||||
{
|
||||
_key = string.Empty;
|
||||
_value = string.Empty;
|
||||
}
|
||||
|
||||
private string _key;
|
||||
public string Key
|
||||
{
|
||||
get => _key;
|
||||
set { _key = value; OnPropertyChanged("Key"); }
|
||||
}
|
||||
|
||||
private string _value;
|
||||
public string Value
|
||||
{
|
||||
get => _value;
|
||||
set { _value = value; OnPropertyChanged("Value"); }
|
||||
}
|
||||
|
||||
private ICommand _pasteCommand;
|
||||
|
||||
public ICommand PasteCommand
|
||||
{
|
||||
get => _pasteCommand;
|
||||
set { _pasteCommand = value; OnPropertyChanged("PasteCommand"); }
|
||||
}
|
||||
|
||||
private UIItemStatus _itemStatus;
|
||||
public UIItemStatus ItemStatus
|
||||
{
|
||||
get => _itemStatus;
|
||||
set { _itemStatus = value; OnPropertyChanged("ItemStatus"); }
|
||||
}
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
private void OnPropertyChanged(string propertyName = null)
|
||||
{
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
using DTS.Common.Base;
|
||||
|
||||
namespace DTS.Common.Interface
|
||||
{
|
||||
public interface IShellView : IBaseWindow { }
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using DTS.Common.Base;
|
||||
using Microsoft.Practices.Prism.Events;
|
||||
// ReSharper disable CheckNamespace
|
||||
namespace DTS.Common.Events
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// The Data Folder changed event.
|
||||
/// </summary>
|
||||
public class DataFolderChangedEvent : CompositePresentationEvent<DataFolderSelectionArg> { }
|
||||
public class DataFolderSelectionArg
|
||||
{
|
||||
public string Path{ get; set; }
|
||||
public string File { get; set; }
|
||||
/// <summary>
|
||||
/// whether to set the given test as selected in ui and viewer
|
||||
/// 16158 Browse button on View Data tab not functiona
|
||||
/// </summary>
|
||||
public bool SetSelected { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 24417 start pulling apart viewer to allow reuse for PSD reports
|
||||
/// </summary>
|
||||
public IBaseViewModel ParentVM { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user