- run_eval: PG xpath(...)::text 保留实体转义(< → <),抽取后补 XML 预定义实体反转义 (等价手册 §5.3 dom4j getText() 语义);293 个污染产物清零,Groovy 编译失败根因消除 - 缓存重建(源=eip4dev,1428 条:1 模板改名+1 新增脚本属数据演进);全量重跑 497/30/86/815,自动化率 81.1% 守住 ≥80% - 重大发现:同模板内脚本顺序在两次抽取间会交换((templateId,seq) 非稳定键, welfare 模板 seq1↔seq2 实锤)——重批后 onEvent seq 已与磁盘对齐,长期需内容哈希键(登记 F2-4) - tools/page-schema-loader/load_page_schema.py:幂等标准入库器(etag=sha256,version 递增, 仅允许 localhost 双库);本次双库各更新 756/幂等跳过 733,e2e 28/28 保持全绿 - 坑:mvn exec:java 的 -Dexec.args 引号空参会被吞导致参数错位(密码用占位符代替空串) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
147 lines
5.5 KiB
Groovy
147 lines
5.5 KiB
Groovy
// === EIP4 P4 脚本迁移产出 ===
|
||
// template_id : 328b3366-170f-4321-b06c-5593668b5535
|
||
// template_name: 施工日志-审批
|
||
// seq : 3
|
||
// label : HARD
|
||
// 硬 S3 原因 : 动态创建 Vaadin 组件
|
||
// 处置 : 原文保留,进人工排期(amis dialog/service 重写)
|
||
import com.vaadin.ui.Label;
|
||
import com.vaadin.ui.FormLayout;
|
||
import com.vaadin.ui.GridLayout;
|
||
import com.vaadin.ui.Alignment;
|
||
import com.dsasp.server.common.dataDic.bean.Enumerate;
|
||
|
||
|
||
def mainLayout = group.getField("PRODUCENOTE")?.parent?.parent?.parent?.parent;
|
||
|
||
GridLayout layout = new GridLayout(5, 2);
|
||
def l = new Label("白天");
|
||
l.setWidth("40px");
|
||
layout.addComponent(new FormLayout(l));
|
||
def dayWeather = group.getField("DAYWEATHER");
|
||
dayWeather?.setCaption("天气状况");
|
||
layout.addComponent(new FormLayout(dayWeather));
|
||
def dayWind = group.getField("DAYWIND");
|
||
dayWind?.setCaption(" 风力");
|
||
layout.addComponent(new FormLayout(dayWind));
|
||
def dayTemperature = group.getField("DAYTEMPERATURE");
|
||
dayTemperature?.setCaption(" 温度(℃)");
|
||
layout.addComponent(new FormLayout(dayTemperature));
|
||
def dayRemark = group.getField("DAYREMARK");
|
||
dayRemark?.setCaption(" 备注");
|
||
layout.addComponent(new FormLayout(dayRemark));
|
||
|
||
def l1 = new Label("夜间");
|
||
l1.setWidth("40px");
|
||
layout.addComponent(new FormLayout(l1));
|
||
def nightWeather = group.getField("NIGHTWEATHER");
|
||
nightWeather?.setCaption("天气状况");
|
||
layout.addComponent(new FormLayout(nightWeather));
|
||
def nightWind = group.getField("NIGHTWIND");
|
||
nightWind?.setCaption(" 风力");
|
||
layout.addComponent(new FormLayout(nightWind));
|
||
def nightTemperature = group.getField("NIGHTTEMPERATURE");
|
||
nightTemperature?.setCaption(" 温度(℃)");
|
||
layout.addComponent(new FormLayout(nightTemperature));
|
||
def nightRemark = group.getField("NIGHTREMARK");
|
||
nightRemark?.setCaption(" 备注");
|
||
layout.addComponent(new FormLayout(nightRemark));
|
||
mainLayout?.addComponent(layout,0);
|
||
|
||
|
||
GridLayout pLayout = new GridLayout(2, 2);
|
||
pLayout?.setSizeFull();
|
||
pLayout?.setMargin(false);
|
||
def project = group.getField("PROJECTID");
|
||
project?.setCaption(" 单项工程");
|
||
pLayout.addComponent(new FormLayout(project));
|
||
def unitId = group.getField("UNITID");
|
||
unitId?.setCaption(" 单位工程");
|
||
pLayout.addComponent(new FormLayout(unitId));
|
||
def diaryDate = group.getField("DIARYDATE");
|
||
diaryDate?.setCaption(" 日期");
|
||
pLayout.addComponent(new FormLayout(diaryDate));
|
||
mainLayout?.addComponent(pLayout,0);
|
||
|
||
GridLayout layout2 = new GridLayout(2, 1);
|
||
layout2?.setSizeFull();
|
||
def projectUser = group.getField("PROJECTUSER");
|
||
projectUser?.setCaption(" 项目经理");
|
||
projectUser?.setWidth("200px");
|
||
layout2.addComponent(new FormLayout(projectUser));
|
||
def createBy = group.getField("CREATEBY");
|
||
createBy?.setCaption(" 记录人");
|
||
createBy?.setWidth("200px");
|
||
def formLayout = new FormLayout(createBy);
|
||
layout2.addComponent(formLayout);
|
||
GridLayout layout3 = new GridLayout(2, 1);
|
||
layout3.addComponent(new Label(" "));
|
||
|
||
def document = group.getField("DOCUMENT");
|
||
document?.setCaption("附件");
|
||
layout3.addComponent(group.getField("DOCUMENT"));
|
||
|
||
GridLayout btnLayout = new GridLayout(1, 2);
|
||
btnLayout.addComponent(layout2);
|
||
btnLayout.addComponent(layout3);
|
||
mainLayout?.addComponent(btnLayout);
|
||
|
||
def weather = Enumerate.getEnumerateItems("weather");//天气
|
||
def wind = Enumerate.getEnumerateItems("wind");//风力
|
||
def temperature = Enumerate.getEnumerateItems("temperature");//温度
|
||
|
||
|
||
//在下拉列表框调用removeAllItems()方法前,应清空下拉列表中的值,之后赋值才能生效
|
||
def dayWeahtervalue = getFieldValue('DAYWEATHER');
|
||
bindField("DAYWEATHER",null);
|
||
def dayWeatherField = group.getField("DAYWEATHER");//获取组件:白天天气状况
|
||
dayWeatherField?.removeAllItems();
|
||
def icDayWeather = dayWeatherField?.getContainerDataSource();
|
||
weather?.each{
|
||
def codeDes = it?.getCodeDes();
|
||
icDayWeather?.addItem(codeDes).getItemProperty("des").setValue(codeDes);
|
||
}
|
||
bindField("DAYWEATHER",dayWeahtervalue);
|
||
//在下拉列表框调用removeAllItems()方法前,应清空下拉列表中的值,之后赋值才能生效
|
||
def dayWindvalue = getFieldValue('DAYWIND');
|
||
bindField("DAYWIND",null);
|
||
def dayWindField = group.getField("DAYWIND");//获取组件:白天风力
|
||
dayWindField?.removeAllItems();
|
||
def icDayWind = dayWindField?.getContainerDataSource();
|
||
wind?.each{
|
||
def codeDes = it?.getCodeDes();
|
||
icDayWind?.addItem(codeDes).getItemProperty("des").setValue(codeDes);
|
||
}
|
||
bindField("DAYWIND",dayWindvalue);
|
||
|
||
//在下拉列表框调用removeAllItems()方法前,应清空下拉列表中的值,之后赋值才能生效
|
||
def nightWeahtervalue = getFieldValue('NIGHTWEATHER');
|
||
bindField("NIGHTWEATHER",null);
|
||
def nightWeatherField = group.getField("NIGHTWEATHER");//获取组件:夜间天气状况
|
||
nightWeatherField?.removeAllItems();
|
||
def icNightWeather = nightWeatherField?.getContainerDataSource();
|
||
weather?.each{
|
||
def codeDes = it?.getCodeDes();
|
||
icNightWeather?.addItem(codeDes).getItemProperty("des").setValue(codeDes);
|
||
}
|
||
bindField("NIGHTWEATHER",nightWeahtervalue);
|
||
//在下拉列表框调用removeAllItems()方法前,应清空下拉列表中的值,之后赋值才能生效
|
||
def nightWindvalue = getFieldValue('NIGHTWIND');
|
||
bindField("NIGHTWIND",null);
|
||
def nightWindField = group.getField("NIGHTWIND");//获取组件:夜间风力
|
||
nightWindField?.removeAllItems();
|
||
def icNightWind = nightWindField?.getContainerDataSource();
|
||
wind?.each{
|
||
def codeDes = it?.getCodeDes();
|
||
icNightWind?.addItem(codeDes).getItemProperty("des").setValue(codeDes);
|
||
}
|
||
bindField("NIGHTWIND",nightWindvalue);
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|