Example #1
0
        public MasterAgreement(XmlNode xmlNode)
        {
            XmlNodeList masterAgreementTypeNodeList = xmlNode.SelectNodes("masterAgreementType");

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

            foreach (XmlNode item in masterAgreementTypeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterAgreementTypeIDRef = item.Attributes["id"].Name;
                        MasterAgreementType ob = MasterAgreementType();
                        IDManager.SetID(masterAgreementTypeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterAgreementTypeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterAgreementType = new MasterAgreementType(item);
                    }
                }
            }


            XmlNodeList masterAgreementVersionNodeList = xmlNode.SelectNodes("masterAgreementVersion");

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

            foreach (XmlNode item in masterAgreementVersionNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterAgreementVersionIDRef = item.Attributes["id"].Name;
                        MasterAgreementVersion ob = MasterAgreementVersion();
                        IDManager.SetID(masterAgreementVersionIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterAgreementVersionIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterAgreementVersion = new MasterAgreementVersion(item);
                    }
                }
            }


            XmlNodeList masterAgreementDateNodeList = xmlNode.SelectNodes("masterAgreementDate");

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

            foreach (XmlNode item in masterAgreementDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterAgreementDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(masterAgreementDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterAgreementDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterAgreementDate = new XsdTypeDate(item);
                    }
                }
            }
        }
 public MasterAgreement(XmlNode xmlNode)
 {
     XmlNodeList masterAgreementTypeNodeList = xmlNode.SelectNodes("masterAgreementType");
     if (masterAgreementTypeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterAgreementTypeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterAgreementTypeIDRef = item.Attributes["id"].Name;
                 MasterAgreementType ob = MasterAgreementType();
                 IDManager.SetID(masterAgreementTypeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterAgreementTypeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterAgreementType = new MasterAgreementType(item);
             }
         }
     }
     
 
     XmlNodeList masterAgreementVersionNodeList = xmlNode.SelectNodes("masterAgreementVersion");
     if (masterAgreementVersionNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterAgreementVersionNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterAgreementVersionIDRef = item.Attributes["id"].Name;
                 MasterAgreementVersion ob = MasterAgreementVersion();
                 IDManager.SetID(masterAgreementVersionIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterAgreementVersionIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterAgreementVersion = new MasterAgreementVersion(item);
             }
         }
     }
     
 
     XmlNodeList masterAgreementDateNodeList = xmlNode.SelectNodes("masterAgreementDate");
     if (masterAgreementDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterAgreementDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterAgreementDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(masterAgreementDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterAgreementDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterAgreementDate = new XsdTypeDate(item);
             }
         }
     }
     
 
 }
        public MasterAgreement(XmlNode xmlNode)
        {
            XmlNode masterAgreementTypeNode = xmlNode.SelectSingleNode("masterAgreementType");

            if (masterAgreementTypeNode != null)
            {
                if (masterAgreementTypeNode.Attributes["href"] != null || masterAgreementTypeNode.Attributes["id"] != null)
                {
                    if (masterAgreementTypeNode.Attributes["id"] != null)
                    {
                        masterAgreementTypeIDRef_ = masterAgreementTypeNode.Attributes["id"].Value;
                        MasterAgreementType ob = new MasterAgreementType(masterAgreementTypeNode);
                        IDManager.SetID(masterAgreementTypeIDRef_, ob);
                    }
                    else if (masterAgreementTypeNode.Attributes["href"] != null)
                    {
                        masterAgreementTypeIDRef_ = masterAgreementTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterAgreementType_ = new MasterAgreementType(masterAgreementTypeNode);
                    }
                }
                else
                {
                    masterAgreementType_ = new MasterAgreementType(masterAgreementTypeNode);
                }
            }


            XmlNode masterAgreementVersionNode = xmlNode.SelectSingleNode("masterAgreementVersion");

            if (masterAgreementVersionNode != null)
            {
                if (masterAgreementVersionNode.Attributes["href"] != null || masterAgreementVersionNode.Attributes["id"] != null)
                {
                    if (masterAgreementVersionNode.Attributes["id"] != null)
                    {
                        masterAgreementVersionIDRef_ = masterAgreementVersionNode.Attributes["id"].Value;
                        MasterAgreementVersion ob = new MasterAgreementVersion(masterAgreementVersionNode);
                        IDManager.SetID(masterAgreementVersionIDRef_, ob);
                    }
                    else if (masterAgreementVersionNode.Attributes["href"] != null)
                    {
                        masterAgreementVersionIDRef_ = masterAgreementVersionNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterAgreementVersion_ = new MasterAgreementVersion(masterAgreementVersionNode);
                    }
                }
                else
                {
                    masterAgreementVersion_ = new MasterAgreementVersion(masterAgreementVersionNode);
                }
            }


            XmlNode masterAgreementDateNode = xmlNode.SelectSingleNode("masterAgreementDate");

            if (masterAgreementDateNode != null)
            {
                if (masterAgreementDateNode.Attributes["href"] != null || masterAgreementDateNode.Attributes["id"] != null)
                {
                    if (masterAgreementDateNode.Attributes["id"] != null)
                    {
                        masterAgreementDateIDRef_ = masterAgreementDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(masterAgreementDateNode);
                        IDManager.SetID(masterAgreementDateIDRef_, ob);
                    }
                    else if (masterAgreementDateNode.Attributes["href"] != null)
                    {
                        masterAgreementDateIDRef_ = masterAgreementDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterAgreementDate_ = new XsdTypeDate(masterAgreementDateNode);
                    }
                }
                else
                {
                    masterAgreementDate_ = new XsdTypeDate(masterAgreementDateNode);
                }
            }
        }
 public MasterAgreement(XmlNode xmlNode)
 {
     XmlNode masterAgreementTypeNode = xmlNode.SelectSingleNode("masterAgreementType");
     
     if (masterAgreementTypeNode != null)
     {
         if (masterAgreementTypeNode.Attributes["href"] != null || masterAgreementTypeNode.Attributes["id"] != null) 
         {
             if (masterAgreementTypeNode.Attributes["id"] != null) 
             {
                 masterAgreementTypeIDRef_ = masterAgreementTypeNode.Attributes["id"].Value;
                 MasterAgreementType ob = new MasterAgreementType(masterAgreementTypeNode);
                 IDManager.SetID(masterAgreementTypeIDRef_, ob);
             }
             else if (masterAgreementTypeNode.Attributes["href"] != null)
             {
                 masterAgreementTypeIDRef_ = masterAgreementTypeNode.Attributes["href"].Value;
             }
             else
             {
                 masterAgreementType_ = new MasterAgreementType(masterAgreementTypeNode);
             }
         }
         else
         {
             masterAgreementType_ = new MasterAgreementType(masterAgreementTypeNode);
         }
     }
     
 
     XmlNode masterAgreementVersionNode = xmlNode.SelectSingleNode("masterAgreementVersion");
     
     if (masterAgreementVersionNode != null)
     {
         if (masterAgreementVersionNode.Attributes["href"] != null || masterAgreementVersionNode.Attributes["id"] != null) 
         {
             if (masterAgreementVersionNode.Attributes["id"] != null) 
             {
                 masterAgreementVersionIDRef_ = masterAgreementVersionNode.Attributes["id"].Value;
                 MasterAgreementVersion ob = new MasterAgreementVersion(masterAgreementVersionNode);
                 IDManager.SetID(masterAgreementVersionIDRef_, ob);
             }
             else if (masterAgreementVersionNode.Attributes["href"] != null)
             {
                 masterAgreementVersionIDRef_ = masterAgreementVersionNode.Attributes["href"].Value;
             }
             else
             {
                 masterAgreementVersion_ = new MasterAgreementVersion(masterAgreementVersionNode);
             }
         }
         else
         {
             masterAgreementVersion_ = new MasterAgreementVersion(masterAgreementVersionNode);
         }
     }
     
 
     XmlNode masterAgreementDateNode = xmlNode.SelectSingleNode("masterAgreementDate");
     
     if (masterAgreementDateNode != null)
     {
         if (masterAgreementDateNode.Attributes["href"] != null || masterAgreementDateNode.Attributes["id"] != null) 
         {
             if (masterAgreementDateNode.Attributes["id"] != null) 
             {
                 masterAgreementDateIDRef_ = masterAgreementDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(masterAgreementDateNode);
                 IDManager.SetID(masterAgreementDateIDRef_, ob);
             }
             else if (masterAgreementDateNode.Attributes["href"] != null)
             {
                 masterAgreementDateIDRef_ = masterAgreementDateNode.Attributes["href"].Value;
             }
             else
             {
                 masterAgreementDate_ = new XsdTypeDate(masterAgreementDateNode);
             }
         }
         else
         {
             masterAgreementDate_ = new XsdTypeDate(masterAgreementDateNode);
         }
     }
     
 
 }