|
|
|
@ -65,14 +65,17 @@ public class ChartHyperlinkGroup extends BaseHyperlinkGroup {
|
|
|
|
|
return !ComparatorUtils.equals(clazz, formHyperlink.getClass()); |
|
|
|
|
} else { |
|
|
|
|
// 如果是决策报表
|
|
|
|
|
if (template.getEditingReportIndex() == BaseJForm.FORM_TAB) { |
|
|
|
|
// 编辑的是决策报表中的图表,那么没有ChartHyperRelateFloatLink 和 ChartHyperRelateCellLink 选项,有FormHyperlink 选项
|
|
|
|
|
Class[] classes = new Class[]{ChartHyperRelateCellLink.class, ChartHyperRelateFloatLink.class}; |
|
|
|
|
return !ArrayUtils.contains(classes, clazz); |
|
|
|
|
} else if (template.getEditingReportIndex() == BaseJForm.ELEMENTCASE_TAB) { |
|
|
|
|
// 编辑的是决策报表中的报表块,那么没有 ChartHyperPoplink 和 ChartHyperRelateFloatLink
|
|
|
|
|
Class[] classes = new Class[]{ChartHyperPoplink.class, ChartHyperRelateFloatLink.class}; |
|
|
|
|
return !ArrayUtils.contains(classes, clazz); |
|
|
|
|
Class[] classes = new Class[]{ChartHyperRelateCellLink.class, ChartHyperRelateFloatLink.class}; |
|
|
|
|
for (Class aClass : classes) { |
|
|
|
|
if (template.getEditingReportIndex() == BaseJForm.FORM_TAB) { |
|
|
|
|
// 编辑的是决策报表中的图表,那么没有ChartHyperRelateFloatLink 和 ChartHyperRelateCellLink 选项,有FormHyperlink 选项
|
|
|
|
|
if (ComparatorUtils.equals(aClass, clazz)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} else if (template.getEditingReportIndex() == BaseJForm.ELEMENTCASE_TAB) { |
|
|
|
|
// 编辑的是决策报表中的报表块,那么没有 ChartHyperRelateFloatLink,有ChartHyperRelateCellLink 和 FormHyperlink 选项
|
|
|
|
|
return !ComparatorUtils.equals(clazz, ChartHyperRelateFloatLink.class); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|