Commit Graph

182 Commits

Author SHA1 Message Date
lihanbo c3a6219321 105040 Add 对接PLM,增加登录功能,记录用户信息 2025-04-07 16:18:05 +08:00
lihanbo c316b6dd32 105040 Update 按功能区分文件夹 2025-04-07 09:36:44 +08:00
lihanbo c50e00a24c 105040 Update to 1.0.0.36 2025-04-03 17:31:57 +08:00
lihanbo 8ccb9461d4 105040 Update to 1.0.0.36 2025-04-03 17:31:36 +08:00
lihanbo 3728e855a1 105040 Fix 部分情况下电机数据无法保存的问题 2025-04-03 17:31:17 +08:00
lihanbo 6b23a07076 105040 Update 增加注释说明 2025-04-03 17:30:50 +08:00
lihanbo 4abd09dcc1 105040 Update to 1.0.0.35 2025-04-03 16:09:50 +08:00
lihanbo 4db2f26c3f 105040 Fix 导出时号码管内容异常 2025-04-03 16:09:02 +08:00
lihanbo 417d13ac85 105040 Update 调整无法读取配置文件时的内容默认路径 2025-04-03 16:07:18 +08:00
lihanbo 0c17a41ba7 105040 Clean code 2025-04-03 16:06:54 +08:00
lihanbo 88378e55c1 105040 Clean 清理无用代码 2025-04-02 17:38:38 +08:00
lihanbo f1dc0113cb 105040 Update 从品牌列表中读取电机前缀进行判断 2025-04-02 17:38:16 +08:00
lihanbo a902a20da1 105040 Update to 1.0.0.34 2025-04-02 17:25:59 +08:00
lihanbo 172ddbf5ea 105040 Fix 电机信息为空时的异常处理 2025-04-02 17:25:41 +08:00
lihanbo ce5201606a 105040 Update 移除高度,隐藏电机唯一标识 2025-04-02 17:25:01 +08:00
lihanbo 509f4d3670 105040 Update 更新电机无前段线的功率范围 2025-04-02 17:24:34 +08:00
lihanbo e8361ef455 105040 Update to 1.0.0.33 2025-03-29 11:42:14 +08:00
lihanbo b25b0f0750 105040 Update 修改识别方式 2025-03-29 11:41:55 +08:00
lihanbo 88eaa4ec36 105040 Update 不再识别印记内容,改为取导线名称 2025-03-29 11:40:08 +08:00
lihanbo 78c2ba4261 105040 Update 增加异常提示 2025-03-29 11:39:45 +08:00
lihanbo 9d1d9f4fab 105040 Fix 字段对应 2025-03-29 11:38:58 +08:00
lihanbo d9845c16f0 105040 Update 测试方式调整 2025-03-28 16:52:27 +08:00
lihanbo be5a470e90 105040 Update to 1.0.0.31 2025-03-28 16:51:36 +08:00
lihanbo 7df12edf99 105040 Update 切换SheetName统一使用电机功率表 2025-03-28 16:50:47 +08:00
lihanbo 5d198a137a 105040 Update 拆分线材型号生成逻辑 2025-03-28 16:50:08 +08:00
lihanbo cde4bc41de 105040 Update 增加汇川电机信息,优化多品牌识别逻辑 2025-03-28 16:49:31 +08:00
lihanbo 6b02c0fa68 105040 Update 增加初始化验证 2025-03-28 16:47:05 +08:00
lihanbo a89969afd9 105040 Add DynaClient 接入PLM 2025-03-28 10:05:48 +08:00
lihanbo c8ebeb55f8 105040 电机型号不同时,不加载旧数据 2025-03-24 10:10:35 +08:00
lihanbo 531e7977e4 105040 Update 增加符号错误检查 2025-03-10 17:28:18 +08:00
lihanbo 3df1f55513 105040 Clear 注释 2025-03-10 17:24:00 +08:00
lihanbo 3ee5f3fb5f 105040
更新版本号至 1.0.0.30

在 `AssemblyInfo.cs` 文件中,版本号从 `1.0.0.29` 更新为 `1.0.0.30`。所有相关的版本信息(`AssemblyVersion`、`AssemblyFileVersion` 和 `AssemblyInformationalVersion`)均已同步更新。
2025-03-08 13:40:21 +08:00
lihanbo 5bd68a7fba 105040 更新版本信息并重构配置管理
在 `AssemblyInfo.cs` 中更新版本号至 `1.0.0.29` 和 `1.0.0.30`。
在 `Consts.cs` 中添加对 `Newtonsoft.Json` 的引用,重构常量为静态字段,并实现 `InitConfigs` 方法以支持从 JSON 配置文件读取路径。
在 `MotorExcelHelper.cs` 中更新数据文件路径引用,修改 `SaveLinesToExcel` 方法以接受新的参数。
在 `LayoutHelperViewModel.cs` 和 `LectotypeViewModel.cs` 中更新电机电缆获取逻辑和保存线材的方法签名。
在 `DesignPluginEntry.cs` 和 `PluginEntry.cs` 中调用 `Consts.InitConfigs()` 初始化配置。
2025-03-08 13:35:41 +08:00
lihanbo 9f2b30979a 105040 Update to 1.0.0.28
更新版本信息并添加 Release_EPLAN_2024 配置

在 `AssemblyInfo.cs` 中将版本更新至 "1.0.0.28"。
为 `Sinvo.EplanHpD.Plugin.Service.csproj` 和 `Sinvo.EplanHpD.Plugin.Test.csproj` 添加了 `Release_EPLAN_2024` 配置的属性组。
在 `Sinvo.EplanHpD.Plugin.WPFUI.csproj` 中支持 `x64` 和 `x86` 平台的输出路径。
简化了 `CableLectotypeUserControl.xaml.cs` 中的 `using` 语句。
更新了 `CableLectotypeViewModel.cs` 中 `CableTypes` 属性的返回逻辑,并添加了异常处理。
在解决方案文件中添加了 `Release_EPLAN_2024` 配置支持。
更新了 `DesignPluginEntry.cs` 中窗口标题以显示版本号和文档名称。
2025-02-21 09:53:36 +08:00
lihanbo efca568200 105040 Update 线材检查使用ID作为标识判断 2025-02-20 10:54:07 +08:00
lihanbo 1fc8ba3603 105040 Update 如果电机型号没有直通线信息,默认强制指定为一种
更新版本号到1.0.0.27
2025-02-19 13:40:49 +08:00
lihanbo 9e3e71a4ca 105040 Update 更新安川电机逻辑,750W以下功率不生成前段线
更新程序集版本,添加新方法和类

更新了 `AssemblyInfo.cs` 文件中的程序集版本号至 `1.0.0.26`。
在 `MotorLectotypeService.cs` 文件中添加了 `SetLineDone` 方法。
在 `Sinvo.EplanHpD.Plugin.WPFUI.csproj` 文件中添加了 `MotorPowerModel.cs` 文件的编译包含项。
在 `MotorExcelHelper.cs` 文件中添加了 `GetMotorPower` 方法,用于获取电机功率。
在 `CableLectotypeViewModel.cs` 文件中进行了多处修改,包括修正逻辑、初始化 `LectotypeList`、根据电机功率决定前段线、排序并重新设置序号。
在 `Sinvo.EplanHpD.Plugin.csproj` 文件中更新了多个配置的输出路径。
添加了 `MotorPowerModel.cs` 文件,定义了 `MotorPowerModel` 类,用于表示电机功率。
2025-02-14 15:40:43 +08:00
lihanbo 4b088964e2 105040 Update 增加识别刹车线 2025-02-14 09:56:53 +08:00
lihanbo ec7bb642e2 Merge branch 'master' of http://192.168.1.144:8859/SinvoCSharp/Sinvo.EplanHpD.Plugin.WireCheck 2025-02-14 09:24:01 +08:00
lihanbo d7f61b0db3 105040 Update 增加第三种直通线选择,可选择的线材种类数量由配置表决定
增加 CableTypeThree 属性及相关处理

在 CableLectotype.cs 文件中增加了 CableTypeThree 属性,并设置了 SugarColumn(IsNullable = true)。
在 MotorLectotypeService.cs 文件中增加了对 CableTypeThree 属性的处理。
在 Sinvo.EplanHpD.Plugin.WPFUI.csproj 文件中增加了对 MotorPassthroughCable.cs 文件的编译包含。
在 MotorExcelHelper.cs 文件中增加了 GetPassthroughCableCount 方法。
在 CableLectotypeUserControl.xaml 文件中修改了 hc:SimpleStackPanel 的 Visibility 绑定属性。
在 CableLectotypeUserControl.xaml.cs 文件中增加了对 EPLAN.Harness.Core.Interfaces 的引用,并在 CableLectotypeViewModel 类中增加了一个实例。
在 CableLectotypeViewModel.cs 文件中增加了对 CableTypeThree 属性的处理,并增加了 _passthroughCableCount 和 IsEnableThreeCableType 属性及其相关逻辑。
在 MotorPassthroughCable.cs 文件中增加了 MotorPassthroughCable 类,用于表示电机直通线数量。
2025-02-14 09:22:11 +08:00
SINVO\yangshunli 4a977023f8 105067 优化选中部件高亮显示 2025-02-13 12:00:20 +08:00
lihanbo 823f8998de Merge branch 'master' of http://192.168.1.144:8859/SinvoCSharp/Sinvo.EplanHpD.Plugin.WireCheck 2025-02-13 08:55:20 +08:00
lihanbo 3d0606a619 105040 增加线材检查,段数按照已选择的电机选型数据获取
添加电机线段数获取及第三种线材类型支持

在 `MotorLectotypeService.cs` 文件中,添加了 `GetLineCount` 方法,用于获取电机对应的线段数。

在 `MotorExcelHelper.cs` 文件中,添加了 `#if DEBUG` 和 `#else` 预处理指令,以便在调试模式和发布模式下使用不同的文件路径。

在 `CableLectotypeUserControl.xaml` 文件中,添加了 `BooleanToVisibilityConverter` 资源,并在界面中添加了一个新的 `SimpleStackPanel`,用于显示第三种线材类型的选择。

在 `CableLectotypeViewModel.cs` 文件中,添加了 `CableTypeThree` 属性和 `IsShowThreeCableType` 属性,用于绑定第三种线材类型的选择和显示控制。

在 `LectotypeViewModel.cs` 文件中,添加了对 `MotorLectotypeService` 的引用,并在构造函数中实例化了 `MotorLectotypeService`。在处理电机和线材匹配时,增加了对电机信息的检查和线段数的获取逻辑。
2025-02-13 08:55:12 +08:00
SINVO\yangshunli a8dcd5bd9c 105067 点击部件和管脚能追踪到对应部件 2025-02-12 10:15:34 +08:00
lihanbo c0f43b6ff7 105040 Update To 1.0.0.24 2025-02-12 08:42:12 +08:00
lihanbo aaa8a77ccc 105040 Update 优化安川逻辑,直通线允许选择两种 2025-02-11 14:48:15 +08:00
lihanbo 6465a465ac 105040 Update
1. 修复部分情况下导致动力刹车线没有显示长度的问题;
2. 修复布线助手无法回到上一个电机的问题;
3. 修复直通线类型识别问题。
4. 提升版本号到1.0.0.22
2025-02-10 16:14:25 +08:00
lihanbo d302676e5e 105040 增加编译标识,分开插件菜单 2025-02-10 11:38:43 +08:00
lihanbo 0be31dec9e Merge branch 'master' of http://192.168.1.144:8859/SinvoCSharp/Sinvo.EplanHpD.Plugin.WireCheck
# Conflicts:
#	Sinvo.EplanHpD.Plugin.WPFUI/ViewModel/LectotypeViewModel.cs
2025-02-10 09:58:27 +08:00
lihanbo 8ce1bc5190 105040 增加注释,优化逻辑 2025-02-10 09:53:41 +08:00