示例#1
0
 internal Action(ActionInfo owner, Microsoft.ReportingServices.ReportRendering.Action renderAction)
 {
     m_owner        = owner;
     m_renderAction = renderAction;
 }
示例#2
0
 internal Action(ActionInfo owner, Microsoft.ReportingServices.ReportIntermediateFormat.ActionItem actionItemDef, int index)
 {
     m_owner         = owner;
     m_actionItemDef = actionItemDef;
     m_index         = index;
 }
        internal static ActionInfoWithDynamicImageMap CreateActionInfoDynamic(ReportItem reportItem, ActionInfo actionInfo, string toolTip, out string href, bool applyExpression)
        {
            Action actionFromActionInfo = GetActionFromActionInfo(actionInfo);

            if (actionFromActionInfo == null)
            {
                href = null;
            }
            else
            {
                href = EvaluateHref(actionFromActionInfo, out bool isExpression);
                if (isExpression && !applyExpression)
                {
                    href = null;
                }
            }
            bool flag  = actionFromActionInfo == null || href == null;
            bool flag2 = string.IsNullOrEmpty(toolTip);

            if (flag && flag2)
            {
                return(null);
            }
            ActionInfoWithDynamicImageMap actionInfoWithDynamicImageMap;

            if (!flag)
            {
                actionInfoWithDynamicImageMap = new ActionInfoWithDynamicImageMap(reportItem.RenderingContext, reportItem, actionInfo.ReportScope, actionInfo.InstancePath, actionInfo.ROMActionOwner, chartConstructor: true);
                if (actionFromActionInfo.BookmarkLink != null)
                {
                    actionInfoWithDynamicImageMap.CreateBookmarkLinkAction().Instance.BookmarkLink = href;
                }
                else if (actionFromActionInfo.Hyperlink != null)
                {
                    actionInfoWithDynamicImageMap.CreateHyperlinkAction().Instance.HyperlinkText = href;
                }
                else if (actionFromActionInfo.Drillthrough != null)
                {
                    Action action = actionInfoWithDynamicImageMap.CreateDrillthroughAction();
                    action.Drillthrough.Instance.ReportName = href;
                    EvaluateActionParameters(actionFromActionInfo.Drillthrough, action.Drillthrough);
                    _ = action.Drillthrough.Instance.DrillthroughID;
                }
            }
            else
            {
                actionInfoWithDynamicImageMap = new ActionInfoWithDynamicImageMap(reportItem.RenderingContext, reportItem, reportItem.ReportScope, reportItem.ReportItemDef, null, chartConstructor: true);
            }
            return(actionInfoWithDynamicImageMap);
        }
 internal static ActionInfoWithDynamicImageMap CreateActionInfoDynamic(ReportItem reportItem, ActionInfo actionInfo, string toolTip, out string href)
 {
     return(CreateActionInfoDynamic(reportItem, actionInfo, toolTip, out href, applyExpression: true));
 }
 internal void CompleteActionInfoInstancesDeserialization()
 {
     m_currentActionInfo  = null;
     m_currentActionIndex = 0;
 }
 internal void StartActionInfoInstancesDeserialization(ActionInfo actionInfo)
 {
     m_currentActionInfo  = actionInfo;
     m_currentActionIndex = 0;
 }