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