From 9d1660270272180cd71147d6ddd53d1382643d2e Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 02 十一月 2026 18:00:14 +0800
Subject: [PATCH] merge: 并入远程 Initial commit 作为历史根节点
---
Plugin.SeqEditor/Util/ItemData.cs | 196 +++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 196 insertions(+), 0 deletions(-)
diff --git a/Plugin.SeqEditor/Util/ItemData.cs b/Plugin.SeqEditor/Util/ItemData.cs
new file mode 100644
index 0000000..29c5b7b
--- /dev/null
+++ b/Plugin.SeqEditor/Util/ItemData.cs
@@ -0,0 +1,196 @@
+锘縰sing HMI.Core.Util;
+using NationalInstruments.TestStand.Interop.API;
+
+namespace Plugin.SeqEditor.Util
+{
+ public class ItemData
+ {
+ public string DisplayName { get; private set; }
+ public string DataValue { get; private set; }
+
+ public ItemData(string displayName, string dataValue)
+ {
+ this.DisplayName = displayName;
+ this.DataValue = dataValue;
+ }
+ }
+
+
+ public abstract class StringCompTypeData
+ {
+ public static readonly ItemData None =
+ new(LangUtil.Get("se.data.none"), "LOG");
+
+ public static readonly ItemData SCCS =
+ new(LangUtil.Get("se.strComp.SCCS"), "CaseSensitive");
+ public static readonly ItemData SCIC =
+ new(LangUtil.Get("se.strComp.SCIC"), "IgnoreCase");
+
+ public static readonly ItemData RECS =
+ new(LangUtil.Get("se.strComp.RECS"), "RegularExpressionCaseSensitive");
+ public static readonly ItemData REIC =
+ new(LangUtil.Get("se.strComp.REIC"), "IgnoreCase");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ None,SCCS,SCIC,//RECS,REIC
+ };
+ }
+
+ public abstract class FilterTypeData
+ {
+ public static readonly ItemData Wait =
+ new(LangUtil.Get("Wait"), "NI_Wait");
+
+ public static readonly ItemData Action =
+ new(LangUtil.Get("Action"), "Action");
+ public static readonly ItemData StrValTest =
+ new(LangUtil.Get("String Val Test"), "StringValueTest");
+
+ public static readonly ItemData NumValTest =
+ new(LangUtil.Get("Numeric Limit Test"), "NumericLimitTest");
+
+ public static readonly ItemData SequenceCall =
+ new(LangUtil.Get("SequenceCall"), "SequenceCall");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ Wait,Action,StrValTest,NumValTest,//RECS,REIC
+ };
+ }
+
+ public abstract class NumCompTypeData
+ {
+
+ public static readonly ItemData EQ =
+ new("= Low", "EQ");
+ public static readonly ItemData NE =
+ new("!= Low", "NE");
+
+ public static readonly ItemData GT =
+ new("> Low", "GT");
+
+ public static readonly ItemData LT =
+ new("< Low", "LT");
+
+ public static readonly ItemData GE =
+ new(">= Low", "GE");
+
+ public static readonly ItemData LE =
+ new("<= Low", "LE");
+
+ public static readonly ItemData GTLT =
+ new("> Low锛�< High", "GTLT");
+
+ public static readonly ItemData GELE =
+ new(">=Low锛�<= High", "GELE");
+ public static readonly ItemData GELT =
+ new(">= Low锛�< High", "GELT");
+ public static readonly ItemData GTLE =
+ new("> Low锛�<= High", "GTLE");
+
+
+ public static readonly ItemData LTGT =
+ new("< Low OR > High", "LTGT");
+ public static readonly ItemData LEGE =
+ new("<= Low OR >= High", "LEGE");
+ public static readonly ItemData LEGT =
+ new("<= Low OR > High", "LEGT");
+ public static readonly ItemData LTGE =
+ new("< Low OR >= High", "LTGE");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ EQ,NE,GT,LT,GE,LE,GTLT,GELE,GELT,GTLE,LTGT,LEGE,LEGT,LTGE
+ };
+ }
+
+ public abstract class RunModeData
+ {
+ //LangUtil.Get("se.normal")
+ public static readonly ItemData Normal =
+ new("Normal", "Normal");
+
+ public static readonly ItemData Skip =
+ new("Skip", "Skip");
+
+ public static readonly ItemData ForcePass =
+ new("Pass", "Pass");
+
+ public static readonly ItemData ForceFail =
+ new("Fail", "Fail");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ Normal,Skip,ForcePass,ForceFail
+ };
+ }
+
+ public abstract class StepAdapterData
+ {
+ public static readonly ItemData LabView = new("LabVIEW", AdapterKeyNames.FlexLVAdapterKeyName);
+ public static readonly ItemData LabWindows = new("LabWindows/CVI",
+ AdapterKeyNames.FlexCVIAdapterKeyName);
+ public static readonly ItemData CCPlus = new("C/C++ DLL", AdapterKeyNames.FlexCAdapterKeyName);
+ public static readonly ItemData DotNet = new(".NET", AdapterKeyNames.DotNetAdapterKeyname);
+ public static readonly ItemData ActiveX = new("ActiveX/COM", AdapterKeyNames.AutomationAdapterKeyName);
+ public static readonly ItemData None = new("None", AdapterKeyNames.NoneAdapterKeyName);
+ public static readonly ItemData LabViewNGX = new("LabVIEW NXG", AdapterKeyNames.LabVIEWNXGAdapterKeyName);
+ public static readonly ItemData Python = new("Python", AdapterKeyNames.PythonAdapterKeyName);
+ public static readonly ItemData SequenceCall =
+ new("SequenceCall", AdapterKeyNames.SequenceAdapterKeyName);
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ LabView,LabWindows,CCPlus,DotNet,ActiveX,None,LabViewNGX,Python,SequenceCall
+ };
+ }
+
+ public abstract class LoopTypeData
+ {
+ public static readonly ItemData None =
+ new("鏃�", "NoLooping");
+ public static readonly ItemData Fixed =
+ new("鍥哄畾娆℃暟寰幆", "FixedNumLoops");
+ public static readonly ItemData PassFailCount =
+ new("PassFailCount", "PassFailCount");
+
+ public static readonly ItemData Custom =
+ new("鑷畾涔�", "Custom");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ None,Fixed,PassFailCount
+ };
+ }
+
+ public abstract class LoopConditionData
+ {
+ public static readonly ItemData LT =
+ new("<", "<");
+ public static readonly ItemData LE =
+ new("<=", "<=");
+ public static readonly ItemData GT =
+ new(">", ">");
+
+ public static readonly ItemData GE =
+ new(">=", ">=");
+
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ LT,LE, GT, GE
+ };
+ }
+
+ public abstract class LoopCondition2Data
+ {
+ public static readonly ItemData PASS =
+ new("pass", "pass");
+ public static readonly ItemData FAIL =
+ new("fail", "fail");
+ public static readonly List<ItemData> ItemSource =
+ new List<ItemData> {
+ PASS,FAIL
+ };
+ }
+}
--
Gitblit v1.9.1