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,5 @@
using DTS.Common.Base;
namespace DTS.Common.Interface
{
public interface IMenuView : IBaseView { }
}

View File

@@ -0,0 +1,29 @@
using System;
using System.Windows;
using System.Windows.Data;
namespace DTS.Common.Converters
{
public class BooleanToItalicFontStyleConverter : IValueConverter
{
/// <summary>
/// Converts a Boolean value to a FontStyle enumeration value.
/// </summary>
/// <param name="value">The Boolean value to convert. This value can be a standard Boolean value or a nullable Boolean value.</param>
/// <param name="culture"></param>
/// <param name="parameter"></param>
/// <param name="targetType"></param>
/// <returns>The value to be passed to the target dependency property.</returns>
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return value != null && (bool)value ? FontStyles.Italic : FontStyles.Normal;
}
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
return null;
}
}
}

View File

@@ -0,0 +1,35 @@
using DTS.Common.Utils;
using System;
using System.Globalization;
using System.Xml;
namespace DTS.Common.XMLUtils
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Minor Code Smell", "S101:Types should be named in PascalCase", Justification = "Acronym")]
public static class DTSXMLFile
{
public static double GetItemsToCompleteCount(string fileName)
{
var node = FileUtils.GetImportXmlNode(fileName, null, out _);
double totalItems = 0;
try
{
totalItems = Convert.ToDouble(node.GetAttribute("TotalItems"), CultureInfo.InvariantCulture);
return totalItems;
}
catch
{
return totalItems;
}
}
public static string GetInnerXML(XmlReader reader)
{
if (null == reader) { throw new ArgumentException("GetInnerXML - XmlReader was null"); }
reader.ReadStartElement(reader.Name);
var s = reader.Value;
if (reader.NodeType == XmlNodeType.Text) { reader.Read(); }
reader.ReadEndElement();
return s;
}
}
}

View File

@@ -0,0 +1,22 @@
// ReSharper disable once CheckNamespace
namespace DTS.Common.Enums.Viewer
{
public enum TestRunMetadataFields
{
Id,
Description,
InlineSerializedData,
Guid,
FaultFlags,
Software,
SoftwareVersion,
DataType,
FileDate,
FilePath,
Modules,
Module,
Channels,
CalculatedChannels,
CalculatedChannel
}
}

View File

@@ -0,0 +1,39 @@
using DTS.Common.Base;
using DTS.Common.Enums;
using DTS.Common.Enums.Sensors;
namespace DTS.Common.Interface.Groups.GroupChannelList
{
/// <summary>
/// view for group channels
/// </summary>
public interface IGroupChannelSettingsListView : IBaseView
{
/// <summary>
/// sets whether to use columns for group order or test setup order
/// </summary>
/// <param name="bUseTestSetupOrder"></param>
void SetOrderMode(bool bUseTestSetupOrder);
/// <summary>
/// sets whether to show User Value X columns
/// </summary>
/// <param name="bShowSensorChannelUserValues"></param>
void SetDisplayOptions(bool bShowSensorChannelUserValues);
/// <summary>
/// sets which columns to use given an iso view mode
/// </summary>
/// <param name="viewMode"></param>
void HandleColumns(IsoViewMode viewMode);
/// <summary>
/// sets which columns to use given a sensor type
/// </summary>
/// <param name="filterMode"></param>
void SetFilterMode(PossibleFilters filterMode);
/// <summary>
/// stores the minimum client db version associated with data in the view
/// used to hide or disable properties/features
/// </summary>
int ViewDbVersion { get; set; }
}
}

View File

@@ -0,0 +1,66 @@
namespace DTS.Common.Constant.DASSpecific
{
public static class SliceProDB
{
/// <summary>
/// The MINIMUM_VALID_INPUT_THRESHOLD is the minimum input reading we accept from a das, if it's below that we reject it
/// The low value for this threshold is the minimum setting value we consider valid before we reject it and use
/// MINIMUM_VALID_INPUT_THRESHOLD_VALUE as the default for the MINIMUM_VALID_INPUT_THRESHOLD
/// </summary>
public const double MINIMUM_VALID_INPUT_THRESHOLD_LOW = 30;
/// <summary>
/// The MINIMUM_VALID_INPUT_THRESHOLD is the minimum input reading we accept from a das, if it's below that we reject it
/// The high value for this threshold is the max setting value we consider valid before we reject it and use
/// MINIMUM_VALID_INPUT_THRESHOLD_VALUE as the default for the MINIMUM_VALID_INPUT_THRESHOLD
/// </summary>
public const double MINIMUM_VALID_INPUT_THRESHOLD_HIGH = 40;
/// <summary>
/// this is the default we'll use for the min valid input threshold if we reject the setting in the database
/// </summary>
public const double MINIMUM_VALID_INPUT_THRESHOLD_VALUE = 35;
/// <summary>
/// the MAXIMIMUM_VALID_INPUT_THRESHOLD is the max input voltage reading from the DAS that we will accept, any readings above this value we
/// reject
/// The High value here is the maximum setting value we allow before rejecting the setting and using
/// MAXIMUM_VALID_INPUT_THRESHOLD_VALUE as for the MAXIMUM_VALID_INPUT_THRESHOLD instead of the setting in the db
/// </summary>
public const double MAXIMUM_VALID_INPUT_THRESHOLD_HIGH = 60;
/// <summary>
/// the MAXIMIMUM_VALID_INPUT_THRESHOLD is the max input voltage reading from the DAS that we will accept, any readings above this value we
/// reject
/// The low value here is the min setting value we allow before rejecting the setting and using
/// MAXIMUM_VALID_INPUT_THRESHOLD_VALUE as for the MAXIMUM_VALID_INPUT_THRESHOLD instead of the setting in the db
/// </summary>
public const double MAXIMUM_VALID_INPUT_THRESHOLD_LOW = 50;
/// <summary>
/// this is the default value for the maximum valid input threshold when resetting from what is in the database
/// </summary>
public const double MAXIMUM_VALID_INPUT_THRESHOLD_VALUE = 57;
/// <summary>
/// this is the low value for the input low threshold before we decide the value is invalid and we use the default
/// </summary>
public const double INPUTLOWTHRESHOLD_LOW = 30;
/// <summary>
/// this is the high value for the input low threshold before we decide the value is invalid and we use the default
/// </summary>
public const double INPUTLOWTHRESHOLD_HIGH = 40;
/// <summary>
/// this is the default value that we use for the input low threshold if we need a default
/// </summary>
public const double INPUTLOWTHRESHOLD_DEFAULT = 36.5;
/// <summary>
/// this is the low value for the input high threshold before we decide the value is invalid and use the default
/// </summary>
public const double INPUTHIGHTHRESHOLD_LOW = 50;
/// <summary>
/// this is the high value for the input high threshold before we decide the value is invalid and use the default
/// </summary>
public const double INPUTHIGHTHRESHOLD_HIGH = 60;
/// <summary>
/// this is the default value for the input high threshold when we need a default
/// </summary>
public const double INPUTHIGHTHRESHOLD_DEFAULT = 56;
}
}