Example #1
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.TableName = info.ReadString();
            int count = info.ReadInt32();
            Dictionary <string, FieldAddr> fieldAddrDic = new Dictionary <string, FieldAddr>(count);

            for (int i = 0; i < count; i++)
            {
                fieldAddrDic.Add(info.ReadString(), (FieldAddr)info.ReadObject());
            }
            if (fieldAddrDic != null)
            {
                this.ExtendedProperties.Add(TableProperty.FieldAddrDic, fieldAddrDic);
            }
            if (info.ReadBoolean())
            {
                this.ExtendedProperties.Add(TableProperty.IsVirtual, true);
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.Columns.Add((DataColumn)info.ReadObject());
            }
            count = info.ReadInt32();
            DataColumn[] pks = new DataColumn[count];
            for (int i = 0; i < count; i++)
            {
                pks[i] = this.Columns[info.ReadString()];
            }
            this.PrimaryKey = pks;
        }
Example #2
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.Version = info.ReadInt64();
            int count = info.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                this.RelationDlls.Add(info.ReadString(), (ProgIdRelationDll)info.ReadObject());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.DllVersions.Add(info.ReadString(), info.ReadInt64());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.VclMap.Add(info.ReadString(), info.ReadString());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.ViewMap.Add(info.ReadString(), info.ReadString());
            }
        }
Example #3
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.RelSource      = info.ReadString();
            this.TableIndex     = info.ReadInt32();
            this.RelPK          = info.ReadString();
            this.IsCheckSource  = info.ReadBoolean();
            this.GroupIndex     = info.ReadInt32();
            this.GroupCondation = info.ReadString();
            int count = info.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                this.RelFields.Add((RelField)info.ReadObject());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.SetValueFields.Add((SetValueField)info.ReadObject());
            }
            count = info.ReadInt32();
            for (int i = 0; i < count; i++)
            {
                this.SelConditions.Add((SelCondition)info.ReadObject());
            }
        }
Example #4
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this._ProgId = info.ReadString();
            int count = info.ReadInt32();

            if (count > 0)
            {
                _GridScheme = new Dictionary <int, LibGridScheme>(count);
                for (int i = 0; i < count; i++)
                {
                    _GridScheme.Add(info.ReadInt32(), (LibGridScheme)info.ReadObject());
                }
            }
        }
Example #5
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            int count = info.ReadInt32();

            for (int i = 0; i < count; i++)
            {
                this.Tables.Add((DataTable)info.ReadObject());
            }
        }
Example #6
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            int count = info.ReadInt32();

            if (count > 0)
            {
                _GridFields = new List <LibGridBandFieldScheme>(count);
                for (int i = 0; i < count; i++)
                {
                    _GridFields.Add((LibGridBandFieldScheme)info.ReadObject());
                }
            }
        }
Example #7
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.ColumnName = info.ReadString();
            this.MaxLength  = info.ReadInt32();
            this.ExtendedProperties.Add(FieldProperty.FieldType, (FieldType)info.ReadInt32());
            LibDataType libDataType = (LibDataType)info.ReadInt32();

            this.ExtendedProperties.Add(FieldProperty.DataType, libDataType);
            int count = info.ReadInt32();
            RelativeSourceCollection relColl = null;

            for (int i = 0; i < count; i++)
            {
                if (relColl == null)
                {
                    relColl = new RelativeSourceCollection();
                }
                relColl.Add((RelativeSource)info.ReadObject());
            }
            this.ExtendedProperties.Add(FieldProperty.RelativeSource, relColl);
            this.DataType = LibDataTypeConverter.ConvertType(libDataType);
        }
Example #8
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this._Header = info.ReadString();
            bool hasValue = info.ReadBoolean();

            if (hasValue)
            {
                this._Field = info.ReadObject() as LibGridFieldScheme;
            }
            int count = info.ReadInt32();

            if (count > 0)
            {
                _BandFields = new List <LibGridBandFieldScheme>(count);
                for (int i = 0; i < count; i++)
                {
                    _BandFields.Add((LibGridBandFieldScheme)info.ReadObject());
                }
            }
        }
Example #9
0
        public void ReadObjectData(LibSerializationInfo info)
        {
            this.FieldIndex     = info.ReadInt32();
            this.RelSourceIndex = info.ReadInt32();
            this.RelFieldIndex  = info.ReadInt32();
            int count = info.ReadInt32();

            if (count > 0)
            {
                this.GroupRelIndexs = new List <int[]>();

                for (int i = 0; i < count; i++)
                {
                    int length = info.ReadInt32();
                    //this.GroupRelIndexs[i] = new int[length];
                    this.GroupRelIndexs.Add(new int[length]);

                    for (int r = 0; r < length; r++)
                    {
                        this.GroupRelIndexs[i][r] = info.ReadInt32();
                    }
                }
            }
        }
Example #10
0
 public void ReadObjectData(LibSerializationInfo info)
 {
     this._Name  = info.ReadString();
     this._Width = info.ReadInt32();
 }