|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|