public PaymentDetail(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNodeList paymentDateNodeList = xmlNode.SelectNodes("paymentDate");
     if (paymentDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in paymentDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 paymentDateIDRef = item.Attributes["id"].Name;
                 AdjustableOrRelativeDate ob = AdjustableOrRelativeDate();
                 IDManager.SetID(paymentDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 paymentDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 paymentDate = new AdjustableOrRelativeDate(item);
             }
         }
     }
     
 
     XmlNodeList paymentAmountNodeList = xmlNode.SelectNodes("paymentAmount");
     if (paymentAmountNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in paymentAmountNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 paymentAmountIDRef = item.Attributes["id"].Name;
                 Money ob = Money();
                 IDManager.SetID(paymentAmountIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 paymentAmountIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 paymentAmount = new Money(item);
             }
         }
     }
     
 
     XmlNodeList paymentRuleNodeList = xmlNode.SelectNodes("paymentRule");
     if (paymentRuleNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in paymentRuleNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 paymentRuleIDRef = item.Attributes["id"].Name;
                 PaymentRule ob = PaymentRule();
                 IDManager.SetID(paymentRuleIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 paymentRuleIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 paymentRule = new PaymentRule(item);
             }
         }
     }
     
 
 }
 public PaymentDetail(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode paymentDateNode = xmlNode.SelectSingleNode("paymentDate");
     
     if (paymentDateNode != null)
     {
         if (paymentDateNode.Attributes["href"] != null || paymentDateNode.Attributes["id"] != null) 
         {
             if (paymentDateNode.Attributes["id"] != null) 
             {
                 paymentDateIDRef_ = paymentDateNode.Attributes["id"].Value;
                 AdjustableOrRelativeDate ob = new AdjustableOrRelativeDate(paymentDateNode);
                 IDManager.SetID(paymentDateIDRef_, ob);
             }
             else if (paymentDateNode.Attributes["href"] != null)
             {
                 paymentDateIDRef_ = paymentDateNode.Attributes["href"].Value;
             }
             else
             {
                 paymentDate_ = new AdjustableOrRelativeDate(paymentDateNode);
             }
         }
         else
         {
             paymentDate_ = new AdjustableOrRelativeDate(paymentDateNode);
         }
     }
     
 
     XmlNode paymentAmountNode = xmlNode.SelectSingleNode("paymentAmount");
     
     if (paymentAmountNode != null)
     {
         if (paymentAmountNode.Attributes["href"] != null || paymentAmountNode.Attributes["id"] != null) 
         {
             if (paymentAmountNode.Attributes["id"] != null) 
             {
                 paymentAmountIDRef_ = paymentAmountNode.Attributes["id"].Value;
                 Money ob = new Money(paymentAmountNode);
                 IDManager.SetID(paymentAmountIDRef_, ob);
             }
             else if (paymentAmountNode.Attributes["href"] != null)
             {
                 paymentAmountIDRef_ = paymentAmountNode.Attributes["href"].Value;
             }
             else
             {
                 paymentAmount_ = new Money(paymentAmountNode);
             }
         }
         else
         {
             paymentAmount_ = new Money(paymentAmountNode);
         }
     }
     
 
     XmlNode paymentRuleNode = xmlNode.SelectSingleNode("paymentRule");
     
     if (paymentRuleNode != null)
     {
         if (paymentRuleNode.Attributes["href"] != null || paymentRuleNode.Attributes["id"] != null) 
         {
             if (paymentRuleNode.Attributes["id"] != null) 
             {
                 paymentRuleIDRef_ = paymentRuleNode.Attributes["id"].Value;
                 PaymentRule ob = new PaymentRule(paymentRuleNode);
                 IDManager.SetID(paymentRuleIDRef_, ob);
             }
             else if (paymentRuleNode.Attributes["href"] != null)
             {
                 paymentRuleIDRef_ = paymentRuleNode.Attributes["href"].Value;
             }
             else
             {
                 paymentRule_ = new PaymentRule(paymentRuleNode);
             }
         }
         else
         {
             paymentRule_ = new PaymentRule(paymentRuleNode);
         }
     }
     
 
 }
        public PaymentDetail(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode paymentDateNode = xmlNode.SelectSingleNode("paymentDate");

            if (paymentDateNode != null)
            {
                if (paymentDateNode.Attributes["href"] != null || paymentDateNode.Attributes["id"] != null)
                {
                    if (paymentDateNode.Attributes["id"] != null)
                    {
                        paymentDateIDRef_ = paymentDateNode.Attributes["id"].Value;
                        AdjustableOrRelativeDate ob = new AdjustableOrRelativeDate(paymentDateNode);
                        IDManager.SetID(paymentDateIDRef_, ob);
                    }
                    else if (paymentDateNode.Attributes["href"] != null)
                    {
                        paymentDateIDRef_ = paymentDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        paymentDate_ = new AdjustableOrRelativeDate(paymentDateNode);
                    }
                }
                else
                {
                    paymentDate_ = new AdjustableOrRelativeDate(paymentDateNode);
                }
            }


            XmlNode paymentAmountNode = xmlNode.SelectSingleNode("paymentAmount");

            if (paymentAmountNode != null)
            {
                if (paymentAmountNode.Attributes["href"] != null || paymentAmountNode.Attributes["id"] != null)
                {
                    if (paymentAmountNode.Attributes["id"] != null)
                    {
                        paymentAmountIDRef_ = paymentAmountNode.Attributes["id"].Value;
                        Money ob = new Money(paymentAmountNode);
                        IDManager.SetID(paymentAmountIDRef_, ob);
                    }
                    else if (paymentAmountNode.Attributes["href"] != null)
                    {
                        paymentAmountIDRef_ = paymentAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        paymentAmount_ = new Money(paymentAmountNode);
                    }
                }
                else
                {
                    paymentAmount_ = new Money(paymentAmountNode);
                }
            }


            XmlNode paymentRuleNode = xmlNode.SelectSingleNode("paymentRule");

            if (paymentRuleNode != null)
            {
                if (paymentRuleNode.Attributes["href"] != null || paymentRuleNode.Attributes["id"] != null)
                {
                    if (paymentRuleNode.Attributes["id"] != null)
                    {
                        paymentRuleIDRef_ = paymentRuleNode.Attributes["id"].Value;
                        PaymentRule ob = new PaymentRule(paymentRuleNode);
                        IDManager.SetID(paymentRuleIDRef_, ob);
                    }
                    else if (paymentRuleNode.Attributes["href"] != null)
                    {
                        paymentRuleIDRef_ = paymentRuleNode.Attributes["href"].Value;
                    }
                    else
                    {
                        paymentRule_ = new PaymentRule(paymentRuleNode);
                    }
                }
                else
                {
                    paymentRule_ = new PaymentRule(paymentRuleNode);
                }
            }
        }
Example #4
0
        public PaymentDetail(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNodeList paymentDateNodeList = xmlNode.SelectNodes("paymentDate");

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

            foreach (XmlNode item in paymentDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        paymentDateIDRef = item.Attributes["id"].Name;
                        AdjustableOrRelativeDate ob = AdjustableOrRelativeDate();
                        IDManager.SetID(paymentDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        paymentDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        paymentDate = new AdjustableOrRelativeDate(item);
                    }
                }
            }


            XmlNodeList paymentAmountNodeList = xmlNode.SelectNodes("paymentAmount");

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

            foreach (XmlNode item in paymentAmountNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        paymentAmountIDRef = item.Attributes["id"].Name;
                        Money ob = Money();
                        IDManager.SetID(paymentAmountIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        paymentAmountIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        paymentAmount = new Money(item);
                    }
                }
            }


            XmlNodeList paymentRuleNodeList = xmlNode.SelectNodes("paymentRule");

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

            foreach (XmlNode item in paymentRuleNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        paymentRuleIDRef = item.Attributes["id"].Name;
                        PaymentRule ob = PaymentRule();
                        IDManager.SetID(paymentRuleIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        paymentRuleIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        paymentRule = new PaymentRule(item);
                    }
                }
            }
        }