F2-4b: rewrite 规则扩展 + item 改进 + 最终批量结果
- 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>
This commit is contained in:
@@ -57,8 +57,6 @@ lists.addButton(field, 0);
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.dsasp.viewframework.MultiSelectField;
|
||||
import com.vaadin.data.Property.ValueChangeListener;
|
||||
import com.vaadin.data.Property.ValueChangeEvent;
|
||||
final def group1 = group;
|
||||
|
||||
if (lists == null) {
|
||||
|
||||
@@ -78,12 +78,6 @@ professionals?.showDeleteButton(false);
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
import com.vaadin.data.Property.ValueChangeListener;
|
||||
import com.vaadin.data.Property.ValueChangeEvent;
|
||||
import com.dsasp.client.viewframework.listener.ConfirmDialogListener;
|
||||
|
||||
import com.vaadin.ui.Link;
|
||||
import com.vaadin.server.ExternalResource;
|
||||
import com.vaadin.ui.Label;
|
||||
|
||||
@@ -57,8 +57,6 @@ lists.addButton(field, 0);
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.dsasp.viewframework.MultiSelectField;
|
||||
import com.vaadin.data.Property.ValueChangeListener;
|
||||
import com.vaadin.data.Property.ValueChangeEvent;
|
||||
final def group1 = group;
|
||||
|
||||
if (lists == null) {
|
||||
|
||||
@@ -22,7 +22,6 @@ tie.addExportButton(4);
|
||||
addSubTableButton("MATERIALDETAILS", "SELECT", 0);
|
||||
|
||||
|
||||
import com.dsasp.client.viewframework.util.TableImportExport;
|
||||
def tie = new TableImportExport(materiallist,"com.dsasp.pm.materialmanagertj.client.MaterialRequestMasterPlanDetailImportOfTJ");
|
||||
group.getField("MATERIALDETAILS").setData(tie);
|
||||
tie.addImportButton(3);
|
||||
|
||||
@@ -78,12 +78,6 @@ professionals?.showDeleteButton(false);
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
import com.vaadin.data.Property.ValueChangeListener;
|
||||
import com.vaadin.data.Property.ValueChangeEvent;
|
||||
import com.dsasp.client.viewframework.listener.ConfirmDialogListener;
|
||||
|
||||
import com.vaadin.ui.Link;
|
||||
import com.vaadin.server.ExternalResource;
|
||||
import com.vaadin.ui.Label;
|
||||
|
||||
@@ -176,9 +176,6 @@ invoicelist?.addButton(cb, 0);
|
||||
```groovy
|
||||
import com.dsasp.server.common.exception.ValidationException;
|
||||
import com.dsasp.server.common.util.HTTPClientUtils;
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
|
||||
def transformnum (moneyStr) {
|
||||
def numericStr = moneyStr.replaceAll(/[^\d.]/, '') // 移除非数字字符:ml-citation{ref="5,11" data="citationList"}
|
||||
def result = numericStr.isNumber() ? numericStr.toBigDecimal() : null // 高精度转换:ml-citation{ref="9,11" data="citationList"}
|
||||
|
||||
@@ -68,9 +68,6 @@ group.getField("ISPREPARATION")?.setVisible(false);
|
||||
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
|
||||
|
||||
final Object table = group.getField("MATERIALDETAILS")?.table;
|
||||
table?.setImmediate(true);//设置验证
|
||||
@@ -107,7 +104,6 @@ Object o = table?.getValue();
|
||||
table.select(o);
|
||||
}, 1)
|
||||
|
||||
import com.dsasp.client.viewframework.util.TableImportExport;
|
||||
def tie = new TableImportExport(materialList,"com.dsasp.pm.materialmanagertj.client.MaterialApplyDetailImportOfTJ");
|
||||
tie.addImportButton(4);
|
||||
tie.addExportButton(5);
|
||||
|
||||
@@ -44,9 +44,6 @@ user?.deleteButton.setVisible(false);
|
||||
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
|
||||
|
||||
|
||||
final Object table = group.getField("PM_PROJECT_USERS")?.table;
|
||||
|
||||
@@ -168,7 +168,6 @@ assetssortId?.setReadOnly(true);
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.dsasp.server.common.dataDic.service.POJOCRUDService;
|
||||
import com.vaadin.ui.PopupDateField;
|
||||
def value = event.getProperty().getValue();
|
||||
|
||||
|
||||
|
||||
@@ -177,9 +177,6 @@ invoicelist?.addButton(cb, 0);
|
||||
```groovy
|
||||
import com.dsasp.server.common.exception.ValidationException;
|
||||
import com.dsasp.server.common.util.HTTPClientUtils;
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
|
||||
def transformnum (moneyStr) {
|
||||
def numericStr = moneyStr.replaceAll(/[^\d.]/, '') // 移除非数字字符:ml-citation{ref="5,11" data="citationList"}
|
||||
def result = numericStr.isNumber() ? numericStr.toBigDecimal() : null // 高精度转换:ml-citation{ref="9,11" data="citationList"}
|
||||
|
||||
@@ -18,7 +18,6 @@ tie.addExportButton(4);
|
||||
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.dsasp.client.viewframework.util.TableImportExport;
|
||||
//添加按钮
|
||||
addSubTableButton("RECORDDETAILS", "SELECT", 0);
|
||||
//导入按钮
|
||||
|
||||
@@ -68,9 +68,6 @@ group.getField("ISPREPARATION")?.setVisible(false);
|
||||
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
|
||||
|
||||
final Object table = group.getField("MATERIALDETAILS")?.table;
|
||||
table?.setImmediate(true);//设置验证
|
||||
@@ -107,7 +104,6 @@ Object o = table?.getValue();
|
||||
table.select(o);
|
||||
}, 1)
|
||||
|
||||
import com.dsasp.client.viewframework.util.TableImportExport;
|
||||
def tie = new TableImportExport(materialList,"com.dsasp.pm.materialmanagertj.client.MaterialApplyDetailImportOfTJ");
|
||||
tie.addImportButton(4);
|
||||
tie.addExportButton(5);
|
||||
|
||||
@@ -44,9 +44,6 @@ user?.deleteButton.setVisible(false);
|
||||
|
||||
## 2. 已改写部分(自动产出)
|
||||
```groovy
|
||||
import com.vaadin.ui.Notification;
|
||||
import com.vaadin.ui.Notification.Type;
|
||||
|
||||
|
||||
|
||||
final Object table = group.getField("PM_PROJECT_USERS")?.table;
|
||||
|
||||
Reference in New Issue
Block a user