public virtual void LoadStorageNode(IBxStorageNode node) { IBxStorageNode cfgNode = node.GetChildNode(BxStorageLable.nodeConfig); if (cfgNode != null) { GetUIConfigItemEx().LoadStorageNode(cfgNode); IBxStorageNode valueNode = node.GetChildNode(BxStorageLable.nodeValue); LoadElement(valueNode); } else { LoadElement(node); } }
public virtual void LoadStorageNode(IBxStorageNode node) { IBxStorageNode cfgNode = node.GetChildNode(BxStorageLable.nodeConfig); if (cfgNode == null) { return; } GetUIConfigItemEx().LoadStorageNode(cfgNode); }
public void Load(IBxStorageNode nodeSva) { _nodeSva = nodeSva; _nodeVS = null; _items = null; _tSaver = null; IBxStorageNode nodeTS = _nodeSva.GetChildNode(BxSSL.nodeTS); if (nodeTS != null) { _tSaver = new BxSvaTypeSaver(); _tSaver.Load(nodeTS); } _nodeVS = _nodeSva.GetChildNode(BxSSL.nodeVS); if (_nodeVS != null) { _items = new List <Item>(); IEnumerable <IBxStorageNode> childs = _nodeVS.ChildNodes; int index = 0; Item temp = null; string id = null; Type type = null; IBxReferableElement tempVal = null; foreach (IBxStorageNode one in childs) { temp = new Item(index, one); index++; _items.Add(temp); if (one.HasElement(BxSSL.elementTypeID)) { id = one.GetElementValue(BxSSL.elementTypeID); type = _tSaver.Get(id); tempVal = type.GetConstructor(null).Invoke(null) as IBxReferableElement; temp.Value = tempVal; } } } }
public override void LoadStorageNode(IBxStorageNode node) { base.LoadStorageNode(node); string id = node.GetElementValue(BxStorageLable.elementValueID); if (string.IsNullOrEmpty(id)) { IBxStorageNode valNode = node.GetChildNode(BxStorageLable.nodeValue); _value.LoadStorageNode(valNode); } else { node.Storage.SVA.LoadValue(_value, id); } }
public virtual void LoadStorageNode(IBxStorageNode node) { if (node.HasElement(BxXmlConfigField.id)) { _id = node.GetElementValue(BxXmlConfigField.id); } if (node.HasElement(BxXmlConfigField.name)) { Name = node.GetElementValue(BxXmlConfigField.name); } if (node.HasElement(BxXmlConfigField.flag)) { _flag.LoadFromString(node.GetElementValue(BxXmlConfigField.flag)); } if (node.HasElement(BxXmlConfigField.controlType)) { ControlType = Convert.ToInt32(node.GetElementValue(BxXmlConfigField.controlType)); } if (node.HasElement(BxXmlConfigField.unitCate)) { string s1 = node.GetElementValue(BxXmlConfigField.unitCate); string s2 = node.GetElementValue(BxXmlConfigField.unit); Unit = BxSystemInfo.Instance.UnitsCenter.EMFind(s1, s2); } if (node.HasElement(BxXmlConfigField.decimalDigits)) { _decimalDigits = Convert.ToInt32(node.GetElementValue(BxXmlConfigField.decimalDigits)); } if (node.HasElement(BxXmlConfigField.uiColumn)) { _column = node.GetElementValue(BxXmlConfigField.uiColumn); } if (node.HasElement(BxXmlConfigField.uiColumnID)) { _columnID = node.GetElementValue(BxXmlConfigField.uiColumnID); } if (node.HasElement(BxXmlConfigField.icon)) { _icon = node.GetElementValue(BxXmlConfigField.icon); } //差Range if (node.HasElement(BxXmlConfigField.menuWidth)) { _menuWidth = node.GetElementValue(BxXmlConfigField.menuWidth); } if (node.HasElement(BxXmlConfigField.HelpString)) { _helpString = node.GetElementValue(BxXmlConfigField.HelpString); } IBxStorageNode subc = node.GetChildNode("subc"); if (subc != null) { if (_subColumns != null) { _subColumns.LoadStorageNode(subc); } } }