Beispiel #1
0
        public void Save(XmlElement elem)
        {
            XmlElement defaultElem = elem.OwnerDocument.CreateElement("defaultfee");

            elem.AppendChild(defaultElem);
            defaultFee.Save(defaultElem);

            XmlElement varietyElem = elem.OwnerDocument.CreateElement("varietyfee");

            elem.AppendChild(varietyElem);
            foreach (string code in varieties)
            {
                XmlElement feeElem = varietyElem.OwnerDocument.CreateElement("fee");
                varietyElem.AppendChild(feeElem);
                TradeFee_Code tradeFee = dic_Variety_Fee[code];
                tradeFee.Save(feeElem);
            }

            XmlElement codeElem = elem.OwnerDocument.CreateElement("codefee");

            elem.AppendChild(codeElem);
            foreach (string code in codes)
            {
                XmlElement feeElem = varietyElem.OwnerDocument.CreateElement("fee");
                codeElem.AppendChild(feeElem);
                TradeFee_Code tradeFee = dic_Code_Fee[code];
                tradeFee.Save(feeElem);
            }
        }
Beispiel #2
0
 public void Save(XmlElement elem)
 {
     foreach (string code in mapFee.Keys)
     {
         XmlElement subElem = elem.OwnerDocument.CreateElement("tradefee");
         elem.AppendChild(subElem);
         TradeFee_Code tradeFee = mapFee[code];
         tradeFee.Save(subElem);
     }
 }
Beispiel #3
0
 public void Save(List <string> codes, XmlElement xmlElem)
 {
     foreach (string code in codes)
     {
         XmlElement subElem = xmlElem.OwnerDocument.CreateElement("tradefee");
         xmlElem.AppendChild(subElem);
         TradeFee_Code tradeFee = mapFee[code];
         tradeFee.Save(subElem);
     }
 }