예제 #1
0
        public void SetDefaultValue(string value)
        {
            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            SingleCheckField defaultField = (SingleCheckField)base.defaultValueField;

            defaultField.SetValue(value);
        }
예제 #2
0
        public void SetDefaultValueDO(Value value)
        {
            if (value == null)
            {
                return;
            }

            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            SingleCheckField defaultField = (SingleCheckField)base.defaultValueField;

            defaultField.SetValue(value);
        }
예제 #3
0
        public override XmlElement ToDefaultValueElement()
        {
            SingleCheckField defaultField = (SingleCheckField)base.defaultValueField;
            XmlElement       valueNode    = XmlUtils.CreateRootElement("default-value");
            Value            dvalue       = defaultField.GetValue();

            if (dvalue == null || StringUtil.IsEmpty(dvalue.PropertyValue))
            {
                return(null);
            }
            else
            {
                valueNode.InnerText = dvalue.PropertyValue;
            }
            return(valueNode);
        }
예제 #4
0
        public String GetDefaultValue()
        {
            if (base.defaultValueField == null)
            {
                this.InitDefaultField();
            }
            SingleCheckField defaultField = (SingleCheckField)base.defaultValueField;

            if (defaultField.value == null)
            {
                return(null);
            }
            else
            {
                return(defaultField.GetValue().PropertyValue);
            }
        }
예제 #5
0
        public Value GetDefaultValueDO()
        {
            if (base.defaultValueField == null)
            {
                //this.InitDefaultField();
                return(null);
            }
            SingleCheckField defaultField = (SingleCheckField)base.defaultValueField;

            if (defaultField.value == null)
            {
                return(null);
            }
            else
            {
                return(defaultField.GetValue());
            }
        }
예제 #6
0
 public void SetSingleCheckFieldValue(string fieldId, Value value)
 {
     SingleCheckField field = new SingleCheckField();
     field.Id = fieldId;
     field.SetValue(value);
     this.fieldMap[fieldId] = field;
 }