Browse Source

设置之后需要刷新一下面板,决定是否显示计算属性入口

research/11.0
fly.li 3 years ago
parent
commit
236ce23297
  1. 6
      designer-realize/src/main/java/com/fr/design/actions/report/ReportEngineAttrAction.java

6
designer-realize/src/main/java/com/fr/design/actions/report/ReportEngineAttrAction.java

@ -3,6 +3,7 @@ package com.fr.design.actions.report;
import com.fr.design.actions.ReportComponentAction; import com.fr.design.actions.ReportComponentAction;
import com.fr.design.dialog.BasicDialog; import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.DialogActionAdapter; import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.file.HistoryTemplateListCache;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.WorkSheetDesigner; import com.fr.design.mainframe.WorkSheetDesigner;
import com.fr.design.menu.KeySetUtils; import com.fr.design.menu.KeySetUtils;
@ -34,17 +35,18 @@ public class ReportEngineAttrAction extends ReportComponentAction<WorkSheetDesig
return false; return false;
} }
final WorkSheet tplEC = jws.getTemplateReport(); final WorkSheet tplEC = jws.getTemplateReport();
final LayerReportEnginePane layerReportEnginePane = new LayerReportEnginePane(tplEC); final LayerReportEnginePane layerReportEnginePane = new LayerReportEnginePane(tplEC);
layerReportEnginePane.populateBean(tplEC.getLayerReportAttr()); layerReportEnginePane.populateBean(tplEC.getLayerReportAttr());
BasicDialog dialog = layerReportEnginePane.showWindow(DesignerContext.getDesignerFrame()); BasicDialog dialog = layerReportEnginePane.showWindow(DesignerContext.getDesignerFrame());
isChange = false; isChange = false;
dialog.addDialogActionListener(new DialogActionAdapter() { dialog.addDialogActionListener(new DialogActionAdapter() {
@Override @Override
public void doOk() { public void doOk() {
isChange = true; isChange = true;
tplEC.setLayerReportAttr(layerReportEnginePane.updateBean()); tplEC.setLayerReportAttr(layerReportEnginePane.updateBean());
//设置新引擎后,需要刷新一下,计算属性设置入口是否显示,取决于是否设置了新引擎模式。
DesignerContext.getDesignerFrame().resetToolkitByPlus(HistoryTemplateListCache.getInstance().getCurrentEditingTemplate());
} }
}); });
dialog.setVisible(true); dialog.setVisible(true);

Loading…
Cancel
Save