コード例 #1
0
 public GeneralSchedule(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 detailScheduleTypeNode = xmlNode.SelectSingleNode("detailScheduleType");
     
     if (detailScheduleTypeNode != null)
     {
         if (detailScheduleTypeNode.Attributes["href"] != null || detailScheduleTypeNode.Attributes["id"] != null) 
         {
             if (detailScheduleTypeNode.Attributes["id"] != null) 
             {
                 detailScheduleTypeIDRef_ = detailScheduleTypeNode.Attributes["id"].Value;
                 XsdTypeToken ob = new XsdTypeToken(detailScheduleTypeNode);
                 IDManager.SetID(detailScheduleTypeIDRef_, ob);
             }
             else if (detailScheduleTypeNode.Attributes["href"] != null)
             {
                 detailScheduleTypeIDRef_ = detailScheduleTypeNode.Attributes["href"].Value;
             }
             else
             {
                 detailScheduleType_ = new XsdTypeToken(detailScheduleTypeNode);
             }
         }
         else
         {
             detailScheduleType_ = new XsdTypeToken(detailScheduleTypeNode);
         }
     }
     
 
     XmlNode generalScheduleDeatilNode = xmlNode.SelectSingleNode("generalScheduleDeatil");
     
     if (generalScheduleDeatilNode != null)
     {
         if (generalScheduleDeatilNode.Attributes["href"] != null || generalScheduleDeatilNode.Attributes["id"] != null) 
         {
             if (generalScheduleDeatilNode.Attributes["id"] != null) 
             {
                 generalScheduleDeatilIDRef_ = generalScheduleDeatilNode.Attributes["id"].Value;
                 GeneralScheduleDeatil ob = new GeneralScheduleDeatil(generalScheduleDeatilNode);
                 IDManager.SetID(generalScheduleDeatilIDRef_, ob);
             }
             else if (generalScheduleDeatilNode.Attributes["href"] != null)
             {
                 generalScheduleDeatilIDRef_ = generalScheduleDeatilNode.Attributes["href"].Value;
             }
             else
             {
                 generalScheduleDeatil_ = new GeneralScheduleDeatil(generalScheduleDeatilNode);
             }
         }
         else
         {
             generalScheduleDeatil_ = new GeneralScheduleDeatil(generalScheduleDeatilNode);
         }
     }
     
 
 }
コード例 #2
0
        public GeneralSchedule(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 detailScheduleTypeNode = xmlNode.SelectSingleNode("detailScheduleType");

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


            XmlNode generalScheduleDeatilNode = xmlNode.SelectSingleNode("generalScheduleDeatil");

            if (generalScheduleDeatilNode != null)
            {
                if (generalScheduleDeatilNode.Attributes["href"] != null || generalScheduleDeatilNode.Attributes["id"] != null)
                {
                    if (generalScheduleDeatilNode.Attributes["id"] != null)
                    {
                        generalScheduleDeatilIDRef_ = generalScheduleDeatilNode.Attributes["id"].Value;
                        GeneralScheduleDeatil ob = new GeneralScheduleDeatil(generalScheduleDeatilNode);
                        IDManager.SetID(generalScheduleDeatilIDRef_, ob);
                    }
                    else if (generalScheduleDeatilNode.Attributes["href"] != null)
                    {
                        generalScheduleDeatilIDRef_ = generalScheduleDeatilNode.Attributes["href"].Value;
                    }
                    else
                    {
                        generalScheduleDeatil_ = new GeneralScheduleDeatil(generalScheduleDeatilNode);
                    }
                }
                else
                {
                    generalScheduleDeatil_ = new GeneralScheduleDeatil(generalScheduleDeatilNode);
                }
            }
        }