Exemplo n.º 1
0
        public VarianceAmount(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList varianceNodeList = xmlNode.SelectNodes("variance");

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

            foreach (XmlNode item in varianceNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        varianceIDRef = item.Attributes["id"].Name;
                        Variance ob = Variance();
                        IDManager.SetID(varianceIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        varianceIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        variance = new Variance(item);
                    }
                }
            }
        }
 public VarianceAmount(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode varianceNode = xmlNode.SelectSingleNode("variance");
     
     if (varianceNode != null)
     {
         if (varianceNode.Attributes["href"] != null || varianceNode.Attributes["id"] != null) 
         {
             if (varianceNode.Attributes["id"] != null) 
             {
                 varianceIDRef_ = varianceNode.Attributes["id"].Value;
                 Variance ob = new Variance(varianceNode);
                 IDManager.SetID(varianceIDRef_, ob);
             }
             else if (varianceNode.Attributes["href"] != null)
             {
                 varianceIDRef_ = varianceNode.Attributes["href"].Value;
             }
             else
             {
                 variance_ = new Variance(varianceNode);
             }
         }
         else
         {
             variance_ = new Variance(varianceNode);
         }
     }
     
 
 }
Exemplo n.º 3
0
        public VarianceAmount(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode varianceNode = xmlNode.SelectSingleNode("variance");

            if (varianceNode != null)
            {
                if (varianceNode.Attributes["href"] != null || varianceNode.Attributes["id"] != null)
                {
                    if (varianceNode.Attributes["id"] != null)
                    {
                        varianceIDRef_ = varianceNode.Attributes["id"].Value;
                        Variance ob = new Variance(varianceNode);
                        IDManager.SetID(varianceIDRef_, ob);
                    }
                    else if (varianceNode.Attributes["href"] != null)
                    {
                        varianceIDRef_ = varianceNode.Attributes["href"].Value;
                    }
                    else
                    {
                        variance_ = new Variance(varianceNode);
                    }
                }
                else
                {
                    variance_ = new Variance(varianceNode);
                }
            }
        }