Browse Source

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

feature/big-screen
Yyming 4 years ago
parent
commit
f66826f607
  1. 14
      designer-realize/src/main/java/com/fr/design/mainframe/JWorkBook.java
  2. 13
      designer-realize/src/main/java/com/fr/design/mainframe/PolySheetNameTabPane.java

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

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

@ -11,6 +11,7 @@ import com.fr.design.menu.MenuDef;
* @date 2015-2-5-上午10:19:17
*
*/
@Deprecated
public class PolySheetNameTabPane extends SheetNameTabPane{
/**
@ -20,16 +21,4 @@ public class PolySheetNameTabPane extends SheetNameTabPane{
super(reportCompositeX);
}
protected void paintAddButton(Graphics2D g2d){
ADD_POLY_SHEET.paintIcon(this, g2d, iconLocation, 3);
}
protected void firstInsertActionPerformed(){
new PolyReportInsertAction().actionPerformed(null);
}
protected void addInsertGridShortCut(MenuDef def){
}
}
Loading…
Cancel
Save