public virtual void SaveStorageNode(IBxStorageNode node) { if ((_config != null) && _config.NeedSave()) { IBxStorageNode cfgNode = node.CreateChildNode(BxStorageLable.nodeConfig); _config.SaveStorageNode(cfgNode); IBxStorageNode valueNode = node.CreateChildNode(BxStorageLable.nodeValue); SaveElement(valueNode); } else { SaveElement(node); } }
public void New(IBxStorageNode nodeSva) { _nodeSva = nodeSva; _nodeVS = _nodeSva.CreateChildNode(BxSSL.nodeVS); _items = new List <Item>(); _tSaver = null; }
public virtual void SaveStorageNode(IBxStorageNode node) { if ((_config != null) && _config.NeedSave()) { IBxStorageNode cfgNode = node.CreateChildNode(BxStorageLable.nodeConfig); _config.SaveStorageNode(cfgNode); } }
public override void SaveStorageNode(IBxStorageNode node) { IEnumerable <IBxElementSite> elements = ChildSites; IBxStorageNode subNode; foreach (IBxElementSite one in elements) { if (one is IBxPersistStorageNode) { subNode = node.CreateChildNode(BxStorageLable.nodeEle); (one as IBxPersistStorageNode).SaveStorageNode(subNode); } } }
public void Save(IBxStorageNode node) { node.SetElement(BxSSL.elementValue, _ass.FullName); IBxStorageNode childNode = null; int index = 0; foreach (Type one in _types) { childNode = node.CreateChildNode(BxSSL.nodeItem + index.ToString()); childNode.SetElement(BxSSL.elementValue, one.FullName); index++; } }
public override void SaveStorageNode(IBxStorageNode node) { base.SaveStorageNode(node); if (_value.HasReferer) { string id = node.Storage.SVA.SaveValue(_value); node.SetElement(BxStorageLable.elementValueID, id); } else { IBxStorageNode valNode = node.CreateChildNode(BxStorageLable.nodeValue); _value.SaveStorageNode(valNode); } }
public void Save(IBxStorageNode node) { if (_assList == null) { return; } IBxStorageNode assNode = null; foreach (BxAssembly one in _assList) { assNode = node.CreateChildNode(BxSSL.nodeAss + one.Index.ToString()); one.Save(assNode); } }
public void SaveStorageNode(IBxStorageNode node) { FieldInfo[] fields = this.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); IBxStorageNode subNode; foreach (FieldInfo one in fields) { if (one.GetCustomAttributes(typeof(BxCarrierElement), false).Length > -1) { IBxPersistStorageNode ele = one.GetValue(this) as IBxPersistStorageNode; subNode = node.CreateChildNode(BxStorageLable.nodeEle); ele.SaveStorageNode(subNode); } } }
public override void SaveStorageNode(IBxStorageNode node) { IEnumerable <IBxElementSite> elements = ChildSites; int index = 0; string sNodeName; foreach (IBxElementSite one in elements) { if (one is IBxPersistStorageNode) { sNodeName = BxStorageLable.nodeArrayElement + index.ToString(); (one as IBxPersistStorageNode).SaveStorageNode(node.CreateChildNode(sNodeName)); index++; } } node.SetElement(BxStorageLable.elementCount, index.ToString()); }
public void SaveStorageNode(IBxStorageNode node) { if (_columns != null) { IBxStorageNode temp; int index = 0; foreach (BxMutiColumn one in _columns) { if (one.NeedSave) { temp = node.CreateChildNode("Item" + index.ToString()); one.SaveStorageNode(temp); } index++; } } }
public virtual void SaveStorageNode(IBxStorageNode node) { if (!string.IsNullOrEmpty(_id)) { node.SetElement(BxXmlConfigField.id, _id); } if (!string.IsNullOrEmpty(_name)) { node.SetElement(BxXmlConfigField.name, Name); } if (_flag != null) { node.SetElement(BxXmlConfigField.flag, _flag.SaveToString()); } if (_controlType != null) { node.SetElement(BxXmlConfigField.controlType, string.Format("{0}", ControlType)); } if (Unit != null) { node.SetElement(BxXmlConfigField.unitCate, Unit.Category.Code); node.SetElement(BxXmlConfigField.unit, Unit.Code); } if (_decimalDigits != -1) { node.SetElement(BxXmlConfigField.decimalDigits, string.Format("{0}", _decimalDigits)); } if (!string.IsNullOrEmpty(_column)) { node.SetElement(BxXmlConfigField.uiColumn, _column); } if (!string.IsNullOrEmpty(_column)) { node.SetElement(BxXmlConfigField.uiColumnID, _columnID); } if (!string.IsNullOrEmpty(_icon)) { node.SetElement(BxXmlConfigField.icon, _icon); } //差Range if (!string.IsNullOrEmpty(_menuWidth)) { node.SetElement(BxXmlConfigField.menuWidth, _menuWidth); } if (!string.IsNullOrEmpty(_helpString)) { node.SetElement(BxXmlConfigField.HelpString, _helpString); } if (_subColumns != null) { _subColumns.SaveStorageNode(node.CreateChildNode("subc")); } }