public GeneralScheduleDeatil(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");
     
     if (eventDateNode != null)
     {
         if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null) 
         {
             if (eventDateNode.Attributes["id"] != null) 
             {
                 eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                 IDManager.SetID(eventDateIDRef_, ob);
             }
             else if (eventDateNode.Attributes["href"] != null)
             {
                 eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
             }
             else
             {
                 eventDate_ = new XsdTypeToken(eventDateNode);
             }
         }
         else
         {
             eventDate_ = new XsdTypeToken(eventDateNode);
         }
     }
     
 
     XmlNode typeNode = xmlNode.SelectSingleNode("type");
     
     if (typeNode != null)
     {
         if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null) 
         {
             if (typeNode.Attributes["id"] != null) 
             {
                 typeIDRef_ = typeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(typeNode);
                 IDManager.SetID(typeIDRef_, ob);
             }
             else if (typeNode.Attributes["href"] != null)
             {
                 typeIDRef_ = typeNode.Attributes["href"].Value;
             }
             else
             {
                 type_ = new XsdTypeToken(typeNode);
             }
         }
         else
         {
             type_ = new XsdTypeToken(typeNode);
         }
     }
     
 
     XmlNode general_scheduleDetail_fixedCouponNode = xmlNode.SelectSingleNode("general_scheduleDetail_fixedCoupon");
     
     if (general_scheduleDetail_fixedCouponNode != null)
     {
         if (general_scheduleDetail_fixedCouponNode.Attributes["href"] != null || general_scheduleDetail_fixedCouponNode.Attributes["id"] != null) 
         {
             if (general_scheduleDetail_fixedCouponNode.Attributes["id"] != null) 
             {
                 general_scheduleDetail_fixedCouponIDRef_ = general_scheduleDetail_fixedCouponNode.Attributes["id"].Value;
                 General_scheduleDetail_fixedCoupon ob = new General_scheduleDetail_fixedCoupon(general_scheduleDetail_fixedCouponNode);
                 IDManager.SetID(general_scheduleDetail_fixedCouponIDRef_, ob);
             }
             else if (general_scheduleDetail_fixedCouponNode.Attributes["href"] != null)
             {
                 general_scheduleDetail_fixedCouponIDRef_ = general_scheduleDetail_fixedCouponNode.Attributes["href"].Value;
             }
             else
             {
                 general_scheduleDetail_fixedCoupon_ = new General_scheduleDetail_fixedCoupon(general_scheduleDetail_fixedCouponNode);
             }
         }
         else
         {
             general_scheduleDetail_fixedCoupon_ = new General_scheduleDetail_fixedCoupon(general_scheduleDetail_fixedCouponNode);
         }
     }
     
 
     XmlNode general_scheduleDetail_fixedAmountNode = xmlNode.SelectSingleNode("general_scheduleDetail_fixedAmount");
     
     if (general_scheduleDetail_fixedAmountNode != null)
     {
         if (general_scheduleDetail_fixedAmountNode.Attributes["href"] != null || general_scheduleDetail_fixedAmountNode.Attributes["id"] != null) 
         {
             if (general_scheduleDetail_fixedAmountNode.Attributes["id"] != null) 
             {
                 general_scheduleDetail_fixedAmountIDRef_ = general_scheduleDetail_fixedAmountNode.Attributes["id"].Value;
                 General_scheduleDetail_fixedAmount ob = new General_scheduleDetail_fixedAmount(general_scheduleDetail_fixedAmountNode);
                 IDManager.SetID(general_scheduleDetail_fixedAmountIDRef_, ob);
             }
             else if (general_scheduleDetail_fixedAmountNode.Attributes["href"] != null)
             {
                 general_scheduleDetail_fixedAmountIDRef_ = general_scheduleDetail_fixedAmountNode.Attributes["href"].Value;
             }
             else
             {
                 general_scheduleDetail_fixedAmount_ = new General_scheduleDetail_fixedAmount(general_scheduleDetail_fixedAmountNode);
             }
         }
         else
         {
             general_scheduleDetail_fixedAmount_ = new General_scheduleDetail_fixedAmount(general_scheduleDetail_fixedAmountNode);
         }
     }
     
 
 }
Esempio n. 2
0
        public GeneralScheduleDeatil(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventDateNode = xmlNode.SelectSingleNode("eventDate");

            if (eventDateNode != null)
            {
                if (eventDateNode.Attributes["href"] != null || eventDateNode.Attributes["id"] != null)
                {
                    if (eventDateNode.Attributes["id"] != null)
                    {
                        eventDateIDRef_ = eventDateNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(eventDateNode);
                        IDManager.SetID(eventDateIDRef_, ob);
                    }
                    else if (eventDateNode.Attributes["href"] != null)
                    {
                        eventDateIDRef_ = eventDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventDate_ = new XsdTypeToken(eventDateNode);
                    }
                }
                else
                {
                    eventDate_ = new XsdTypeToken(eventDateNode);
                }
            }


            XmlNode typeNode = xmlNode.SelectSingleNode("type");

            if (typeNode != null)
            {
                if (typeNode.Attributes["href"] != null || typeNode.Attributes["id"] != null)
                {
                    if (typeNode.Attributes["id"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["id"].Value;
                        XsdTypeToken ob = new XsdTypeToken(typeNode);
                        IDManager.SetID(typeIDRef_, ob);
                    }
                    else if (typeNode.Attributes["href"] != null)
                    {
                        typeIDRef_ = typeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        type_ = new XsdTypeToken(typeNode);
                    }
                }
                else
                {
                    type_ = new XsdTypeToken(typeNode);
                }
            }


            XmlNode general_scheduleDetail_fixedCouponNode = xmlNode.SelectSingleNode("general_scheduleDetail_fixedCoupon");

            if (general_scheduleDetail_fixedCouponNode != null)
            {
                if (general_scheduleDetail_fixedCouponNode.Attributes["href"] != null || general_scheduleDetail_fixedCouponNode.Attributes["id"] != null)
                {
                    if (general_scheduleDetail_fixedCouponNode.Attributes["id"] != null)
                    {
                        general_scheduleDetail_fixedCouponIDRef_ = general_scheduleDetail_fixedCouponNode.Attributes["id"].Value;
                        General_scheduleDetail_fixedCoupon ob = new General_scheduleDetail_fixedCoupon(general_scheduleDetail_fixedCouponNode);
                        IDManager.SetID(general_scheduleDetail_fixedCouponIDRef_, ob);
                    }
                    else if (general_scheduleDetail_fixedCouponNode.Attributes["href"] != null)
                    {
                        general_scheduleDetail_fixedCouponIDRef_ = general_scheduleDetail_fixedCouponNode.Attributes["href"].Value;
                    }
                    else
                    {
                        general_scheduleDetail_fixedCoupon_ = new General_scheduleDetail_fixedCoupon(general_scheduleDetail_fixedCouponNode);
                    }
                }
                else
                {
                    general_scheduleDetail_fixedCoupon_ = new General_scheduleDetail_fixedCoupon(general_scheduleDetail_fixedCouponNode);
                }
            }


            XmlNode general_scheduleDetail_fixedAmountNode = xmlNode.SelectSingleNode("general_scheduleDetail_fixedAmount");

            if (general_scheduleDetail_fixedAmountNode != null)
            {
                if (general_scheduleDetail_fixedAmountNode.Attributes["href"] != null || general_scheduleDetail_fixedAmountNode.Attributes["id"] != null)
                {
                    if (general_scheduleDetail_fixedAmountNode.Attributes["id"] != null)
                    {
                        general_scheduleDetail_fixedAmountIDRef_ = general_scheduleDetail_fixedAmountNode.Attributes["id"].Value;
                        General_scheduleDetail_fixedAmount ob = new General_scheduleDetail_fixedAmount(general_scheduleDetail_fixedAmountNode);
                        IDManager.SetID(general_scheduleDetail_fixedAmountIDRef_, ob);
                    }
                    else if (general_scheduleDetail_fixedAmountNode.Attributes["href"] != null)
                    {
                        general_scheduleDetail_fixedAmountIDRef_ = general_scheduleDetail_fixedAmountNode.Attributes["href"].Value;
                    }
                    else
                    {
                        general_scheduleDetail_fixedAmount_ = new General_scheduleDetail_fixedAmount(general_scheduleDetail_fixedAmountNode);
                    }
                }
                else
                {
                    general_scheduleDetail_fixedAmount_ = new General_scheduleDetail_fixedAmount(general_scheduleDetail_fixedAmountNode);
                }
            }
        }