/// <summary> /// To XML /// </summary> /// <returns></returns> public virtual XElement ToXML() { XElement xelem = new XElement(MasterDataUtils.XML_ENTITY); xelem.Add(new XAttribute(MasterDataUtils.XML_ID, _identity.ToString())); xelem.Add(new XAttribute(MasterDataUtils.XML_DESCP, _descp)); return(xelem); }
/// <summary> /// parse memory to XML /// </summary> /// <returns></returns> public override XElement ToXML() { XElement xelem = base.ToXML(); xelem.Add(new XAttribute(MasterDataUtils.XML_BANK_ACCOUNT, _accNumber.ToString())); xelem.Add(new XAttribute(MasterDataUtils.XML_BANK_KEY, _bankKey.ToString())); xelem.Add(new XAttribute(MasterDataUtils.XML_TYPE, ((char)_bankAccType).ToString())); return(xelem); }
/// <summary> /// Parse memory to xml /// </summary> /// <returns></returns> public override XElement ToXML() { XElement xelem = base.ToXML(); if (_bankAccount != null) { xelem.Add(new XAttribute(MasterDataUtils.XML_BANK_ACCOUNT , _bankAccount.ToString())); } xelem.Add(new XAttribute(MasterDataUtils.XML_INIT_AMOUNT , _initAmount.ToString())); return(xelem); }