/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_CompRegister">The ATI_CompRegisterInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_CompRegister(ATI_CompRegisterInfo objATI_CompRegister)
 {
     if (objATI_CompRegister.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_CompRegister(objATI_CompRegister.ModuleId, objATI_CompRegister.Content, objATI_CompRegister.CreatedByUser);
     }
 }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_CompRegister">The ATI_CompRegisterInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_CompRegister(ATI_CompRegisterInfo objATI_CompRegister)
 {
     if (objATI_CompRegister.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_CompRegister(objATI_CompRegister.ModuleId, objATI_CompRegister.Content, objATI_CompRegister.CreatedByUser);
     }
 }
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlATI_CompRegisters = Globals.GetContent(Content, "ATI_CompRegisters");

            foreach (XmlNode xmlATI_CompRegister in xmlATI_CompRegisters.SelectNodes("ATI_CompRegister"))
            {
                ATI_CompRegisterInfo objATI_CompRegister = new ATI_CompRegisterInfo();

                objATI_CompRegister.ModuleId      = ModuleID;
                objATI_CompRegister.Content       = xmlATI_CompRegister.SelectSingleNode("content").InnerText;
                objATI_CompRegister.CreatedByUser = UserId;
                AddATI_CompRegister(objATI_CompRegister);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlATI_CompRegisters = Globals.GetContent(Content, "ATI_CompRegisters");

            foreach (XmlNode xmlATI_CompRegister in xmlATI_CompRegisters.SelectNodes("ATI_CompRegister"))
            {
                ATI_CompRegisterInfo objATI_CompRegister = new ATI_CompRegisterInfo();

                objATI_CompRegister.ModuleId = ModuleID;
                objATI_CompRegister.Content = xmlATI_CompRegister.SelectSingleNode("content").InnerText;
                objATI_CompRegister.CreatedByUser = UserId;
                AddATI_CompRegister(objATI_CompRegister);
            }
        }