This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
using DTS.Common.Enums.Sensors;
namespace DTS.Common.Interface.Sensors.SensorSettingsModule
{
/// <summary>
/// describes settings sensor calibrations
/// </summary>
public interface ICalibrationPolicy
{
/// <summary>
/// the current selected calibration policy
/// </summary>
SensorConstants.SensorCalPolicy SelectedCalPolicy { get; set; }
/// <summary>
/// all available calibration policies
/// </summary>
SensorConstants.SensorCalPolicy[] AvailableSensorCalPolicies { get; }
/// <summary>
/// period in days before calibration is due to warn
/// </summary>
int WarningPeriod { get; set; }
/// <summary>
/// The current value for whether sensor cal interval starts after calibration or first use
/// </summary>
bool UseSensorFirstUseDate { get; set; }
/// <summary>
/// Whether or not to keep track of, and validate a Test Setup based on, sensor use.
/// </summary>
bool DontAllowDataCollectionIfOverused { get; set; }
/// <summary>
/// A warning will be displayed if a sensor's usage is within this amount of its maximum.
/// </summary>
int UsageRemainingForWarning { get; set; }
/// <summary>
/// The default maximum number of uses for sensors
/// </summary>
int DefaultMaxUsageAllowed { get; set; }
/// <summary>
/// Whether or not the database being used supports the sensor usage policy.
/// </summary>
bool SensorAssemblyEnabled { get; }
/// <summary>
/// Whether or not the database being used supports the inspect before use
/// </summary>
bool AllowInspectBeforeUseEnabled { get; }
//FB43142
/// <summary>
/// Whether or not to allow inspect before use
/// </summary>
bool AllowInspectBeforeUse { get; set; }
/// <summary>
/// FB15758 Import/Export settings
/// </summary>
void ReadXML(System.Xml.XmlElement root);
void WriteXML(ref System.Xml.XmlWriter writer);
}
}

View File

@@ -0,0 +1,6 @@
using DTS.Common.Base;
namespace DTS.Common.Interface.Sensors.SensorSettingsModule
{
public interface ISensorSettingsView : IBaseView { }
}

View File

@@ -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();
}
}