Ejemplo n.º 1
0
        public MasterConfirmation(XmlNode xmlNode)
        {
            XmlNodeList masterConfirmationTypeNodeList = xmlNode.SelectNodes("masterConfirmationType");

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

            foreach (XmlNode item in masterConfirmationTypeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterConfirmationTypeIDRef = item.Attributes["id"].Name;
                        MasterConfirmationType ob = MasterConfirmationType();
                        IDManager.SetID(masterConfirmationTypeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterConfirmationTypeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterConfirmationType = new MasterConfirmationType(item);
                    }
                }
            }


            XmlNodeList masterConfirmationDateNodeList = xmlNode.SelectNodes("masterConfirmationDate");

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

            foreach (XmlNode item in masterConfirmationDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterConfirmationDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(masterConfirmationDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterConfirmationDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterConfirmationDate = new XsdTypeDate(item);
                    }
                }
            }


            XmlNodeList masterConfirmationAnnexDateNodeList = xmlNode.SelectNodes("masterConfirmationAnnexDate");

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

            foreach (XmlNode item in masterConfirmationAnnexDateNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterConfirmationAnnexDateIDRef = item.Attributes["id"].Name;
                        XsdTypeDate ob = XsdTypeDate();
                        IDManager.SetID(masterConfirmationAnnexDateIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterConfirmationAnnexDateIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterConfirmationAnnexDate = new XsdTypeDate(item);
                    }
                }
            }


            XmlNodeList masterConfirmationAnnexTypeNodeList = xmlNode.SelectNodes("masterConfirmationAnnexType");

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

            foreach (XmlNode item in masterConfirmationAnnexTypeNodeList)
            {
                if (item.Attributes["href"] != null || item.Attributes["id"] == null)
                {
                    if (item.Attributes["id"] != null)
                    {
                        masterConfirmationAnnexTypeIDRef = item.Attributes["id"].Name;
                        MasterConfirmationAnnexType ob = MasterConfirmationAnnexType();
                        IDManager.SetID(masterConfirmationAnnexTypeIDRef, ob);
                    }
                    else if (item.Attributes.ToString() == "href")
                    {
                        masterConfirmationAnnexTypeIDRef = item.Attributes["href"].Name;
                    }
                    else
                    {
                        masterConfirmationAnnexType = new MasterConfirmationAnnexType(item);
                    }
                }
            }
        }
 public MasterConfirmation(XmlNode xmlNode)
 {
     XmlNode masterConfirmationTypeNode = xmlNode.SelectSingleNode("masterConfirmationType");
     
     if (masterConfirmationTypeNode != null)
     {
         if (masterConfirmationTypeNode.Attributes["href"] != null || masterConfirmationTypeNode.Attributes["id"] != null) 
         {
             if (masterConfirmationTypeNode.Attributes["id"] != null) 
             {
                 masterConfirmationTypeIDRef_ = masterConfirmationTypeNode.Attributes["id"].Value;
                 MasterConfirmationType ob = new MasterConfirmationType(masterConfirmationTypeNode);
                 IDManager.SetID(masterConfirmationTypeIDRef_, ob);
             }
             else if (masterConfirmationTypeNode.Attributes["href"] != null)
             {
                 masterConfirmationTypeIDRef_ = masterConfirmationTypeNode.Attributes["href"].Value;
             }
             else
             {
                 masterConfirmationType_ = new MasterConfirmationType(masterConfirmationTypeNode);
             }
         }
         else
         {
             masterConfirmationType_ = new MasterConfirmationType(masterConfirmationTypeNode);
         }
     }
     
 
     XmlNode masterConfirmationDateNode = xmlNode.SelectSingleNode("masterConfirmationDate");
     
     if (masterConfirmationDateNode != null)
     {
         if (masterConfirmationDateNode.Attributes["href"] != null || masterConfirmationDateNode.Attributes["id"] != null) 
         {
             if (masterConfirmationDateNode.Attributes["id"] != null) 
             {
                 masterConfirmationDateIDRef_ = masterConfirmationDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(masterConfirmationDateNode);
                 IDManager.SetID(masterConfirmationDateIDRef_, ob);
             }
             else if (masterConfirmationDateNode.Attributes["href"] != null)
             {
                 masterConfirmationDateIDRef_ = masterConfirmationDateNode.Attributes["href"].Value;
             }
             else
             {
                 masterConfirmationDate_ = new XsdTypeDate(masterConfirmationDateNode);
             }
         }
         else
         {
             masterConfirmationDate_ = new XsdTypeDate(masterConfirmationDateNode);
         }
     }
     
 
     XmlNode masterConfirmationAnnexDateNode = xmlNode.SelectSingleNode("masterConfirmationAnnexDate");
     
     if (masterConfirmationAnnexDateNode != null)
     {
         if (masterConfirmationAnnexDateNode.Attributes["href"] != null || masterConfirmationAnnexDateNode.Attributes["id"] != null) 
         {
             if (masterConfirmationAnnexDateNode.Attributes["id"] != null) 
             {
                 masterConfirmationAnnexDateIDRef_ = masterConfirmationAnnexDateNode.Attributes["id"].Value;
                 XsdTypeDate ob = new XsdTypeDate(masterConfirmationAnnexDateNode);
                 IDManager.SetID(masterConfirmationAnnexDateIDRef_, ob);
             }
             else if (masterConfirmationAnnexDateNode.Attributes["href"] != null)
             {
                 masterConfirmationAnnexDateIDRef_ = masterConfirmationAnnexDateNode.Attributes["href"].Value;
             }
             else
             {
                 masterConfirmationAnnexDate_ = new XsdTypeDate(masterConfirmationAnnexDateNode);
             }
         }
         else
         {
             masterConfirmationAnnexDate_ = new XsdTypeDate(masterConfirmationAnnexDateNode);
         }
     }
     
 
     XmlNode masterConfirmationAnnexTypeNode = xmlNode.SelectSingleNode("masterConfirmationAnnexType");
     
     if (masterConfirmationAnnexTypeNode != null)
     {
         if (masterConfirmationAnnexTypeNode.Attributes["href"] != null || masterConfirmationAnnexTypeNode.Attributes["id"] != null) 
         {
             if (masterConfirmationAnnexTypeNode.Attributes["id"] != null) 
             {
                 masterConfirmationAnnexTypeIDRef_ = masterConfirmationAnnexTypeNode.Attributes["id"].Value;
                 MasterConfirmationAnnexType ob = new MasterConfirmationAnnexType(masterConfirmationAnnexTypeNode);
                 IDManager.SetID(masterConfirmationAnnexTypeIDRef_, ob);
             }
             else if (masterConfirmationAnnexTypeNode.Attributes["href"] != null)
             {
                 masterConfirmationAnnexTypeIDRef_ = masterConfirmationAnnexTypeNode.Attributes["href"].Value;
             }
             else
             {
                 masterConfirmationAnnexType_ = new MasterConfirmationAnnexType(masterConfirmationAnnexTypeNode);
             }
         }
         else
         {
             masterConfirmationAnnexType_ = new MasterConfirmationAnnexType(masterConfirmationAnnexTypeNode);
         }
     }
     
 
 }
Ejemplo n.º 3
0
        public MasterConfirmation(XmlNode xmlNode)
        {
            XmlNode masterConfirmationTypeNode = xmlNode.SelectSingleNode("masterConfirmationType");

            if (masterConfirmationTypeNode != null)
            {
                if (masterConfirmationTypeNode.Attributes["href"] != null || masterConfirmationTypeNode.Attributes["id"] != null)
                {
                    if (masterConfirmationTypeNode.Attributes["id"] != null)
                    {
                        masterConfirmationTypeIDRef_ = masterConfirmationTypeNode.Attributes["id"].Value;
                        MasterConfirmationType ob = new MasterConfirmationType(masterConfirmationTypeNode);
                        IDManager.SetID(masterConfirmationTypeIDRef_, ob);
                    }
                    else if (masterConfirmationTypeNode.Attributes["href"] != null)
                    {
                        masterConfirmationTypeIDRef_ = masterConfirmationTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterConfirmationType_ = new MasterConfirmationType(masterConfirmationTypeNode);
                    }
                }
                else
                {
                    masterConfirmationType_ = new MasterConfirmationType(masterConfirmationTypeNode);
                }
            }


            XmlNode masterConfirmationDateNode = xmlNode.SelectSingleNode("masterConfirmationDate");

            if (masterConfirmationDateNode != null)
            {
                if (masterConfirmationDateNode.Attributes["href"] != null || masterConfirmationDateNode.Attributes["id"] != null)
                {
                    if (masterConfirmationDateNode.Attributes["id"] != null)
                    {
                        masterConfirmationDateIDRef_ = masterConfirmationDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(masterConfirmationDateNode);
                        IDManager.SetID(masterConfirmationDateIDRef_, ob);
                    }
                    else if (masterConfirmationDateNode.Attributes["href"] != null)
                    {
                        masterConfirmationDateIDRef_ = masterConfirmationDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterConfirmationDate_ = new XsdTypeDate(masterConfirmationDateNode);
                    }
                }
                else
                {
                    masterConfirmationDate_ = new XsdTypeDate(masterConfirmationDateNode);
                }
            }


            XmlNode masterConfirmationAnnexDateNode = xmlNode.SelectSingleNode("masterConfirmationAnnexDate");

            if (masterConfirmationAnnexDateNode != null)
            {
                if (masterConfirmationAnnexDateNode.Attributes["href"] != null || masterConfirmationAnnexDateNode.Attributes["id"] != null)
                {
                    if (masterConfirmationAnnexDateNode.Attributes["id"] != null)
                    {
                        masterConfirmationAnnexDateIDRef_ = masterConfirmationAnnexDateNode.Attributes["id"].Value;
                        XsdTypeDate ob = new XsdTypeDate(masterConfirmationAnnexDateNode);
                        IDManager.SetID(masterConfirmationAnnexDateIDRef_, ob);
                    }
                    else if (masterConfirmationAnnexDateNode.Attributes["href"] != null)
                    {
                        masterConfirmationAnnexDateIDRef_ = masterConfirmationAnnexDateNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterConfirmationAnnexDate_ = new XsdTypeDate(masterConfirmationAnnexDateNode);
                    }
                }
                else
                {
                    masterConfirmationAnnexDate_ = new XsdTypeDate(masterConfirmationAnnexDateNode);
                }
            }


            XmlNode masterConfirmationAnnexTypeNode = xmlNode.SelectSingleNode("masterConfirmationAnnexType");

            if (masterConfirmationAnnexTypeNode != null)
            {
                if (masterConfirmationAnnexTypeNode.Attributes["href"] != null || masterConfirmationAnnexTypeNode.Attributes["id"] != null)
                {
                    if (masterConfirmationAnnexTypeNode.Attributes["id"] != null)
                    {
                        masterConfirmationAnnexTypeIDRef_ = masterConfirmationAnnexTypeNode.Attributes["id"].Value;
                        MasterConfirmationAnnexType ob = new MasterConfirmationAnnexType(masterConfirmationAnnexTypeNode);
                        IDManager.SetID(masterConfirmationAnnexTypeIDRef_, ob);
                    }
                    else if (masterConfirmationAnnexTypeNode.Attributes["href"] != null)
                    {
                        masterConfirmationAnnexTypeIDRef_ = masterConfirmationAnnexTypeNode.Attributes["href"].Value;
                    }
                    else
                    {
                        masterConfirmationAnnexType_ = new MasterConfirmationAnnexType(masterConfirmationAnnexTypeNode);
                    }
                }
                else
                {
                    masterConfirmationAnnexType_ = new MasterConfirmationAnnexType(masterConfirmationAnnexTypeNode);
                }
            }
        }
 public MasterConfirmation(XmlNode xmlNode)
 {
     XmlNodeList masterConfirmationTypeNodeList = xmlNode.SelectNodes("masterConfirmationType");
     if (masterConfirmationTypeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterConfirmationTypeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterConfirmationTypeIDRef = item.Attributes["id"].Name;
                 MasterConfirmationType ob = MasterConfirmationType();
                 IDManager.SetID(masterConfirmationTypeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterConfirmationTypeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterConfirmationType = new MasterConfirmationType(item);
             }
         }
     }
     
 
     XmlNodeList masterConfirmationDateNodeList = xmlNode.SelectNodes("masterConfirmationDate");
     if (masterConfirmationDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterConfirmationDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterConfirmationDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(masterConfirmationDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterConfirmationDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterConfirmationDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList masterConfirmationAnnexDateNodeList = xmlNode.SelectNodes("masterConfirmationAnnexDate");
     if (masterConfirmationAnnexDateNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterConfirmationAnnexDateNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterConfirmationAnnexDateIDRef = item.Attributes["id"].Name;
                 XsdTypeDate ob = XsdTypeDate();
                 IDManager.SetID(masterConfirmationAnnexDateIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterConfirmationAnnexDateIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterConfirmationAnnexDate = new XsdTypeDate(item);
             }
         }
     }
     
 
     XmlNodeList masterConfirmationAnnexTypeNodeList = xmlNode.SelectNodes("masterConfirmationAnnexType");
     if (masterConfirmationAnnexTypeNodeList.Count > 1 )
     {
             throw new Exception();
     }
     
     foreach (XmlNode item in masterConfirmationAnnexTypeNodeList)
     {
         if (item.Attributes["href"] != null || item.Attributes["id"] == null) 
         {
             if (item.Attributes["id"] != null) 
             {
                 masterConfirmationAnnexTypeIDRef = item.Attributes["id"].Name;
                 MasterConfirmationAnnexType ob = MasterConfirmationAnnexType();
                 IDManager.SetID(masterConfirmationAnnexTypeIDRef, ob);
             }
             else if (item.Attributes.ToString() == "href")
             {
                 masterConfirmationAnnexTypeIDRef = item.Attributes["href"].Name;
             }
             else
             {
                 masterConfirmationAnnexType = new MasterConfirmationAnnexType(item);
             }
         }
     }
     
 
 }