diff --git a/Sinvo.EplanHpD.Plugin.Test/CheckTest.cs b/Sinvo.EplanHpD.Plugin.Test/CheckTest.cs index 5eb2617..b5466e5 100644 --- a/Sinvo.EplanHpD.Plugin.Test/CheckTest.cs +++ b/Sinvo.EplanHpD.Plugin.Test/CheckTest.cs @@ -165,6 +165,38 @@ namespace Sinvo.EplanHpD.Plugin.Test } + [TestMethod] + public void CheckWireErpNrTest() + { + var vm = new MainViewModel(); + var stuffedData = new StuffedDataModel + { + Imprint = "D-PE1231231", + WireModel = "黄绿色RV0.5-CE/定制", + FrontTerminalModel = "C45-1.5-CE/定制", + RearTerminalModel = "RNB2-5-CE/定制", + }; + vm.CheckWireErpNr(stuffedData); + Assert.IsFalse(!stuffedData.IsError); + + } + [TestMethod] + public void ChecImprintTest() + { + var vm = new MainViewModel(); + var stuffedData = new StuffedDataModel + { + Imprint = "", + WireModel = "黄绿色RV0.5-CE/定制", + FrontTerminalModel = "C45-1.5-CE/定制", + RearTerminalModel = "RNB2-5-CE/定制", + }; + vm.CheckAll(new List(){ + stuffedData }); + Assert.IsFalse(!stuffedData.IsError); + + } + [TestMethod] public void CheckSizeTest() { diff --git a/Sinvo.EplanHpD.Plugin.Test/Properties/AssemblyInfo.cs b/Sinvo.EplanHpD.Plugin.Test/Properties/AssemblyInfo.cs index 59f8eb6..f8931e4 100644 --- a/Sinvo.EplanHpD.Plugin.Test/Properties/AssemblyInfo.cs +++ b/Sinvo.EplanHpD.Plugin.Test/Properties/AssemblyInfo.cs @@ -16,5 +16,5 @@ using System.Runtime.InteropServices; [assembly: Guid("aec39474-528b-4da8-b650-99189acb7a2c")] // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.5")] -[assembly: AssemblyFileVersion("1.0.0.5")] +[assembly: AssemblyVersion("1.0.0.6")] +[assembly: AssemblyFileVersion("1.0.0.6")] diff --git a/Sinvo.EplanHpD.Plugin.Test/StuffTest.cs b/Sinvo.EplanHpD.Plugin.Test/StuffTest.cs index 392d110..fee5191 100644 --- a/Sinvo.EplanHpD.Plugin.Test/StuffTest.cs +++ b/Sinvo.EplanHpD.Plugin.Test/StuffTest.cs @@ -97,6 +97,7 @@ Project = "放卷2", Assert.IsTrue(result.Where(it => it.Imprint == "EC5L1").First().WireColor == "LBU"); Assert.IsTrue(result.Where(it => it.Imprint == "EC5L2").First().WireColor == "BUWH"); Assert.IsTrue(result.Where(it => it.Imprint == "EC5L3").First().WireColor == "BK"); + } } } diff --git a/Sinvo.EplanHpD.Plugin.WPFUI/LectotypeWindow.xaml b/Sinvo.EplanHpD.Plugin.WPFUI/LectotypeWindow.xaml new file mode 100644 index 0000000..45245d1 --- /dev/null +++ b/Sinvo.EplanHpD.Plugin.WPFUI/LectotypeWindow.xaml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + +