- rewrite.py: 新增 _VAADIN_EXTRA_IMPORT_RE / _DSASP_CLIENT_IMPORT_RE / _ENVIROMENT_GET_IMPORT_RE 三条 import 剥离规则,统一在 5.9 清理节 运行;补多余引号修复(源数据 bug "...SQL 100"";") - run_batch_regression.py: connect_db 优先连本地 eip4dev:5433, 回退远程 192.168.20.68:5435 - output/rewritten/*.groovy: 规则重跑后的 rewritten 产物更新 - output/manual_workpackage/*.md: 对应工包重生成 - output/batch_regression_20260612_053253.json: 最终批跑结果 FULL_AUTO 94.1%(476/506);删除 3 个中间产物 JSON - docs/P1/F2-4批量回归报告.md: 最终通过率写入报告 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
60 lines
2.0 KiB
Groovy
60 lines
2.0 KiB
Groovy
// === EIP4 P4 脚本迁移产出 ===
|
|
// template_id : 7a0ac7a9-32bc-4d32-9231-4d1bbcd86002
|
|
// template_name: 造价师注册证
|
|
// seq : 3
|
|
// label : PARTIAL
|
|
// 余留模式 : raw .table 组件访问; 残留字段句柄链(未覆盖动词)
|
|
// 处置 : 大部分已自动改写,余留行人工补全(见作业单)
|
|
|
|
import com.vaadin.ui.Link;
|
|
import com.vaadin.server.ExternalResource;
|
|
import com.vaadin.ui.Label;
|
|
|
|
|
|
final def professionals = group.getField("PROFESSIONALS");
|
|
|
|
final Object table = professionals?.table;
|
|
table?.setImmediate(true);
|
|
|
|
|
|
final group1 = group;
|
|
addFieldButton("PROFESSIONALS", "注销", {
|
|
def id = table?.getValue();
|
|
if (id == null){
|
|
showToast("请选择一条记录!", Type.ERROR_MESSAGE);
|
|
return;
|
|
}
|
|
|
|
def hr_con_id = id?.getField("HR_COSTENGINEERREGISTERED_ID")?.getValue();
|
|
def islogout = id?.getField("ISLOGOUT")?.getValue();
|
|
if(islogout == 1){
|
|
showToast("已经注销!", Type.ERROR_MESSAGE);
|
|
return;
|
|
}
|
|
|
|
final pojo = GetServicesFunction.loadPOJO(hr_con_id,"HR_COSTENGINEERREGISTERED",false);
|
|
if(pojo!=null){
|
|
if(pojo.get_Value("ISMAINITEMS") == 1){
|
|
showToast("如要注销主项注册专业,请注销造价师注册证!", Type.ERROR_MESSAGE);
|
|
return;
|
|
}
|
|
|
|
def updateMap=[:];
|
|
updateMap["HR_COSTENGINEERREGISTERED_ID"] = hr_con_id;
|
|
updateMap["ISLOGOUT"] = 1;
|
|
GetServicesFunction.excuteFlow(updateMap,"HR_COSTENGINEERREGISTERED_LOGOUT");
|
|
|
|
|
|
id?.getField("ISLOGOUT")?.setImmediate(true);
|
|
setFieldReadOnly(id,"ISLOGOUT",false);
|
|
|
|
id?.getField("ISLOGOUT")?.setValue(1);
|
|
|
|
setFieldReadOnly(id,"ISLOGOUT",true);
|
|
professionals.setValue(new ArrayList(professionals.getValue()));
|
|
}
|
|
}, 0)
|
|
|
|
professionals?.showAddButton(false);
|
|
professionals?.showDeleteButton(false);
|