From 16b3752258a0736d9d70742c59ac25c169e2d2cc Mon Sep 17 00:00:00 2001 From: SeedList Date: Thu, 8 May 2025 20:12:04 +0800 Subject: [PATCH] vault backup: 2025-05-08 20:12:04 --- SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md index 0ee7e245..6528e982 100644 --- a/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md +++ b/SanPinPLM/相关操作/4.0-other/999.Delphi脚本记录.md @@ -292,6 +292,18 @@ end. ### 进一步优化 + **中文语义化输出(核心优化)** + +- 新增 `GetControlChineseName` 函数实现控件名称到中文描述的智能转换 + +- 示例转换: + + - `cbxusr_01_FIsEnable` → `启用(仓库)` + + - `cbxusr_02_FIsAffectPrice` → `影响价格(仓位)` + +- 输出信息从技术性控件名变为业务人员可读的自然语言 + ```Delphi uses MyClass,Variables,BaseUtil,CommonFunc,DataConst,CFFrm,CFSimplePropFrm,Forms,StdCtrls,Variants,SysUtils,Classes,Controls,Dialogs, CHostIntf,ProductClas,DocClas,LoginClas,VirtualTrees,CEntClas,PathClas;