コード例 #1
0
 public void SetReportParameters(string reportParametersXml)
 {
     this.m_reportParameters = RSRequestParameters.DeepXmlToNameValueCollection(reportParametersXml, "Parameters", "Parameter", "Name", "Value");
 }
コード例 #2
0
 public void ParseQueryString(NameValueCollection allParametersCollection, IParametersTranslator paramsTranslator, ExternalItemPath itemPath)
 {
     RSRequestParameters.ParseQueryString(itemPath, paramsTranslator, allParametersCollection, out this.m_catalogParameters, out this.m_renderingParameters, out this.m_reportParameters, out this.m_datasourcesCred, out this.m_reverseLookupParameters);
     this.ApplyDefaultRenderingParameters();
 }
コード例 #3
0
 public void SetRenderingParameters(string renderingParametersXml)
 {
     this.m_renderingParameters = RSRequestParameters.ShallowXmlToNameValueCollection(renderingParametersXml, "DeviceInfo");
     this.ApplyDefaultRenderingParameters();
 }
コード例 #4
0
        private static void ParseQueryString(ExternalItemPath itemPath, IParametersTranslator paramsTranslator, NameValueCollection allParametersCollection, out NameValueCollection rsParameters, out NameValueCollection rcParameters, out NameValueCollection reportParameters, out DatasourceCredentialsCollection dsParameters, out Hashtable reverseLookup)
        {
            dsParameters     = null;
            reverseLookup    = null;
            rsParameters     = new NameValueCollection();
            rcParameters     = new NameValueCollection();
            reportParameters = new NameValueCollection();
            NameValueCollection nameValueCollection  = new NameValueCollection();
            NameValueCollection nameValueCollection2 = new NameValueCollection();
            ExternalItemPath    externalItemPath     = null;

            if (allParametersCollection != null)
            {
                RSRequestParameters.ResolveServerParameters(paramsTranslator, allParametersCollection, rsParameters, rcParameters, nameValueCollection, nameValueCollection2, reportParameters, out reverseLookup, out externalItemPath);
                if (externalItemPath != null && Localization.CatalogCultureCompare(itemPath.Value, externalItemPath.Value) != 0)
                {
                    rsParameters         = new NameValueCollection();
                    rcParameters         = new NameValueCollection();
                    nameValueCollection  = new NameValueCollection();
                    nameValueCollection2 = new NameValueCollection();
                    reportParameters     = new NameValueCollection();
                    reverseLookup        = null;
                    if (RSTrace.CatalogTrace.TraceInfo)
                    {
                        string message = string.Format(CultureInfo.InvariantCulture, "Requested item path '{0}' doesn't match stored parameters path '{1}'.", itemPath.Value.MarkAsPrivate(), externalItemPath.Value.MarkAsPrivate());
                        RSTrace.CatalogTrace.Trace(TraceLevel.Info, message);
                    }
                }
                for (int i = 0; i < allParametersCollection.Count; i++)
                {
                    string   text  = allParametersCollection.GetKey(i);
                    string[] array = allParametersCollection.GetValues(i);
                    if (array != null && text != null)
                    {
                        if (StringSupport.EndsWith(text, ":isnull", true, CultureInfo.InvariantCulture))
                        {
                            text = text.Substring(0, text.Length - ":isnull".Length);
                            string[] array2 = new string[1];
                            array = array2;
                        }
                        if (!RSRequestParameters.TryToAddToCollection(text, array, "rs:", false, rsParameters) && !RSRequestParameters.TryToAddToCollection(text, array, "rc:", false, rcParameters) && !RSRequestParameters.TryToAddToCollection(text, array, "dsu:", false, nameValueCollection) && !RSRequestParameters.TryToAddToCollection(text, array, "dsp:", false, nameValueCollection2))
                        {
                            RSRequestParameters.TryToAddToCollection(text, array, "", true, reportParameters);
                        }
                    }
                }
                dsParameters = new DatasourceCredentialsCollection(nameValueCollection, nameValueCollection2);
            }
        }