コード例 #1
0
        public virtual object PublishClone(AutomaticSubtotalContext context)
        {
            IDOwner iDOwner = (IDOwner)base.MemberwiseClone();

            iDOwner.m_ID      = context.GenerateID();
            iDOwner.m_isClone = true;
            return(iDOwner);
        }
コード例 #2
0
        public override void ResolveReferences(Dictionary <AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.ObjectType, List <MemberReference> > memberReferencesCollection, Dictionary <int, IReferenceable> referenceableItems)
        {
            List <MemberReference> list = default(List <MemberReference>);

            if (memberReferencesCollection.TryGetValue(Cell.m_Declaration.ObjectType, out list))
            {
                foreach (MemberReference item2 in list)
                {
                    switch (item2.MemberName)
                    {
                    case MemberName.ParentRowID:
                        Global.Tracer.Assert(referenceableItems.ContainsKey(item2.RefID), "ParentRowID");
                        base.m_parentIDOwner = (IDOwner)referenceableItems[item2.RefID];
                        this.m_parentRowID   = item2.RefID;
                        break;

                    case MemberName.ParentColumnID:
                        Global.Tracer.Assert(referenceableItems.ContainsKey(item2.RefID), "ParentColumnID");
                        this.m_parentColumnIDOwner = (IDOwner)referenceableItems[item2.RefID];
                        this.m_parentColumnID      = item2.RefID;
                        break;

                    case MemberName.DataRegionDef:
                    {
                        IReferenceable referenceable2 = default(IReferenceable);
                        referenceableItems.TryGetValue(item2.RefID, out referenceable2);
                        Global.Tracer.Assert(referenceable2 != null && ((ReportItem)referenceable2).IsDataRegion, "DataRegionDef");
                        this.m_dataRegionDef = (DataRegion)referenceable2;
                        break;
                    }

                    case MemberName.InScopeEventSources:
                    {
                        IReferenceable referenceable = default(IReferenceable);
                        referenceableItems.TryGetValue(item2.RefID, out referenceable);
                        IInScopeEventSource item = (IInScopeEventSource)referenceable;
                        if (this.m_inScopeEventSources == null)
                        {
                            this.m_inScopeEventSources = new List <IInScopeEventSource>();
                        }
                        this.m_inScopeEventSources.Add(item);
                        break;
                    }

                    default:
                        Global.Tracer.Assert(false);
                        break;
                    }
                }
            }
        }
コード例 #3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(Cell.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.ParentRowID:
                    base.m_parentIDOwner = reader.ReadReference <IDOwner>(this);
                    if (base.m_parentIDOwner != null)
                    {
                        this.m_parentRowID = base.m_parentIDOwner.ID;
                    }
                    break;

                case MemberName.ParentColumnID:
                    this.m_parentColumnIDOwner = reader.ReadReference <IDOwner>(this);
                    if (this.m_parentColumnIDOwner != null)
                    {
                        this.m_parentColumnID = this.m_parentColumnIDOwner.ID;
                    }
                    break;

                case MemberName.IndexInCollection:
                    this.m_indexInCollection = reader.ReadInt32();
                    break;

                case MemberName.HasInnerGroupTreeHierarchy:
                    this.m_hasInnerGroupTreeHierarchy = reader.ReadBoolean();
                    break;

                case MemberName.DataRegionDef:
                    this.m_dataRegionDef = reader.ReadReference <DataRegion>(this);
                    break;

                case MemberName.AggregateIndexes:
                    this.m_aggregateIndexes = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.PostSortAggregateIndexes:
                    this.m_postSortAggregateIndexes = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.RunningValueIndexes:
                    this.m_runningValueIndexes = reader.ReadListOfPrimitives <int>();
                    break;

                case MemberName.NeedToCacheDataRows:
                    this.m_needToCacheDataRows = reader.ReadBoolean();
                    break;

                case MemberName.InScopeEventSources:
                    this.m_inScopeEventSources = reader.ReadGenericListOfReferences <IInScopeEventSource>(this);
                    break;

                case MemberName.InDynamicRowAndColumnContext:
                    this.m_inDynamicRowAndColumnContext = reader.ReadBoolean();
                    break;

                case MemberName.TextboxesInScope:
                    this.m_textboxesInScope = reader.ReadByteArray();
                    break;

                case MemberName.VariablesInScope:
                    this.m_variablesInScope = reader.ReadByteArray();
                    break;

                case MemberName.DataScopeInfo:
                    this.m_dataScopeInfo = reader.ReadRIFObject <DataScopeInfo>();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }