示例#1
0
        public List <ComplexValue> GetDefaultComplexValues()
        {
            if (base.defaultValueField == null)
            {
                return(null);
            }
            MultiComplexField multiComplexField = (MultiComplexField)base.defaultValueField;

            return(multiComplexField.GetComplexValues());
        }
示例#2
0
        public override XmlElement ToDefaultValueElement()
        {
            if (this.defaultValueField == null)
            {
                return(null);
            }
            XmlElement        fieldNode         = XmlUtils.CreateRootElement("default-values");
            MultiComplexField multiComplexField = (MultiComplexField)this.defaultValueField;

            foreach (ComplexValue complexValue in multiComplexField.GetComplexValues())
            {
                XmlElement   complexValuesNode = XmlUtils.AppendElement(fieldNode, "default-complex-values");
                ComplexValue cValue            = complexValue;
                foreach (string keyFieldId in cValue.GetFieldKeySet())
                {
                    Field      field     = cValue.GetValueField(keyFieldId);
                    XmlElement valueNode = field.ToParamElement();
                    XmlUtils.AppendElement(complexValuesNode, valueNode);
                }
            }
            return(fieldNode);
        }