Browse Source

Pull request #2376: REPORT-39965 新建聚合报表下方没有添加普通报表的按钮

Merge in DESIGN/design from ~YYMING/design:release/10.0 to release/10.0

* commit 'b306fea3705407c7cf5bde824be3c43540aa5c5e':
  REPORT-39884 换一个改动方案
  REPORT-39965 新建聚合报表下方没有添加普通报表的按钮
feature/big-screen
Yyming 4 years ago
parent
commit
53bd29898d
  1. 10
      designer-realize/src/main/java/com/fr/design/mainframe/JPolyWorkBook.java
  2. 14
      designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java
  3. 7
      designer-realize/src/main/java/com/fr/design/mainframe/PolySheetNameTabPane.java

10
designer-realize/src/main/java/com/fr/design/mainframe/JPolyWorkBook.java

@ -1,6 +1,4 @@
/**
*
*/
package com.fr.design.mainframe; package com.fr.design.mainframe;
import com.fr.design.mainframe.template.info.JPolyWorkBookProcessInfo; import com.fr.design.mainframe.template.info.JPolyWorkBookProcessInfo;
@ -13,7 +11,6 @@ import com.fr.report.poly.PolyWorkSheet;
* 聚合报表Book, 跟WorkBook区别在于不能放入WorkSheet. * 聚合报表Book, 跟WorkBook区别在于不能放入WorkSheet.
* *
* @author neil * @author neil
*
* @date: 2015-2-5-上午8:58:39 * @date: 2015-2-5-上午8:58:39
*/ */
public class JPolyWorkBook extends JWorkBook { public class JPolyWorkBook extends JWorkBook {
@ -32,15 +29,12 @@ public class JPolyWorkBook extends JWorkBook {
* 创建sheet名称tab面板 * 创建sheet名称tab面板
* *
* @param reportCompositeX 当前组件对象 * @param reportCompositeX 当前组件对象
*
* @return sheet名称tab面板 * @return sheet名称tab面板
*
* @date 2015-2-5-上午11:42:12 * @date 2015-2-5-上午11:42:12
*
*/ */
@Override @Override
public SheetNameTabPane createSheetNameTabPane(ReportComponentComposite reportCompositeX) { public SheetNameTabPane createSheetNameTabPane(ReportComponentComposite reportCompositeX) {
return new PolySheetNameTabPane(reportCompositeX); return new SheetNameTabPane(reportCompositeX);
} }
@Override @Override

14
designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java

@ -208,13 +208,7 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
} }
}; };
reportComposite.addTargetModifiedListener(new TargetModifiedListener() { reportComposite.addTargetModifiedListener(e -> JWorkBook.this.fireTargetModified());
@Override
public void targetModified(TargetModifiedEvent e) {
JWorkBook.this.fireTargetModified();
}
});
reportComposite.setParentContainer(centerPane); reportComposite.setParentContainer(centerPane);
return centerPane; return centerPane;
@ -241,11 +235,11 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
/** /**
* 判断sheet权限 * 判断sheet权限
* *
* @param rolsName 角色 * @param rolesName 角色
*/ */
@Override @Override
public void judgeSheetAuthority(String rolsName) { public void judgeSheetAuthority(String rolesName) {
boolean isCovered = reportComposite.getEditingTemplateReport().getWorkSheetPrivilegeControl().checkInvisible(rolsName); boolean isCovered = reportComposite.getEditingTemplateReport().getWorkSheetPrivilegeControl().checkInvisible(rolesName);
centerPane.setSheeetCovered(isCovered); centerPane.setSheeetCovered(isCovered);
centerPane.refreshContainer(); centerPane.refreshContainer();
} }

7
designer-realize/src/main/java/com/fr/design/mainframe/PolySheetNameTabPane.java

@ -1,16 +1,18 @@
package com.fr.design.mainframe; package com.fr.design.mainframe;
import java.awt.Graphics2D;
import com.fr.design.menu.MenuDef; import com.fr.design.menu.MenuDef;
import java.awt.Graphics2D;
/** /**
* 获取 * 获取
* *
* @date 2015-2-5-上午10:19:17 * @date 2015-2-5-上午10:19:17
* * @deprecated 让聚合报表也可以新建普通报表sheet, 逻辑和普通报表保持一致, 弃用此个性化设置
*/ */
@Deprecated
public class PolySheetNameTabPane extends SheetNameTabPane { public class PolySheetNameTabPane extends SheetNameTabPane {
/** /**
@ -32,4 +34,5 @@ public class PolySheetNameTabPane extends SheetNameTabPane{
protected void addInsertGridShortCut(MenuDef def) { protected void addInsertGridShortCut(MenuDef def) {
} }
} }
Loading…
Cancel
Save