public Pricing(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode evaluationTimeNode = xmlNode.SelectSingleNode("evaluationTime");
     
     if (evaluationTimeNode != null)
     {
         if (evaluationTimeNode.Attributes["href"] != null || evaluationTimeNode.Attributes["id"] != null) 
         {
             if (evaluationTimeNode.Attributes["id"] != null) 
             {
                 evaluationTimeIDRef_ = evaluationTimeNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(evaluationTimeNode);
                 IDManager.SetID(evaluationTimeIDRef_, ob);
             }
             else if (evaluationTimeNode.Attributes["href"] != null)
             {
                 evaluationTimeIDRef_ = evaluationTimeNode.Attributes["href"].Value;
             }
             else
             {
                 evaluationTime_ = new XsdTypeDate(evaluationTimeNode);
             }
         }
         else
         {
             evaluationTime_ = new XsdTypeDate(evaluationTimeNode);
         }
     }
     
 
     XmlNode pricingParameterNode = xmlNode.SelectSingleNode("pricingParameter");
     
     if (pricingParameterNode != null)
     {
         if (pricingParameterNode.Attributes["href"] != null || pricingParameterNode.Attributes["id"] != null) 
         {
             if (pricingParameterNode.Attributes["id"] != null) 
             {
                 pricingParameterIDRef_ = pricingParameterNode.Attributes["id"].Value;
                 PricingParameter ob = new PricingParameter(pricingParameterNode);
                 IDManager.SetID(pricingParameterIDRef_, ob);
             }
             else if (pricingParameterNode.Attributes["href"] != null)
             {
                 pricingParameterIDRef_ = pricingParameterNode.Attributes["href"].Value;
             }
             else
             {
                 pricingParameter_ = new PricingParameter(pricingParameterNode);
             }
         }
         else
         {
             pricingParameter_ = new PricingParameter(pricingParameterNode);
         }
     }
     
 
     XmlNode pricingResultNode = xmlNode.SelectSingleNode("pricingResult");
     
     if (pricingResultNode != null)
     {
         if (pricingResultNode.Attributes["href"] != null || pricingResultNode.Attributes["id"] != null) 
         {
             if (pricingResultNode.Attributes["id"] != null) 
             {
                 pricingResultIDRef_ = pricingResultNode.Attributes["id"].Value;
                 PricingResult ob = new PricingResult(pricingResultNode);
                 IDManager.SetID(pricingResultIDRef_, ob);
             }
             else if (pricingResultNode.Attributes["href"] != null)
             {
                 pricingResultIDRef_ = pricingResultNode.Attributes["href"].Value;
             }
             else
             {
                 pricingResult_ = new PricingResult(pricingResultNode);
             }
         }
         else
         {
             pricingResult_ = new PricingResult(pricingResultNode);
         }
     }
     
 
 }
Ejemplo n.º 2
0
        public Pricing(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode evaluationTimeNode = xmlNode.SelectSingleNode("evaluationTime");

            if (evaluationTimeNode != null)
            {
                if (evaluationTimeNode.Attributes["href"] != null || evaluationTimeNode.Attributes["id"] != null)
                {
                    if (evaluationTimeNode.Attributes["id"] != null)
                    {
                        evaluationTimeIDRef_ = evaluationTimeNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(evaluationTimeNode);
                        IDManager.SetID(evaluationTimeIDRef_, ob);
                    }
                    else if (evaluationTimeNode.Attributes["href"] != null)
                    {
                        evaluationTimeIDRef_ = evaluationTimeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        evaluationTime_ = new XsdTypeDate(evaluationTimeNode);
                    }
                }
                else
                {
                    evaluationTime_ = new XsdTypeDate(evaluationTimeNode);
                }
            }


            XmlNode pricingParameterNode = xmlNode.SelectSingleNode("pricingParameter");

            if (pricingParameterNode != null)
            {
                if (pricingParameterNode.Attributes["href"] != null || pricingParameterNode.Attributes["id"] != null)
                {
                    if (pricingParameterNode.Attributes["id"] != null)
                    {
                        pricingParameterIDRef_ = pricingParameterNode.Attributes["id"].Value;
                        PricingParameter ob = new PricingParameter(pricingParameterNode);
                        IDManager.SetID(pricingParameterIDRef_, ob);
                    }
                    else if (pricingParameterNode.Attributes["href"] != null)
                    {
                        pricingParameterIDRef_ = pricingParameterNode.Attributes["href"].Value;
                    }
                    else
                    {
                        pricingParameter_ = new PricingParameter(pricingParameterNode);
                    }
                }
                else
                {
                    pricingParameter_ = new PricingParameter(pricingParameterNode);
                }
            }


            XmlNode pricingResultNode = xmlNode.SelectSingleNode("pricingResult");

            if (pricingResultNode != null)
            {
                if (pricingResultNode.Attributes["href"] != null || pricingResultNode.Attributes["id"] != null)
                {
                    if (pricingResultNode.Attributes["id"] != null)
                    {
                        pricingResultIDRef_ = pricingResultNode.Attributes["id"].Value;
                        PricingResult ob = new PricingResult(pricingResultNode);
                        IDManager.SetID(pricingResultIDRef_, ob);
                    }
                    else if (pricingResultNode.Attributes["href"] != null)
                    {
                        pricingResultIDRef_ = pricingResultNode.Attributes["href"].Value;
                    }
                    else
                    {
                        pricingResult_ = new PricingResult(pricingResultNode);
                    }
                }
                else
                {
                    pricingResult_ = new PricingResult(pricingResultNode);
                }
            }
        }