lihanbo
|
65970751b3
|
更新多个文件,添加新功能和修复bug
在 `CheckTest.cs` 文件中,添加了三个新的测试方法:`CheckWireErpNrTest`、`ChecImprintTest` 和 `CheckSizeTest`。
在 `AssemblyInfo.cs` 文件中,将程序集版本和文件版本从 `1.0.0.5` 更新为 `1.0.0.6`。
在 `StuffTest.cs` 文件中,添加了一个新的断言 `Assert.IsTrue(result.Where(it => it.Imprint == "EC5L3").First().WireColor == "BK");`。
在 `LectotypeWindow.xaml` 文件中,添加了一个新的 `Window` 定义,包括资源字典、按钮和 `TabControl` 控件。
在 `LectotypeWindow.xaml.cs` 文件中,添加了 `LectotypeWindow` 类的定义和相关的事件处理方法。
在 `MainWindow.xaml` 文件中,移除了旧的样式定义,添加了新的资源字典引用,并更新了 `GroupBox` 为 `hc:Card` 控件,调整了按钮样式和 `DataGrid` 的样式。
在 `MainWindow.xaml` 文件中,更新了 `DataGrid` 的 `RowStyle` 和 `CellStyle`,并添加了新的触发器和样式设置。
在 `MainWindow.xaml` 文件中,更新了检查配置项的布局,使用 `hc:Card` 控件替换了 `GroupBox`,并调整了文本块的样式和布局。
在 `MainWindow.xaml.cs` 文件中:
* 在 `MainWindow` 类中添加了对 `model.IsError` 的检查,如果为 `true`,则将 `model.IsIgnore` 设置为 `true`。
* 在 `Copy_Click` 方法中添加了 `try-catch` 块来捕获异常,并在捕获到异常时显示错误消息。
* 在 `GoToSource_Click` 方法中添加了 `try-catch` 块来捕获异常,并在捕获到异常时显示错误消息。
* 将 `Array.Empty<object>()` 替换为 `[]`。
在 `CheckedModel.cs` 文件中:
* 注释掉了 `SetProperty` 方法中对 `Equals` 方法的检查。
在 `LectotypeModel.cs` 文件中:
* 新增了 `LectotypeModel` 类,包含多个属性和相应的 `OnPropertyChanged` 调用。
在 `LineSegmentModel.cs` 文件中:
* 新增了 `LineSegmentModel` 类,包含 `LineAxisNo`、`LineType` 和 `LineParagraph` 属性。
在 `AssemblyInfo.cs` 文件中:
* 更新了程序集版本号,从 `1.0.0.5` 更新到 `1.0.0.6`。
在 `Sinvo.EplanHpD.Plugin.WPFUI.csproj` 文件中:
* 添加了对 `EPLAN.Harness.MathLib` 的引用。
* 添加了 `LectotypeWindow.xaml` 和 `TestWindow.xaml` 及其对应的代码文件。
* 添加了 `HandyControl` 包的引用。
在 `TestWindow.xaml` 文件中:
* 新增了 `TestWindow` 窗口的 XAML 定义,包含一个 `DataGrid` 控件。
在 `TestWindow.xaml.cs` 文件中:
* 新增了 `TestWindow` 类,包含加载数据的方法。
在 `ExcelHelper.cs` 文件中:
* 修改了 `GetWireTerminalMappingTable` 方法,使其在 `Prefix` 为 `null` 时也能匹配。
* 新增了 `GetWireInfo` 方法,用于获取线材信息。
在 `LectotypeViewModel.cs` 文件中:
* 新增了 `LectotypeViewModel` 类,包含加载数据的方法和多个辅助方法。
在 `MainViewModel.Check.cs` 文件中:
* 在 `ValidateItem` 方法中添加了对 `CheckWireErpNr` 方法的调用。
* 新增了 `CheckWireErpNr` 方法,用于检查线材料号。
* 在 `CheckNumberTube` 方法中添加了对 `item.Imprint` 是否为空的检查。
将 `data.AsParallel().WithDegreeOfParallelism(8).ForAll(entry =>` 修改为 `data.Where(it => it.OrigOcc == "OccWire" && !(it?.Properties["WireName"]?.GetDisplayValue()?.StartsWith("导线") ?? false)).AsParallel().WithDegreeOfParallelism(1).ForAll(entry =>`,以过滤出 `OrigOcc` 为 "OccWire" 且 `WireName` 不以 "导线" 开头的数据,并将并行度设置为 1。
将 `data.FrontTerminalModel = item.ConnectorFrom.Contains(":") ? item.ConnectorFrom.Split(':')[0] : item.ConnectorFrom;` 修改为 `data.FrontTerminalModel = item.ConnectorFrom?.Contains(":") ?? false ? item.ConnectorFrom.Split(':')[0] : item.ConnectorFrom ?? "";`,以处理 `ConnectorFrom` 可能为 null 的情况。
将 `data.RearTerminalModel = item.ConnectorTo.Contains(":") ? item.ConnectorTo.Split(':')[0] : item.ConnectorTo;` 修改为 `data.RearTerminalModel = item.ConnectorTo?.Contains(":") ?? false ? item.ConnectorTo.Split(':')[0] : item.ConnectorTo ?? "";`,以处理 `ConnectorTo` 可能为 null 的情况。
删除了 `if (insulationModels.Any()) { data.Insulation = insulationModels.First(); }` 语句块,简化了代码逻辑。
更新了 `GetWireColorCode` 方法中的注释,将原来的注释替换为更简洁的版本。
|
2024-11-07 12:14:44 +08:00 |
lihanbo
|
c620fda442
|
新增 AppDomainDllLoader 和 DesignPluginEntry 类
在 AppDomainDllLoader.cs 文件中新增了 AppDomainDllLoader 类,用于处理 DLL 加载问题,解决依赖问题。
在 DesignPluginEntry.cs 文件中新增了 DesignPluginEntry 类,增加3D插件入口。
在 PluginEntry.cs 文件中,修改了 Version 属性的获取方式,并新增了对 AppDomainDllLoader.SetLaoder() 方法的调用。
在 AssemblyInfo.cs 文件中,更新了程序集的版本信息,将 AssemblyVersion、AssemblyFileVersion 和 AssemblyInformationalVersion 都更新为 1.0.0.6。
在 Sinvo.EplanHpD.Plugin.csproj 文件中,新增了对 HandyControl 库的引用,并添加了 AppDomainDllLoader.cs 和 DesignPluginEntry.cs 文件的编译项。
在 packages.config 文件中,新增了 HandyControl 库的包引用,版本为 3.2.0,目标框架为 net481。
|
2024-11-07 12:13:19 +08:00 |
lihanbo
|
09c4e983bd
|
105040 增加颜色匹配
|
2024-11-02 11:57:05 +08:00 |
lihanbo
|
d5e61f5ac2
|
105040 右键菜单列表增加 转至源 选项,直接打开3D模型并跳转选中到对应的线
|
2024-10-29 10:23:27 +08:00 |
lihanbo
|
04b57294ce
|
105040 增加字段,优化数量逻辑,修复检查大小匹配时的错误
|
2024-10-28 17:56:13 +08:00 |
lihanbo
|
ba6c125c95
|
105040 Update 忽略异常时只处理有异常的项
|
2024-10-28 14:30:24 +08:00 |
lihanbo
|
67a9e0c416
|
105040 Fix 变色套管匹配错误
|
2024-10-28 14:29:56 +08:00 |
lihanbo
|
d01b1838a9
|
105040 调整测试数据
|
2024-10-26 14:46:06 +08:00 |
lihanbo
|
b03ee3834e
|
105040 添加测试项目
|
2024-10-26 14:40:55 +08:00 |
lihanbo
|
5bcbacffd3
|
105040 Clean code
|
2024-10-26 14:40:46 +08:00 |
lihanbo
|
1539afc65e
|
105040 增加测试项目
|
2024-10-26 14:40:28 +08:00 |
lihanbo
|
f194ff589c
|
105040 修改端子检查逻辑,增加地线检查与料号匹配
|
2024-10-26 14:40:12 +08:00 |
lihanbo
|
2978aab2ff
|
105040 调整为传入数据的方式,便于测试
|
2024-10-26 14:01:56 +08:00 |
lihanbo
|
21035167c8
|
105040 修复读取变量为空时的报错
|
2024-10-26 14:01:32 +08:00 |
lihanbo
|
f41e0e39b4
|
增加导出时的是否忽略异常字段
|
2024-10-26 14:00:22 +08:00 |
lihanbo
|
92c920b559
|
105040 增加带前缀查询
|
2024-10-26 14:00:04 +08:00 |
lihanbo
|
b3c12526f7
|
105040 增加产品版本
|
2024-10-26 13:59:45 +08:00 |
lihanbo
|
d24fdac142
|
105040 增加产品版本
|
2024-10-26 13:59:31 +08:00 |
lihanbo
|
5574ddbd0e
|
105040 增加地线前缀处理
|
2024-10-26 13:59:13 +08:00 |
lihanbo
|
ce014b95e0
|
105040 增加下单日期字段,增加逻辑
|
2024-10-26 10:27:03 +08:00 |
lihanbo
|
a8815b8f9a
|
105040 使用FormUISettings保存配置项
|
2024-10-25 15:17:32 +08:00 |
lihanbo
|
9d6dc663d9
|
105040 解决WPF窗体在WinForm中无法输入的问题
|
2024-10-25 15:17:12 +08:00 |
lihanbo
|
ecb6f69383
|
105040 调整进度条样式与选择文件框过滤
|
2024-10-25 15:16:39 +08:00 |
lihanbo
|
ea543c8992
|
105040 Clean code
|
2024-10-25 08:40:22 +08:00 |
lihanbo
|
f2cd6c50b2
|
105040 Update 增加叉耳端子检查
|
2024-10-25 08:37:28 +08:00 |
lihanbo
|
faa4bbf20d
|
添加项目文件。
|
2024-10-24 18:01:26 +08:00 |