chore: 工具迁入正式工程 + 工程 README + 根目录草稿报告入 ignore
- eip4-poc/tools/{s3_rewriter,loadtest} → tools/(P4 改写器种子与压测 harness 随工程演进,PoC 冻结)
- 新增工程 README(模块图/纪律/常用命令/自举说明)
- 根目录 parity-reports/ 为 CLI 默认输出草稿,入 .gitignore(正式报告在 platform-parity/parity-reports/)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
group.getField("PROJ_STATUS").addButton("查看详情", { item -> showDetail(item) })
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("PROJ_NAME").addButton("跳转", actionHandler)
|
||||
group.getField("CONTRACT_NO").addButton("合同详情", contractHandler)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("APPLY_STATUS").addButton("审批", approveAction)
|
||||
group.getField("APPLY_STATUS").setVisible(item.STATUS == "PENDING")
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("FILE_URL").addButton("下载", "download", { it -> downloadFile(it) })
|
||||
@@ -0,0 +1 @@
|
||||
group.getField('REMARK').addButton('备注', remarkAction)
|
||||
@@ -0,0 +1,2 @@
|
||||
def status = group.getField("STATUS").getValue()
|
||||
group.getField("ACTION_BTN").addButton("提交", { submitAction(status) })
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("PROJ_NAME").addButton("编辑", editHandler)
|
||||
group.getField("PROJ_NAME").setCaption("项目名称(必填)")
|
||||
@@ -0,0 +1,2 @@
|
||||
def f = group.getField("LABOR_NO")
|
||||
f.addButton("工人档案", workerHandler)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("SUBMIT_BTN").addButton("提交审批", submitAction)
|
||||
group.getField("SUBMIT_BTN").setEnabled(item.DRAFT == true)
|
||||
@@ -0,0 +1,4 @@
|
||||
if (item.ROLE == "MANAGER") {
|
||||
group.getField("APPROVE_BTN").addButton("审批通过", approveOk)
|
||||
group.getField("APPROVE_BTN").addButton("驳回", approveReject)
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
def v = group.getField("CONTRACT_AMOUNT").getValue()
|
||||
return v > 0
|
||||
@@ -0,0 +1,3 @@
|
||||
def name = group.getField("PROJ_NAME").getValue()
|
||||
def no = group.getField("PROJ_NO").getValue()
|
||||
return name + " / " + no
|
||||
@@ -0,0 +1,3 @@
|
||||
if (group.getField("STATUS").getValue() == "APPROVED") {
|
||||
group.getField("CLOSE_BTN").setVisible(true)
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
def cur = group.getField("AMOUNT").getValue()
|
||||
group.getField("AMOUNT_DISPLAY").setValue("¥" + cur)
|
||||
@@ -0,0 +1,3 @@
|
||||
def fld = group.getField("PROJ_TYPE")
|
||||
def t = fld.getValue()
|
||||
enableButton("TYPE_BTN", t != null)
|
||||
@@ -0,0 +1,4 @@
|
||||
def v = group.getField("QTY").getValue()
|
||||
if (v == null) {
|
||||
Notification.show("数量不能为空")
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
def allow = group.getField("ALLOW_EDIT").getValue()
|
||||
group.getField("NAME").setEnabled(allow == true)
|
||||
group.getField("NAME").setRequired(allow == true)
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("SUBCONTRACT_NO").getContainerDataSource().setFilter("STATUS=1")
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("WORKER_ID").getContainerDataSource().setFilter("PROJ_ID=" + item.PROJ_ID)
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("DETAIL_LIST").getContainerDataSource().removeAllItems()
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("DICT_FIELD").getContainerDataSource().removeAllItems()
|
||||
group.getField("DICT_FIELD").getContainerDataSource().setFilter("TYPE=CONTRACT")
|
||||
2
tools/s3_rewriter/corpus/022_PARTIAL_setFilter_05.groovy
Normal file
2
tools/s3_rewriter/corpus/022_PARTIAL_setFilter_05.groovy
Normal file
@@ -0,0 +1,2 @@
|
||||
def ds = group.getField("COMBO_FIELD").getContainerDataSource()
|
||||
ds.setFilter("ACTIVE=1")
|
||||
@@ -0,0 +1,2 @@
|
||||
def f = group.getField("LABOR_COMPANY")
|
||||
f.getContainerDataSource().setFilter("AREA_CODE=" + item.AREA)
|
||||
@@ -0,0 +1,2 @@
|
||||
def projId = group.getField("PROJ_ID").getValue()
|
||||
group.getField("CONTRACT_NO").getContainerDataSource().setFilter("PROJ_ID=" + projId)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("TAG_LIST").getContainerDataSource().removeAllItems()
|
||||
group.getField("TAG_LIST").addButton("添加标签", addTagAction)
|
||||
@@ -0,0 +1 @@
|
||||
def source = group.getField("MATERIAL_TYPE").getContainerDataSource()
|
||||
@@ -0,0 +1,3 @@
|
||||
def companyId = item.COMPANY_ID
|
||||
group.getField("DEPT_ID").getContainerDataSource().setFilter("COMPANY_ID=" + companyId)
|
||||
group.getField("DEPT_ID").setVisible(companyId != null)
|
||||
@@ -0,0 +1,3 @@
|
||||
group.getField("PROVINCE").getContainerDataSource().setFilter("LEVEL=1")
|
||||
group.getField("CITY").getContainerDataSource().setFilter("LEVEL=2")
|
||||
group.getField("DISTRICT").getContainerDataSource().setFilter("LEVEL=3")
|
||||
@@ -0,0 +1,3 @@
|
||||
if (item.RESET_FLAG) {
|
||||
group.getField("OPTION_LIST").getContainerDataSource().removeAllItems()
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("CHOICE").getContainerDataSource().removeAllItems()
|
||||
group.getField("CHOICE").setVisible(false)
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("SUBTYPE").getContainerDataSource().setFilter("PARENT_CODE='" + item.TYPE_CODE + "'")
|
||||
@@ -0,0 +1,3 @@
|
||||
def combo = group.getField("STATUS_COMBO")
|
||||
combo.getContainerDataSource().setFilter("CATEGORY=PROJ")
|
||||
combo.setCaption("项目状态")
|
||||
@@ -0,0 +1 @@
|
||||
group.setReadOnly(true)
|
||||
@@ -0,0 +1 @@
|
||||
group.setReadOnly(item.APPROVED == true)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.setReadOnly(item.STATUS != "DRAFT")
|
||||
group.getField("SUBMIT_BTN").setVisible(item.STATUS == "DRAFT")
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("CREATE_TIME").setReadOnly(true)
|
||||
group.getField("CREATE_BY").setReadOnly(true)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.setReadOnly(true)
|
||||
group.getField("REMARK").setReadOnly(false)
|
||||
@@ -0,0 +1 @@
|
||||
def disp = group.getField("PROJ_STATUS").getDisplay()
|
||||
@@ -0,0 +1,3 @@
|
||||
def label = group.getField("TYPE").getDisplay()
|
||||
def val = group.getField("TYPE").getValue()
|
||||
return label + ":" + val
|
||||
@@ -0,0 +1,3 @@
|
||||
if (group.getField("STATUS").getDisplay() == "已审批") {
|
||||
group.getField("CLOSE_BTN").setVisible(true)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
def f = group.getField("CATEGORY")
|
||||
def d = f.getDisplay()
|
||||
setFieldCaption("NOTE", d)
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("APPROVE_NOTE").setVisible(item.STATUS == "REJECTED")
|
||||
@@ -0,0 +1,3 @@
|
||||
def show = item.PROJ_TYPE == "CONSTRUCTION"
|
||||
group.getField("SAFETY_CERT").setVisible(show)
|
||||
group.getField("SAFETY_DATE").setVisible(show)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("TAX_NO").setVisible(item.HAS_TAX == true)
|
||||
group.getField("TAX_NO").setRequired(item.HAS_TAX == true)
|
||||
@@ -0,0 +1,3 @@
|
||||
["FIELD_A", "FIELD_B", "FIELD_C"].each { fn ->
|
||||
group.getField(fn).setVisible(item.SHOW_ALL)
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
group.getField("AMOUNT").setCaption("合同金额(元)")
|
||||
@@ -0,0 +1,2 @@
|
||||
def label = item.PROJ_TYPE == "PUBLIC" ? "公共项目编号" : "私人项目编号"
|
||||
group.getField("PROJ_NO").setCaption(label)
|
||||
@@ -0,0 +1,2 @@
|
||||
group.getField("LABOR_COUNT").setCaption("劳务人数")
|
||||
group.getField("LABOR_COUNT").setEnabled(item.CONTRACT_TYPE == "LABOR")
|
||||
@@ -0,0 +1 @@
|
||||
Notification.show("操作成功")
|
||||
@@ -0,0 +1,2 @@
|
||||
def msg = "保存成功:" + item.PROJ_NAME
|
||||
Notification.show(msg)
|
||||
@@ -0,0 +1,6 @@
|
||||
def v = group.getField("AMOUNT").getValue()
|
||||
if (v == null || v <= 0) {
|
||||
Notification.show("金额必须大于零")
|
||||
} else {
|
||||
Notification.show("金额有效")
|
||||
}
|
||||
13
tools/s3_rewriter/corpus/052_FULL_AUTO_mixed_01.groovy
Normal file
13
tools/s3_rewriter/corpus/052_FULL_AUTO_mixed_01.groovy
Normal file
@@ -0,0 +1,13 @@
|
||||
// 项目信息联动脚本
|
||||
def projType = group.getField("PROJ_TYPE").getValue()
|
||||
if (projType == "BIG") {
|
||||
group.getField("SAFETY_MGR").setVisible(true)
|
||||
group.getField("SAFETY_MGR").setRequired(true)
|
||||
group.getField("SAFETY_MGR").getContainerDataSource().setFilter("ROLE=SAFETY")
|
||||
} else {
|
||||
group.getField("SAFETY_MGR").setVisible(false)
|
||||
group.getField("SAFETY_MGR").setRequired(false)
|
||||
}
|
||||
group.getField("PROJ_NO").setCaption("项目编号(" + projType + ")")
|
||||
group.getField("SUBMIT_BTN").addButton("提交", submitAction)
|
||||
Notification.show("项目类型已切换: " + projType)
|
||||
6
tools/s3_rewriter/corpus/053_FULL_AUTO_mixed_02.groovy
Normal file
6
tools/s3_rewriter/corpus/053_FULL_AUTO_mixed_02.groovy
Normal file
@@ -0,0 +1,6 @@
|
||||
def statusFld = group.getField("STATUS")
|
||||
def status = statusFld.getValue()
|
||||
def dispFld = group.getField("STATUS_DISPLAY")
|
||||
dispFld.setCaption(status == "ACTIVE" ? "活跃" : "非活跃")
|
||||
dispFld.setVisible(true)
|
||||
group.setReadOnly(status == "CLOSED")
|
||||
5
tools/s3_rewriter/corpus/054_FULL_AUTO_mixed_03.groovy
Normal file
5
tools/s3_rewriter/corpus/054_FULL_AUTO_mixed_03.groovy
Normal file
@@ -0,0 +1,5 @@
|
||||
def typeVal = group.getField("SUBCONTRACT_TYPE").getValue()
|
||||
group.getField("COMPANY").getContainerDataSource().removeAllItems()
|
||||
group.getField("COMPANY").getContainerDataSource().setFilter("TYPE=" + typeVal)
|
||||
group.getField("COMPANY").setVisible(typeVal != null)
|
||||
group.getField("COMPANY").setEnabled(typeVal != null)
|
||||
10
tools/s3_rewriter/corpus/055_FULL_AUTO_mixed_04.groovy
Normal file
10
tools/s3_rewriter/corpus/055_FULL_AUTO_mixed_04.groovy
Normal file
@@ -0,0 +1,10 @@
|
||||
def role = item.USER_ROLE
|
||||
if (role == "ADMIN") {
|
||||
group.setReadOnly(false)
|
||||
group.getField("DELETE_BTN").addButton("删除", deleteAction)
|
||||
group.getField("AUDIT_LOG").setVisible(true)
|
||||
} else {
|
||||
group.setReadOnly(true)
|
||||
group.getField("DELETE_BTN").setVisible(false)
|
||||
group.getField("AUDIT_LOG").setVisible(false)
|
||||
}
|
||||
6
tools/s3_rewriter/corpus/056_FULL_AUTO_mixed_05.groovy
Normal file
6
tools/s3_rewriter/corpus/056_FULL_AUTO_mixed_05.groovy
Normal file
@@ -0,0 +1,6 @@
|
||||
def fProj = group.getField("PROJ_ID")
|
||||
def fDept = group.getField("DEPT_ID")
|
||||
fProj.getContainerDataSource().setFilter("STATUS=ACTIVE")
|
||||
fDept.getContainerDataSource().setFilter("PROJ_ID=" + fProj.getValue())
|
||||
fProj.setCaption("所属项目")
|
||||
fDept.setCaption("所属部门")
|
||||
2
tools/s3_rewriter/corpus/057_PARTIAL_partial_01.groovy
Normal file
2
tools/s3_rewriter/corpus/057_PARTIAL_partial_01.groovy
Normal file
@@ -0,0 +1,2 @@
|
||||
group.getField("PROJ_NAME").setVisible(true)
|
||||
group.getField("SPECIAL_FIELD").setStyleName("highlight") // setStyleName 不在规则表
|
||||
2
tools/s3_rewriter/corpus/058_PARTIAL_partial_02.groovy
Normal file
2
tools/s3_rewriter/corpus/058_PARTIAL_partial_02.groovy
Normal file
@@ -0,0 +1,2 @@
|
||||
group.getField("STATUS").setValue("ACTIVE")
|
||||
group.getField("CUSTOM_WIDGET").customSpecialMethod("arg1") // 不可识别
|
||||
2
tools/s3_rewriter/corpus/059_PARTIAL_partial_03.groovy
Normal file
2
tools/s3_rewriter/corpus/059_PARTIAL_partial_03.groovy
Normal file
@@ -0,0 +1,2 @@
|
||||
group.getField("NAME").setCaption("姓名")
|
||||
group.getField("PANEL").addComponent(someWidget) // addComponent 不在规则
|
||||
4
tools/s3_rewriter/corpus/060_HARD_hard_01.groovy
Normal file
4
tools/s3_rewriter/corpus/060_HARD_hard_01.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
def win = new Window("详情窗口")
|
||||
win.setWidth("800px")
|
||||
win.center()
|
||||
UI.getCurrent().addWindow(win)
|
||||
3
tools/s3_rewriter/corpus/061_HARD_hard_02.groovy
Normal file
3
tools/s3_rewriter/corpus/061_HARD_hard_02.groovy
Normal file
@@ -0,0 +1,3 @@
|
||||
def btn = new Button("确认")
|
||||
btn.addClickListener({ e -> doConfirm() })
|
||||
layout.addComponent(btn)
|
||||
4
tools/s3_rewriter/corpus/062_HARD_hard_03.groovy
Normal file
4
tools/s3_rewriter/corpus/062_HARD_hard_03.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
def combo = new ComboBox("选择状态")
|
||||
combo.addItem("ACTIVE")
|
||||
combo.addItem("CLOSED")
|
||||
group.getField("PANEL").addComponent(combo)
|
||||
5
tools/s3_rewriter/corpus/063_HARD_hard_04.groovy
Normal file
5
tools/s3_rewriter/corpus/063_HARD_hard_04.groovy
Normal file
@@ -0,0 +1,5 @@
|
||||
showConfirmDialog("确认删除?", {
|
||||
if (it == true) {
|
||||
deleteRecord(item.ID)
|
||||
}
|
||||
})
|
||||
4
tools/s3_rewriter/corpus/064_HARD_hard_05.groovy
Normal file
4
tools/s3_rewriter/corpus/064_HARD_hard_05.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
def ui = UI.getCurrent()
|
||||
ui.access({
|
||||
Notification.show("后台操作完成")
|
||||
})
|
||||
4
tools/s3_rewriter/corpus/065_HARD_hard_06.groovy
Normal file
4
tools/s3_rewriter/corpus/065_HARD_hard_06.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
def tf = new TextField("备注")
|
||||
tf.setWidth("100%")
|
||||
tf.setValue(item.REMARK ?: "")
|
||||
verticalLayout.addComponent(tf)
|
||||
4
tools/s3_rewriter/corpus/066_HARD_hard_07.groovy
Normal file
4
tools/s3_rewriter/corpus/066_HARD_hard_07.groovy
Normal file
@@ -0,0 +1,4 @@
|
||||
group.getField("PROJ_ID").getContainerDataSource().setFilter("STATUS=1")
|
||||
def popup = new Window("弹窗")
|
||||
popup.center()
|
||||
UI.getCurrent().addWindow(popup)
|
||||
1
tools/s3_rewriter/corpus/067_NO_S3_no_s3_01.groovy
Normal file
1
tools/s3_rewriter/corpus/067_NO_S3_no_s3_01.groovy
Normal file
@@ -0,0 +1 @@
|
||||
return item.AMOUNT > 10000
|
||||
2
tools/s3_rewriter/corpus/068_NO_S3_no_s3_02.groovy
Normal file
2
tools/s3_rewriter/corpus/068_NO_S3_no_s3_02.groovy
Normal file
@@ -0,0 +1,2 @@
|
||||
enableButton("SUBMIT_BTN", item.STATUS == "DRAFT")
|
||||
enableButton("CANCEL_BTN", item.STATUS != "CLOSED")
|
||||
2
tools/s3_rewriter/corpus/069_NO_S3_no_s3_03.groovy
Normal file
2
tools/s3_rewriter/corpus/069_NO_S3_no_s3_03.groovy
Normal file
@@ -0,0 +1,2 @@
|
||||
setFieldVisible("APPROVE_NOTE", item.STATUS == "REJECTED")
|
||||
setFieldRequired("APPROVE_NOTE", item.STATUS == "REJECTED")
|
||||
3
tools/s3_rewriter/corpus/070_NO_S3_no_s3_04.groovy
Normal file
3
tools/s3_rewriter/corpus/070_NO_S3_no_s3_04.groovy
Normal file
@@ -0,0 +1,3 @@
|
||||
def total = item.UNIT_PRICE * item.QTY
|
||||
item.TOTAL_AMOUNT = total
|
||||
return total
|
||||
3
tools/s3_rewriter/corpus/071_NO_S3_no_s3_05.groovy
Normal file
3
tools/s3_rewriter/corpus/071_NO_S3_no_s3_05.groovy
Normal file
@@ -0,0 +1,3 @@
|
||||
setFieldValue("PROJ_STATUS", "ACTIVE")
|
||||
showToast("状态更新成功")
|
||||
setGroupReadOnly(false)
|
||||
499
tools/s3_rewriter/corpus/index.json
Normal file
499
tools/s3_rewriter/corpus/index.json
Normal file
@@ -0,0 +1,499 @@
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"filename": "001_FULL_AUTO_addButton_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "单字段加按钮",
|
||||
"name": "addButton_01"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"filename": "002_FULL_AUTO_addButton_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "多字段加按钮",
|
||||
"name": "addButton_02"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"filename": "003_FULL_AUTO_addButton_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton+setVisible 混合",
|
||||
"name": "addButton_03"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"filename": "004_FULL_AUTO_addButton_04.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton 带多参数",
|
||||
"name": "addButton_04"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"filename": "005_FULL_AUTO_addButton_05.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton 单引号字段名",
|
||||
"name": "addButton_05"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"filename": "006_FULL_AUTO_addButton_06.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton + getValue 联动",
|
||||
"name": "addButton_06"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"filename": "007_FULL_AUTO_addButton_07.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton + setCaption",
|
||||
"name": "addButton_07"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"filename": "008_FULL_AUTO_addButton_08.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "中间变量 addButton(变量内联)",
|
||||
"name": "addButton_08"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"filename": "009_FULL_AUTO_addButton_09.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton + setEnabled",
|
||||
"name": "addButton_09"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"filename": "010_FULL_AUTO_addButton_10.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "addButton 嵌套 if",
|
||||
"name": "addButton_10"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"filename": "011_FULL_AUTO_getValue_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue 单用",
|
||||
"name": "getValue_01"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"filename": "012_FULL_AUTO_getValue_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue 多字段",
|
||||
"name": "getValue_02"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"filename": "013_FULL_AUTO_getValue_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue 条件分支",
|
||||
"name": "getValue_03"
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"filename": "014_FULL_AUTO_getValue_04.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue + setValue",
|
||||
"name": "getValue_04"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"filename": "015_FULL_AUTO_getValue_05.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue 变量内联",
|
||||
"name": "getValue_05"
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"filename": "016_FULL_AUTO_getValue_06.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue + Notification",
|
||||
"name": "getValue_06"
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"filename": "017_FULL_AUTO_getValue_07.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getValue 链式比较",
|
||||
"name": "getValue_07"
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"filename": "018_FULL_AUTO_setFilter_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter 基本",
|
||||
"name": "setFilter_01"
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"filename": "019_FULL_AUTO_setFilter_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter 多条件",
|
||||
"name": "setFilter_02"
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"filename": "020_FULL_AUTO_setFilter_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "removeAllItems 基本",
|
||||
"name": "setFilter_03"
|
||||
},
|
||||
{
|
||||
"id": 21,
|
||||
"filename": "021_FULL_AUTO_setFilter_04.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter + removeAllItems",
|
||||
"name": "setFilter_04"
|
||||
},
|
||||
{
|
||||
"id": 22,
|
||||
"filename": "022_PARTIAL_setFilter_05.groovy",
|
||||
"expected_label": "PARTIAL",
|
||||
"description": "getContainerDataSource 裸取后用中间变量调用 setFilter(ds 不是字段句柄,内联不覆盖)",
|
||||
"name": "setFilter_05"
|
||||
},
|
||||
{
|
||||
"id": 23,
|
||||
"filename": "023_FULL_AUTO_setFilter_06.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "中间变量 setFilter",
|
||||
"name": "setFilter_06"
|
||||
},
|
||||
{
|
||||
"id": 24,
|
||||
"filename": "024_FULL_AUTO_setFilter_07.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter + getValue",
|
||||
"name": "setFilter_07"
|
||||
},
|
||||
{
|
||||
"id": 25,
|
||||
"filename": "025_FULL_AUTO_setFilter_08.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "removeAllItems + addButton",
|
||||
"name": "setFilter_08"
|
||||
},
|
||||
{
|
||||
"id": 26,
|
||||
"filename": "026_FULL_AUTO_getContainerDataSource_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getContainerDataSource 单独使用",
|
||||
"name": "getContainerDataSource_01"
|
||||
},
|
||||
{
|
||||
"id": 27,
|
||||
"filename": "027_FULL_AUTO_setFilter_09.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter 动态参数",
|
||||
"name": "setFilter_09"
|
||||
},
|
||||
{
|
||||
"id": 28,
|
||||
"filename": "028_FULL_AUTO_setFilter_10.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "多字段 setFilter",
|
||||
"name": "setFilter_10"
|
||||
},
|
||||
{
|
||||
"id": 29,
|
||||
"filename": "029_FULL_AUTO_removeAllItems_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "removeAllItems 在条件内",
|
||||
"name": "removeAllItems_01"
|
||||
},
|
||||
{
|
||||
"id": 30,
|
||||
"filename": "030_FULL_AUTO_removeAllItems_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "removeAllItems + setVisible",
|
||||
"name": "removeAllItems_02"
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"filename": "031_FULL_AUTO_setFilter_11.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter 字符串拼接",
|
||||
"name": "setFilter_11"
|
||||
},
|
||||
{
|
||||
"id": 32,
|
||||
"filename": "032_FULL_AUTO_setFilter_12.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setFilter 变量内联后改写",
|
||||
"name": "setFilter_12"
|
||||
},
|
||||
{
|
||||
"id": 33,
|
||||
"filename": "033_FULL_AUTO_setReadOnly_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "group.setReadOnly 基本",
|
||||
"name": "setReadOnly_01"
|
||||
},
|
||||
{
|
||||
"id": 34,
|
||||
"filename": "034_FULL_AUTO_setReadOnly_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "group.setReadOnly 条件",
|
||||
"name": "setReadOnly_02"
|
||||
},
|
||||
{
|
||||
"id": 35,
|
||||
"filename": "035_FULL_AUTO_setReadOnly_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "group.setReadOnly + setVisible",
|
||||
"name": "setReadOnly_03"
|
||||
},
|
||||
{
|
||||
"id": 36,
|
||||
"filename": "036_FULL_AUTO_setReadOnly_04.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "field.setReadOnly 单字段",
|
||||
"name": "setReadOnly_04"
|
||||
},
|
||||
{
|
||||
"id": 37,
|
||||
"filename": "037_FULL_AUTO_setReadOnly_05.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "group + field 混合 setReadOnly",
|
||||
"name": "setReadOnly_05"
|
||||
},
|
||||
{
|
||||
"id": 38,
|
||||
"filename": "038_FULL_AUTO_getDisplay_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getDisplay 基本",
|
||||
"name": "getDisplay_01"
|
||||
},
|
||||
{
|
||||
"id": 39,
|
||||
"filename": "039_FULL_AUTO_getDisplay_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getDisplay + getValue",
|
||||
"name": "getDisplay_02"
|
||||
},
|
||||
{
|
||||
"id": 40,
|
||||
"filename": "040_FULL_AUTO_getDisplay_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getDisplay 条件逻辑",
|
||||
"name": "getDisplay_03"
|
||||
},
|
||||
{
|
||||
"id": 41,
|
||||
"filename": "041_FULL_AUTO_getDisplay_04.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "getDisplay 变量内联",
|
||||
"name": "getDisplay_04"
|
||||
},
|
||||
{
|
||||
"id": 42,
|
||||
"filename": "042_FULL_AUTO_setVisible_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setVisible 基本",
|
||||
"name": "setVisible_01"
|
||||
},
|
||||
{
|
||||
"id": 43,
|
||||
"filename": "043_FULL_AUTO_setVisible_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setVisible 多字段",
|
||||
"name": "setVisible_02"
|
||||
},
|
||||
{
|
||||
"id": 44,
|
||||
"filename": "044_FULL_AUTO_setVisible_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setVisible + setRequired",
|
||||
"name": "setVisible_03"
|
||||
},
|
||||
{
|
||||
"id": 45,
|
||||
"filename": "045_PARTIAL_setVisible_04.groovy",
|
||||
"expected_label": "PARTIAL",
|
||||
"description": "setVisible 循环(字段名为变量 fn,正则无法匹配字面量,余留待人工)",
|
||||
"name": "setVisible_04"
|
||||
},
|
||||
{
|
||||
"id": 46,
|
||||
"filename": "046_FULL_AUTO_setCaption_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setCaption 基本",
|
||||
"name": "setCaption_01"
|
||||
},
|
||||
{
|
||||
"id": 47,
|
||||
"filename": "047_FULL_AUTO_setCaption_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setCaption 动态标题",
|
||||
"name": "setCaption_02"
|
||||
},
|
||||
{
|
||||
"id": 48,
|
||||
"filename": "048_FULL_AUTO_setCaption_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "setCaption + setEnabled",
|
||||
"name": "setCaption_03"
|
||||
},
|
||||
{
|
||||
"id": 49,
|
||||
"filename": "049_FULL_AUTO_notification_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "Notification.show 基本",
|
||||
"name": "notification_01"
|
||||
},
|
||||
{
|
||||
"id": 50,
|
||||
"filename": "050_FULL_AUTO_notification_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "Notification.show 动态消息",
|
||||
"name": "notification_02"
|
||||
},
|
||||
{
|
||||
"id": 51,
|
||||
"filename": "051_FULL_AUTO_notification_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "Notification.show + getValue",
|
||||
"name": "notification_03"
|
||||
},
|
||||
{
|
||||
"id": 52,
|
||||
"filename": "052_FULL_AUTO_mixed_01.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "复杂多模式混合",
|
||||
"name": "mixed_01"
|
||||
},
|
||||
{
|
||||
"id": 53,
|
||||
"filename": "053_FULL_AUTO_mixed_02.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "变量内联+多规则",
|
||||
"name": "mixed_02"
|
||||
},
|
||||
{
|
||||
"id": 54,
|
||||
"filename": "054_FULL_AUTO_mixed_03.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "数据源+显隐联动",
|
||||
"name": "mixed_03"
|
||||
},
|
||||
{
|
||||
"id": 55,
|
||||
"filename": "055_FULL_AUTO_mixed_04.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "嵌套条件多字段控制",
|
||||
"name": "mixed_04"
|
||||
},
|
||||
{
|
||||
"id": 56,
|
||||
"filename": "056_FULL_AUTO_mixed_05.groovy",
|
||||
"expected_label": "FULL_AUTO",
|
||||
"description": "多变量内联+复合改写",
|
||||
"name": "mixed_05"
|
||||
},
|
||||
{
|
||||
"id": 57,
|
||||
"filename": "057_PARTIAL_partial_01.groovy",
|
||||
"expected_label": "PARTIAL",
|
||||
"description": "PARTIAL: 含不在规则表内的方法",
|
||||
"name": "partial_01"
|
||||
},
|
||||
{
|
||||
"id": 58,
|
||||
"filename": "058_PARTIAL_partial_02.groovy",
|
||||
"expected_label": "PARTIAL",
|
||||
"description": "PARTIAL: 含自定义组件方法",
|
||||
"name": "partial_02"
|
||||
},
|
||||
{
|
||||
"id": 59,
|
||||
"filename": "059_PARTIAL_partial_03.groovy",
|
||||
"expected_label": "PARTIAL",
|
||||
"description": "PARTIAL: addComponent 不在规则",
|
||||
"name": "partial_03"
|
||||
},
|
||||
{
|
||||
"id": 60,
|
||||
"filename": "060_HARD_hard_01.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: new Window",
|
||||
"name": "hard_01"
|
||||
},
|
||||
{
|
||||
"id": 61,
|
||||
"filename": "061_HARD_hard_02.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: new Button",
|
||||
"name": "hard_02"
|
||||
},
|
||||
{
|
||||
"id": 62,
|
||||
"filename": "062_HARD_hard_03.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: new ComboBox",
|
||||
"name": "hard_03"
|
||||
},
|
||||
{
|
||||
"id": 63,
|
||||
"filename": "063_HARD_hard_04.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: showConfirmDialog",
|
||||
"name": "hard_04"
|
||||
},
|
||||
{
|
||||
"id": 64,
|
||||
"filename": "064_HARD_hard_05.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: UI.getCurrent",
|
||||
"name": "hard_05"
|
||||
},
|
||||
{
|
||||
"id": 65,
|
||||
"filename": "065_HARD_hard_06.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: new TextField 动态",
|
||||
"name": "hard_06"
|
||||
},
|
||||
{
|
||||
"id": 66,
|
||||
"filename": "066_HARD_hard_07.groovy",
|
||||
"expected_label": "HARD",
|
||||
"description": "HARD: new Window + setFilter 混合(整条转人工)",
|
||||
"name": "hard_07"
|
||||
},
|
||||
{
|
||||
"id": 67,
|
||||
"filename": "067_NO_S3_no_s3_01.groovy",
|
||||
"expected_label": "NO_S3",
|
||||
"description": "NO_S3: 纯行级表达式 S1",
|
||||
"name": "no_s3_01"
|
||||
},
|
||||
{
|
||||
"id": 68,
|
||||
"filename": "068_NO_S3_no_s3_02.groovy",
|
||||
"expected_label": "NO_S3",
|
||||
"description": "NO_S3: enableButton S2 形态",
|
||||
"name": "no_s3_02"
|
||||
},
|
||||
{
|
||||
"id": 69,
|
||||
"filename": "069_NO_S3_no_s3_03.groovy",
|
||||
"expected_label": "NO_S3",
|
||||
"description": "NO_S3: setFieldVisible S2 形态",
|
||||
"name": "no_s3_03"
|
||||
},
|
||||
{
|
||||
"id": 70,
|
||||
"filename": "070_NO_S3_no_s3_04.groovy",
|
||||
"expected_label": "NO_S3",
|
||||
"description": "NO_S3: 纯数值计算",
|
||||
"name": "no_s3_04"
|
||||
},
|
||||
{
|
||||
"id": 71,
|
||||
"filename": "071_NO_S3_no_s3_05.groovy",
|
||||
"expected_label": "NO_S3",
|
||||
"description": "NO_S3: S2 辅助函数调用",
|
||||
"name": "no_s3_05"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user