Import DxPartReplace 1.2.0-beta.31 and Windows x64 dependencies

This commit is contained in:
Codex committed 2026-11-04 11:35:20 +08:00
1 parent 12895e9868
commit 427095212b
154 files changed
+8079 -267

No files matched your search

@@ -0,0 +1,20 @@
# 物料替换工作区重构
## 已确认的产品行为
- 单工程和批量替换分别提供入口,共用原生替换、属性恢复和保存回读执行链。默认使用自有独立后台 CAD。
- 固定白色界面、蓝色主按钮、柔和玻璃卡片。工程列表与当前工程器件明细分别成框。紧凑进度栏保留阶段、时间、进度、日志和诊断导出;详细阶段按需展开。
- 支持总表、多份 CBB 分表及分表目录。先精确匹配路径,再按相对目录和唯一 CBB 名称匹配。冲突必须人工指定,不能猜测同名工程。
- 每次重新读取当前库存。相同器件当前料号为旧料号则待替换,为目标新料号则禁用并标记已是目标,其他料号或身份不唯一则报错。一个 Excel 行多个位号分别判定。
- 部分工程校验失败时,通过的工程可先保存执行;不确定 CAD 资源或保存结果继续阻断执行。
- 删除只移出当前列表,历史证据保留;再次导入新建处理轮次,不能重放有未核验结果的旧操作。
- 默认替换后 Value 来源为新器件有效 Part Label。属性不存在或空白时使用替换前快照中的旧 Value。旧 Value 的独立 NC/nc 或 /NC、/nc 标记同步到新 Value,避免重复追加;不把 NCM、NC_OPTION 判为 NC。旧 Value 样式按现有机制恢复。
- 实际保存回读结果在独立结果页可见,不能把计划当实际成功。日志记录运行版本、工程、阶段、目标、异常编号、堆栈、阶段耗时和后台退出证据,支持导出诊断 ZIP。
## 工程约束
继续使用 Python 3.12 / PySide6,原生对话框与 Library Wins、器件身份和连接完整性检查保持。保留旧服务和旧数据兼容入口。不得在用户真实 CAD 工程上自动做开发测试;使用 VBS 替身、临时工程和 Qt offscreen 验证。
## 交付
当前源码目录无 Git 元数据,在同级保存修改前 ZIP。交付更新源码、可运行桌面程序与使用说明,标注实机 CAD 验证范围。
@@ -0,0 +1,13 @@
# Interrupted import recovery and workspace polish
The user authorized fixing CBB import after a forced exit and improving the existing white workspace. Existing decisions remain binding: project list in the sidebar, large component table, compact progress, persistent history, original replacement and Value/NC rules.
Recovery runs under the existing exclusive supervisor lease before launching another native batch. Recheck exact process identities, reconcile abandoned supervisor journals, retain all interrupted-write markers, and release only resources proven inactive. A dead supervisor plus exited recorded workers/CAD and an empty private desktop can be reconciled without requiring the obsolete owner to publish a final handle-close certificate. Live or unreadable ownership stays blocked with an actionable message. Never delete project databases or replay replacement work.
Explicit resource recheck uses the same local reconciliation path rather than creating another cleanup supervisor. The UI reports pending versus released resources accurately. Diagnostics retain the underlying error; the banner presents a short actionable description.
Visual changes refine the existing layout: neutral white cards, clearer navigation and project selection, compact header/controls, muted project metadata, accessible table text and a compact status badge. No dark mode or larger progress area.
Approaches: deleting protection files would lose uncertainty evidence; always requiring manual cleanup reproduces the reported dead end. Automatic evidence-based reconciliation is selected within the user's existing authorized recovery scope.
Validation uses synthetic persistent crash records, real Windows supervisor child processes without CAD, mocked Win32 observations for empty/live desktop cases, existing safety tests, UI rendering, and portable packaging. Real project writes are not part of validation.