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 Parameter Add(ActionDrillthrough owner, AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue paramDef) { Parameter parameter = new Parameter(owner, paramDef); this.m_list.Add(parameter); return(parameter); }
public Parameter CreateParameter(string name) { if (!this.m_owner.IsChartConstruction) { if (this.m_owner.IsDynamic && this.m_owner.ReportElementOwner.CriGenerationPhase != ReportElement.CriGenerationPhases.Instance) { throw new RenderingObjectModelException(RPRes.rsErrorDuringROMWritebackDynamicAction); } if (!this.m_owner.IsDynamic && this.m_owner.ReportElementOwner.CriGenerationPhase != ReportElement.CriGenerationPhases.Definition) { throw new RenderingObjectModelException(RPRes.rsErrorDuringROMWritebackNonDynamicAction); } } if (this.Parameters == null) { this.m_actionItemDef.DrillthroughParameters = new List <AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue>(); Global.Tracer.Assert(this.Parameters != null, "(Parameters != null)"); } AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue parameterValue = new AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue(); parameterValue.Name = name; this.m_actionItemDef.DrillthroughParameters.Add(parameterValue); if (!this.m_owner.IsChartConstruction && this.m_owner.ReportElementOwner.CriGenerationPhase == ReportElement.CriGenerationPhases.Instance) { parameterValue.Value = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression(); } return(this.Parameters.Add(this, parameterValue)); }
private NameValueCollection ConvertToNameValueCollection(bool forDrillthroughEvent, out bool[] sharedParams) { int count = this.m_list.Count; NameValueCollection nameValueCollection = new NameValueCollection(count); sharedParams = new bool[count]; for (int i = 0; i < count; i++) { Parameter parameter = this.m_list[i]; ParameterInstance instance = parameter.Instance; AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue parameterDef = parameter.ParameterDef; object obj = null; if (parameterDef.Value != null && parameterDef.Value.Type == AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.Types.Token) { sharedParams[i] = true; } else { sharedParams[i] = false; } if (!instance.Omit) { obj = instance.Value; if (obj == null) { nameValueCollection.Add(parameter.Name, null); } else { object[] array = obj as object[]; if (array != null) { for (int j = 0; j < array.Length; j++) { nameValueCollection.Add(parameter.Name, this.ConvertValueToString(array[j], forDrillthroughEvent)); } } else { nameValueCollection.Add(parameter.Name, this.ConvertValueToString(obj, forDrillthroughEvent)); } } } } return(nameValueCollection); }
public ParameterBase(AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue source) { this.m_dataType = DataType.Object; this.m_name = source.Name; this.m_usedInQuery = false; }
public ParameterInfo(AspNetCore.ReportingServices.ReportIntermediateFormat.ParameterValue source) : base(source) { this.m_isUserSupplied = true; }