Пример #1
0
        public PriceSourceDisruption(XmlNode xmlNode)
        {
            XmlNode fallbackReferencePriceNode = xmlNode.SelectSingleNode("fallbackReferencePrice");

            if (fallbackReferencePriceNode != null)
            {
                if (fallbackReferencePriceNode.Attributes["href"] != null || fallbackReferencePriceNode.Attributes["id"] != null)
                {
                    if (fallbackReferencePriceNode.Attributes["id"] != null)
                    {
                        fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["id"].Value;
                        FallbackReferencePrice ob = new FallbackReferencePrice(fallbackReferencePriceNode);
                        IDManager.SetID(fallbackReferencePriceIDRef_, ob);
                    }
                    else if (fallbackReferencePriceNode.Attributes["href"] != null)
                    {
                        fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        fallbackReferencePrice_ = new FallbackReferencePrice(fallbackReferencePriceNode);
                    }
                }
                else
                {
                    fallbackReferencePrice_ = new FallbackReferencePrice(fallbackReferencePriceNode);
                }
            }
        }
 public PriceSourceDisruption(XmlNode xmlNode)
 {
     XmlNodeList fallbackReferencePriceNodeList = xmlNode.SelectNodes("fallbackReferencePrice");
     if (fallbackReferencePriceNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in fallbackReferencePriceNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 fallbackReferencePriceIDRef = item.Attributes["id"].Name;
                 FallbackReferencePrice ob = FallbackReferencePrice();
                 IDManager.SetID(fallbackReferencePriceIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 fallbackReferencePriceIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 fallbackReferencePrice = new FallbackReferencePrice(item);
             }
         }
     }
     
 
 }
Пример #3
0
        public PriceSourceDisruption(XmlNode xmlNode)
        {
            XmlNodeList fallbackReferencePriceNodeList = xmlNode.SelectNodes("fallbackReferencePrice");

            if (fallbackReferencePriceNodeList.Count > 1)
            {
                throw new Exception();
            }

            foreach (XmlNode item in fallbackReferencePriceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        fallbackReferencePriceIDRef = item.Attributes["id"].Name;
                        FallbackReferencePrice ob = FallbackReferencePrice();
                        IDManager.SetID(fallbackReferencePriceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        fallbackReferencePriceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        fallbackReferencePrice = new FallbackReferencePrice(item);
                    }
                }
            }
        }
 public PriceSourceDisruption(XmlNode xmlNode)
 {
     XmlNode fallbackReferencePriceNode = xmlNode.SelectSingleNode("fallbackReferencePrice");
     
     if (fallbackReferencePriceNode != null)
     {
         if (fallbackReferencePriceNode.Attributes["href"] != null || fallbackReferencePriceNode.Attributes["id"] != null) 
         {
             if (fallbackReferencePriceNode.Attributes["id"] != null) 
             {
                 fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["id"].Value;
                 FallbackReferencePrice ob = new FallbackReferencePrice(fallbackReferencePriceNode);
                 IDManager.SetID(fallbackReferencePriceIDRef_, ob);
             }
             else if (fallbackReferencePriceNode.Attributes["href"] != null)
             {
                 fallbackReferencePriceIDRef_ = fallbackReferencePriceNode.Attributes["href"].Value;
             }
             else
             {
                 fallbackReferencePrice_ = new FallbackReferencePrice(fallbackReferencePriceNode);
             }
         }
         else
         {
             fallbackReferencePrice_ = new FallbackReferencePrice(fallbackReferencePriceNode);
         }
     }
     
 
 }