public Parameter(ActionDrillthrough actionDef, AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue parameterDef)
 {
     this.m_name         = parameterDef.Name;
     this.m_actionDef    = actionDef;
     this.m_parameterDef = parameterDef;
     this.m_instance     = new ParameterInstance(this);
 }
 public ActionDrillthroughInstance(IReportScope reportScope, ActionDrillthrough actionDef, int index)
     : base(reportScope)
 {
     this.m_isOldSnapshot = false;
     this.m_actionDef     = actionDef;
     this.m_index         = index;
 }
        public Parameter Add(ActionDrillthrough owner, AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue paramDef)
        {
            Parameter parameter = new Parameter(owner, paramDef);

            this.m_list.Add(parameter);
            return(parameter);
        }
Exemple #4
0
 private static void EvaluateActionParameters(ActionDrillthrough actionDrillthroughSource, ActionDrillthrough actionDrillthroughDestination)
 {
     if (actionDrillthroughSource.Parameters != null)
     {
         foreach (Parameter parameter2 in actionDrillthroughSource.Parameters)
         {
             Parameter parameter = actionDrillthroughDestination.CreateParameter(parameter2.Name);
             if (!parameter2.Value.IsExpression)
             {
                 parameter.Instance.Value = parameter2.Value.Value;
             }
             else
             {
                 parameter.Instance.Value = parameter2.Instance.Value;
             }
             if (!parameter2.Omit.IsExpression)
             {
                 parameter.Instance.Omit = parameter2.Omit.Value;
             }
             else
             {
                 parameter.Instance.Omit = parameter2.Instance.Omit;
             }
         }
     }
 }
 public Parameter(ActionDrillthrough actionDef, AspNetCore.ReportingServices.ReportProcessing.ParameterValue parameterDef, ActionItemInstance actionInstance, int index)
 {
     this.m_name      = parameterDef.Name;
     this.m_value     = new ReportVariantProperty(parameterDef.Value);
     this.m_omit      = new ReportBoolProperty(parameterDef.Omit);
     this.m_actionDef = actionDef;
     this.m_instance  = new ParameterInstance(actionInstance, index);
 }
 public ParameterCollection(ActionDrillthrough actionDef, List <AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue> parameters)
 {
     this.m_isOldSnapshot = false;
     this.m_actionDef     = actionDef;
     if (parameters == null)
     {
         this.m_list = new List <Parameter>();
     }
     else
     {
         int count = parameters.Count;
         this.m_list = new List <Parameter>(count);
         for (int i = 0; i < count; i++)
         {
             this.m_list.Add(new Parameter(actionDef, parameters[i]));
         }
     }
 }
 public ParameterCollection(ActionDrillthrough actionDef, NameValueCollection drillthroughParameters, DrillthroughParameters parametersNameObjectCollection, ParameterValueList parameters, ActionItemInstance actionInstance)
 {
     this.m_isOldSnapshot                  = true;
     this.m_actionDef                      = actionDef;
     this.m_drillthroughParameters         = drillthroughParameters;
     this.m_parametersNameObjectCollection = parametersNameObjectCollection;
     if (parameters == null)
     {
         this.m_list = new List <Parameter>();
     }
     else
     {
         int count = parameters.Count;
         this.m_list = new List <Parameter>(count);
         for (int i = 0; i < count; i++)
         {
             this.m_list.Add(new Parameter(actionDef, parameters[i], actionInstance, i));
         }
     }
 }