Browse Source

REPORT-94114 设计器面板图表超链选项缺失

【问题原因】没有判断当前是决策报表图表还是普通报表图表,两者的超链选项不同
【改动思路】增加判断当前报表类型
security/10.0
Leo.Qin 2 years ago
parent
commit
83acc126ac
  1. 9
      designer-chart/src/main/java/com/fr/van/chart/custom/component/VanChartHyperLinkPane.java

9
designer-chart/src/main/java/com/fr/van/chart/custom/component/VanChartHyperLinkPane.java

@ -293,15 +293,22 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane {
if (template == null) { if (template == null) {
return false; return false;
} }
if (template.isJWorkBook()) {
// 如果是普通报表单元格,那么没有 FormHyperlink 选项
FormHyperlinkProvider formHyperlink = StableFactory.getMarkedInstanceObjectFromClass(FormHyperlinkProvider.XML_TAG, FormHyperlinkProvider.class);
return !ComparatorUtils.equals(clazz, formHyperlink.getClass());
} else {
// 编辑的是决策报表中的图表,那么没有ChartHyperRelateFloatLink 和 ChartHyperRelateCellLink 选项
Class[] classes = new Class[]{ChartHyperRelateCellLink.class, ChartHyperRelateFloatLink.class}; Class[] classes = new Class[]{ChartHyperRelateCellLink.class, ChartHyperRelateFloatLink.class};
for (Class aClass : classes) { for (Class aClass : classes) {
if (template.getEditingReportIndex() == BaseJForm.FORM_TAB) { if (template.getEditingReportIndex() == BaseJForm.FORM_TAB) {
// 编辑的是决策报表中的图表,那么没有ChartHyperRelateFloatLink 和 ChartHyperRelateCellLink 选项,有FormHyperlink 选项
if (ComparatorUtils.equals(aClass, clazz)) { if (ComparatorUtils.equals(aClass, clazz)) {
return false; return false;
} }
} }
} }
}
return true; return true;
}; };
} }

Loading…
Cancel
Save