Beispiel #1
0
        public DataSource(int id, Guid sharedDataSourceReferenceId, DataSetCore dataSetCore)
            : this(id, sharedDataSourceReferenceId)
        {
            DataSet item = new DataSet(dataSetCore);

            this.m_dataSets = new List <DataSet>(1);
            this.m_dataSets.Add(item);
        }
Beispiel #2
0
 public DataSet(int id, int indexCounter)
     : base(id)
 {
     this.m_indexInCollection  = indexCounter;
     this.m_dataRegions        = new List <DataRegion>();
     this.m_aggregates         = new List <DataAggregateInfo>();
     this.m_postSortAggregates = new List <DataAggregateInfo>();
     this.m_dataSetCore        = new DataSetCore();
     this.m_dataSetCore.Fields = new List <Field>();
 }
Beispiel #3
0
 public DataSet(DataSetCore dataSetCore)
 {
     this.m_dataSetCore = dataSetCore;
 }
Beispiel #4
0
 public DataSet()
 {
     this.m_dataSetCore = new DataSetCore();
 }
Beispiel #5
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(DataSet.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    this.m_dataSetCore.Name = reader.ReadString();
                    break;

                case MemberName.Fields:
                    this.m_dataSetCore.Fields = reader.ReadGenericListOfRIFObjects <Field>();
                    break;

                case MemberName.Query:
                    this.m_dataSetCore.Query = (ReportQuery)reader.ReadRIFObject();
                    break;

                case MemberName.CaseSensitivity:
                    this.m_dataSetCore.CaseSensitivity = (TriState)reader.ReadEnum();
                    break;

                case MemberName.Collation:
                    this.m_dataSetCore.Collation = reader.ReadString();
                    break;

                case MemberName.AccentSensitivity:
                    this.m_dataSetCore.AccentSensitivity = (TriState)reader.ReadEnum();
                    break;

                case MemberName.KanatypeSensitivity:
                    this.m_dataSetCore.KanatypeSensitivity = (TriState)reader.ReadEnum();
                    break;

                case MemberName.WidthSensitivity:
                    this.m_dataSetCore.WidthSensitivity = (TriState)reader.ReadEnum();
                    break;

                case MemberName.DataRegions:
                    this.m_dataRegions = reader.ReadGenericListOfReferences <DataRegion>(this);
                    break;

                case MemberName.Aggregates:
                    this.m_aggregates = reader.ReadGenericListOfRIFObjects <DataAggregateInfo>();
                    break;

                case MemberName.Filters:
                    this.m_dataSetCore.Filters = reader.ReadGenericListOfRIFObjects <Filter>();
                    break;

                case MemberName.UsedOnlyInParameters:
                    this.m_usedOnlyInParameters = reader.ReadBoolean();
                    break;

                case MemberName.NonCalculatedFieldCount:
                    this.m_dataSetCore.NonCalculatedFieldCount = reader.ReadInt32();
                    break;

                case MemberName.ExprHostID:
                    this.m_dataSetCore.ExprHostID = reader.ReadInt32();
                    break;

                case MemberName.PostSortAggregates:
                    this.m_postSortAggregates = reader.ReadGenericListOfRIFObjects <DataAggregateInfo>();
                    break;

                case MemberName.LCID:
                    this.m_dataSetCore.LCID = reader.ReadUInt32();
                    break;

                case MemberName.HasDetailUserSortFilter:
                    this.m_hasDetailUserSortFilter = reader.ReadBoolean();
                    break;

                case MemberName.UserSortExpressions:
                    this.m_userSortExpressions = reader.ReadGenericListOfRIFObjects <ExpressionInfo>();
                    break;

                case MemberName.InterpretSubtotalsAsDetails:
                    this.m_dataSetCore.InterpretSubtotalsAsDetails = (TriState)reader.ReadEnum();
                    break;

                case MemberName.HasSubReports:
                    this.m_hasSubReports = reader.ReadBoolean();
                    break;

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

                case MemberName.DataSource:
                    this.m_dataSource = reader.ReadReference <DataSource>(this);
                    break;

                case MemberName.Lookups:
                    this.m_lookups = reader.ReadGenericListOfRIFObjects <LookupInfo>();
                    break;

                case MemberName.LookupDestinations:
                    this.m_lookupDestinationInfos = reader.ReadGenericListOfRIFObjects <LookupDestinationInfo>();
                    break;

                case MemberName.DataSetCore:
                    this.m_dataSetCore = (DataSetCore)reader.ReadRIFObject();
                    break;

                case MemberName.AllowIncrementalProcessing:
                    this.m_allowIncrementalProcessing = reader.ReadBoolean();
                    break;

                case MemberName.DefaultRelationships:
                    this.m_defaultRelationships = reader.ReadGenericListOfRIFObjects <DefaultRelationship>();
                    break;

                case MemberName.HasScopeWithCustomAggregates:
                    this.m_hasScopeWithCustomAggregates = reader.ReadBoolean();
                    break;

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