Exemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Redirect">The ATI_RedirectInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Redirect(ATI_RedirectInfo objATI_Redirect)
 {
     if (objATI_Redirect.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Redirect(objATI_Redirect.ModuleId, objATI_Redirect.Content, objATI_Redirect.CreatedByUser);
     }
 }
Exemplo n.º 2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Redirect">The ATI_RedirectInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Redirect(ATI_RedirectInfo objATI_Redirect)
 {
     if (objATI_Redirect.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Redirect(objATI_Redirect.ModuleId, objATI_Redirect.Content, objATI_Redirect.CreatedByUser);
     }
 }
Exemplo n.º 3
0
        /// -----------------------------------------------------------------------------
        /// <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_Redirects = Globals.GetContent(Content, "ATI_Redirects");

            foreach (XmlNode xmlATI_Redirect in xmlATI_Redirects.SelectNodes("ATI_Redirect"))
            {
                ATI_RedirectInfo objATI_Redirect = new ATI_RedirectInfo();

                objATI_Redirect.ModuleId      = ModuleID;
                objATI_Redirect.Content       = xmlATI_Redirect.SelectSingleNode("content").InnerText;
                objATI_Redirect.CreatedByUser = UserId;
                AddATI_Redirect(objATI_Redirect);
            }
        }
Exemplo n.º 4
0
        /// -----------------------------------------------------------------------------
        /// <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_Redirects = Globals.GetContent(Content, "ATI_Redirects");

            foreach (XmlNode xmlATI_Redirect in xmlATI_Redirects.SelectNodes("ATI_Redirect"))
            {
                ATI_RedirectInfo objATI_Redirect = new ATI_RedirectInfo();

                objATI_Redirect.ModuleId = ModuleID;
                objATI_Redirect.Content = xmlATI_Redirect.SelectSingleNode("content").InnerText;
                objATI_Redirect.CreatedByUser = UserId;
                AddATI_Redirect(objATI_Redirect);
            }
        }