public TextRunImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox textBoxDef, AspNetCore.ReportingServices.ReportIntermediateFormat.TextRun textRunDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext, IScope scope)
 {
     this.m_textBoxDef    = textBoxDef;
     this.m_textRunDef    = textRunDef;
     this.m_reportRT      = reportRT;
     this.m_iErrorContext = iErrorContext;
     this.m_scope         = scope;
 }
 public ReportItemImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem itemDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext)
 {
     Global.Tracer.Assert(null != itemDef, "(null != itemDef)");
     Global.Tracer.Assert(null != reportRT, "(null != reportRT)");
     Global.Tracer.Assert(null != iErrorContext, "(null != iErrorContext)");
     this.m_item          = itemDef;
     this.m_reportRT      = reportRT;
     this.m_iErrorContext = iErrorContext;
 }
Beispiel #3
0
 public object EvaluateDrillthroughParamValue(IReportScopeInstance romInstance, OnDemandProcessingContext context, IInstancePath ownerItem, List <string> fieldsUsedInOwnerValue, ParameterValue paramValue, AspNetCore.ReportingServices.ReportProcessing.ObjectType objectType, string objectName)
 {
     context.SetupContext(ownerItem, romInstance);
     AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRuntime = context.ReportRuntime;
     reportRuntime.FieldsUsedInCurrentActionOwnerValue = fieldsUsedInOwnerValue;
     AspNetCore.ReportingServices.RdlExpressions.ParameterValueResult parameterValueResult = reportRuntime.EvaluateParameterValueExpression(paramValue, objectType, objectName, "DrillthroughParameterValue");
     reportRuntime.FieldsUsedInCurrentActionOwnerValue = null;
     return(parameterValueResult.Value);
 }
Beispiel #4
0
 public VariableImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.Variable variable, IndexedExprHost variableValuesHost, ObjectType parentObjectType, string parentObjectName, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, int indexInCollection)
 {
     Global.Tracer.Assert(reportRT != null && null != variable, "(null != reportRT && null != variable)");
     this.m_variableDef       = variable;
     this.m_exprHost          = variableValuesHost;
     this.m_parentObjectType  = parentObjectType;
     this.m_parentObjectName  = parentObjectName;
     this.m_reportRT          = reportRT;
     this.m_indexInCollection = indexInCollection;
 }
 public TextBoxImpl GetTextBoxImpl(OnDemandProcessingContext context)
 {
     if (this.m_textBoxImpl == null)
     {
         AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRuntime = context.ReportRuntime;
         ReportItemsImpl reportItemsImpl = context.ReportObjectModel.ReportItemsImpl;
         this.m_textBoxImpl = (TextBoxImpl)reportItemsImpl.GetReportItem(base.m_name);
         Global.Tracer.Assert(this.m_textBoxImpl != null, "(m_textBoxImpl != null)");
     }
     return(this.m_textBoxImpl);
 }
 public DataAggregateObj(DataAggregateInfo aggInfo, OnDemandProcessingContext odpContext)
 {
     this.m_nonAggregateMode = false;
     this.m_aggregator       = AggregatorFactory.Instance.CreateAggregator(odpContext, aggInfo);
     this.m_aggregateDef     = aggInfo;
     this.m_reportRT         = odpContext.ReportRuntime;
     if (this.m_reportRT.ReportExprHost != null)
     {
         this.m_aggregateDef.SetExprHosts(this.m_reportRT.ReportExprHost, odpContext.ReportObjectModel);
     }
     this.Init();
 }
        void IPersistable.Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(CalculatedFieldWrapperImpl.m_declaration);
            IScalabilityCache scalabilityCache = reader.PersistenceHelper as IScalabilityCache;

            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.FieldDef:
                {
                    int id2 = reader.ReadInt32();
                    this.m_fieldDef = (AspNetCore.ReportingServices.ReportIntermediateFormat.Field)scalabilityCache.FetchStaticReference(id2);
                    break;
                }

                case MemberName.Value:
                    this.m_value = reader.ReadVariant();
                    break;

                case MemberName.IsValueReady:
                    this.m_isValueReady = reader.ReadBoolean();
                    break;

                case MemberName.IsVisited:
                    this.m_isVisited = reader.ReadBoolean();
                    break;

                case MemberName.ReportRuntime:
                {
                    int id = reader.ReadInt32();
                    this.m_reportRT      = (AspNetCore.ReportingServices.RdlExpressions.ReportRuntime)scalabilityCache.FetchStaticReference(id);
                    this.m_iErrorContext = this.m_reportRT;
                    break;
                }

                case MemberName.ErrorOccurred:
                    this.m_errorOccurred = reader.ReadBoolean();
                    break;

                case MemberName.ExceptionMessage:
                    this.m_exceptionMessage = reader.ReadString();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Beispiel #8
0
 public void ProcessUserSortForTarget(ObjectModelImpl reportObjectModel, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRuntime, IReference <IHierarchyObj> target, ref ScalableList <DataFieldRow> dataRows, bool targetForNonDetailSort)
 {
     using (target.PinValue())
     {
         IHierarchyObj hierarchyObj = target.Value();
         if (targetForNonDetailSort && dataRows != null && 0 < dataRows.Count)
         {
             IReference <RuntimeSortFilterEventInfo> reference = null;
             try
             {
                 List <int> sortFilterInfoIndices = hierarchyObj.SortFilterInfoIndices;
                 Global.Tracer.Assert(null != hierarchyObj.SortTree, "(null != targetObj.SortTree)");
                 if (sortFilterInfoIndices != null)
                 {
                     reference = this.m_runtimeSortFilterInfo[sortFilterInfoIndices[0]];
                 }
                 RuntimeSortFilterEventInfo runtimeSortFilterEventInfo = null;
                 if (reference != null)
                 {
                     reference.PinValue();
                     runtimeSortFilterEventInfo = reference.Value();
                 }
                 for (int i = 0; i < dataRows.Count; i++)
                 {
                     dataRows[i].SetFields(reportObjectModel.FieldsImpl);
                     object keyValue = DBNull.Value;
                     if (runtimeSortFilterEventInfo != null)
                     {
                         keyValue = runtimeSortFilterEventInfo.GetSortOrder(reportRuntime);
                     }
                     hierarchyObj.SortTree.NextRow(keyValue, hierarchyObj);
                 }
             }
             finally
             {
                 if (reference != null)
                 {
                     reference.UnPinValue();
                 }
             }
             if (dataRows != null)
             {
                 dataRows.Dispose();
             }
             dataRows = null;
         }
         hierarchyObj.MarkSortInfoProcessed(this.m_runtimeSortFilterInfo);
     }
 }
        public ParagraphsImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox textBoxDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext, IScope scope)
        {
            this.m_textBoxDef    = textBoxDef;
            this.m_reportRT      = reportRT;
            this.m_iErrorContext = iErrorContext;
            this.m_scope         = scope;
            List <AspNetCore.ReportingServices.ReportIntermediateFormat.Paragraph> paragraphs = this.m_textBoxDef.Paragraphs;

            if (paragraphs != null)
            {
                this.m_paragraphs = new ParagraphImpl[paragraphs.Count];
            }
            else
            {
                this.m_paragraphs = new ParagraphImpl[0];
            }
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(DataAggregateObj.m_declaration);
            IScalabilityCache scalabilityCache = reader.PersistenceHelper as IScalabilityCache;

            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.NonAggregateMode:
                    this.m_nonAggregateMode = reader.ReadBoolean();
                    break;

                case MemberName.Aggregator:
                    this.m_aggregator = (DataAggregate)reader.ReadRIFObject();
                    break;

                case MemberName.AggregateDef:
                {
                    int id2 = reader.ReadInt32();
                    this.m_aggregateDef = (DataAggregateInfo)scalabilityCache.FetchStaticReference(id2);
                    break;
                }

                case MemberName.ReportRuntime:
                {
                    int id = reader.ReadInt32();
                    this.m_reportRT = (AspNetCore.ReportingServices.RdlExpressions.ReportRuntime)scalabilityCache.FetchStaticReference(id);
                    break;
                }

                case MemberName.UsedInExpression:
                    this.m_usedInExpression = reader.ReadBoolean();
                    break;

                case MemberName.AggregateResult:
                    this.m_aggregateResult = (DataAggregateObjResult)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
 public CalculatedFieldWrapperImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.Field fieldDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT)
 {
     this.m_fieldDef      = fieldDef;
     this.m_reportRT      = reportRT;
     this.m_iErrorContext = reportRT;
 }
Beispiel #12
0
 public AspNetCore.ReportingServices.RdlExpressions.VariantResult EvaluateResultExpr(AspNetCore.ReportingServices.RdlExpressions.ReportRuntime runtime)
 {
     return(runtime.EvaluateLookupResultExpression(this));
 }
 public AspNetCore.ReportingServices.RdlExpressions.VariantResult EvaluatePrimaryKeyExpr(AspNetCore.ReportingServices.RdlExpressions.ReportRuntime runtime)
 {
     return(runtime.EvaluateJoinConditionPrimaryKeyExpression(this));
 }
 public ParagraphImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.Paragraph paragraphDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext, IScope scope)
 {
     this.m_textRuns = new TextRunsImpl(paragraphDef, reportRT, iErrorContext, scope);
 }
        public AspNetCore.ReportingServices.RdlExpressions.VariantResult[] EvaluateJoinConditionKeys(bool evaluatePrimaryKeys, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRuntime)
        {
            int joinConditionCount = this.JoinConditionCount;

            if (joinConditionCount == 0)
            {
                return(null);
            }
            AspNetCore.ReportingServices.RdlExpressions.VariantResult[] array = new AspNetCore.ReportingServices.RdlExpressions.VariantResult[joinConditionCount];
            for (int i = 0; i < joinConditionCount; i++)
            {
                if (evaluatePrimaryKeys)
                {
                    array[i] = this.m_joinConditions[i].EvaluatePrimaryKeyExpr(reportRuntime);
                }
                else
                {
                    array[i] = this.m_joinConditions[i].EvaluateForeignKeyExpr(reportRuntime);
                }
            }
            return(array);
        }
 public LookupImpl(LookupInfo lookupInfo, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRuntime)
 {
     this.m_lookupInfo    = lookupInfo;
     this.m_reportRuntime = reportRuntime;
 }
 public TextBoxImpl(AspNetCore.ReportingServices.ReportIntermediateFormat.TextBox itemDef, AspNetCore.ReportingServices.RdlExpressions.ReportRuntime reportRT, IErrorContext iErrorContext)
     : base(itemDef, reportRT, iErrorContext)
 {
     this.m_textBox    = itemDef;
     this.m_paragraphs = new ParagraphsImpl(this.m_textBox, base.m_reportRT, base.m_iErrorContext, base.m_scope);
 }