public OrEventCal(XmlNode xmlNode)
 : base(xmlNode)
 {
     XmlNode eventCalculationListNode = xmlNode.SelectSingleNode("eventCalculationList");
     
     if (eventCalculationListNode != null)
     {
         if (eventCalculationListNode.Attributes["href"] != null || eventCalculationListNode.Attributes["id"] != null) 
         {
             if (eventCalculationListNode.Attributes["id"] != null) 
             {
                 eventCalculationListIDRef_ = eventCalculationListNode.Attributes["id"].Value;
                 EventCalculationList ob = new EventCalculationList(eventCalculationListNode);
                 IDManager.SetID(eventCalculationListIDRef_, ob);
             }
             else if (eventCalculationListNode.Attributes["href"] != null)
             {
                 eventCalculationListIDRef_ = eventCalculationListNode.Attributes["href"].Value;
             }
             else
             {
                 eventCalculationList_ = new EventCalculationList(eventCalculationListNode);
             }
         }
         else
         {
             eventCalculationList_ = new EventCalculationList(eventCalculationListNode);
         }
     }
     
 
     XmlNode complementNode = xmlNode.SelectSingleNode("complement");
     
     if (complementNode != null)
     {
         if (complementNode.Attributes["href"] != null || complementNode.Attributes["id"] != null) 
         {
             if (complementNode.Attributes["id"] != null) 
             {
                 complementIDRef_ = complementNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(complementNode);
                 IDManager.SetID(complementIDRef_, ob);
             }
             else if (complementNode.Attributes["href"] != null)
             {
                 complementIDRef_ = complementNode.Attributes["href"].Value;
             }
             else
             {
                 complement_ = new XsdTypeBoolean(complementNode);
             }
         }
         else
         {
             complement_ = new XsdTypeBoolean(complementNode);
         }
     }
     
 
 }
예제 #2
0
        public AndEventCal(XmlNode xmlNode)
            : base(xmlNode)
        {
            XmlNode eventCalculationListNode = xmlNode.SelectSingleNode("eventCalculationList");

            if (eventCalculationListNode != null)
            {
                if (eventCalculationListNode.Attributes["href"] != null || eventCalculationListNode.Attributes["id"] != null)
                {
                    if (eventCalculationListNode.Attributes["id"] != null)
                    {
                        eventCalculationListIDRef_ = eventCalculationListNode.Attributes["id"].Value;
                        EventCalculationList ob = new EventCalculationList(eventCalculationListNode);
                        IDManager.SetID(eventCalculationListIDRef_, ob);
                    }
                    else if (eventCalculationListNode.Attributes["href"] != null)
                    {
                        eventCalculationListIDRef_ = eventCalculationListNode.Attributes["href"].Value;
                    }
                    else
                    {
                        eventCalculationList_ = new EventCalculationList(eventCalculationListNode);
                    }
                }
                else
                {
                    eventCalculationList_ = new EventCalculationList(eventCalculationListNode);
                }
            }


            XmlNode complementNode = xmlNode.SelectSingleNode("complement");

            if (complementNode != null)
            {
                if (complementNode.Attributes["href"] != null || complementNode.Attributes["id"] != null)
                {
                    if (complementNode.Attributes["id"] != null)
                    {
                        complementIDRef_ = complementNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(complementNode);
                        IDManager.SetID(complementIDRef_, ob);
                    }
                    else if (complementNode.Attributes["href"] != null)
                    {
                        complementIDRef_ = complementNode.Attributes["href"].Value;
                    }
                    else
                    {
                        complement_ = new XsdTypeBoolean(complementNode);
                    }
                }
                else
                {
                    complement_ = new XsdTypeBoolean(complementNode);
                }
            }
        }