public void SetDefaultValue(string value) { if (base.defaultValueField == null) { this.InitDefaultField(); } SingleCheckField defaultField = (SingleCheckField)base.defaultValueField; defaultField.SetValue(value); }
public void SetDefaultValueDO(Value value) { if (value == null) { return; } if (base.defaultValueField == null) { this.InitDefaultField(); } SingleCheckField defaultField = (SingleCheckField)base.defaultValueField; defaultField.SetValue(value); }
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); }
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); } }
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()); } }
public void SetSingleCheckFieldValue(string fieldId, Value value) { SingleCheckField field = new SingleCheckField(); field.Id = fieldId; field.SetValue(value); this.fieldMap[fieldId] = field; }