/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Messages">The ATI_MessagesInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Messages(ATI_MessagesInfo objATI_Messages)
 {
     if (objATI_Messages.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Messages(objATI_Messages.ModuleId, objATI_Messages.Content, objATI_Messages.CreatedByUser);
     }
 }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Messages">The ATI_MessagesInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Messages(ATI_MessagesInfo objATI_Messages)
 {
     if (objATI_Messages.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Messages(objATI_Messages.ModuleId, objATI_Messages.Content, objATI_Messages.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_Messagess = Globals.GetContent(Content, "ATI_Messagess");

            foreach (XmlNode xmlATI_Messages in xmlATI_Messagess.SelectNodes("ATI_Messages"))
            {
                ATI_MessagesInfo objATI_Messages = new ATI_MessagesInfo();

                objATI_Messages.ModuleId      = ModuleID;
                objATI_Messages.Content       = xmlATI_Messages.SelectSingleNode("content").InnerText;
                objATI_Messages.CreatedByUser = UserId;
                AddATI_Messages(objATI_Messages);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <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_Messagess = Globals.GetContent(Content, "ATI_Messagess");

            foreach (XmlNode xmlATI_Messages in xmlATI_Messagess.SelectNodes("ATI_Messages"))
            {
                ATI_MessagesInfo objATI_Messages = new ATI_MessagesInfo();

                objATI_Messages.ModuleId = ModuleID;
                objATI_Messages.Content = xmlATI_Messages.SelectSingleNode("content").InnerText;
                objATI_Messages.CreatedByUser = UserId;
                AddATI_Messages(objATI_Messages);
            }
        }