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