void InitValidValues(XmlNode reportParameterNode, ReportParm repParm)
        {
            repParm.Valid = true;
            XmlNode vvsNode = _Draw.GetNamedChildNode(reportParameterNode, "ValidValues");

            if (vvsNode == null)
            {
                return;
            }

            XmlNode vNodes = _Draw.GetNamedChildNode(vvsNode, "ParameterValues");

            if (vNodes != null)
            {
                List <ParameterValueItem> pvs = new List <ParameterValueItem>();
                foreach (XmlNode v in vNodes.ChildNodes)
                {
                    if (v.Name != "ParameterValue")
                    {
                        continue;
                    }
                    XmlNode pv = _Draw.GetNamedChildNode(v, "Value");
                    if (pv == null)
                    {
                        continue;
                    }
                    if (pv == null || pv.InnerText.Length <= 0)
                    {
                        continue;
                    }
                    ParameterValueItem pvi = new ParameterValueItem();
                    pvi.Value = pv.InnerText;
                    pvi.Label = _Draw.GetElementValue(v, "Label", null);
                    pvs.Add(pvi);
                }
                if (pvs.Count > 0)
                {
                    repParm.ValidValues = pvs;
                }
            }
            XmlNode dsNodes = _Draw.GetNamedChildNode(vvsNode, "DataSetReference");

            if (dsNodes != null)
            {
                repParm.Valid = false;
                repParm.ValidValuesDSRDataSetName = _Draw.GetElementValue(dsNodes, "DataSetName", "");
                repParm.ValidValuesDSRValueField  = _Draw.GetElementValue(dsNodes, "ValueField", "");
                repParm.ValidValuesDSRLabelField  = _Draw.GetElementValue(dsNodes, "LabelField", "");
            }
        }
        void InitValidValues(XmlNode reportParameterNode, ReportParm repParm)
        {
            repParm.Valid = true;
            XmlNode vvsNode = _Draw.GetNamedChildNode(reportParameterNode, "ValidValues");
            if (vvsNode == null)
                return;

            XmlNode vNodes = _Draw.GetNamedChildNode(vvsNode, "ParameterValues");
            if (vNodes != null)
            {
                List<ParameterValueItem> pvs = new List<ParameterValueItem>();
                foreach (XmlNode v in vNodes.ChildNodes)
                {
                    if (v.Name != "ParameterValue")
                        continue;
                    XmlNode pv = _Draw.GetNamedChildNode(v, "Value");
                    if (pv == null)
                        continue;
                    if (pv == null || pv.InnerText.Length <= 0)
                        continue;
                    ParameterValueItem pvi = new ParameterValueItem();
                    pvi.Value = pv.InnerText;
                    pvi.Label = _Draw.GetElementValue(v, "Label", null);
                    pvs.Add(pvi);
                }
                if (pvs.Count > 0)
                {
                    repParm.ValidValues = pvs;
                }
            }
            XmlNode dsNodes = _Draw.GetNamedChildNode(vvsNode, "DataSetReference");
            if (dsNodes != null)
            {
                repParm.Valid = false;
                repParm.ValidValuesDSRDataSetName = _Draw.GetElementValue(dsNodes, "DataSetName", "");
                repParm.ValidValuesDSRValueField = _Draw.GetElementValue(dsNodes, "ValueField", "");
                repParm.ValidValuesDSRLabelField = _Draw.GetElementValue(dsNodes, "LabelField", "");
            }
        }