示例#1
0
        void IPersistable.Deserialize(AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ParameterInfo.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Prompt:
                    this.m_prompt = reader.ReadString();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicPrompt:
                    this.m_dynamicPrompt = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.IsUserSupplied:
                    this.m_isUserSupplied = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Value:
                    this.m_values = reader.ReadVariantArray();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicValidValues:
                    this.m_dynamicValidValues = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DynamicDefaultValue:
                    this.m_dynamicDefaultValue = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DependencyList:
                    this.m_dependencyList = reader.ReadListOfRIFObjects <ParameterInfoCollection>();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.ValidValues:
                    this.m_validValues = reader.ReadListOfRIFObjects <ValidValueList>();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Label:
                    this.m_labels = reader.ReadStringArray();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DependencyIndexList:
                    this.m_dependencyIndexList = reader.ReadInt32Array();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
示例#2
0
        public void Deserialize(AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(ParameterBase.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DataType:
                    this.m_dataType = (DataType)reader.ReadEnum();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.Nullable:
                    this.m_nullable = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.UsedInQuery:
                    this.m_usedInQuery = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.AllowBlank:
                    this.m_allowBlank = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.MultiValue:
                    this.m_multiValue = reader.ReadBoolean();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.DefaultValue:
                    this.m_defaultValues = reader.ReadVariantArray();
                    break;

                case AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.MemberName.PromptUser:
                    this.m_promptUser = reader.ReadBoolean();
                    break;

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