Пример #1
0
 public EEPParameters(XmlNode xmlNode)
 {
     XmlNodeList eEPApplicableNodeList = xmlNode.SelectNodes("eEPApplicable");
     if (eEPApplicableNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in eEPApplicableNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 eEPApplicableIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(eEPApplicableIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 eEPApplicableIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 eEPApplicable = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList riskPeriodNodeList = xmlNode.SelectNodes("riskPeriod");
     if (riskPeriodNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in riskPeriodNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 riskPeriodIDRef = item.Attributes["id"].Name;
                 EEPRiskPeriod ob = EEPRiskPeriod();
                 IDManager.SetID(riskPeriodIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 riskPeriodIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 riskPeriod = new EEPRiskPeriod(item);
             }
         }
     }
     
 
     XmlNodeList equivalentApplicableNodeList = xmlNode.SelectNodes("equivalentApplicable");
     if (equivalentApplicableNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in equivalentApplicableNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 equivalentApplicableIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(equivalentApplicableIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 equivalentApplicableIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 equivalentApplicable = new XsdTypeBoolean(item);
             }
         }
     }
     
 
     XmlNodeList penaltyApplicableNodeList = xmlNode.SelectNodes("penaltyApplicable");
     if (penaltyApplicableNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in penaltyApplicableNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 penaltyApplicableIDRef = item.Attributes["id"].Name;
                 XsdTypeBoolean ob = XsdTypeBoolean();
                 IDManager.SetID(penaltyApplicableIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 penaltyApplicableIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 penaltyApplicable = new XsdTypeBoolean(item);
             }
         }
     }
     
 
 }
Пример #2
0
        public EEPParameters(XmlNode xmlNode)
        {
            XmlNode eEPApplicableNode = xmlNode.SelectSingleNode("eEPApplicable");

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


            XmlNode riskPeriodNode = xmlNode.SelectSingleNode("riskPeriod");

            if (riskPeriodNode != null)
            {
                if (riskPeriodNode.Attributes["href"] != null || riskPeriodNode.Attributes["id"] != null)
                {
                    if (riskPeriodNode.Attributes["id"] != null)
                    {
                        riskPeriodIDRef_ = riskPeriodNode.Attributes["id"].Value;
                        EEPRiskPeriod ob = new EEPRiskPeriod(riskPeriodNode);
                        IDManager.SetID(riskPeriodIDRef_, ob);
                    }
                    else if (riskPeriodNode.Attributes["href"] != null)
                    {
                        riskPeriodIDRef_ = riskPeriodNode.Attributes["href"].Value;
                    }
                    else
                    {
                        riskPeriod_ = new EEPRiskPeriod(riskPeriodNode);
                    }
                }
                else
                {
                    riskPeriod_ = new EEPRiskPeriod(riskPeriodNode);
                }
            }


            XmlNode equivalentApplicableNode = xmlNode.SelectSingleNode("equivalentApplicable");

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


            XmlNode penaltyApplicableNode = xmlNode.SelectSingleNode("penaltyApplicable");

            if (penaltyApplicableNode != null)
            {
                if (penaltyApplicableNode.Attributes["href"] != null || penaltyApplicableNode.Attributes["id"] != null)
                {
                    if (penaltyApplicableNode.Attributes["id"] != null)
                    {
                        penaltyApplicableIDRef_ = penaltyApplicableNode.Attributes["id"].Value;
                        XsdTypeBoolean ob = new XsdTypeBoolean(penaltyApplicableNode);
                        IDManager.SetID(penaltyApplicableIDRef_, ob);
                    }
                    else if (penaltyApplicableNode.Attributes["href"] != null)
                    {
                        penaltyApplicableIDRef_ = penaltyApplicableNode.Attributes["href"].Value;
                    }
                    else
                    {
                        penaltyApplicable_ = new XsdTypeBoolean(penaltyApplicableNode);
                    }
                }
                else
                {
                    penaltyApplicable_ = new XsdTypeBoolean(penaltyApplicableNode);
                }
            }
        }
 public EEPParameters(XmlNode xmlNode)
 {
     XmlNode eEPApplicableNode = xmlNode.SelectSingleNode("eEPApplicable");
     
     if (eEPApplicableNode != null)
     {
         if (eEPApplicableNode.Attributes["href"] != null || eEPApplicableNode.Attributes["id"] != null) 
         {
             if (eEPApplicableNode.Attributes["id"] != null) 
             {
                 eEPApplicableIDRef_ = eEPApplicableNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(eEPApplicableNode);
                 IDManager.SetID(eEPApplicableIDRef_, ob);
             }
             else if (eEPApplicableNode.Attributes["href"] != null)
             {
                 eEPApplicableIDRef_ = eEPApplicableNode.Attributes["href"].Value;
             }
             else
             {
                 eEPApplicable_ = new XsdTypeBoolean(eEPApplicableNode);
             }
         }
         else
         {
             eEPApplicable_ = new XsdTypeBoolean(eEPApplicableNode);
         }
     }
     
 
     XmlNode riskPeriodNode = xmlNode.SelectSingleNode("riskPeriod");
     
     if (riskPeriodNode != null)
     {
         if (riskPeriodNode.Attributes["href"] != null || riskPeriodNode.Attributes["id"] != null) 
         {
             if (riskPeriodNode.Attributes["id"] != null) 
             {
                 riskPeriodIDRef_ = riskPeriodNode.Attributes["id"].Value;
                 EEPRiskPeriod ob = new EEPRiskPeriod(riskPeriodNode);
                 IDManager.SetID(riskPeriodIDRef_, ob);
             }
             else if (riskPeriodNode.Attributes["href"] != null)
             {
                 riskPeriodIDRef_ = riskPeriodNode.Attributes["href"].Value;
             }
             else
             {
                 riskPeriod_ = new EEPRiskPeriod(riskPeriodNode);
             }
         }
         else
         {
             riskPeriod_ = new EEPRiskPeriod(riskPeriodNode);
         }
     }
     
 
     XmlNode equivalentApplicableNode = xmlNode.SelectSingleNode("equivalentApplicable");
     
     if (equivalentApplicableNode != null)
     {
         if (equivalentApplicableNode.Attributes["href"] != null || equivalentApplicableNode.Attributes["id"] != null) 
         {
             if (equivalentApplicableNode.Attributes["id"] != null) 
             {
                 equivalentApplicableIDRef_ = equivalentApplicableNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(equivalentApplicableNode);
                 IDManager.SetID(equivalentApplicableIDRef_, ob);
             }
             else if (equivalentApplicableNode.Attributes["href"] != null)
             {
                 equivalentApplicableIDRef_ = equivalentApplicableNode.Attributes["href"].Value;
             }
             else
             {
                 equivalentApplicable_ = new XsdTypeBoolean(equivalentApplicableNode);
             }
         }
         else
         {
             equivalentApplicable_ = new XsdTypeBoolean(equivalentApplicableNode);
         }
     }
     
 
     XmlNode penaltyApplicableNode = xmlNode.SelectSingleNode("penaltyApplicable");
     
     if (penaltyApplicableNode != null)
     {
         if (penaltyApplicableNode.Attributes["href"] != null || penaltyApplicableNode.Attributes["id"] != null) 
         {
             if (penaltyApplicableNode.Attributes["id"] != null) 
             {
                 penaltyApplicableIDRef_ = penaltyApplicableNode.Attributes["id"].Value;
                 XsdTypeBoolean ob = new XsdTypeBoolean(penaltyApplicableNode);
                 IDManager.SetID(penaltyApplicableIDRef_, ob);
             }
             else if (penaltyApplicableNode.Attributes["href"] != null)
             {
                 penaltyApplicableIDRef_ = penaltyApplicableNode.Attributes["href"].Value;
             }
             else
             {
                 penaltyApplicable_ = new XsdTypeBoolean(penaltyApplicableNode);
             }
         }
         else
         {
             penaltyApplicable_ = new XsdTypeBoolean(penaltyApplicableNode);
         }
     }
     
 
 }